BUG: soft lockup in __tasklet_hrtimer_trampoline

6 views
Skip to first unread message

syzbot

unread,
Jan 16, 2021, 5:07:26 AM1/16/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 675cc038 Linux 4.19.167
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1281e820d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=25b512beb95e2b66
dashboard link: https://syzkaller.appspot.com/bug?extid=c8080eddd85122401e4f
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

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

Bluetooth: hci5: command 0x0406 tx timeout
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
watchdog: BUG: soft lockup - CPU#1 stuck for 134s! [syz-executor.4:26599]
Modules linked in:
irq event stamp: 21002943
hardirqs last enabled at (21002942): [<ffffffff81004313>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (21002943): [<ffffffff8100432f>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (20964786): [<ffffffff8840069a>] __do_softirq+0x69a/0x9a0 kernel/softirq.c:318
softirqs last disabled at (20964789): [<ffffffff813a3d55>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (20964789): [<ffffffff813a3d55>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 1 PID: 26599 Comm: syz-executor.4 Not tainted 4.19.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:compound_head include/linux/page-flags.h:145 [inline]
RIP: 0010:virt_to_head_page include/linux/mm.h:667 [inline]
RIP: 0010:virt_to_cache mm/slab.c:399 [inline]
RIP: 0010:ksize+0x32/0x60 mm/slab.c:4483
Code: 10 41 54 55 48 89 fd 74 45 e8 ea ca 91 ff 48 89 ef 48 ba 00 00 00 00 00 ea ff ff 48 c1 e8 0c 48 c1 e0 06 48 01 d0 48 8b 50 08 <48> 8d 4a ff 83 e2 01 48 0f 45 c1 48 8b 40 18 4c 63 60 74 4c 89 e6
RSP: 0018:ffff8880ba107b90 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: ffffea00027e8dc0 RBX: ffff88809fa37ac0 RCX: ffffffff812c5020
RDX: ffffea0000fa13c8 RSI: ffffffff812c502a RDI: ffff88809fa37ac0
RBP: ffff88809fa37ac0 R08: 0000000000490220 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000082b4c5d2 R12: 0000000000480020
R13: 00000000ffffffff R14: 0000000000000000 R15: ffff88809fa36340
FS: 00007f3a63956700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005627f1437af8 CR3: 0000000009e6d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__alloc_skb+0xc7/0x560 net/core/skbuff.c:212
skb_copy+0x139/0x2f0 net/core/skbuff.c:1349
mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
__iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
__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:545 [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:PageAnon include/linux/page-flags.h:419 [inline]
RIP: 0010:zap_pte_range mm/memory.c:1340 [inline]
RIP: 0010:zap_pmd_range mm/memory.c:1452 [inline]
RIP: 0010:zap_pud_range mm/memory.c:1481 [inline]
RIP: 0010:zap_p4d_range mm/memory.c:1502 [inline]
RIP: 0010:unmap_page_range+0x1107/0x2a70 mm/memory.c:1523
Code: 83 e3 01 48 89 de e8 88 a7 d6 ff 48 85 db 0f 85 77 0d 00 00 e8 ea a5 d6 ff 49 8d 7c 24 18 48 89 fa 48 c1 ea 03 42 80 3c 32 00 <0f> 85 0b 16 00 00 49 8b 5c 24 18 31 ff 83 e3 01 89 de e8 f2 a6 d6
RSP: 0018:ffff888024eb7768 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff88803a160240 RBX: 0000000000000000 RCX: ffffffff818e2c08
RDX: 1ffffd40001dbef3 RSI: ffffffff818e2c16 RDI: ffffea0000edf798
RBP: ffffea0000edf788 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffffea0000edf780
R13: ffffea0000edf780 R14: dffffc0000000000 R15: 00007f3a65b53000
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:0x45e219
Code: Bad RIP value.
RSP: 002b:00007f3a63955c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: fffffffffffffe00 RBX: 0000000000000003 RCX: 000000000045e219
RDX: 0000000020000080 RSI: 00000000c0185879 RDI: 0000000000000004
RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c
R13: 00007ffcaa1f77df R14: 00007f3a639569c0 R15: 000000000119bf8c
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3a6/0xae0 kernel/locking/qspinlock.c:474
Code: eb c6 45 01 01 41 bc 00 80 00 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 <41> 83 ec 01 0f 84 38 04 00 00 41 0f b6 45 00 38 d8 7f 08 84 c0 0f
RSP: 0018:ffff8880ba007b20 EFLAGS: 00000206
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffffffff1b9afe8
RDX: 0000000000000001 RSI: ffffffff816a0515 RDI: 0000000000000286
RBP: ffffffff8dcd7f40 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000e95
R13: fffffbfff1b9afe8 R14: 0000000000000001 R15: ffff8880ba02bd80
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c022fc7800 CR3: 000000009b970000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
mac80211_hwsim_tx_frame_no_nl.isra.0+0x6f6/0x1330 drivers/net/wireless/mac80211_hwsim.c:1304
mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
__iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
__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:545 [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:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: 48 89 df e8 04 03 85 f9 e9 2e ff ff ff 48 89 df e8 f7 02 85 f9 eb 82 90 90 90 90 90 e9 07 00 00 00 0f 00 2d c4 8c 51 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d b4 8c 51 00 f4 c3 90 90 41 56 41 55
RSP: 0018:ffffffff89e07d40 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3034 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: 0000000000000001 RDI: ffffffff89e78904
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff89f18190
R13: 1ffffffff13c0fb2 R14: 0000000000000000 R15: 0000000000000000
arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
default_idle+0x49/0x310 arch/x86/kernel/process.c:557
cpuidle_idle_call kernel/sched/idle.c:153 [inline]
do_idle+0x2ec/0x4b0 kernel/sched/idle.c:263
cpu_startup_entry+0xc5/0xe0 kernel/sched/idle.c:369
start_kernel+0x8d6/0x911 init/main.c:736
secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243


---
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

unread,
Mar 17, 2021, 9:37:18 PM3/17/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: ac3af4be Linux 4.19.181
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1269a2dcd00000
kernel config: https://syzkaller.appspot.com/x/.config?x=4f09908a6dd5ae5f
dashboard link: https://syzkaller.appspot.com/bug?extid=c8080eddd85122401e4f
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b21c62d00000

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

audit: type=1800 audit(1616027450.411:29): pid=25902 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.3" name="cpuset.memory_pressure" dev="sda1" ino=14513 res=0
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.0:25976]
Modules linked in:
irq event stamp: 2808289
hardirqs last enabled at (2808288): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2808289): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (2798732): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (2806391): [<ffffffff81392675>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (2806391): [<ffffffff81392675>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 25976 Comm: syz-executor.0 Not tainted 4.19.181-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:unwind_next_frame+0xf2a/0x1400 arch/x86/kernel/unwind_orc.c:555
Code: ff ff e8 23 ad d6 ff e9 86 f1 ff ff 49 8d 7f 02 48 be 00 00 00 00 00 fc ff df 49 8d 56 40 48 89 f8 48 c1 e8 03 44 0f b6 04 30 <49> 8d 47 03 49 89 c1 49 c1 e9 03 41 0f b6 34 31 49 89 f9 41 83 e1
RSP: 0018:ffff8880ba007750 EFLAGS: 00000a07 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff1811888 RBX: 1ffff11017400ef3 RCX: ffffffff8c08c447
RDX: ffff8880ba0078c0 RSI: dffffc0000000000 RDI: ffffffff8c08c444
RBP: 0000000000000002 R08: 0000000000000000 R09: ffffffff8c08c43c
R10: ffff8880ba0078df R11: 0000000000074071 R12: ffff8880ba007ea0
R13: ffff8880ba0078b5 R14: ffff8880ba007880 R15: ffffffff8c08c442
FS: 00007f3c7cbf4700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000056c0b4 CR3: 00000000a18a6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
__do_kmalloc_node mm/slab.c:3689 [inline]
__kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703
__kmalloc_reserve net/core/skbuff.c:137 [inline]
__alloc_skb+0xae/0x560 net/core/skbuff.c:205
__netdev_alloc_skb+0x76/0x460 net/core/skbuff.c:407
netdev_alloc_skb include/linux/skbuff.h:2680 [inline]
dev_alloc_skb include/linux/skbuff.h:2693 [inline]
__ieee80211_beacon_get+0xc7d/0x1a30 net/mac80211/tx.c:4332
ieee80211_beacon_get_tim+0x88/0x890 net/mac80211/tx.c:4443
ieee80211_beacon_get include/net/mac80211.h:4484 [inline]
mac80211_hwsim_beacon_tx+0xff/0x680 drivers/net/wireless/mac80211_hwsim.c:1577
__iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
__do_softirq+0x265/0x980 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:535 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:rep_nop arch/x86/include/asm/processor.h:665 [inline]
RIP: 0010:cpu_relax arch/x86/include/asm/processor.h:670 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:438 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3a4/0xae0 kernel/locking/qspinlock.c:474
Code: 48 89 eb c6 45 01 01 41 bc 00 80 00 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c <f3> 90 41 83 ec 01 0f 84 38 04 00 00 41 0f b6 45 00 38 d8 7f 08 84
RSP: 0018:ffff88807fed7830 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffffffff1404184
RDX: 0000000000000001 RSI: ffffffff81678335 RDI: 0000000000000286
RBP: ffffffff8a020c20 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000004ee7
ieee802154 phy0 wpan0: encryption failed: -22
R13: fffffbfff1404184 R14: 0000000000000001 R15: ffff8880ba02bd80
ieee802154 phy1 wpan1: encryption failed: -22
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
prep_new_huge_page+0x8f/0x3d0 mm/hugetlb.c:1322
alloc_fresh_huge_page+0x441/0xa80 mm/hugetlb.c:1441
alloc_surplus_huge_page+0x124/0x4e0 mm/hugetlb.c:1622
gather_surplus_pages mm/hugetlb.c:1775 [inline]
hugetlb_acct_memory+0x1e7/0xba0 mm/hugetlb.c:3153
hugetlb_reserve_pages+0x47f/0x650 mm/hugetlb.c:4581
hugetlbfs_file_mmap+0x2e4/0x4a0 fs/hugetlbfs/inode.c:164
call_mmap include/linux/fs.h:1826 [inline]
mmap_region+0xc94/0x16b0 mm/mmap.c:1757
do_mmap+0x8e8/0x1080 mm/mmap.c:1530
do_mmap_pgoff include/linux/mm.h:2326 [inline]
vm_mmap_pgoff+0x197/0x200 mm/util.c:357
ksys_mmap_pgoff+0x298/0x5a0 mm/mmap.c:1580
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x465f69
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3c7cbf4188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69
RDX: 0000000002000006 RSI: 0000000000400017 RDI: 0000000020200000
RBP: 00000000004bfa8f R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000002012 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007fff64ad91df R14: 00007f3c7cbf4300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 25981 Comm: syz-executor.5 Not tainted 4.19.181-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pv_wait_early kernel/locking/qspinlock_paravirt.h:271 [inline]
RIP: 0010:pv_wait_node kernel/locking/qspinlock_paravirt.h:306 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x583/0xae0 kernel/locking/qspinlock.c:439
Code: df 4d 89 ec 4c 89 3b 49 c1 ec 03 4d 01 f4 48 8b 74 24 18 b8 00 80 00 00 49 89 f0 83 e6 07 49 c1 e8 03 83 c6 03 4d 01 f0 eb 32 <84> c0 75 23 41 0f b6 14 24 4c 89 e9 83 e1 07 38 ca 7f 08 84 d2 0f
RSP: 0018:ffff888080c77830 EFLAGS: 00000246
RAX: 00000000000029d6 RBX: ffff8880ba02bd80 RCX: 0000000000000004
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff8880ba12bd88
RBP: ffff8880ba12bdc4 R08: ffffed10174257b1 R09: ffffed10174257b8
R10: ffff8880ba12bdc4 R11: 0000000000000000 R12: ffffed10174057b8
R13: ffff8880ba02bdc4 R14: dffffc0000000000 R15: ffff8880ba12bd80
FS: 00007f28dc715700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f992d81a6b8 CR3: 00000000aed2b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
prep_new_huge_page+0x8f/0x3d0 mm/hugetlb.c:1322
alloc_fresh_huge_page+0x441/0xa80 mm/hugetlb.c:1441
alloc_surplus_huge_page+0x124/0x4e0 mm/hugetlb.c:1622
gather_surplus_pages mm/hugetlb.c:1775 [inline]
hugetlb_acct_memory+0x1e7/0xba0 mm/hugetlb.c:3153
hugetlb_reserve_pages+0x47f/0x650 mm/hugetlb.c:4581
hugetlbfs_file_mmap+0x2e4/0x4a0 fs/hugetlbfs/inode.c:164
call_mmap include/linux/fs.h:1826 [inline]
mmap_region+0xc94/0x16b0 mm/mmap.c:1757
do_mmap+0x8e8/0x1080 mm/mmap.c:1530
do_mmap_pgoff include/linux/mm.h:2326 [inline]
vm_mmap_pgoff+0x197/0x200 mm/util.c:357
ksys_mmap_pgoff+0x298/0x5a0 mm/mmap.c:1580
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x465f69
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f28dc715188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465f69
RDX: 0000000002000006 RSI: 0000000000400017 RDI: 0000000020200000
RBP: 00000000004bfa8f R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000002012 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffef08529bf R14: 00007f28dc715300 R15: 0000000000022000

syzbot

unread,
May 6, 2021, 6:21:22 PM5/6/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 97a8651c Linux 4.19.189
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1403c465d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=82311d18bf81a023
dashboard link: https://syzkaller.appspot.com/bug?extid=c8080eddd85122401e4f
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13b15b09d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12ecf9b3d00000

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

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor105:11330]
Modules linked in:
irq event stamp: 2990029
hardirqs last enabled at (2990028): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2990029): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (2979448): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (2979453): [<ffffffff813926d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (2979453): [<ffffffff813926d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 11330 Comm: syz-executor105 Not tainted 4.19.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:unwind_next_frame+0xace/0x1400 arch/x86/kernel/unwind_orc.c:548
Code: 35 00 48 8b 4c 24 20 4c 89 c0 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 0f b6 04 10 48 89 ce 48 c1 ee 03 0f b6 14 16 4c 89 c6 <83> e6 07 40 38 f0 40 0f 9e c6 84 c0 0f 95 c0 40 84 c6 0f 85 13 07
RSP: 0018:ffff8880ba007758 EFLAGS: 00000a06 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 1ffff11017400ef4 RCX: ffffffff8c119969
RDX: 0000000000000000 RSI: ffffffff8c119968 RDI: ffff8880ba0078e0
RBP: 0000000000000001 R08: ffffffff8c119968 R09: ffffffff8c119952
R10: ffff8880ba0078e7 R11: 0000000000074071 R12: ffff88809c0ff8c8
R13: ffff8880ba0078bd R14: ffff8880ba007888 R15: ffffffff8c119964
FS: 00007f67ee372700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004de4a0 CR3: 000000009b256000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
kmem_cache_alloc_node+0x146/0x3b0 mm/slab.c:3649
__alloc_skb+0x71/0x560 net/core/skbuff.c:193
skb_copy+0x139/0x2f0 net/core/skbuff.c:1358
mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
__iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
__do_softirq+0x265/0x980 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:535 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:184
Code: 48 c7 c0 48 82 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 2f 48 83 3d dc 88 d9 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb b2 e8 9b 43 e8 f8 eb c0 0f 0b 0f 0b 48 c7 c7 48
RSP: 0018:ffff88809c0ff8b0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3049 RBX: 0000000000000282 RCX: 1ffff11014279977
RDX: dffffc0000000000 RSI: ffff8880a13ccb98 RDI: 0000000000000282
RBP: ffffffff8d41d308 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dead000000000200
R13: ffff88808a800000 R14: 0000000000000000 R15: dffffc0000000000
__debug_check_no_obj_freed lib/debugobjects.c:798 [inline]
debug_check_no_obj_freed+0x201/0x490 lib/debugobjects.c:817
free_pages_prepare mm/page_alloc.c:1056 [inline]
__free_pages_ok+0x22d/0xd30 mm/page_alloc.c:1279
update_and_free_page+0x839/0xb70 mm/hugetlb.c:1195
free_huge_page+0x877/0xd20 mm/hugetlb.c:1308
__put_page+0xe2/0x3a0 mm/swap.c:112
put_page include/linux/mm.h:963 [inline]
gather_surplus_pages mm/hugetlb.c:1832 [inline]
hugetlb_acct_memory+0x77f/0xba0 mm/hugetlb.c:3153
hugetlb_reserve_pages+0x47f/0x650 mm/hugetlb.c:4581
hugetlbfs_file_mmap+0x2e4/0x4a0 fs/hugetlbfs/inode.c:164
call_mmap include/linux/fs.h:1826 [inline]
mmap_region+0xc94/0x16b0 mm/mmap.c:1757
do_mmap+0x8e8/0x1080 mm/mmap.c:1530
do_mmap_pgoff include/linux/mm.h:2326 [inline]
vm_mmap_pgoff+0x197/0x200 mm/util.c:357
ksys_mmap_pgoff+0x42e/0x5a0 mm/mmap.c:1580
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x452d69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 18 00 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f67ee3721f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00000000004d7268 RCX: 0000000000452d69
RDX: 0000000000000000 RSI: 0000000000e7e000 RDI: 0000000020000000
RBP: 00000000004d7260 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000040031 R11: 0000000000000246 R12: 00000000004d726c
R13: 00007ffc8b4b29cf R14: 00007f67ee372300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 11329 Comm: syz-executor105 Not tainted 4.19.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:261 [inline]
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:123 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:436 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3b0/0xae0 kernel/locking/qspinlock.c:474
Code: 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 41 83 ec 01 0f 84 38 04 00 00 <41> 0f b6 45 00 38 d8 7f 08 84 c0 0f 85 75 05 00 00 0f b6 45 00 84
RSP: 0018:ffff88809c71f980 EFLAGS: 00000202
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffffffff1404194
RDX: 0000000000000001 RSI: ffffffff81678725 RDI: 0000000000000282
RBP: ffffffff8a020ca0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000002b0e
R13: fffffbfff1404194 R14: 0000000000000001 R15: ffff8880ba12bd80
FS: 00007f67ee372700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 000000009b7b1000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
gather_surplus_pages mm/hugetlb.c:1833 [inline]
hugetlb_acct_memory+0x997/0xba0 mm/hugetlb.c:3153
hugetlb_reserve_pages+0x47f/0x650 mm/hugetlb.c:4581
hugetlbfs_file_mmap+0x2e4/0x4a0 fs/hugetlbfs/inode.c:164
call_mmap include/linux/fs.h:1826 [inline]
mmap_region+0xc94/0x16b0 mm/mmap.c:1757
do_mmap+0x8e8/0x1080 mm/mmap.c:1530
do_mmap_pgoff include/linux/mm.h:2326 [inline]
vm_mmap_pgoff+0x197/0x200 mm/util.c:357
ksys_mmap_pgoff+0x42e/0x5a0 mm/mmap.c:1580
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x452d69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 18 00 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f67ee3721f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00000000004d7268 RCX: 0000000000452d69
RDX: 0000000000000000 RSI: 0000000000e7e000 RDI: 0000000020000000
RBP: 00000000004d7260 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000040031 R11: 0000000000000246 R12: 00000000004d726c
R13: 00007ffc8b4b29cf R14: 00007f67ee372300 R15: 0000000000022000

Reply all
Reply to author
Forward
0 new messages