Add setsockopt10 TLS ULP UAF CVE-2023-0461
PATCH v2 1/1 Add setsockopt10 TLS ULP UAF CVE-2023-0461
Signed-off-by Richard Palethorpe <[email protected]>
---
V2:
* rm taint check, it's done by lib
* flush before doing double free because I found it was cutting the message in two
* switch sleep to sched_yield
* also reap children before concluding we didn't trigger the bug
I haven't added needs_drivers. I'd prefer to add that later when Petr's patchset is merged.
configure.ac | 1 + runtest/cve | 1 + runtest/syscalls | 1 + .../kernel/syscalls/setsockopt/.gitignore | 1 + .../kernel/syscalls/setsockopt/setsockopt10.c | 204 ++++++++++++++++++ 5 files changed, 208 insertions(+) create mode 100644 testcases/kernel/syscalls/setsockopt/setsockopt10.c
configure.ac +1 -0
@@ -64,6 +64,7 @@ AC_CHECK_HEADERS_ONCE([ \ linux/netlink.h \ linux/seccomp.h \ linux/securebits.h \ + linux/tls.h \ linux/tty.h \ linux/types.h \ linux/userfaultfd.h \
runtest/cve +1 -0
@@ -85,6 +85,7 @@ cve-2022-0847 dirtypipe cve-2022-2590 dirtyc0w_shmem cve-2022-23222 bpf_prog07 cve-2023-1829 tcindex01 +cve-2023-0461 setsockopt10 # Tests below may cause kernel memory leak cve-2020-25704 perf_event_open03 cve-2022-0185 fsconfig03
runtest/syscalls +1 -0
@@ -1425,6 +1425,7 @@ setsockopt06 setsockopt06 setsockopt07 setsockopt07 setsockopt08 setsockopt08 setsockopt09 setsockopt09 +setsockopt10 setsockopt10 settimeofday01 settimeofday01 settimeofday02 settimeofday02
testcases/kernel/syscalls/setsockopt/.gitignore +1 -0
@@ -7,3 +7,4 @@ /setsockopt07 /setsockopt08 /setsockopt09 +/setsockopt10
testcases/kernel/syscalls/setsockopt/setsockopt10.c new file +204 -0
204 lines not on this page · raw message
Signature · 5 lines
2.40.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
LGTM
Reviewed-by Marius Kittler <[email protected]>
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Quoted 1 line
I haven't added
needs_drivers. I'd prefer to add that later when
Looks good now, I will have a look at the patchset from Peter to get this merged soon.
Reviewed-by Cyril Hrubis <[email protected]>
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hello,
Pushed, Thanks!
Quoted 7 lines · Cyril Hrubis
Hi!
Quoted 1 line
I haven't added
needs_drivers. I'd prefer to add that later whenLooks good now, I will have a look at the patchset from Peter to get this merged soon.
Reviewed-by Cyril Hrubis <[email protected]>
Signature · 5 lines
Thank you, Richard. -- Mailing list info: https://lists.linux.it/listinfo/ltp