bisecting cause commit starting from c101fffcd7fa83a851d180721426fe1b7c7daf8e building syzkaller on 1bcd407ecba1040897a39ee75c8d2da609313eb5 testing commit c101fffcd7fa83a851d180721426fe1b7c7daf8e with gcc (GCC) 8.1.0 kernel signature: 0a7303b8cade76a36463d53336b5668467ac354f all runs: crashed: general protection fault in hash_mac4_uadt testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.1.0 kernel signature: c77047b6dd543dbd92554385d125e52dc07bf1a6 all runs: crashed: general protection fault in hash_mac4_uadt testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 kernel signature: c968486ace29c7d2cec7c315504f1773b03db2f9 all runs: crashed: general protection fault in hash_mac4_uadt testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 kernel signature: b9694aba573fe32526775a00e676c8d49e9f236e all runs: crashed: general protection fault in hash_mac4_uadt testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.1.0 kernel signature: 8cc41c00a978bc68cd993e319934bd4bb1d0690e all runs: crashed: general protection fault in hash_mac4_uadt testing release v5.0 testing commit 1c163f4c7b3f621efff9b28a47abb36f7378d783 with gcc (GCC) 8.1.0 kernel signature: 9c48c3b8fa1f7ac31e0b999523bf25f777a727f3 all runs: crashed: general protection fault in hash_mac4_uadt testing release v4.20 testing commit 8fe28cb58bcb235034b64cbbb7550a8a43fd88be with gcc (GCC) 8.1.0 kernel signature: 99768e852058abc6282137a992123505d57f625b 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: 4e733cdf5920d37e6b39d6663b7fa29c44e630f2 all runs: crashed: general protection fault in hash_mac4_uadt # 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: a7ec13271d409fc17d0046fa55377b3b86b19d39 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: 4ecf355a7a6f4431950e8662ac8af167caa73252 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: 5b177ccc0fa3fe03e621bf13e7b52cad1c9b9998 run #0: crashed: general protection fault in hash_mac4_uadt run #1: crashed: general protection fault in hash_mac4_uadt run #2: crashed: general protection fault in hash_mac4_uadt run #3: crashed: general protection fault in corrupted run #4: crashed: general protection fault in hash_mac4_uadt run #5: crashed: general protection fault in hash_mac4_uadt run #6: crashed: general protection fault in hash_mac4_uadt run #7: crashed: general protection fault in hash_mac4_uadt run #8: crashed: general protection fault in hash_mac4_uadt run #9: crashed: general protection fault in hash_mac4_uadt # 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: 0b315a485835c80dc0b95ad100aa68543ad33812 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: a5a38ca3994b3e2300a6e85e086756d1e9ae0287 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: 629b3434408509b8b106a8554aa534d899c33371 all runs: crashed: general protection fault in hash_mac4_uadt # 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: 64508db63726da6558db21067dd9df9a559490ca 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: 4edef7e7bd26a77f8775d54d0be005f07978a515 all runs: crashed: general protection fault in hash_mac4_uadt # 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: 0ea8f689a620a3169ee8b6046d076746f5aefcd1 all runs: crashed: general protection fault in hash_mac4_uadt # 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: 84515469df8450e794fba5532607fa91a917339b run #0: crashed: general protection fault in hash_mac4_uadt run #1: crashed: general protection fault in hash_mac4_uadt run #2: crashed: general protection fault in hash_mac4_uadt run #3: crashed: general protection fault in hash_mac4_uadt run #4: crashed: general protection fault in hash_mac4_uadt run #5: crashed: general protection fault in hash_mac4_uadt run #6: crashed: general protection fault in hash_mac4_uadt run #7: crashed: general protection fault in hash_mac4_uadt run #8: crashed: general protection fault in hash_mac4_uadt run #9: crashed: general protection fault in corrupted # 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: 14f3228fb3ce04c0babde37c52b775ad7c2da996 all runs: crashed: general protection fault in hash_mac4_uadt # 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: c8786c1bd4264629f4309143eb5b1a137b259ef7 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: 14f3228fb3ce04c0babde37c52b775ad7c2da996 parent signature: c8786c1bd4264629f4309143eb5b1a137b259ef7 revisions tested: 20, total time: 3h52m24.448005707s (build: 1h53m42.422656506s, test: 1h56m44.928192617s) 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: general protection fault in hash_mac4_uadt IPv6: ADDRCONF(NETDEV_CHANGE): vlan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready kasan: CONFIG_KASAN_INLINE enabled IPv6: ADDRCONF(NETDEV_CHANGE): veth1_vlan: link becomes ready kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8505 Comm: syz-executor.1 Not tainted 4.19.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 IPv6: ADDRCONF(NETDEV_CHANGE): veth0_vlan: link becomes ready RIP: 0010:hash_mac4_uadt+0x198/0x4a0 net/netfilter/ipset/ip_set_hash_mac.c:108 Code: 48 89 fa 83 e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 55 02 00 00 48 89 f2 45 8b 76 04 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 f0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 06 RSP: 0018:ffff88007a727290 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 1ffff1000f4e4e56 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8800a92d6104 RBP: ffff88007a7273a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000000c R11: 0000000000000000 R12: ffff88007a727428 R13: ffff88008d724200 R14: 0000000008000000 R15: ffff88007a7272d0 FS: 00007f4939991700(0000) GS:ffff8800aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000b43e80 CR3: 00000000a94ae000 CR4: 00000000001406e0 IPv6: ADDRCONF(NETDEV_UP): veth0_virt_wifi: link is not ready DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 device veth0_vlan entered promiscuous mode DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: device veth1_vlan entered promiscuous mode ip_set_utest+0x3cc/0x690 net/netfilter/ipset/ip_set_core.c:1697 nfnetlink_rcv_msg+0x942/0xc10 net/netfilter/nfnetlink.c:228 IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2476 IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready nfnetlink_rcv+0x163/0x3b0 net/netfilter/nfnetlink.c:560 kobject: 'loop5' (00000000f1b43aa4): kobject_uevent_env 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 kobject: 'loop5' (00000000f1b43aa4): fill_kobj_path: path = '/devices/virtual/block/loop5' sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:631 IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready ___sys_sendmsg+0x647/0x950 net/socket.c:2116 8021q: adding VLAN 0 to HW filter on device batadv0 kobject: 'vlan0' (000000007c0521cf): kobject_add_internal: parent: 'mesh', set: '' IPv6: ADDRCONF(NETDEV_UP): veth0_vlan: link is not ready __sys_sendmsg+0xd9/0x180 net/socket.c:2154 IPv6: ADDRCONF(NETDEV_UP): vlan0: link is not ready __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2161 do_syscall_64+0xd0/0x4d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready RIP: 0033:0x45af49 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f4939990c78 EFLAGS: 00000246 IPv6: ADDRCONF(NETDEV_UP): veth1_vlan: link is not ready ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49 RDX: 0000000000000800 RSI: 00000000200001c0 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f49399916d4 R13: 00000000004c9e62 R14: 00000000004e2e98 R15: 00000000ffffffff Modules linked in: device veth0_vlan entered promiscuous mode ---[ end trace d893b10f50cbfdfe ]--- device veth1_vlan entered promiscuous mode RIP: 0010:hash_mac4_uadt+0x198/0x4a0 net/netfilter/ipset/ip_set_hash_mac.c:108 IPv6: ADDRCONF(NETDEV_UP): macvlan0: link is not ready Code: 48 89 fa 83 e2 07 83 c2 03 38 ca 7c 08 84 c9 0f 85 55 02 00 00 48 89 f2 45 8b 76 04 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 f0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 06 RSP: 0018:ffff88007a727290 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 1ffff1000f4e4e56 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8800a92d6104 IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready RBP: ffff88007a7273a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000000c R11: 0000000000000000 R12: ffff88007a727428 R13: ffff88008d724200 R14: 0000000008000000 R15: ffff88007a7272d0 FS: 00007f4939991700(0000) GS:ffff8800aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000b43e80 CR3: 00000000a94ae000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'loop0' (00000000491a9574): kobject_uevent_env DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400