bisecting cause commit starting from ab7541c3addd344939e76d0636da0048ce24f2db building syzkaller on 3de7aabbb79a6c2267f5d7ee8a8aaa83f63305b7 testing commit ab7541c3addd344939e76d0636da0048ce24f2db with gcc (GCC) 8.1.0 kernel signature: be022c08a7d31bb63a737d8659e576d494ef919a all runs: crashed: KASAN: slab-out-of-bounds Read in bitmap_ipmac_list testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.1.0 kernel signature: cca80366ce902136163eedd0766d576bde0f71e7 all runs: crashed: KASAN: slab-out-of-bounds Read in bitmap_ipmac_list testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 kernel signature: df8820706c0c8306dcbaf6674e759037f441b321 all runs: crashed: KASAN: slab-out-of-bounds Read in bitmap_ipmac_list testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 kernel signature: 60b913040d00d6b3e63ab5ac2091f1536df9b693 all runs: OK # git bisect start 4d856f72c10ecb060868ed10ff1b1453943fc6c8 0ecfebd2b52404ae0c54a878c872bb93363ada36 Bisecting: 7848 revisions left to test after this (roughly 13 steps) [43c95d3694cc448fdf50bd53b7ff3a5bb4655883] Merge tag 'pinctrl-v5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl testing commit 43c95d3694cc448fdf50bd53b7ff3a5bb4655883 with gcc (GCC) 8.1.0 kernel signature: 55e45f91625f3e5b5660adce2c24ce33d4fc7abf all runs: crashed: KASAN: slab-out-of-bounds Read in bitmap_ipmac_list # git bisect bad 43c95d3694cc448fdf50bd53b7ff3a5bb4655883 Bisecting: 4619 revisions left to test after this (roughly 12 steps) [8f6ccf6159aed1f04c6d179f61f6fb2691261e84] Merge tag 'clone3-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux testing commit 8f6ccf6159aed1f04c6d179f61f6fb2691261e84 with gcc (GCC) 8.1.0 kernel signature: b39833a8b3d144b842add834eb961dc5485712bd all runs: OK # git bisect good 8f6ccf6159aed1f04c6d179f61f6fb2691261e84 Bisecting: 2306 revisions left to test after this (roughly 11 steps) [753c8d9b7d81206bb5d011b28abe829d364b028e] Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 753c8d9b7d81206bb5d011b28abe829d364b028e with gcc (GCC) 8.1.0 kernel signature: 87026cab89b8547040df0713ee29294538be3054 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad 753c8d9b7d81206bb5d011b28abe829d364b028e Bisecting: 1156 revisions left to test after this (roughly 10 steps) [2f9b0d93a9d3ec64558537ab5d7cff820886afa4] net: ethernet: ti: cpsw: Fix suspend/resume break testing commit 2f9b0d93a9d3ec64558537ab5d7cff820886afa4 with gcc (GCC) 8.1.0 kernel signature: 7147acbb7ecb80050fe0969ab7ebe4c57782feb8 all runs: OK # git bisect good 2f9b0d93a9d3ec64558537ab5d7cff820886afa4 Bisecting: 578 revisions left to test after this (roughly 9 steps) [354d0fab649d47045517cf7cae03d653a4dcb3b8] net: hns3: add default value for tc_size and tc_offset testing commit 354d0fab649d47045517cf7cae03d653a4dcb3b8 with gcc (GCC) 8.1.0 kernel signature: 24ec49fec6b25f06c05ae0de5be0b0ecb1be316b all runs: OK # git bisect good 354d0fab649d47045517cf7cae03d653a4dcb3b8 Bisecting: 289 revisions left to test after this (roughly 8 steps) [52c0609258658ff35b85c654c568a50abd602ac6] bnxt_en: rename some xdp functions testing commit 52c0609258658ff35b85c654c568a50abd602ac6 with gcc (GCC) 8.1.0 kernel signature: 1deb9c3f479114274f32dbf717e6d2933be15d79 all runs: OK # git bisect good 52c0609258658ff35b85c654c568a50abd602ac6 Bisecting: 169 revisions left to test after this (roughly 7 steps) [e858faf556d4e14c750ba1e8852783c6f9520a0e] tcp: Reset bytes_acked and bytes_received when disconnecting testing commit e858faf556d4e14c750ba1e8852783c6f9520a0e with gcc (GCC) 8.1.0 kernel signature: ee3b52b540b49fe880077d68e12b6beee74518ed all runs: OK # git bisect good e858faf556d4e14c750ba1e8852783c6f9520a0e Bisecting: 84 revisions left to test after this (roughly 6 steps) [427545b3046326cd7b4dbbd7869f08737df2ad2b] nfp: tls: count TSO segments separately for the TLS offload testing commit 427545b3046326cd7b4dbbd7869f08737df2ad2b with gcc (GCC) 8.1.0 kernel signature: fc19495815097d58303637be0f6bf03173e780fe run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: crashed: general protection fault in send_hsr_supervision_frame run #6: OK run #7: crashed: general protection fault in send_hsr_supervision_frame run #8: crashed: general protection fault in send_hsr_supervision_frame run #9: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad 427545b3046326cd7b4dbbd7869f08737df2ad2b Bisecting: 48 revisions left to test after this (roughly 5 steps) [bf0bdd1343efbbf65b4d53aef1fce14acbd79d50] xdp: fix race on generic receive path testing commit bf0bdd1343efbbf65b4d53aef1fce14acbd79d50 with gcc (GCC) 8.1.0 kernel signature: b908b4e00692770eac5243a596f6294039babbfe all runs: OK # git bisect good bf0bdd1343efbbf65b4d53aef1fce14acbd79d50 Bisecting: 24 revisions left to test after this (roughly 5 steps) [7650b1a9bd693d133a3ec0548ba63e828f34e3ec] Merge branch 'mp-inner-L3' testing commit 7650b1a9bd693d133a3ec0548ba63e828f34e3ec with gcc (GCC) 8.1.0 kernel signature: 200fb303995f10e9bcc8011b96030e4a285e1ab3 all runs: OK # git bisect good 7650b1a9bd693d133a3ec0548ba63e828f34e3ec Bisecting: 11 revisions left to test after this (roughly 4 steps) [88e2f2846d901e1d61e99ac1d06544d41f478430] Merge branch 'Add-MPLS-actions-to-TC' testing commit 88e2f2846d901e1d61e99ac1d06544d41f478430 with gcc (GCC) 8.1.0 kernel signature: b284aafd93fee4eef277350df9f2e811e3f85ed4 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad 88e2f2846d901e1d61e99ac1d06544d41f478430 Bisecting: 6 revisions left to test after this (roughly 3 steps) [6413139dfc641aaaa30580b59696a5f7ea274194] skbuff: increase verbosity when dumping skb data testing commit 6413139dfc641aaaa30580b59696a5f7ea274194 with gcc (GCC) 8.1.0 kernel signature: 815ad171f1ff9842c953cf56c782a85a67395ec5 all runs: OK # git bisect good 6413139dfc641aaaa30580b59696a5f7ea274194 Bisecting: 3 revisions left to test after this (roughly 2 steps) [ed246cee09b9865145a2e1e34f63ec0e31dd83a5] net: core: move pop MPLS functionality from OvS to core helper testing commit ed246cee09b9865145a2e1e34f63ec0e31dd83a5 with gcc (GCC) 8.1.0 kernel signature: ea8c616882dd379b4e6fea52bb265ef83a6c51fa 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: crashed: general protection fault in send_hsr_supervision_frame run #9: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad ed246cee09b9865145a2e1e34f63ec0e31dd83a5 Bisecting: 0 revisions left to test after this (roughly 1 step) [8822e270d697010e6a4fd42a319dbefc33db91e1] net: core: move push MPLS functionality from OvS to core helper testing commit 8822e270d697010e6a4fd42a319dbefc33db91e1 with gcc (GCC) 8.1.0 kernel signature: e6db19db45185ec7afa46ae8b2d1d20057c51989 all runs: OK # git bisect good 8822e270d697010e6a4fd42a319dbefc33db91e1 ed246cee09b9865145a2e1e34f63ec0e31dd83a5 is the first bad commit commit ed246cee09b9865145a2e1e34f63ec0e31dd83a5 Author: John Hurley Date: Sun Jul 7 15:01:55 2019 +0100 net: core: move pop MPLS functionality from OvS to core helper Open vSwitch provides code to pop an MPLS header to a packet. In preparation for supporting this in TC, move the pop code to an skb helper that can be reused. Remove the, now unused, update_ethertype static function from OvS. Signed-off-by: John Hurley Reviewed-by: Jakub Kicinski Reviewed-by: Simon Horman Reviewed-by: Willem de Bruijn Acked-by: Cong Wang Signed-off-by: David S. Miller include/linux/skbuff.h | 1 + net/core/skbuff.c | 42 ++++++++++++++++++++++++++++++++++++++++++ net/openvswitch/actions.c | 37 ++----------------------------------- 3 files changed, 45 insertions(+), 35 deletions(-) culprit signature: ea8c616882dd379b4e6fea52bb265ef83a6c51fa parent signature: e6db19db45185ec7afa46ae8b2d1d20057c51989 revisions tested: 18, total time: 4h34m45.760404361s (build: 1h55m13.967256745s, test: 2h37m14.285203692s) first bad commit: ed246cee09b9865145a2e1e34f63ec0e31dd83a5 net: core: move pop MPLS functionality from OvS to core helper cc: ["davem@davemloft.net" "jakub.kicinski@netronome.com" "john.hurley@netronome.com" "simon.horman@netronome.com" "willemb@google.com" "xiyou.wangcong@gmail.com"] crash: general protection fault in send_hsr_supervision_frame 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: 0 Comm: swapper/1 Not tainted 5.2.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:send_hsr_supervision_frame+0x30/0xf60 net/hsr/hsr_device.c:255 Code: 89 e5 41 57 41 56 41 55 49 89 fd 41 54 41 89 d4 48 89 c2 53 48 c1 ea 03 48 83 ec 50 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 89 75 c8 0f 85 83 0c 00 00 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffff8880ae909c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff8880958955c0 RCX: ffffffff815611e4 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880ae909ce0 R08: ffffed1015d26c88 R09: ffffed1015d26c87 R10: ffffed1015d26c87 R11: ffff8880ae93643b R12: 0000000000000000 R13: 0000000000000000 R14: ffff8880ae909db8 R15: ffff8880ae924b80 FS: 0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 000000008bbf3000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hsr_announce+0xd9/0x2b0 net/hsr/hsr_device.c:339 call_timer_fn+0x14d/0x510 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers kernel/time/timer.c:1685 [inline] run_timer_softirq+0xc6f/0x1330 kernel/time/timer.c:1698 __do_softirq+0x260/0x958 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13e/0x540 arch/x86/kernel/apic/apic.c:1068 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:806 RIP: 0010:native_safe_halt+0x12/0x20 arch/x86/include/asm/irqflags.h:61 Code: 11 ff ff ff 4c 89 e7 e8 7c 08 91 fa eb 97 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 e9 07 00 00 00 0f 00 2d f0 8c 5f 00 fb f4 <5d> c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 e9 07 00 00 RSP: 0018:ffff8880a98f7d70 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffff8880a98ea340 RCX: 0000000000000000 RDX: 1ffffffff11243e1 RSI: 0000000000000006 RDI: ffffffff88921f08 RBP: ffff8880a98f7d70 R08: 0000000000000006 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffff88921ef8 R14: 0000000000000001 R15: ffffffff8967c638 arch_safe_halt arch/x86/include/asm/paravirt.h:156 [inline] default_idle+0x51/0x310 arch/x86/kernel/process.c:580 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:571 default_idle_call+0x6d/0x90 kernel/sched/idle.c:94 cpuidle_idle_call kernel/sched/idle.c:154 [inline] do_idle+0x3e4/0x590 kernel/sched/idle.c:263 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:354 start_secondary+0x367/0x4b0 arch/x86/kernel/smpboot.c:265 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 Modules linked in: ---[ end trace 24b68a548e6c3b70 ]--- RIP: 0010:send_hsr_supervision_frame+0x30/0xf60 net/hsr/hsr_device.c:255 Code: 89 e5 41 57 41 56 41 55 49 89 fd 41 54 41 89 d4 48 89 c2 53 48 c1 ea 03 48 83 ec 50 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 89 75 c8 0f 85 83 0c 00 00 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffff8880ae909c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff8880958955c0 RCX: ffffffff815611e4 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880ae909ce0 R08: ffffed1015d26c88 R09: ffffed1015d26c87 R10: ffffed1015d26c87 R11: ffff8880ae93643b R12: 0000000000000000 R13: 0000000000000000 R14: ffff8880ae909db8 R15: ffff8880ae924b80 FS: 0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 000000008bbf3000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400