mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
Merge tag 'hardening-v7.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull hardening fixes from Kees Cook: - lkdtm: fix missed rename of STACKLEAK_ERASING to KSTACK_ERASE (Haofeng Li) - selftests/seccomp: Fix pointer type mismatch build error (Kuan-Ying Lee) - tests/fortify: Disable -Wstringop-overread (Nathan Chancellor) * tag 'hardening-v7.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: selftests/seccomp: Fix pointer type mismatch build error selftests/lkdtm: rename STACKLEAK_ERASING to KSTACK_ERASE fortify: Disable -Wstringop-overread in tests
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
ccflags-y := $(call cc-disable-warning,fortify-source)
|
||||
ccflags-y += $(call cc-disable-warning,stringop-overread)
|
||||
|
||||
quiet_cmd_test_fortify = TEST $@
|
||||
cmd_test_fortify = $(CONFIG_SHELL) $(src)/test_fortify.sh \
|
||||
|
||||
@@ -78,7 +78,7 @@ USERCOPY_STACK_FRAME_TO
|
||||
USERCOPY_STACK_FRAME_FROM
|
||||
USERCOPY_STACK_BEYOND
|
||||
USERCOPY_KERNEL
|
||||
STACKLEAK_ERASING OK: the rest of the thread stack is properly erased
|
||||
KSTACK_ERASE OK: the rest of the thread stack is properly erased
|
||||
CFI_FORWARD_PROTO
|
||||
CFI_BACKWARD call trace:|ok: control flow unchanged
|
||||
FORTIFY_STRSCPY detected buffer overflow
|
||||
|
||||
@@ -5178,7 +5178,8 @@ FIXTURE_SETUP(UPROBE)
|
||||
ASSERT_GE(bit, 0);
|
||||
}
|
||||
|
||||
offset = get_uprobe_offset(variant->uretprobe ? probed_uretprobe : probed_uprobe);
|
||||
offset = get_uprobe_offset(variant->uretprobe ? (void *)probed_uretprobe
|
||||
: (void *)probed_uprobe);
|
||||
ASSERT_GE(offset, 0);
|
||||
|
||||
if (variant->uretprobe)
|
||||
|
||||
Reference in New Issue
Block a user