linux/include
Francis Laniel 33e56a59e6 string.h: add FORTIFY coverage for strscpy()
The fortified version of strscpy ensures the following before vanilla strscpy
is called:

1. There is no read overflow because we either size is smaller than
   src length or we shrink size to src length by calling fortified
   strnlen.

2. There is no write overflow because we either failed during
   compilation or at runtime by checking that size is smaller than dest
   size.

Link: https://lkml.kernel.org/r/20201122162451.27551-4-laniel_francis@privacyrequired.com
Signed-off-by: Francis Laniel <laniel_francis@privacyrequired.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Daniel Axtens <dja@axtens.net>
Cc: Daniel Micay <danielmicay@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-15 22:46:16 -08:00
..
acpi ACPI updates for 5.11-rc1 2020-12-15 16:39:06 -08:00
asm-generic asm-generic: force inlining of get_order() to work around gcc10 poor decision 2020-12-15 22:46:15 -08:00
clocksource
crypto
drm Merge tag 'drm-msm-next-2020-12-07' of https://gitlab.freedesktop.org/drm/msm into drm-next 2020-12-10 09:42:47 +10:00
dt-bindings regulator: Updates for v5.11 2020-12-15 15:48:30 -08:00
keys
kunit
kvm
linux string.h: add FORTIFY coverage for strscpy() 2020-12-15 22:46:16 -08:00
math-emu
media
memory
misc
net Networking updates for 5.11 2020-12-15 13:22:29 -08:00
pcmcia
ras
rdma
scsi
soc Power management updates for 5.11-rc1 2020-12-15 16:30:31 -08:00
sound ASoC: Updates for v5.11 2020-12-14 15:57:14 +01:00
target
trace Power management updates for 5.11-rc1 2020-12-15 16:30:31 -08:00
uapi pci-v5.11-changes 2020-12-15 16:49:59 -08:00
vdso
video
xen