[Bug 1212839] New: LTP test cve-2021-22555 setsockopt08.c fails with ENOENT
https://bugzilla.suse.com/show_bug.cgi?id=1212839 Bug ID: 1212839 Summary: LTP test cve-2021-22555 setsockopt08.c fails with ENOENT Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: petr.vorel@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- LTP test cve-2021-22555 setsockopt08.c fails with ENOENT [1], but it expects EINVAL on mostly all archs on Tumbleweed (all but s390x, i.e. aarch64, ppc64le, x86_64 and x86_64 compiled as 32bit). The test has been failing for very long time (our history goes to 6.3.2 20230517, but it's failing on my VM with 6.2.12-1-default 20230502). When test run more times (200x with -i200 [3]) it fails only on first time, the rest happily have EINVAL. And indeed, when verifying manually on VM, only first run fails dmesg on affected archs contains: [ 1514.789118][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.792200][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.795209][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.798209][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.801190][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.804092][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.807159][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.810210][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.813257][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 [ 1514.816227][T28992] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 But when running manually I see on first (failing): [ 208.455124] bpfilter: Loaded bpfilter_umh pid 1223 [ 208.456650] Started bpfilter (this is also in openQA jobs, but earlier, triggered by setsockopt03.c, which runs earlier). And x_tables run is reported on later (successful run): [ 221.292549] x_tables: ip_tables: state.0 match: invalid size 8 (kernel) != (user) 776 => Maybe there is a problem with loading x_tables on these 3 archs Interestingly x_tables is loaded on all archs, including s390x (which does not fail) and the same dmesg [4] FYI we stop and disable firewall in openQA install_ltp job (this qcow is then used for LTP tests) [5]: systemctl --no-pager disable firewalld Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service". Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service". systemctl --no-pager stop firewalld [1] https://openqa.opensuse.org/tests/3390125#step/setsockopt08/7 [2] https://github.com/linux-test-project/ltp/blob/a564d3e1672e9cd7ac302d597ffa2... [3] https://openqa.opensuse.org/tests/3391862#step/cve-2021-22555/7 [4] https://openqa.opensuse.org/tests/3380876/file/shutdown_ltp-dmesg.txt [5] https://openqa.opensuse.org/tests/3391842/file/serial_terminal.txt -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 Petr Vorel <petr.vorel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkubecek@suse.com, | |petr.vorel@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 Petr Vorel <petr.vorel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.doucha@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 Petr Vorel <petr.vorel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shung-hsi.yu@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c1 --- Comment #1 from Petr Vorel <petr.vorel@suse.com> --- Created attachment 867874 --> https://bugzilla.suse.com/attachment.cgi?id=867874&action=edit dmesg on 390x (working) https://openqa.opensuse.org/tests/3380876/file/shutdown_ltp-dmesg.txt -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c2 --- Comment #2 from Petr Vorel <petr.vorel@suse.com> --- Created attachment 867875 --> https://bugzilla.suse.com/attachment.cgi?id=867875&action=edit dmesg on x86_64 (failing) https://openqa.opensuse.org/tests/3391862/file/serial0.txt -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c3 --- Comment #3 from Petr Vorel <petr.vorel@suse.com> --- Created attachment 867876 --> https://bugzilla.suse.com/attachment.cgi?id=867876&action=edit Test output on x86_64 (failing) https://openqa.opensuse.org/tests/3391862/file/serial_terminal.txt -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c4 --- Comment #4 from Petr Vorel <petr.vorel@suse.com> --- Created attachment 867877 --> https://bugzilla.suse.com/attachment.cgi?id=867877&action=edit Test output on s390x (working) https://openqa.opensuse.org/tests/3380876/file/serial_terminal.txt -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 Petr Cervinka <pcervinka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pcervinka@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c5 Petr Vorel <petr.vorel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nstange@suse.com Flags| |needinfo?(nstange@suse.com) --- Comment #5 from Petr Vorel <petr.vorel@suse.com> --- @Nicolai, any idea what's wrong with the test? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c6 Richard Palethorpe <richard.palethorpe@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |richard.palethorpe@suse.com Flags|needinfo?(nstange@suse.com) | --- Comment #6 from Richard Palethorpe <richard.palethorpe@suse.com> --- Yes, this could be caused by the ipt_state module not being loaded. Except that the kernel should load the module and retry. match = xt_find_match(nfproto, name, revision); if (IS_ERR(match)) { request_module("%st_%s", xt_prefix[nfproto], name); match = xt_find_match(nfproto, name, revision); } I think xt_find_match is the only function that can return ENOENT before the checks are done which should cause EINVAL. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c7 --- Comment #7 from Richard Palethorpe <richard.palethorpe@suse.com> --- I had a similar issue on another test and just emitted TCONF if ENOENT is returned. We don't use ip_tables by default on newer products. Possibly in OpenQA we should use modprobe to load the module. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c10 Petr Cervinka <pcervinka@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #10 from Petr Cervinka <pcervinka@suse.com> --- LTP issue related to module loading. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c11 --- Comment #11 from Petr Vorel <petr.vorel@suse.com> --- My TODO to fix it: https://progress.opensuse.org/issues/151747 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 Petr Vorel <petr.vorel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.suse.com/s | |how_bug.cgi?id=1217990 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212839 https://bugzilla.suse.com/show_bug.cgi?id=1212839#c12 --- Comment #12 from Petr Vorel <petr.vorel@suse.com> --- NOTE: this is actually caused by broken ipt_state module loading due missing /etc/sysctl.conf (see https://bugzilla.suse.com/show_bug.cgi?id=1217990). -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com