syzbot


BUG: soft lockup in addrconf_rs_timer

Status: upstream: reported syz repro on 2021/03/19 06:05
Reported-by: syzbot+2ff5db9e09be55c7c4a0@syzkaller.appspotmail.com
First crash: 466d, last: 61d

Fix bisection: failed (bisect log)
similar bugs (10):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: soft lockup in addrconf_rs_timer C error 128 20d 1023d 0/1 upstream: reported C repro on 2019/09/08 14:09
upstream BUG: soft lockup in addrconf_rs_timer 18 827d 1024d 0/22 auto-closed as invalid on 2020/07/20 22:25
upstream INFO: rcu detected stall in addrconf_rs_timer (4) C error error 121 239d 693d 0/22 closed as invalid on 2022/02/08 10:39
upstream INFO: rcu detected stall in addrconf_rs_timer (5) 4 63d 63d 0/22 auto-closed as invalid on 2022/06/24 22:41
upstream INFO: rcu detected stall in addrconf_rs_timer (2) 362 999d 1021d 14/22 fixed on 2019/10/21 12:31
linux-4.14 INFO: rcu detected stall in addrconf_rs_timer C error 220 662d 1025d 0/1 upstream: reported C repro on 2019/09/06 14:33
upstream INFO: rcu detected stall in addrconf_rs_timer 38 1285d 1381d 0/22 closed as dup on 2019/01/02 16:33
linux-4.19 INFO: rcu detected stall in addrconf_rs_timer 45 1013d 1025d 0/1 auto-closed as invalid on 2019/12/17 18:46
upstream INFO: rcu detected stall in addrconf_rs_timer (3) C inconclusive done 81 921d 917d 16/22 fixed on 2020/02/18 14:31
linux-4.19 INFO: rcu detected stall in addrconf_rs_timer (2) 5 663d 737d 0/1 auto-closed as invalid on 2020/12/31 12:17

Sample crash report:
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

Crashes (16):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2021/03/19 06:04 linux-4.19.y ac3af4beac43 380dcc3e .config log report syz BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2022/04/27 10:50 linux-4.19.y 3f8a27f9e27b 1fa34c1b .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2022/04/05 17:35 linux-4.19.y 3f8a27f9e27b 0127c10f .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2022/01/14 04:07 linux-4.19.y 3f8a27f9e27b b8d780ab .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2022/01/06 15:14 linux-4.19.y 3f8a27f9e27b 6acc789a .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/12/30 18:26 linux-4.19.y 3f8a27f9e27b 2e49f10d .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/12/30 09:03 linux-4.19.y 3f8a27f9e27b 6cc879d4 .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/12/03 21:47 linux-4.19.y 3f8a27f9e27b c7c20675 .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/11/16 18:03 linux-4.19.y 3f8a27f9e27b 600426bd .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/10/10 04:34 linux-4.19.y e34184f53363 838e7e2c .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/10/07 07:28 linux-4.19.y 6db10b4d5efd 62ee0987 .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/09/20 20:15 linux-4.19.y b172b44fcb17 af796c18 .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/08/20 23:26 linux-4.19.y 59456c9cc40c b599f2fc .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/08/09 05:04 linux-4.19.y 5c66974a6304 6972b106 .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2021/04/23 02:36 linux-4.19.y 2965db2e004c 590921a5 .config log report info BUG: soft lockup in addrconf_rs_timer
ci2-linux-4-19 2022/02/26 03:38 linux-4.19.y 3f8a27f9e27b 45a13a73 .config log report info INFO: rcu detected stall in addrconf_rs_timer