android_kernel_sony_sdm845/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Micay 3d2f47bfa3 replace incorrect strscpy use in FORTIFY_SOURCE
Using strscpy was wrong because FORTIFY_SOURCE is passing the maximum
possible size of the outermost object, but strscpy defines the count
parameter as the exact buffer size, so this could copy past the end of
the source.  This would still be wrong with the planned usage of
__builtin_object_size(p, 1) for intra-object overflow checks since it's
the maximum possible size of the specified object with no guarantee of
it being that large.

Reuse of the fortified functions like this currently makes the runtime
error reporting less precise but that can be improved later on.

Noticed by Dave Jones and KASAN.

Change-Id: I559abc94e1fd8acaa97cfc2c23d454caa43ce804
Signed-off-by: Daniel Micay <danielmicay@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Git-commit: 077d2ba519b2e8bf1abd80cbade699b1de42cafe
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2017-10-27 10:14:37 -07:00
..
acpi
asm-generic percpu: make this_cpu_generic_read() atomic w.r.t. interrupts 2017-10-12 11:51:23 +02:00
clocksource
crypto
drm drm/msm/dsi-staging: add support to batch commands and kickoff 2017-10-10 23:03:48 -07:00
dt-bindings Merge "soc: qcom: Add init time configuration support to DCC" 2017-10-25 08:13:20 -07:00
keys
kvm
linux replace incorrect strscpy use in FORTIFY_SOURCE 2017-10-27 10:14:37 -07:00
math-emu
media msm: vidc: Fix buffer requirement negotiations 2017-06-26 14:45:12 -07:00
memory
misc
net Merge "Merge remote-tracking branch '4.9/tmp-05a906d' into msm-4.9" 2017-10-24 19:57:25 -07:00
pcmcia
ras
rdma
rxrpc
scsi Merge remote-tracking branch '4.9/tmp-9ae2c67' into 4.9 2017-07-28 16:52:35 -07:00
soc soc: qcom: msm-core: Remove the energy-aware driver 2017-10-24 09:55:12 -07:00
sound Merge "ALSA: pcm: use lock to protect substream runtime resource" 2017-10-18 19:01:25 -07:00
target iscsi-target: Fix iscsi_np reset hung task during parallel delete 2017-08-16 13:43:16 -07:00
trace soc: qcom: msm-core: Remove the energy-aware driver 2017-10-24 09:55:12 -07:00
uapi Merge "msm: vidc: HDR10 PQ SEI generation for HEVC encoder" 2017-10-24 19:57:32 -07:00
video
xen swiotlb-xen: implement xen_swiotlb_dma_mmap callback 2017-10-05 09:44:05 +02:00
Kbuild