bisecting cause commit starting from 07c3bbdb1a9b2046631a2a2950a0c16e10cfcab3 building syzkaller on 698773cb4fbe8873ee0a2c37b86caef01e2c6159 testing commit 07c3bbdb1a9b2046631a2a2950a0c16e10cfcab3 with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in ip6_dst_lookup_tail testing release v5.1 testing commit e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd with gcc (GCC) 8.1.0 run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: boot failed: WARNING: workqueue cpumask: online intersect > possible intersect # git bisect start 07c3bbdb1a9b2046631a2a2950a0c16e10cfcab3 v5.1 Bisecting: 7209 revisions left to test after this (roughly 13 steps) [f4d9a23d3dad0252f375901bf4ff6523a2c97241] sparc64: simplify reduce_memory() function testing commit f4d9a23d3dad0252f375901bf4ff6523a2c97241 with gcc (GCC) 8.1.0 all runs: OK # git bisect good f4d9a23d3dad0252f375901bf4ff6523a2c97241 Bisecting: 3604 revisions left to test after this (roughly 12 steps) [1df3a339074e31db95c4790ea9236874b13ccd87] mm/cma.c: fix crash on CMA allocation if bitmap allocation fails testing commit 1df3a339074e31db95c4790ea9236874b13ccd87 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 1df3a339074e31db95c4790ea9236874b13ccd87 Bisecting: 1771 revisions left to test after this (roughly 11 steps) [dc413a90edbe715bebebe859dc072ef73d490d70] Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit dc413a90edbe715bebebe859dc072ef73d490d70 with gcc (GCC) 8.1.0 all runs: OK # git bisect good dc413a90edbe715bebebe859dc072ef73d490d70 Bisecting: 885 revisions left to test after this (roughly 10 steps) [94d250fae48e6f873d8362308f5c4d02cd1b1fd2] usbnet: ipheth: fix racing condition testing commit 94d250fae48e6f873d8362308f5c4d02cd1b1fd2 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 94d250fae48e6f873d8362308f5c4d02cd1b1fd2 Bisecting: 415 revisions left to test after this (roughly 9 steps) [036e34310931e64ce4f1edead435708cd517db10] Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net testing commit 036e34310931e64ce4f1edead435708cd517db10 with gcc (GCC) 8.1.0 all runs: OK # git bisect good 036e34310931e64ce4f1edead435708cd517db10 Bisecting: 210 revisions left to test after this (roughly 8 steps) [e89e899f3e3213a98ccf60d832f37ecef7000a5b] ice: Add a helper to trigger software interrupt testing commit e89e899f3e3213a98ccf60d832f37ecef7000a5b with gcc (GCC) 8.1.0 all runs: crashed: general protection fault in ip6_dst_lookup_tail # git bisect bad e89e899f3e3213a98ccf60d832f37ecef7000a5b Bisecting: 102 revisions left to test after this (roughly 7 steps) [83bf76e3528ace34c28f8033bfa3d2e3ec9861aa] qed: Modify api for performing a dmae to another PF testing commit 83bf76e3528ace34c28f8033bfa3d2e3ec9861aa with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in ip6_dst_lookup_tail run #1: crashed: general protection fault in ip6_dst_lookup_tail run #2: crashed: general protection fault in ip6_dst_lookup_tail run #3: crashed: general protection fault in tcp_v6_connect run #4: crashed: general protection fault in ip6_dst_lookup_tail run #5: crashed: general protection fault in ip6_dst_lookup_tail run #6: OK run #7: crashed: general protection fault in ip6_dst_lookup_tail run #8: OK run #9: crashed: general protection fault in ip6_dst_lookup_tail # git bisect bad 83bf76e3528ace34c28f8033bfa3d2e3ec9861aa Bisecting: 50 revisions left to test after this (roughly 6 steps) [0ab54c5f2fe8929d04d965bc3e05325e37de45ba] ice: Use bitfields when possible testing commit 0ab54c5f2fe8929d04d965bc3e05325e37de45ba with gcc (GCC) 8.1.0 all runs: OK # git bisect good 0ab54c5f2fe8929d04d965bc3e05325e37de45ba Bisecting: 25 revisions left to test after this (roughly 5 steps) [48435bc3b330b84eed095174d214c48df6124ac8] net: stmmac: Add MAC loopback callback to HWIF testing commit 48435bc3b330b84eed095174d214c48df6124ac8 with gcc (GCC) 8.1.0 run #0: crashed: KASAN: slab-out-of-bounds Read in ip6_dst_lookup_tail run #1: crashed: general protection fault in ip6_dst_lookup_tail run #2: crashed: general protection fault in ip6_dst_lookup_tail run #3: crashed: general protection fault in ip6_dst_lookup_tail run #4: crashed: general protection fault in ip6_dst_lookup_tail run #5: crashed: general protection fault in ip6_dst_lookup_tail run #6: crashed: general protection fault in tcp_v6_connect run #7: crashed: general protection fault in ip6_dst_lookup_tail run #8: crashed: general protection fault in ip6_dst_lookup_tail run #9: crashed: general protection fault in ip6_dst_lookup_tail # git bisect bad 48435bc3b330b84eed095174d214c48df6124ac8 Bisecting: 12 revisions left to test after this (roughly 4 steps) [f40b6ae2b612446dc970d7b51eeec47bd1619f82] ipv6: Move pcpu cached routes to fib6_nh testing commit f40b6ae2b612446dc970d7b51eeec47bd1619f82 with gcc (GCC) 8.1.0 run #0: crashed: general protection fault in ip6_dst_lookup_tail run #1: crashed: general protection fault in ip6_dst_lookup_tail run #2: crashed: general protection fault in ip6_dst_lookup_tail run #3: crashed: general protection fault in tcp_v6_connect run #4: crashed: general protection fault in ip6_dst_lookup_tail run #5: crashed: general protection fault in ip6_dst_lookup_tail run #6: crashed: general protection fault in ip6_dst_lookup_tail run #7: crashed: general protection fault in ip6_dst_lookup_tail run #8: crashed: general protection fault in ip6_dst_lookup_tail run #9: crashed: general protection fault in ip6_dst_lookup_tail # git bisect bad f40b6ae2b612446dc970d7b51eeec47bd1619f82 Bisecting: 5 revisions left to test after this (roughly 3 steps) [dfb569f2b96e2075bdf80883677d40d86f6b19db] net: ll_temac: Fix compile error testing commit dfb569f2b96e2075bdf80883677d40d86f6b19db with gcc (GCC) 8.1.0 all runs: OK # git bisect good dfb569f2b96e2075bdf80883677d40d86f6b19db Bisecting: 2 revisions left to test after this (roughly 2 steps) [ad8288b89d4f02d184391457cf655e5f68943341] dt-binding: ptp_qoriq: support ENETC PTP compatible testing commit ad8288b89d4f02d184391457cf655e5f68943341 with gcc (GCC) 8.1.0 all runs: OK # git bisect good ad8288b89d4f02d184391457cf655e5f68943341 Bisecting: 0 revisions left to test after this (roughly 1 step) [daeceb2df3dfb16f936bc169b0e768bdedc6367f] Merge branch 'ENETC-support-hardware-timestamping' testing commit daeceb2df3dfb16f936bc169b0e768bdedc6367f with gcc (GCC) 8.1.0 all runs: OK # git bisect good daeceb2df3dfb16f936bc169b0e768bdedc6367f f40b6ae2b612446dc970d7b51eeec47bd1619f82 is the first bad commit commit f40b6ae2b612446dc970d7b51eeec47bd1619f82 Author: David Ahern Date: Wed May 22 20:27:55 2019 -0700 ipv6: Move pcpu cached routes to fib6_nh rt6_info are specific instances of a fib entry and are tied to a device and gateway - ie., a nexthop. Before nexthop objects, IPv6 fib entries have separate fib6_info for each nexthop in a multipath route, so the location of the pcpu cache in the fib6_info struct worked. However, with nexthop objects a fib6_info can point to a set of nexthops (yet another alignment of ipv6 with ipv4). Accordingly, the pcpu cache needs to be moved to the fib6_nh struct so the cached entries are local to the nexthop specification used to create the rt6_info. Initialization and free of the pcpu entries moved to fib6_nh_init and fib6_nh_release. Change in location only, from fib6_info down to fib6_nh; no other functional change intended. Signed-off-by: David Ahern Signed-off-by: David S. Miller :040000 040000 85d53fb5846caf430853b2863af75fda2c044e8e be44a0eaf16a690799ef1e571fea8dd6c7bc4c7d M include :040000 040000 72e0c19b9aa32485dcd11e39e4240f51c1fc4d22 9e2ecd4ad02fcb710e72b0e345041032854b4fb8 M net revisions tested: 15, total time: 4h10m14.541013937s (build: 1h24m45.928843575s, test: 2h41m5.209370004s) first bad commit: f40b6ae2b612446dc970d7b51eeec47bd1619f82 ipv6: Move pcpu cached routes to fib6_nh cc: ["davem@davemloft.net" "dsahern@gmail.com" "kuznet@ms2.inr.ac.ru" "linux-kernel@vger.kernel.org" "netdev@vger.kernel.org" "yoshfuji@linux-ipv6.org"] crash: general protection fault in ip6_dst_lookup_tail kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 12393 Comm: syz-executor.4 Not tainted 5.2.0-rc1+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ip6_route_get_saddr include/net/ip6_route.h:120 [inline] RIP: 0010:ip6_dst_lookup_tail+0xc22/0x16d0 net/ipv6/ip6_output.c:971 Code: 0f b7 4f 4e 66 c1 e9 07 83 e1 07 4d 85 e4 0f 84 7d 06 00 00 49 8d 7c 24 7c 48 b8 00 00 00 00 00 fc ff df 48 89 fe 48 c1 ee 03 <0f> b6 34 06 48 89 f8 83 e0 07 83 c0 03 40 38 f0 7c 09 40 84 f6 0f RSP: 0018:ffff888081ab73c0 EFLAGS: 00010a07 RAX: dffffc0000000000 RBX: ffff888081ab76a0 RCX: 0000000000000000 RDX: ffff888081ab76c8 RSI: 1ff1101060fe000f RDI: ff88808307f0007c RBP: ffff888081ab7500 R08: ffffed1015d66be0 R09: ffffed1015d66bdf R10: ffffed1015d66bdf R11: ffff8880aeb35efb R12: ff88808307f00000 R13: ffff888081ab7538 R14: 0000000000000000 R15: ffff8880943e8b70 FS: 00007fa38703f700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000b7ee80 CR3: 0000000089a83000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ip6_dst_lookup_flow+0x9b/0x1e0 net/ipv6/ip6_output.c:1094 tcp_v6_connect+0xcfb/0x1d90 net/ipv6/tcp_ipv6.c:282 __inet_stream_connect+0x661/0xd10 net/ipv4/af_inet.c:659 tcp_sendmsg_fastopen net/ipv4/tcp.c:1143 [inline] tcp_sendmsg_locked+0x20b3/0x3d40 net/ipv4/tcp.c:1185 tcp_sendmsg+0x27/0x40 net/ipv4/tcp.c:1419 inet_sendmsg+0x108/0x460 net/ipv4/af_inet.c:802 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:671 ___sys_sendmsg+0x647/0x950 net/socket.c:2292 __sys_sendmsg+0xd9/0x180 net/socket.c:2330 __do_sys_sendmsg net/socket.c:2339 [inline] __se_sys_sendmsg net/socket.c:2337 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2337 do_syscall_64+0xd0/0x530 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa38703ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459279 RDX: 0000000020008844 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa38703f6d4 R13: 00000000004c6ccc R14: 00000000004dbb30 R15: 00000000ffffffff Modules linked in: ---[ end trace e4f8a3f146e0b263 ]--- RIP: 0010:ip6_route_get_saddr include/net/ip6_route.h:120 [inline] RIP: 0010:ip6_dst_lookup_tail+0xc22/0x16d0 net/ipv6/ip6_output.c:971 Code: 0f b7 4f 4e 66 c1 e9 07 83 e1 07 4d 85 e4 0f 84 7d 06 00 00 49 8d 7c 24 7c 48 b8 00 00 00 00 00 fc ff df 48 89 fe 48 c1 ee 03 <0f> b6 34 06 48 89 f8 83 e0 07 83 c0 03 40 38 f0 7c 09 40 84 f6 0f RSP: 0018:ffff888081ab73c0 EFLAGS: 00010a07 RAX: dffffc0000000000 RBX: ffff888081ab76a0 RCX: 0000000000000000 RDX: ffff888081ab76c8 RSI: 1ff1101060fe000f RDI: ff88808307f0007c RBP: ffff888081ab7500 R08: ffffed1015d66be0 R09: ffffed1015d66bdf R10: ffffed1015d66bdf R11: ffff8880aeb35efb R12: ff88808307f00000 R13: ffff888081ab7538 R14: 0000000000000000 R15: ffff8880943e8b70 FS: 00007fa38703f700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000b7ee80 CR3: 0000000089a83000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400