bisecting cause commit starting from 6381b442836ea3c52eae630b10be8c27c7a17af2 building syzkaller on 2e95ab335759ed7e1c246c2057c84d813a2c29e1 testing commit 6381b442836ea3c52eae630b10be8c27c7a17af2 with gcc (GCC) 8.1.0 kernel signature: 1c3c8ddd48051bcd8a304f45250051e310e227ba07903b019a29194c728a9eac all runs: crashed: INFO: rcu detected stall in ip_set_uadd testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.1.0 kernel signature: a15e401ecdaaa9bfc838b52b60c09851a6ef549276314cac5c15413c6bafe4c1 all runs: crashed: INFO: rcu detected stall in ip_set_uadd testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 kernel signature: c4d266847a01a74ec32e95de6c008f2b52f5d8cc9d70f4cae78a38d79e7c002c run #0: crashed: INFO: rcu detected stall in ip_set_uadd run #1: crashed: INFO: rcu detected stall in ip_set_uadd run #2: crashed: INFO: rcu detected stall in ip_set_uadd run #3: crashed: INFO: rcu detected stall in ip_set_uadd run #4: crashed: INFO: rcu detected stall in ip_set_uadd run #5: crashed: INFO: rcu detected stall in ip_set_uadd run #6: crashed: INFO: rcu detected stall in ip_set_uadd run #7: crashed: INFO: rcu detected stall in ip_set_uadd run #8: crashed: INFO: rcu detected stall in ip_set_uadd run #9: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor433818540" "root@10.128.10.39:./syz-executor433818540"]: exit status 1 ssh: connect to host 10.128.10.39 port 22: Connection timed out lost connection testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 kernel signature: ba546054c8eac7924f4bd539a64f4e217a633bf802c9eaae1fc125e08ba21e0d run #0: crashed: INFO: task hung in nfnetlink_rcv_msg run #1: crashed: INFO: task hung in nfnetlink_rcv_msg run #2: crashed: INFO: rcu detected stall in ip_set_uadd run #3: crashed: INFO: rcu detected stall in ip_set_uadd run #4: crashed: INFO: task hung in nfnetlink_rcv_msg run #5: crashed: INFO: task hung in nfnetlink_rcv_msg run #6: crashed: INFO: task hung in rtnl_lock run #7: crashed: INFO: task hung in nfnetlink_rcv_msg run #8: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor493505982" "root@10.128.10.61:./syz-executor493505982"]: exit status 1 Connection timed out during banner exchange lost connection run #9: OK testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.1.0 kernel signature: 7540f743fbab369818e842faee0abdbb7226e6deca2cb5f0bed358c3cb63d486 run #0: crashed: INFO: task hung in nfnetlink_rcv_msg run #1: crashed: INFO: task hung in nfnetlink_rcv_msg run #2: crashed: INFO: task hung in nfnetlink_rcv_msg run #3: crashed: INFO: task hung in nmi_cpu_backtrace run #4: crashed: INFO: task hung in synchronize_rcu run #5: crashed: INFO: task hung in nfnetlink_rcv_msg run #6: crashed: INFO: task hung in nfnetlink_rcv_msg run #7: crashed: INFO: task hung in nfnetlink_rcv_msg run #8: crashed: INFO: task hung in synchronize_rcu run #9: OK testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.1.0 kernel signature: fce27f111d8441dc71a67eec747002d0ab720b8998c9fada4517d092a36807ba run #0: crashed: INFO: task hung in nfnetlink_rcv_msg run #1: crashed: INFO: task hung in nfnetlink_rcv_msg run #2: crashed: INFO: task hung in nfnetlink_rcv_msg run #3: crashed: INFO: task hung in synchronize_rcu run #4: crashed: INFO: task hung in corrupted run #5: crashed: INFO: task hung in synchronize_rcu run #6: crashed: INFO: task hung in synchronize_rcu run #7: crashed: INFO: task hung in nfnetlink_rcv_msg run #8: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor182771924" "root@10.128.15.202:./syz-executor182771924"]: exit status 1 ssh: connect to host 10.128.15.202 port 22: Connection timed out lost connection run #9: OK testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.1.0 kernel signature: 1d414bf27e102b1c1d766298614a02e6cee688058032d5d8d0a336517a247b58 all runs: OK # git bisect start 1c163f4c7b3f621efff9b28a47abb36f7378d783 8fe28cb58bcb235034b64cbbb7550a8a43fd88be Bisecting: 7011 revisions left to test after this (roughly 13 steps) [af7ddd8a627c62a835524b3f5b471edbbbcce025] Merge tag 'dma-mapping-4.21' of git://git.infradead.org/users/hch/dma-mapping testing commit af7ddd8a627c62a835524b3f5b471edbbbcce025 with gcc (GCC) 8.1.0 kernel signature: 6c39b34174fd63fc0db0e693b52f8debaa2b5aad83e51039c8309663ba7431f4 run #0: crashed: INFO: rcu detected stall in ip_set_uadd run #1: crashed: INFO: task hung in nfnetlink_rcv_msg run #2: crashed: INFO: task hung in nfnetlink_rcv_msg run #3: crashed: INFO: task hung in corrupted run #4: crashed: INFO: task hung in corrupted run #5: crashed: INFO: task hung in synchronize_rcu run #6: crashed: INFO: task hung in try_to_wake_up run #7: crashed: no output from test machine run #8: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor370873999" "root@10.128.0.33:./syz-executor370873999"]: exit status 1 ssh: connect to host 10.128.0.33 port 22: Connection timed out lost connection run #9: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor522733730" "root@10.128.10.43:./syz-executor522733730"]: exit status 1 ssh: connect to host 10.128.10.43 port 22: Connection timed out lost connection # git bisect bad af7ddd8a627c62a835524b3f5b471edbbbcce025 Bisecting: 3448 revisions left to test after this (roughly 12 steps) [792bf4d871dea8b69be2aaabdd320d7c6ed15985] Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 792bf4d871dea8b69be2aaabdd320d7c6ed15985 with gcc (GCC) 8.1.0 kernel signature: ea918b8d8c5d9894480da773ae324c2c9dee25c4bced121b8d8f2ca406b231e3 all runs: OK # git bisect good 792bf4d871dea8b69be2aaabdd320d7c6ed15985 Bisecting: 1729 revisions left to test after this (roughly 11 steps) [aa9d6e0f33aea8a1879e7e53fe0e436943f9ce0c] linux/netlink.h: drop unnecessary extern prefix testing commit aa9d6e0f33aea8a1879e7e53fe0e436943f9ce0c with gcc (GCC) 8.1.0 kernel signature: 9fe66be4744929fe7c667da7e4c1f55b64c727cc4192dd4a242a7fdb233649ad all runs: OK # git bisect good aa9d6e0f33aea8a1879e7e53fe0e436943f9ce0c Bisecting: 835 revisions left to test after this (roughly 10 steps) [e0c38a4d1f196a4b17d2eba36afff8f656a4f1de] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next testing commit e0c38a4d1f196a4b17d2eba36afff8f656a4f1de with gcc (GCC) 8.1.0 kernel signature: df615a15e43f1466b66fef07c0716e6bd75ac91329b362cd4a85b7362e01d72a run #0: crashed: INFO: task hung in corrupted run #1: crashed: INFO: task hung in nfnetlink_rcv_msg run #2: crashed: INFO: task hung in corrupted run #3: crashed: INFO: task hung in nfnetlink_rcv_msg run #4: crashed: INFO: task hung in synchronize_rcu run #5: crashed: INFO: task hung in synchronize_rcu run #6: crashed: INFO: task hung in nfnetlink_rcv_msg run #7: crashed: no output from test machine run #8: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor630781681" "root@10.128.1.42:./syz-executor630781681"]: exit status 1 Connection timed out during banner exchange lost connection run #9: crashed: kernel panic: hung_task: blocked tasks # git bisect bad e0c38a4d1f196a4b17d2eba36afff8f656a4f1de Bisecting: 384 revisions left to test after this (roughly 9 steps) [8d6973327ee84c2f40dd9efd8928d4a1186c96e2] Merge tag 'powerpc-4.21-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux testing commit 8d6973327ee84c2f40dd9efd8928d4a1186c96e2 with gcc (GCC) 8.1.0 kernel signature: 4db84a4d9c6457ba6157bcaece589395abcc07a79bb2d3cd09570d3838bbd1b4 all runs: OK # git bisect good 8d6973327ee84c2f40dd9efd8928d4a1186c96e2 Bisecting: 222 revisions left to test after this (roughly 8 steps) [e770454fabde2e0f8fb3e5039a2b6df8f128bc9b] Merge branch 'expand-txtimestamp-selftest' testing commit e770454fabde2e0f8fb3e5039a2b6df8f128bc9b with gcc (GCC) 8.1.0 kernel signature: 0421422c99c726aa458eaca0ebd45670b6be43f4aeca5e6284155950b611f77c all runs: OK # git bisect good e770454fabde2e0f8fb3e5039a2b6df8f128bc9b Bisecting: 106 revisions left to test after this (roughly 7 steps) [c3e533692527046fb55020e7fac8c4272644ba45] Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next testing commit c3e533692527046fb55020e7fac8c4272644ba45 with gcc (GCC) 8.1.0 kernel signature: 9d5b8c19114942700a8f04a0d8ec8feba4fb78bb1e29163236fddf7f8f70c35f run #0: crashed: INFO: task hung in nfnetlink_rcv_msg run #1: crashed: INFO: task hung in nfnetlink_rcv_msg run #2: crashed: INFO: rcu detected stall in ip_set_uadd run #3: crashed: INFO: rcu detected stall in ip_set_uadd run #4: crashed: INFO: task hung in corrupted run #5: crashed: INFO: task hung in nfnetlink_rcv_msg run #6: crashed: INFO: task hung in nfnetlink_rcv_msg run #7: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor654706708" "root@10.128.10.32:./syz-executor654706708"]: exit status 1 ssh: connect to host 10.128.10.32 port 22: Connection timed out lost connection run #8: OK run #9: OK # git bisect bad c3e533692527046fb55020e7fac8c4272644ba45 Bisecting: 57 revisions left to test after this (roughly 6 steps) [9df95e8ec568f98d89fe2c72342714296ac6ce27] bpf: sparc64: Enable sparc64 jit to provide bpf_line_info testing commit 9df95e8ec568f98d89fe2c72342714296ac6ce27 with gcc (GCC) 8.1.0 kernel signature: b0847b21bc286bafb64678f3ee7240d2caf24010f63404bbc64f492e24cc1695 all runs: OK # git bisect good 9df95e8ec568f98d89fe2c72342714296ac6ce27 Bisecting: 28 revisions left to test after this (roughly 5 steps) [06aa151ad1fc74a49b45336672515774a678d78d] netfilter: ipt_CLUSTERIP: check MAC address when duplicate config is set testing commit 06aa151ad1fc74a49b45336672515774a678d78d with gcc (GCC) 8.1.0 kernel signature: 135ff15f120e718499cb1391be7493724f3993e134cb9054ff878d37882841a6 run #0: crashed: INFO: task hung in synchronize_rcu run #1: crashed: INFO: task hung in nfnetlink_rcv_msg run #2: crashed: INFO: task hung in nfnetlink_rcv_msg run #3: crashed: INFO: task hung in nfnetlink_rcv_msg run #4: crashed: INFO: task hung in nfnetlink_rcv_msg run #5: crashed: INFO: task hung in synchronize_rcu run #6: crashed: INFO: rcu detected stall in ip_set_uadd run #7: crashed: INFO: task hung in nfnetlink_rcv_msg run #8: crashed: INFO: rcu detected stall in ip_set_uadd run #9: OK # git bisect bad 06aa151ad1fc74a49b45336672515774a678d78d Bisecting: 14 revisions left to test after this (roughly 4 steps) [a504b703bb1da526a01593da0e4be2af9d9f5fa8] netfilter: nat: limit port clash resolution attempts testing commit a504b703bb1da526a01593da0e4be2af9d9f5fa8 with gcc (GCC) 8.1.0 kernel signature: 03580176ad066f7caef34271723280c533756d7de5aef69a6ec58edc4bf2c818 run #0: crashed: INFO: task hung in synchronize_rcu run #1: crashed: INFO: task hung in synchronize_rcu run #2: crashed: INFO: task hung in nmi_cpu_backtrace run #3: crashed: INFO: task hung in corrupted run #4: crashed: INFO: task hung in synchronize_rcu run #5: crashed: INFO: task hung in synchronize_rcu run #6: crashed: INFO: task hung in nfnetlink_rcv_msg run #7: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor823576420" "root@10.128.15.195:./syz-executor823576420"]: exit status 1 ssh: connect to host 10.128.15.195 port 22: Connection timed out lost connection run #8: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor561868659" "root@10.128.0.96:./syz-executor561868659"]: exit status 1 ssh: connect to host 10.128.0.96 port 22: Connection timed out lost connection run #9: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor429920310" "root@10.128.15.192:./syz-executor429920310"]: exit status 1 ssh: connect to host 10.128.15.192 port 22: Connection timed out lost connection # git bisect bad a504b703bb1da526a01593da0e4be2af9d9f5fa8 Bisecting: 6 revisions left to test after this (roughly 3 steps) [b9660987692230b381b64c1f1e912febe142c390] netfilter: nf_flow_table: simplify nf_flow_offload_gc_step() testing commit b9660987692230b381b64c1f1e912febe142c390 with gcc (GCC) 8.1.0 kernel signature: 231742fc1ccb70f1690d04d1c595aad1c54db85b0e7e2f80a7b0d87fb66d8900 run #0: crashed: INFO: task hung in nfnetlink_rcv_msg run #1: crashed: INFO: rcu detected stall in hash_ip4_gc run #2: crashed: INFO: task hung in nfnetlink_rcv_msg run #3: crashed: INFO: task hung in nfnetlink_rcv_msg run #4: crashed: INFO: task hung in nfnetlink_rcv_msg run #5: crashed: INFO: task hung in synchronize_rcu run #6: crashed: INFO: task hung in synchronize_rcu run #7: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor599703256" "root@10.128.1.5:./syz-executor599703256"]: exit status 1 ssh: connect to host 10.128.1.5 port 22: Connection timed out lost connection run #8: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor886053834" "root@10.128.0.202:./syz-executor886053834"]: exit status 1 ssh: connect to host 10.128.0.202 port 22: Connection timed out lost connection run #9: OK # git bisect bad b9660987692230b381b64c1f1e912febe142c390 Bisecting: 3 revisions left to test after this (roughly 2 steps) [23c42a403a9cfdbad6004a556c927be7dd61a8ee] netfilter: ipset: Introduction of new commands and protocol version 7 testing commit 23c42a403a9cfdbad6004a556c927be7dd61a8ee with gcc (GCC) 8.1.0 kernel signature: f57d013755c1599383c9a50f51220ac9c9cc027395da308c7ea1f0b84e6b0e12 run #0: crashed: INFO: task hung in synchronize_rcu run #1: crashed: INFO: task hung in synchronize_rcu run #2: crashed: INFO: task hung in nfnetlink_rcv_msg run #3: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor788501388" "root@10.128.15.198:./syz-executor788501388"]: exit status 1 Connection timed out during banner exchange lost connection run #4: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor430099102" "root@10.128.15.199:./syz-executor430099102"]: exit status 1 ssh: connect to host 10.128.15.199 port 22: Connection timed out lost connection run #5: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor659899264" "root@10.128.0.90:./syz-executor659899264"]: exit status 1 ssh: connect to host 10.128.0.90 port 22: Connection timed out lost connection run #6: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor964731615" "root@10.128.0.6:./syz-executor964731615"]: exit status 1 ssh: connect to host 10.128.0.6 port 22: Connection timed out lost connection run #7: basic kernel testing failed: failed to copy test binary to VM: failed to run ["scp" "-P" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-i" "/syzkaller/jobs/linux/workdir/image/key" "/tmp/syz-executor352864434" "root@10.128.15.197:./syz-executor352864434"]: exit status 1 Connection timed out during banner exchange lost connection run #8: OK run #9: OK # git bisect bad 23c42a403a9cfdbad6004a556c927be7dd61a8ee Bisecting: 0 revisions left to test after this (roughly 1 step) [29edbc3ebdb0faa934114f14bf12fc0b784d4f1b] netfilter: ipset: Make invalid MAC address checks consistent testing commit 29edbc3ebdb0faa934114f14bf12fc0b784d4f1b with gcc (GCC) 8.1.0 kernel signature: feff9fa14ae32ce13b914964c9cebae88f1150a649b845bc614139479aef03ff all runs: OK # git bisect good 29edbc3ebdb0faa934114f14bf12fc0b784d4f1b 23c42a403a9cfdbad6004a556c927be7dd61a8ee is the first bad commit commit 23c42a403a9cfdbad6004a556c927be7dd61a8ee Author: Jozsef Kadlecsik Date: Sat Oct 27 15:07:40 2018 +0200 netfilter: ipset: Introduction of new commands and protocol version 7 Two new commands (IPSET_CMD_GET_BYNAME, IPSET_CMD_GET_BYINDEX) are introduced. The new commands makes possible to eliminate the getsockopt operation (in iptables set/SET match/target) and thus use only netlink communication between userspace and kernel for ipset. With the new protocol version, userspace can exactly know which functionality is supported by the running kernel. Both the kernel and userspace is fully backward compatible. Signed-off-by: Jozsef Kadlecsik include/linux/netfilter/ipset/ip_set.h | 2 +- include/uapi/linux/netfilter/ipset/ip_set.h | 19 ++-- net/netfilter/ipset/ip_set_core.c | 164 +++++++++++++++++++++++++--- 3 files changed, 160 insertions(+), 25 deletions(-) culprit signature: f57d013755c1599383c9a50f51220ac9c9cc027395da308c7ea1f0b84e6b0e12 parent signature: feff9fa14ae32ce13b914964c9cebae88f1150a649b845bc614139479aef03ff revisions tested: 20, total time: 5h26m46.741213388s (build: 1h58m32.854308874s, test: 3h26m24.624124918s) first bad commit: 23c42a403a9cfdbad6004a556c927be7dd61a8ee netfilter: ipset: Introduction of new commands and protocol version 7 cc: ["coreteam@netfilter.org" "davem@davemloft.net" "fw@strlen.de" "kadlec@blackhole.kfki.hu" "linux-kernel@vger.kernel.org" "netdev@vger.kernel.org" "netfilter-devel@vger.kernel.org" "pablo@netfilter.org"] crash: INFO: task hung in nfnetlink_rcv_msg IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready Set syz2 is full, maxelem 65536 reached NOHZ: local_softirq_pending 08 NOHZ: local_softirq_pending 08 INFO: task syz-executor.2:6814 blocked for more than 140 seconds. Not tainted 4.19.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28000 6814 6673 0x20020004 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x78c/0x1c00 kernel/sched/core.c:3473 schedule+0x7f/0x1b0 kernel/sched/core.c:3517 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3575 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x806/0x1210 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 nfnl_lock net/netfilter/nfnetlink.c:62 [inline] nfnetlink_rcv_msg+0x6f6/0xc10 net/netfilter/nfnetlink.c:223 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x75/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x235/0xa5a arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fbdca9 Code: Bad RIP value. RSP: 002b:00000000f7fb90cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000300 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.1:6822 blocked for more than 140 seconds. Not tainted 4.19.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.1 D27760 6822 6669 0x20020004 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x78c/0x1c00 kernel/sched/core.c:3473 schedule+0x7f/0x1b0 kernel/sched/core.c:3517 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3575 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x806/0x1210 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 nfnl_lock net/netfilter/nfnetlink.c:62 [inline] nfnetlink_rcv_msg+0x6f6/0xc10 net/netfilter/nfnetlink.c:223 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x75/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x235/0xa5a arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f28ca9 Code: Bad RIP value. RSP: 002b:00000000f7f030cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000300 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.3:6834 blocked for more than 140 seconds. Not tainted 4.19.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D28480 6834 6675 0x20020004 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x78c/0x1c00 kernel/sched/core.c:3473 schedule+0x7f/0x1b0 kernel/sched/core.c:3517 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3575 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x806/0x1210 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 nfnl_lock net/netfilter/nfnetlink.c:62 [inline] nfnetlink_rcv_msg+0x6f6/0xc10 net/netfilter/nfnetlink.c:223 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x75/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x235/0xa5a arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fcfca9 Code: Bad RIP value. RSP: 002b:00000000f7f890cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000300 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.4:6831 blocked for more than 140 seconds. Not tainted 4.19.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28368 6831 6680 0x20020004 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x78c/0x1c00 kernel/sched/core.c:3473 schedule+0x7f/0x1b0 kernel/sched/core.c:3517 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3575 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x806/0x1210 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 nfnl_lock net/netfilter/nfnetlink.c:62 [inline] nfnetlink_rcv_msg+0x6f6/0xc10 net/netfilter/nfnetlink.c:223 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x75/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x235/0xa5a arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f51ca9 Code: Bad RIP value. RSP: 002b:00000000f7f4d0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000300 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.4:6832 blocked for more than 140 seconds. Not tainted 4.19.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28432 6832 6680 0x20020004 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x78c/0x1c00 kernel/sched/core.c:3473 schedule+0x7f/0x1b0 kernel/sched/core.c:3517 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3575 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x806/0x1210 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 nfnl_lock net/netfilter/nfnetlink.c:62 [inline] nfnetlink_rcv_msg+0x6f6/0xc10 net/netfilter/nfnetlink.c:223 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x75/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x235/0xa5a arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f51ca9 Code: Bad RIP value. RSP: 002b:00000000f7f2c0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000d00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: task syz-executor.4:6836 blocked for more than 140 seconds. Not tainted 4.19.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28480 6836 6680 0x20020004 Call Trace: context_switch kernel/sched/core.c:2825 [inline] __schedule+0x78c/0x1c00 kernel/sched/core.c:3473 schedule+0x7f/0x1b0 kernel/sched/core.c:3517 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3575 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x806/0x1210 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 nfnl_lock net/netfilter/nfnetlink.c:62 [inline] nfnetlink_rcv_msg+0x6f6/0xc10 net/netfilter/nfnetlink.c:223 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x75/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x235/0xa5a arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f51ca9 Code: Bad RIP value. RSP: 002b:00000000f7f0b0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000300 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 INFO: lockdep is turned off. NMI backtrace for cpu 1 CPU: 1 PID: 1077 Comm: khungtaskd Not tainted 4.19.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x109/0x15a lib/dump_stack.c:113 nmi_cpu_backtrace.cold.3+0x3e/0x76 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0xf5/0x119 lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:144 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline] watchdog+0x57c/0x9d0 kernel/hung_task.c:265 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:413 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6828 Comm: syz-executor.3 Not tainted 4.19.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:hash_ip4_expire.isra.14+0x4e1/0x7d0 net/netfilter/ipset/ip_set_hash_gen.h:475 Code: 5c d8 10 48 89 d8 48 c1 e8 03 42 80 3c 30 00 0f 85 16 02 00 00 4c 89 3b 31 f6 48 89 cf e8 57 65 b0 fb 48 8b 45 88 83 45 c4 01 <48> c1 e8 03 42 0f b6 04 30 84 c0 74 06 0f 8e 9c 01 00 00 48 8b 45 RSP: 0018:ffff88009934eed0 EFLAGS: 00000206 RAX: ffff880076100208 RBX: ffff880092861b99 RCX: ffff880092861b80 RDX: 0000000000000003 RSI: 0000000000000001 RDI: ffff8800901e6f98 RBP: ffff88009934ef78 R08: ffff880092861b90 R09: ffff880092861b99 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000003 R13: ffff8800901e6f00 R14: dffffc0000000000 R15: ffff880092861b80 FS: 0000000000000000(0000) GS:ffff8800aea00000(0063) knlGS:00000000f7faab40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7f03db0 CR3: 000000008b880000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hash_ip4_add+0x6b1/0x1f47 net/netfilter/ipset/ip_set_hash_gen.h:713 hash_ip4_uadt+0x47c/0x700 net/netfilter/ipset/ip_set_hash_ip.c:155 call_ad+0x178/0x530 net/netfilter/ipset/ip_set_core.c:1515 ip_set_uadd+0x403/0xae0 net/netfilter/ipset/ip_set_core.c:1596 nfnetlink_rcv_msg+0x942/0xc10 net/netfilter/nfnetlink.c:228 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x765/0xc40 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:754 [inline] __do_compat_sys_sendmsg net/compat.c:761 [inline] __se_compat_sys_sendmsg net/compat.c:758 [inline] __ia32_compat_sys_sendmsg+0x75/0xb0 net/compat.c:758 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x235/0xa5a arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fcfca9 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7faa0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000d00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000