syzbot


general protection fault in ieee80211_subif_start_xmit

Status: fixed on 2021/03/10 01:48
Reported-by: syzbot+d7a3b15976bf7de2238a@syzkaller.appspotmail.com
Fix commit: 054c9939b480 mac80211: pause TX while changing interface type
First crash: 594d, last: 519d

Cause bisection: introduced by (bisect log) [merge commit]:
commit 687ee0ad4e897e29f4b41f7a20c866d74c5e0660
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Oct 5 17:11:24 2016 +0000

  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next

Crash: general protection fault in nf_unregister_net_hook (log)
Repro: syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in ieee80211_subif_start_xmit syz done 1 522d 582d 1/1 fixed on 2021/02/25 13:45
linux-4.19 general protection fault in ieee80211_subif_start_xmit C done 4 521d 563d 1/1 fixed on 2021/03/01 19:35

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000034: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000001a0-0x00000000000001a7]
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.11.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ieee80211_multicast_to_unicast net/mac80211/tx.c:4043 [inline]
RIP: 0010:ieee80211_subif_start_xmit+0x24e/0xee0 net/mac80211/tx.c:4127
Code: 03 80 3c 02 00 0f 85 83 0c 00 00 49 8b 9f 10 17 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb a4 01 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 58 0c 00 00
RSP: 0018:ffffc90000007588 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: 0000000000000034 RSI: ffffffff8855452d RDI: 00000000000001a4
RBP: ffff888011f028c0 R08: ffffffff8a6285a0 R09: ffffffff8855449d
R10: 0000000000000002 R11: 0000000000000003 R12: ffffffff8a623e60
R13: ffff88802c2e2042 R14: 000000000000005a R15: ffff88801af6c000
FS:  0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc1cad2ba8 CR3: 0000000013d3f000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __netdev_start_xmit include/linux/netdevice.h:4776 [inline]
 netdev_start_xmit include/linux/netdevice.h:4790 [inline]
 xmit_one net/core/dev.c:3574 [inline]
 dev_hard_start_xmit+0x1eb/0x920 net/core/dev.c:3590
 sch_direct_xmit+0x2e1/0xbd0 net/sched/sch_generic.c:313
 qdisc_restart net/sched/sch_generic.c:376 [inline]
 __qdisc_run+0x4ba/0x15e0 net/sched/sch_generic.c:384
 qdisc_run include/net/pkt_sched.h:136 [inline]
 qdisc_run include/net/pkt_sched.h:128 [inline]
 __dev_xmit_skb net/core/dev.c:3765 [inline]
 __dev_queue_xmit+0x1489/0x2dd0 net/core/dev.c:4119
 neigh_hh_output include/net/neighbour.h:499 [inline]
 neigh_output include/net/neighbour.h:508 [inline]
 ip6_finish_output2+0x8db/0x16c0 net/ipv6/ip6_output.c:117
 __ip6_finish_output net/ipv6/ip6_output.c:143 [inline]
 __ip6_finish_output+0x447/0xab0 net/ipv6/ip6_output.c:128
 ip6_finish_output+0x34/0x1f0 net/ipv6/ip6_output.c:153
 NF_HOOK_COND include/linux/netfilter.h:290 [inline]
 ip6_output+0x1db/0x520 net/ipv6/ip6_output.c:176
 dst_output include/net/dst.h:441 [inline]
 NF_HOOK include/linux/netfilter.h:301 [inline]
 NF_HOOK include/linux/netfilter.h:295 [inline]
 mld_sendpack+0x92a/0xdb0 net/ipv6/mcast.c:1679
 mld_send_cr net/ipv6/mcast.c:1975 [inline]
 mld_ifc_timer_expire+0x60a/0xf10 net/ipv6/mcast.c:2474
 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1417
 expire_timers kernel/time/timer.c:1462 [inline]
 __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1731
 __run_timers kernel/time/timer.c:1712 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1744
 __do_softirq+0x2a5/0x9f7 kernel/softirq.c:343
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
 do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:226 [inline]
 __irq_exit_rcu kernel/softirq.c:420 [inline]
 irq_exit_rcu+0x134/0x200 kernel/softirq.c:432
 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:79 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:169 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline]
RIP: 0010:acpi_idle_do_entry+0x1c9/0x250 drivers/acpi/processor_idle.c:516
Code: 6d 79 84 f8 84 db 75 ac e8 e4 72 84 f8 e8 af 42 8a f8 e9 0c 00 00 00 e8 d5 72 84 f8 0f 00 2d 7e 70 bb 00 e8 c9 72 84 f8 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 a4 7a 84 f8 48 85 db
RSP: 0018:ffffffff8b007d60 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffffffff8b0bc000 RSI: ffffffff88ee02c7 RDI: 0000000000000000
RBP: ffff888014446864 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff81784598 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888014446800 R14: ffff888014446864 R15: ffff888017be0004
 acpi_idle_enter+0x361/0x500 drivers/acpi/processor_idle.c:647
 cpuidle_enter_state+0x1b1/0xc80 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x3e1/0x590 kernel/sched/idle.c:299
 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:396
 start_kernel+0x46b/0x48c init/main.c:1061
 secondary_startup_64_no_verify+0xb0/0xbb
Modules linked in:
---[ end trace cf261818beda94ad ]---
RIP: 0010:ieee80211_multicast_to_unicast net/mac80211/tx.c:4043 [inline]
RIP: 0010:ieee80211_subif_start_xmit+0x24e/0xee0 net/mac80211/tx.c:4127
Code: 03 80 3c 02 00 0f 85 83 0c 00 00 49 8b 9f 10 17 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb a4 01 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 58 0c 00 00
RSP: 0018:ffffc90000007588 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: 0000000000000034 RSI: ffffffff8855452d RDI: 00000000000001a4
RBP: ffff888011f028c0 R08: ffffffff8a6285a0 R09: ffffffff8855449d
R10: 0000000000000002 R11: 0000000000000003 R12: ffffffff8a623e60
R13: ffff88802c2e2042 R14: 000000000000005a R15: ffff88801af6c000
FS:  0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc1cad2ba8 CR3: 000000000b08e000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (29):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/01/03 20:04 upstream 3516bd729358 79264ae3 .config log report syz C
ci-upstream-kasan-gce 2020/12/31 08:32 upstream f6e1ea196492 5cc121d6 .config log report syz C
ci-upstream-kasan-gce 2020/11/25 04:44 upstream 80145ac2f739 e34b696c .config log report syz C
ci-upstream-kasan-gce-root 2020/11/22 10:03 upstream a349e4c65960 0d27f508 .config log report syz
ci-upstream-kasan-gce 2021/01/29 06:18 upstream e5ff2cb9cf67 7df34f59 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce 2021/01/28 17:59 upstream 76c057c84d28 7df34f59 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce 2021/01/28 16:08 upstream 76c057c84d28 7df34f59 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce-root 2021/01/28 14:57 upstream 76c057c84d28 eefc07f2 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce 2021/01/26 14:21 upstream 13391c60da33 52e37319 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce-smack-root 2021/01/22 12:14 upstream 9f29bd8b2e71 d4f4eca5 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce-smack-root 2021/01/18 14:20 upstream 19c329f68089 63631df1 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce 2021/01/17 20:04 upstream 0da0a8a0a0e1 813be542 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce-386 2021/01/28 15:51 upstream 76c057c84d28 7df34f59 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce-386 2021/01/18 15:28 upstream 19c329f68089 63631df1 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce-386 2021/01/17 23:06 upstream a1339d6355ac 813be542 .config log report info general protection fault in ieee80211_subif_start_xmit
ci-upstream-kasan-gce 2021/01/15 16:37 upstream 5ee88057889b 65a7a854 .config log report info
ci-upstream-kasan-gce 2021/01/15 13:12 upstream 146620506274 65a7a854 .config log report info
ci-upstream-kasan-gce 2021/01/10 05:22 upstream 996e435fd401 2c1f2513 .config log report info
ci-upstream-kasan-gce 2020/12/03 10:37 upstream 34816d20f173 e6b0d314 .config log report info
ci-upstream-kasan-gce 2020/11/28 05:48 upstream 99c710c46dfc 486f93ef .config log report info
ci-upstream-kasan-gce 2020/11/25 23:02 upstream fa02fcd94b0c 2f1cec62 .config log report info
ci-upstream-kasan-gce 2020/11/25 03:39 upstream 80145ac2f739 e34b696c .config log report info
ci-upstream-kasan-gce-root 2020/11/24 19:42 upstream d5beb3140f91 e34b696c .config log report info
ci-upstream-kasan-gce 2020/11/23 15:06 upstream 418baf2c28f3 878fb17a .config log report info
ci-upstream-kasan-gce-root 2020/11/22 03:26 upstream a349e4c65960 0d27f508 .config log report info
ci-upstream-kasan-gce 2020/11/17 14:17 upstream 9c87c9f41245 bd2a760b .config log report info
ci-upstream-kasan-gce 2020/11/15 21:05 upstream 0062442ecfef 1bf9a662 .config log report info
ci-upstream-kasan-gce-386 2020/11/14 23:49 upstream e28c0d7c92c8 1bf9a662 .config log report info
ci-upstream-linux-next-kasan-gce-root 2021/01/15 17:53 linux-next b3a3cbdec55b 65a7a854 .config log report info