[v5.15] BUG: soft lockup in rtnl_newlink

6 views
Skip to first unread message

syzbot

unread,
Mar 9, 2023, 2:16:48 PM3/9/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d9b4a0c83a2d Linux 5.15.98
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=164180b2c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=b57cfa804330c3b7
dashboard link: https://syzkaller.appspot.com/bug?extid=d59c6760c4736fc4d45e
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8088989394e3/disk-d9b4a0c8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2651d6753959/vmlinux-d9b4a0c8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f3fa3f994f9a/Image-d9b4a0c8.gz.xz

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

watchdog: BUG: soft lockup - CPU#0 stuck for 26s! [syz-executor.5:13834]
Modules linked in:
irq event stamp: 20232413
hardirqs last enabled at (20232412): [<ffff8000081b7c94>] __local_bh_enable_ip+0x258/0x4d0 kernel/softirq.c:388
hardirqs last disabled at (20232413): [<ffff800011979698>] enter_el1_irq_or_nmi+0x10/0x1c arch/arm64/kernel/entry-common.c:227
softirqs last enabled at (1636): [<ffff800008020e1c>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (1636): [<ffff800008020e1c>] __do_softirq+0xcac/0xf48 kernel/softirq.c:587
softirqs last disabled at (1642): [<ffff8000117ce034>] spin_lock_bh include/linux/spinlock.h:368 [inline]
softirqs last disabled at (1642): [<ffff8000117ce034>] batadv_tt_local_resize_to_mtu+0x60/0x150 net/batman-adv/translation-table.c:3950
CPU: 0 PID: 13834 Comm: syz-executor.5 Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : should_resched arch/arm64/include/asm/preempt.h:78 [inline]
pc : __local_bh_enable_ip+0x260/0x4d0 kernel/softirq.c:390
lr : __local_bh_enable_ip+0x258/0x4d0 kernel/softirq.c:388
sp : ffff800027356890
x29: ffff8000273568a0 x28: 0000000000000100 x27: ffff0000d59dd398
x26: ffff0000d6ab5c00 x25: ffff0000d8e1b408 x24: 0000000000000001
x23: 1fffe0001ae8b001 x22: dfff800000000000 x21: ffff8000117ce388
x20: 0000000000000000 x19: ffff0000d7458008 x18: 0000000000000202
x17: ff80800008337080 x16: ffff8000082ed72c x15: ffff800008337080
x14: 1ffff0000292606a x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000003ffff x10: 0000000000000003 x9 : 0000000000000000
x8 : 00000000000000e0 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008046698
x2 : 0000000000000002 x1 : ffff800011acb5e0 x0 : ffff80019ff71000
Call trace:
arch_local_irq_enable arch/arm64/include/asm/irqflags.h:35 [inline]
__local_bh_enable_ip+0x260/0x4d0 kernel/softirq.c:388
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
_raw_spin_unlock_bh+0xf8/0x180 kernel/locking/spinlock.c:210
spin_unlock_bh include/linux/spinlock.h:408 [inline]
batadv_tt_local_purge+0x264/0x2e8 net/batman-adv/translation-table.c:1357
batadv_tt_local_resize_to_mtu+0x9c/0x150 net/batman-adv/translation-table.c:3957
batadv_update_min_mtu net/batman-adv/hard-interface.c:635 [inline]
batadv_hardif_activate_interface+0x1a8/0x234 net/batman-adv/hard-interface.c:662
batadv_hardif_enable_interface+0x4e8/0x770 net/batman-adv/hard-interface.c:745
batadv_softif_slave_add+0x80/0x148 net/batman-adv/soft-interface.c:839
do_set_master net/core/rtnetlink.c:2523 [inline]
__rtnl_newlink net/core/rtnetlink.c:3479 [inline]
rtnl_newlink+0x1570/0x1ab8 net/core/rtnetlink.c:3510
rtnetlink_rcv_msg+0x998/0xcc8 net/core/rtnetlink.c:5587
netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2533
rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356
netlink_sendmsg+0x814/0xb00 net/netlink/af_netlink.c:1952
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x584/0x870 net/socket.c:2412
___sys_sendmsg+0x214/0x294 net/socket.c:2466
__sys_sendmsg net/socket.c:2495 [inline]
__do_sys_sendmsg net/socket.c:2504 [inline]
__se_sys_sendmsg net/socket.c:2502 [inline]
__arm64_sys_sendmsg+0x1ac/0x25c net/socket.c:2502
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 <unknown>:584


---
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 11, 2023, 12:20:56 AM3/11/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: abddfcf701a5 Linux 5.15.99
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17683f04c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=e8038112e99511e7
dashboard link: https://syzkaller.appspot.com/bug?extid=d59c6760c4736fc4d45e
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10151462c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10d20088c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/5d41fec63ff8/disk-abddfcf7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/69db433dc01f/vmlinux-abddfcf7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a00e1270bd95/bzImage-abddfcf7.xz

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

rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 1-....: (10504 ticks this GP) idle=58f/1/0x4000000000000000 softirq=5453/5455 fqs=5250
(t=10502 jiffies g=4305 q=75)
NMI backtrace for cpu 1
CPU: 1 PID: 3627 Comm: syz-executor990 Not tainted 5.15.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
<IRQ>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
rcu_dump_cpu_stacks+0x223/0x390 kernel/rcu/tree_stall.h:343
print_cpu_stall kernel/rcu/tree_stall.h:627 [inline]
check_cpu_stall kernel/rcu/tree_stall.h:711 [inline]
rcu_pending kernel/rcu/tree.c:3887 [inline]
rcu_sched_clock_irq+0xf26/0x1770 kernel/rcu/tree.c:2605
update_process_times+0x196/0x200 kernel/time/timer.c:1788
tick_sched_handle kernel/time/tick-sched.c:226 [inline]
tick_sched_timer+0x22d/0x3c0 kernel/time/tick-sched.c:1420
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x5d9/0xeb0 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
__sysvec_apic_timer_interrupt+0x17b/0x570 arch/x86/kernel/apic/apic.c:1103
sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0x276/0x570 kernel/locking/lockdep.c:5626
Code: 2b 00 74 08 4c 89 f7 e8 28 3d 67 00 f6 44 24 61 02 0f 85 d1 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc900021aea40 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000435d54 RCX: ffffffff81637e02
RDX: dffffc0000000000 RSI: ffffffff8a8b0f20 RDI: ffffffff8ad8b8c0
RBP: ffffc900021aeb98 R08: dffffc0000000000 R09: fffffbfff1f7662f
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000435d50
R13: dffffc0000000000 R14: ffffc900021aeaa0 R15: 0000000000000246
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
_raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178
spin_lock_bh include/linux/spinlock.h:368 [inline]
batadv_tt_local_purge+0x107/0x340 net/batman-adv/translation-table.c:1355
batadv_tt_local_resize_to_mtu+0x88/0x130 net/batman-adv/translation-table.c:3957
batadv_update_min_mtu net/batman-adv/hard-interface.c:635 [inline]
batadv_hardif_activate_interface+0x1b1/0x370 net/batman-adv/hard-interface.c:662
batadv_hardif_enable_interface+0x737/0x9e0 net/batman-adv/hard-interface.c:745
batadv_softif_slave_add+0x75/0xf0 net/batman-adv/soft-interface.c:839
do_set_master net/core/rtnetlink.c:2523 [inline]
__rtnl_newlink net/core/rtnetlink.c:3479 [inline]
rtnl_newlink+0x1b68/0x2060 net/core/rtnetlink.c:3510
rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5587
netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2533
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1952
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
__sys_sendmsg net/socket.c:2495 [inline]
__do_sys_sendmsg net/socket.c:2504 [inline]
__se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f1e0ed0bef9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff37d5a168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1e0ed0bef9
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000005
RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d
R10: 000000000000000d R11: 0000000000000246 R12: 00007fff37d5a180
R13: 00000000000f4240 R14: 0000000000000000 R15: 0000000000000000
</TASK>

Reply all
Reply to author
Forward
0 new messages