android_kernel_sony_sdm845/tools/testing/selftests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tannerlove c5560e91e9 selftests/net: in timestamping, strncpy needs to preserve null byte
[ Upstream commit 8027bc0307ce59759b90679fa5d8b22949586d20 ]

If user passed an interface option longer than 15 characters, then
device.ifr_name and hwtstamp.ifr_name became non-null-terminated
strings. The compiler warned about this:

timestamping.c:353:2: warning: ‘strncpy’ specified bound 16 equals \
destination size [-Wstringop-truncation]
  353 |  strncpy(device.ifr_name, interface, sizeof(device.ifr_name));

Fixes: cb9eff0978 ("net: new user space API for time stamping of incoming and outgoing packets")
Signed-off-by: Tanner Love <tannerlove@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 15:38:30 -04:00
..
breakpoints selftests: add missing .gitignore file or entry 2016-02-25 13:16:36 -07:00
capabilities selftests/capabilities: Fix the test_execve test 2017-07-21 07:42:22 +02:00
cpu-hotplug selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
efivarfs selftests/efivarfs: add required kernel configs 2018-10-18 09:13:19 +02:00
exec selftests/exec: Makefile is a run-time dependency, add it to the install list 2016-06-15 13:35:55 -06:00
filesystems selftests: move dnotify_test from Documentation/filesystems 2016-09-20 09:09:00 -06:00
firmware test_firmware: fix setting old custom fw path back on exit, second try 2018-05-09 09:50:22 +02:00
ftrace selftests/ftrace: Fix to test kprobe $comm arg only if available 2019-11-28 18:28:39 +01:00
futex selftests/futex: Check ANSI terminal color support 2016-10-11 07:38:36 -06:00
ia64 selftests: move ia64 tests from Documentation/ia64 2016-09-20 09:58:12 -06:00
intel_pstate selftests/intel_pstate: Improve test, minor fixes 2018-08-03 07:55:15 +02:00
ipc selftests/ipc: Fix test failure seen after initial test run 2020-05-10 10:28:00 +02:00
kcmp
kvm selftests: kvm: Adding config fragments 2019-09-06 10:19:36 +02:00
lib selftests/lib: set printf.sh executable 2016-06-27 13:17:14 -06:00
media_tests selftests: media_tests add a new video device test 2016-07-26 09:59:30 -06:00
membarrier membarrier: clean up selftest 2015-09-22 15:09:53 -07:00
memfd selftests: memfd: add config fragment for fuse 2018-05-30 07:50:27 +02:00
memory-hotplug selftests: memory-hotplug: add required configs 2018-10-18 09:13:20 +02:00
mount selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
mqueue selftests: Add missing #include directives 2015-11-03 16:53:53 -07:00
net selftests: net: reuseport_dualstack: fix uninitalized parameter 2019-11-10 11:23:25 +01:00
netfilter selftests: netfilter: missing error check when setting up veth interface 2019-06-22 08:17:22 +02:00
networking/timestamping selftests/net: in timestamping, strncpy needs to preserve null byte 2020-06-30 15:38:30 -04:00
nsfs tools/testing: add a test to check nsfs ioctl-s 2016-09-22 19:59:41 -05:00
ntb ntb: ntb_test: ensure the link is up before trying to configure the mws 2017-08-30 10:21:55 +02:00
powerpc powerpc/selftests: Wait all threads to join 2018-11-21 09:25:57 +01:00
prctl selftests: move prctl tests from Documentation/prctl 2016-09-20 09:09:09 -06:00
pstore selftests: pstore: return Kselftest Skip code for skipped tests 2018-08-24 13:12:27 +02:00
ptp selftests: move ptp tests from Documentation/ptp 2016-09-20 09:54:38 -06:00
ptrace add ptrace/.gitignore 2016-01-07 13:38:11 -07:00
rcutorture rcutorture/configinit: Fix build directory error message 2018-03-22 09:17:58 +01:00
rseq rseq/selftests: Turn off timeout setting 2020-01-23 08:19:37 +01:00
seccomp seccomp: Add filter flag to opt-out of SSB mitigation 2018-05-22 16:58:01 +02:00
sigaltstack signals/sigaltstack: Change SS_AUTODISARM to (1U << 31) 2016-05-04 08:34:14 +02:00
size
static_keys selftests: static_keys: return Kselftest Skip code for skipped tests 2018-08-24 13:12:27 +02:00
sync selftests: sync: add config fragment for testing sync framework 2018-08-24 13:12:27 +02:00
sysctl
timers selftests/timers: Add missing fflush(stdout) calls 2019-06-22 08:17:20 +02:00
user selftests: user: return Kselftest Skip code for skipped tests 2018-08-24 13:12:27 +02:00
vDSO selftests: move vDSO tests from Documentation/vDSO 2016-09-20 09:58:04 -06:00
vm kselftest: fix OOM in memory compaction test 2018-02-22 15:43:52 +01:00
watchdog selftests: move watchdog tests from Documentation/watchdog 2016-09-20 09:58:34 -06:00
x86 selftests/vm/pkeys: fix alloc_random_pkey() to make it really random 2020-06-30 15:38:29 -04:00
zram selftests: zram: return Kselftest Skip code for skipped tests 2018-08-24 13:12:27 +02:00
gen_kselftest_tar.sh
kselftest.h
kselftest_install.sh
lib.mk selftests: change install command to rsync 2015-09-14 16:43:51 -06:00
Makefile selftests: add script to stress-test nft packet path vs. control plane 2018-12-17 09:38:32 +01:00