bisecting cause commit starting from 09d4f10a5e78d76a53e3e584f1e6a701b6d24108 building syzkaller on 0342f8c7bc656ea8ee3c45e49edeb4ee9cc12cce testing commit 09d4f10a5e78d76a53e3e584f1e6a701b6d24108 with gcc (GCC) 8.1.0 kernel signature: 6b4309eb71501c64b1b49af6296527605fcd4063 all runs: crashed: KASAN: slab-out-of-bounds Read in bitmap_ipmac_ext_cleanup testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.1.0 kernel signature: a78d7c4406768817f74b036c01b9614c365658e1 all runs: crashed: KASAN: use-after-free Read in bitmap_ipmac_ext_cleanup testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 kernel signature: 31568d67e6270700e781f8dbf9f269ae686a8a0d all runs: crashed: KASAN: use-after-free Read in bitmap_ipmac_ext_cleanup testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 kernel signature: 5c0e44a8de969f9cb930920bb26f9e5db182c2ee 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: 0cc51111b5987235b3016e0487cd4759a261605e all runs: crashed: KASAN: use-after-free Read in bitmap_ipmac_ext_cleanup # 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: c9f56cf8505a7a75b2d8a72f3b12d053f4bb5b2b 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: a49d21e9f8be1f478ee90e71e32d2c376dc3252e run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: crashed: general protection fault in send_hsr_supervision_frame run #2: crashed: general protection fault in send_hsr_supervision_frame run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # 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: e20cdb4b6af3c10d8d8a7c78f53406a97734417e 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: 8edb8bd5993c2c2d9825a133e3069504caf37b5c 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: fd17703cf4e7464f4f5e8664e955f9190c02d698 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: 91b22a92021dcdf8b7d413e62f68f88c7eda22a6 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: crashed: general protection fault in send_hsr_supervision_frame run #2: crashed: general protection fault in send_hsr_supervision_frame run #3: crashed: general protection fault in send_hsr_supervision_frame run #4: crashed: general protection fault in send_hsr_supervision_frame run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad e858faf556d4e14c750ba1e8852783c6f9520a0e Bisecting: 59 revisions left to test after this (roughly 6 steps) [3d26eb8ad1e9b906433903ce05f775cf038e747f] net: bridge: don't cache ether dest pointer on input testing commit 3d26eb8ad1e9b906433903ce05f775cf038e747f with gcc (GCC) 8.1.0 kernel signature: c4a38018f7c9d520abbe1237a527b81fec869fdb all runs: OK # git bisect good 3d26eb8ad1e9b906433903ce05f775cf038e747f Bisecting: 30 revisions left to test after this (roughly 5 steps) [9d1bc24b52fb8c5d859f9a47084bf1179470e04c] bonding: validate ip header before check IPPROTO_IGMP testing commit 9d1bc24b52fb8c5d859f9a47084bf1179470e04c with gcc (GCC) 8.1.0 kernel signature: 529067919c3641501404b95fb882a58883b7635e all runs: OK # git bisect good 9d1bc24b52fb8c5d859f9a47084bf1179470e04c Bisecting: 15 revisions left to test after this (roughly 4 steps) [13aecb17acabc2a92187d08f7ca93bb8aad62c6f] net/tls: fix poll ignoring partially copied records testing commit 13aecb17acabc2a92187d08f7ca93bb8aad62c6f with gcc (GCC) 8.1.0 kernel signature: 819e46bfb8aa37563955e2debd845f7776485c59 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: crashed: general protection fault in send_hsr_supervision_frame run #2: crashed: general protection fault in send_hsr_supervision_frame run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad 13aecb17acabc2a92187d08f7ca93bb8aad62c6f Bisecting: 7 revisions left to test after this (roughly 3 steps) [56c5ee1a5823e9cf5288b84ae6364cb4112f8225] xfrm interface: fix memory leak on creation testing commit 56c5ee1a5823e9cf5288b84ae6364cb4112f8225 with gcc (GCC) 8.1.0 kernel signature: 5038fddd4139b4add96bdca48ff4df1b121d92d1 all runs: OK # git bisect good 56c5ee1a5823e9cf5288b84ae6364cb4112f8225 Bisecting: 3 revisions left to test after this (roughly 2 steps) [edf070a0fb45ac845f534baf172fbadbeb5048c6] hsr: fix a NULL pointer deref in hsr_dev_xmit() testing commit edf070a0fb45ac845f534baf172fbadbeb5048c6 with gcc (GCC) 8.1.0 kernel signature: bf3963a23f8c4d9d96ca532436b3b391ba777829 all runs: OK # git bisect good edf070a0fb45ac845f534baf172fbadbeb5048c6 Bisecting: 1 revision left to test after this (roughly 1 step) [ffa9fec30ca0ceb7d5156a1649b9576058756616] r8152: set RTL8152_UNPLUG only for real disconnection testing commit ffa9fec30ca0ceb7d5156a1649b9576058756616 with gcc (GCC) 8.1.0 kernel signature: 02b85c23cac9dbcc70a02cc3e2b75c9c2fdb1b51 run #0: crashed: general protection fault in send_hsr_supervision_frame 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: OK # git bisect bad ffa9fec30ca0ceb7d5156a1649b9576058756616 Bisecting: 0 revisions left to test after this (roughly 0 steps) [fa8043017cf83427c7e3d7d8defe2c2133edffea] Merge branch 'hsr-bug-fixes' testing commit fa8043017cf83427c7e3d7d8defe2c2133edffea with gcc (GCC) 8.1.0 kernel signature: ada27b0af5efa8c2a684188c0a3e89063148afc1 run #0: crashed: general protection fault in send_hsr_supervision_frame run #1: crashed: general protection fault in send_hsr_supervision_frame run #2: crashed: general protection fault in send_hsr_supervision_frame run #3: crashed: general protection fault in send_hsr_supervision_frame run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect bad fa8043017cf83427c7e3d7d8defe2c2133edffea fa8043017cf83427c7e3d7d8defe2c2133edffea is the first bad commit commit fa8043017cf83427c7e3d7d8defe2c2133edffea Merge: 114b5b355ec0 edf070a0fb45 Author: David S. Miller Date: Fri Jul 5 15:22:28 2019 -0700 Merge branch 'hsr-bug-fixes' Cong Wang says: ==================== hsr: a few bug fixes This patchset contains 3 bug fixes for hsr triggered by a syzbot reproducer, please check each patch for details. ==================== Signed-off-by: Cong Wang net/hsr/hsr_device.c | 29 ++++++++++++++++------------- net/hsr/hsr_device.h | 1 + net/hsr/hsr_framereg.c | 11 ++++++++++- net/hsr/hsr_framereg.h | 3 ++- net/hsr/hsr_netlink.c | 7 +++++++ net/hsr/hsr_slave.c | 1 + 6 files changed, 37 insertions(+), 15 deletions(-) revisions tested: 18, total time: 4h48m34.636250453s (build: 1h55m36.407973944s, test: 2h51m13.641612197s) first bad commit: fa8043017cf83427c7e3d7d8defe2c2133edffea Merge branch 'hsr-bug-fixes' cc: ["davem@davemloft.net" "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: 0 PID: 27124 Comm: syz-executor620 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: 0000:ffff8880ae809c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff88808bf5d100 RCX: ffffffff815611e4 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880ae809ce0 R08: ffffed1015d06c78 R09: ffffed1015d06c77 R10: ffffed1015d06c77 R11: ffff8880ae8363bb R12: 0000000000000000 R13: 0000000000000000 R14: ffff8880ae809db8 R15: ffff8880ae824b80 FS: 000055555597b880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000300 CR3: 0000000095d58000 CR4: 00000000001406f0 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:debug_lockdep_rcu_enabled.part.4+0x37/0x60 kernel/rcu/update.c:237 Code: e5 53 65 48 8b 1c 25 c0 fd 01 00 48 8d bb 7c 08 00 00 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 <84> d2 75 10 8b 93 7c 08 00 00 31 c0 5b 5d 85 d2 0f 94 c0 c3 e8 70 RSP: 0000:ffff8880961e7e20 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff88808b928080 RCX: ffff88808b928900 RDX: 0000000000000000 RSI: ffffffff88992380 RDI: ffff88808b9288fc RBP: ffff8880961e7e28 R08: ffffed1015d06c78 R09: ffffed1015d06c77 R10: ffffed1015d06c77 R11: ffff8880ae8363bb R12: ffffffff889b0ba0 R13: ffff88808b928080 R14: 0000000020000300 R15: 0000000000000055 debug_lockdep_rcu_enabled+0x77/0x90 kernel/rcu/update.c:236 task_css include/linux/cgroup.h:484 [inline] mem_cgroup_from_task+0x41/0x130 mm/memcontrol.c:902 count_memcg_event_mm include/linux/memcontrol.h:741 [inline] handle_mm_fault+0x133/0x800 mm/memory.c:4038 do_user_addr_fault arch/x86/mm/fault.c:1457 [inline] __do_page_fault+0x3f0/0xa20 arch/x86/mm/fault.c:1523 do_page_fault+0x64/0x3a7 arch/x86/mm/fault.c:1554 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1156 RIP: 0033:0x4006fa Code: 0c 00 00 00 ba 03 00 00 00 be 10 00 00 00 bf 29 00 00 00 e8 e8 0c 04 00 48 83 f8 ff 74 07 48 89 05 9b a9 2c 00 b8 58 02 00 20 <48> c7 04 25 00 03 00 20 00 00 00 00 c7 04 25 08 03 00 20 00 00 00 RSP: 002b:00007ffc189e00c0 EFLAGS: 00010213 RAX: 0000000020000258 RBX: 0000000000000000 RCX: 00000000004413e9 RDX: 000000000000000c RSI: 0000000000000003 RDI: 0000000000000010 RBP: 0000000000076ca8 R08: 0000000000000004 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402210 R13: 00000000004022a0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 9ff8ea61e961861a ]--- 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: 0000:ffff8880ae809c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff88808bf5d100 RCX: ffffffff815611e4 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880ae809ce0 R08: ffffed1015d06c78 R09: ffffed1015d06c77 R10: ffffed1015d06c77 R11: ffff8880ae8363bb R12: 0000000000000000 R13: 0000000000000000 R14: ffff8880ae809db8 R15: ffff8880ae824b80 FS: 000055555597b880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000300 CR3: 0000000095d58000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400