general protection fault in ieee80211_subif_start_xmit

9 views
Skip to first unread message

syzbot

unread,
Dec 16, 2020, 11:11:12 AM12/16/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 13d2ce42 Linux 4.19.163
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12d5f123500000
kernel config: https://syzkaller.appspot.com/x/.config?x=fac7c3360835a4e0
dashboard link: https://syzkaller.appspot.com/bug?extid=cd814e39df335730d001
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13722287500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14a06d37500000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+cd814e...@syzkaller.appspotmail.com

wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
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: 9754 Comm: syz-executor916 Not tainted 4.19.163-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:3752 [inline]
RIP: 0010:ieee80211_subif_start_xmit+0x24b/0xef0 net/mac80211/tx.c:3836
Code: 03 80 3c 02 00 0f 85 3c 0c 00 00 49 8b 9f 80 14 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb d8 01 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e 19 0c 00 00 0f b6 9b d8 01 00 00 31
RSP: 0018:ffff8880ba007390 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87c2d40a
RDX: 000000000000003b RSI: ffffffff87c2d49a RDI: 00000000000001d8
RBP: ffff8880a2f088c0 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff89670cc0
R13: ffff8880b1665342 R14: ffff888094ad5250 R15: ffff888094ad5180
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffec42e4c90 CR3: 0000000093bc4000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__netdev_start_xmit include/linux/netdevice.h:4333 [inline]
netdev_start_xmit include/linux/netdevice.h:4347 [inline]
xmit_one net/core/dev.c:3256 [inline]
dev_hard_start_xmit+0x1a8/0x920 net/core/dev.c:3272
sch_direct_xmit+0x2d6/0xf50 net/sched/sch_generic.c:332
qdisc_restart net/sched/sch_generic.c:395 [inline]
__qdisc_run+0x4d0/0x1640 net/sched/sch_generic.c:403
qdisc_run include/net/pkt_sched.h:120 [inline]
__dev_xmit_skb net/core/dev.c:3451 [inline]
__dev_queue_xmit+0x2102/0x2e00 net/core/dev.c:3807
neigh_hh_output include/net/neighbour.h:491 [inline]
neigh_output include/net/neighbour.h:499 [inline]
ip6_finish_output2+0xde7/0x2290 net/ipv6/ip6_output.c:120
ip6_finish_output+0x7eb/0xc10 net/ipv6/ip6_output.c:154
NF_HOOK_COND include/linux/netfilter.h:278 [inline]
ip6_output+0x205/0x770 net/ipv6/ip6_output.c:171
dst_output include/net/dst.h:455 [inline]
NF_HOOK include/linux/netfilter.h:289 [inline]
mld_sendpack+0x674/0x1060 net/ipv6/mcast.c:1684
mld_send_cr net/ipv6/mcast.c:1980 [inline]
mld_ifc_timer_expire+0x616/0xdf0 net/ipv6/mcast.c:2479
call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
__run_timers kernel/time/timer.c:1696 [inline]
run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
__do_softirq+0x26c/0x9a0 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:544 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:free_unref_page+0x113/0x170 mm/page_alloc.c:2817
Code: 48 c7 c0 88 81 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 54 48 83 3d 1c 2c 70 08 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 5b 5d 41 5c c3 0f 0b 0f 0b 0f 0b 0f 0b 48 c7 c7 80
RSP: 0018:ffff8880a8d6f6f0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3031 RBX: 0000000000000286 RCX: 1ffff11016575d45
RDX: dffffc0000000000 RSI: ffff8880b2baea08 RDI: 0000000000000286
RBP: 00000000000b2d3d R08: ffffed10165a7a00 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0002cb4f40
R13: 0000000000000001 R14: ffff888097b79478 R15: ffffea00022a8000
pte_free arch/x86/include/asm/pgalloc.h:65 [inline]
zap_deposited_table mm/huge_memory.c:1738 [inline]
zap_huge_pmd+0xa00/0xe90 mm/huge_memory.c:1792
zap_pmd_range mm/memory.c:1439 [inline]
zap_pud_range mm/memory.c:1481 [inline]
zap_p4d_range mm/memory.c:1502 [inline]
unmap_page_range+0xe4d/0x2a70 mm/memory.c:1523
unmap_single_vma+0x198/0x300 mm/memory.c:1568
unmap_vmas+0xa9/0x180 mm/memory.c:1598
exit_mmap+0x2b9/0x530 mm/mmap.c:3093
__mmput kernel/fork.c:1015 [inline]
mmput+0x14e/0x4a0 kernel/fork.c:1036
exit_mm kernel/exit.c:549 [inline]
do_exit+0xaf0/0x2be0 kernel/exit.c:877
do_group_exit+0x125/0x310 kernel/exit.c:993
get_signal+0x3f2/0x1f70 kernel/signal.c:2589
do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:821
exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x447b69
Code: Bad RIP value.
RSP: 002b:00007fea20d36da8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00000000006dcc68 RCX: 0000000000447b69
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000006dcc68
RBP: 00000000006dcc60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc6c
R13: 0000000000000000 R14: 000000316e616c77 R15: 000000000000002d
Modules linked in:
---[ end trace f581074d23851ffe ]---
RIP: 0010:ieee80211_multicast_to_unicast net/mac80211/tx.c:3752 [inline]
RIP: 0010:ieee80211_subif_start_xmit+0x24b/0xef0 net/mac80211/tx.c:3836
Code: 03 80 3c 02 00 0f 85 3c 0c 00 00 49 8b 9f 80 14 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb d8 01 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e 19 0c 00 00 0f b6 9b d8 01 00 00 31
RSP: 0018:ffff8880ba007390 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff87c2d40a
RDX: 000000000000003b RSI: ffffffff87c2d49a RDI: 00000000000001d8
RBP: ffff8880a2f088c0 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff89670cc0
R13: ffff8880b1665342 R14: ffff888094ad5250 R15: ffff888094ad5180
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000447b3f CR3: 0000000093bc4000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Feb 26, 2021, 7:35:08 AM2/26/21
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit b26b5e0861578fa7cdf444b1aa61d06f739eb306
Author: Johannes Berg <johann...@intel.com>
Date: Fri Jan 22 16:11:16 2021 +0000

mac80211: pause TX while changing interface type

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16a8fb82d00000
start commit: 2263955b Linux 4.19.170
git tree: linux-4.19.y
kernel config: https://syzkaller.appspot.com/x/.config?x=94e5d79cb89fc69f
dashboard link: https://syzkaller.appspot.com/bug?extid=cd814e39df335730d001
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17936c64d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12447d44d00000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: mac80211: pause TX while changing interface type

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages