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 crypto: lib/blake2s - Move selftest prototype into header file 2020-12-04 18:13:14 +11:00
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 rxrpc: Don't leak the service-side session key to userspace 2020-11-23 18:09:29 +00:00
kunit
kvm
linux string.h: add FORTIFY coverage for strscpy() 2020-12-15 22:46:16 -08:00
math-emu
media media: rc: add keymap for pine64 remote 2020-12-07 13:51:59 +01:00
memory
misc
net Networking updates for 5.11 2020-12-15 13:22:29 -08:00
pcmcia
ras
rdma net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
scsi scsi: libiscsi: Fix NOP race condition 2020-11-16 22:32:50 -05:00
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 xen: don't use page->lru for ZONE_DEVICE memory 2020-12-09 10:31:41 +01:00