BUG: soft lockup in addrconf_rs_timer

8 views
Skip to first unread message

syzbot

unread,
Mar 19, 2021, 2:05:25 AM3/19/21
to syzkaller...@googlegroups.com
Hello,

syzbot found 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=11db0e3ad00000
kernel config: https://syzkaller.appspot.com/x/.config?x=4f09908a6dd5ae5f
dashboard link: https://syzkaller.appspot.com/bug?extid=2ff5db9e09be55c7c4a0
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=142b6006d00000

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

mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium
mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium
mac80211_hwsim: wmediumd released netlink socket, switching to perfect channel medium
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.0:24946]
Modules linked in:
irq event stamp: 3193281
hardirqs last enabled at (3193280): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (3193281): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (3177632): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (3177635): [<ffffffff81392675>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (3177635): [<ffffffff81392675>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 24946 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:__orc_find+0x23/0xf0 arch/x86/kernel/unwind_orc.c:45
Code: ff ff 90 90 90 90 90 41 57 89 d0 41 56 41 55 41 54 4c 8d 64 87 fc 55 53 48 83 ec 10 85 d2 0f 84 95 00 00 00 4c 39 e7 49 89 fd <0f> 87 9a 00 00 00 49 bf 00 00 00 00 00 fc ff df 49 89 fe 48 89 fd
RSP: 0018:ffff8880ba007540 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000006 RBX: 1ffff11017400eba RCX: ffffffff8705786d
RDX: 0000000000000006 RSI: ffffffff8bfecc20 RDI: ffffffff8b7c55a8
RBP: 0000000000000002 R08: 0000000000000000 R09: ffffffff8bfecc20
R10: ffff8880ba007717 R11: 0000000000074071 R12: ffffffff8b7c55bc
R13: ffffffff8b7c55a8 R14: ffff8880ba0076b8 R15: ffffffff8705786d
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000545f98 CR3: 0000000009e6d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
orc_find arch/x86/kernel/unwind_orc.c:159 [inline]
unwind_next_frame+0x339/0x1400 arch/x86/kernel/unwind_orc.c:422
__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+0x122/0x370 mm/slab.c:3559
dst_alloc+0x106/0x1a0 net/core/dst.c:105
ip6_dst_alloc+0x2e/0x100 net/ipv6/route.c:357
icmp6_dst_alloc+0x1ab/0x660 net/ipv6/route.c:2731
ndisc_send_skb+0xd10/0x1720 net/ipv6/ndisc.c:471
ndisc_send_rs+0x131/0x690 net/ipv6/ndisc.c:685
addrconf_rs_timer+0x384/0x6a0 net/ipv6/addrconf.c:3835
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+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:lock_page_memcg+0xd0/0x220 mm/memcontrol.c:1917
Code: ff 48 89 e8 48 c1 e8 03 42 0f b6 14 30 48 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 14 01 00 00 41 8b 84 24 80 06 00 00 <85> c0 7e 47 49 8d ac 24 30 06 00 00 48 89 ef e8 dc 94 79 06 41 80
RSP: 0018:ffff8880742f76c0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: ffffea00023a1180 RCX: ffffffff819d1187
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88823b2d0f40
RBP: ffff88823b2d0f40 R08: 0000000000000000 R09: ffffed104765a1e8
R10: ffff88823b2d0f43 R11: 0000000000000000 R12: ffff88823b2d08c0
R13: fffff94000474237 R14: dffffc0000000000 R15: ffffea00023a11b8
page_remove_file_rmap+0x36/0xa30 mm/rmap.c:1215
page_remove_rmap+0xe5/0x120 mm/rmap.c:1300
zap_pte_range mm/memory.c:1350 [inline]
zap_pmd_range mm/memory.c:1452 [inline]
zap_pud_range mm/memory.c:1481 [inline]
zap_p4d_range mm/memory.c:1502 [inline]
unmap_page_range+0x12f6/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+0xaec/0x2be0 kernel/exit.c:857
do_group_exit+0x125/0x310 kernel/exit.c:967
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:0x466459
Code: Bad RIP value.
RSP: 002b:00007fca38a6c188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: 0000000000000004 RBX: 000000000056bf60 RCX: 0000000000466459
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 000000002001d000
RBP: 00000000004bf9cb R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 000000000056bf60
R13: 00007fff796f5c1f R14: 00007fca38a6c300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8855 Comm: kworker/u4:4 Not tainted 4.19.181-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:find_held_lock+0x1a/0x210 kernel/locking/lockdep.c:3518
Code: 00 e9 23 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 41 57 49 89 f7 41 56 49 89 ce 41 55 44 8d 6a ff 49 63 c5 41 54 48 8d 04 80 55 <4c> 8d a4 c7 88 08 00 00 53 89 d3 48 b8 00 00 00 00 00 fc ff df 49
RSP: 0018:ffff8880afe9fb50 EFLAGS: 00000006
RAX: 000000000000000a RBX: ffffffff8d23c760 RCX: ffff8880afe9fbb8
RDX: 0000000000000003 RSI: ffff8880a1418f08 RDI: ffff88809d3344c0
RBP: ffff8880a1418f08 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff11015fd3f73
R13: 0000000000000002 R14: ffff8880afe9fbb8 R15: ffff8880a1418f08
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d8f31a6878 CR3: 00000000a4676000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__lock_release kernel/locking/lockdep.c:3676 [inline]
lock_release+0x246/0x8b0 kernel/locking/lockdep.c:3926
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:174 [inline]
_raw_spin_unlock_bh+0x17/0x30 kernel/locking/spinlock.c:200
spin_unlock_bh include/linux/spinlock.h:374 [inline]
batadv_nc_purge_paths+0x22d/0x310 net/batman-adv/network-coding.c:482
batadv_nc_worker+0x6fa/0xd50 net/batman-adv/network-coding.c:731
process_one_work+0x864/0x1570 kernel/workqueue.c:2152
worker_thread+0x64c/0x1130 kernel/workqueue.c:2295
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415


---
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
Reply all
Reply to author
Forward
0 new messages