[Android 5.10] BUG: soft lockup in addrconf_rs_timer (2)

0 views
Skip to first unread message

syzbot

unread,
Jun 22, 2024, 4:35:29 PM (7 days ago) Jun 22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b58b8f9dad93 Merge 5.10.215 into android13-5.10-lts
git tree: android13-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=1343f5b6980000
kernel config: https://syzkaller.appspot.com/x/.config?x=c10327663c8c67fd
dashboard link: https://syzkaller.appspot.com/bug?extid=310817b84cb5602cd30b
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15c37aea980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1743f5b6980000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ed65ccac5580/disk-b58b8f9d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9a15852b5d01/vmlinux-b58b8f9d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/83e3d27223d7/bzImage-b58b8f9d.xz

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

watchdog: BUG: soft lockup - CPU#0 stuck for 123s! [syz-executor258:1381]
Modules linked in:
CPU: 0 PID: 1381 Comm: syz-executor258 Not tainted 5.10.215-syzkaller-00370-gb58b8f9dad93 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:update_stack_state+0x3bf/0x460 arch/x86/kernel/unwind_frame.c:242
Code: e7 1d 76 00 65 48 8b 05 5f 4a d0 7e 49 39 06 74 0d 48 89 df e8 42 fc ff ff 49 89 c6 eb 19 48 89 d8 48 c1 e8 03 42 80 3c 38 00 <74> 08 48 89 df e8 b7 1d 76 00 4c 8b 33 48 8b 5d d0 48 83 c3 48 48
RSP: 0018:ffffc900000073f0 EFLAGS: 00000246
RAX: 1ffff920001b9f80 RBX: ffffc90000dcfc00 RCX: 1ffff92000000eb3
RDX: 1ffff92000000eaa RSI: ffffc90000dcfbf8 RDI: ffffc90000007598
RBP: ffffc900000074a8 R08: ffffc90000007628 R09: 0000000000000019
R10: ffffc90000007630 R11: dffffc0000000001 R12: 1ffff92000000eb0
R13: 0000000000000000 R14: ffffc90000007568 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555699738 CR3: 000000010cc7d000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
unwind_next_frame+0x3cb/0x700 arch/x86/kernel/unwind_frame.c:305
arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:121
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:430 [inline]
____kasan_kmalloc+0xdb/0x110 mm/kasan/common.c:509
__kasan_kmalloc+0x9/0x10 mm/kasan/common.c:518
kasan_kmalloc include/linux/kasan.h:254 [inline]
kmem_cache_alloc_trace+0x18a/0x2e0 mm/slub.c:2974
kmalloc include/linux/slab.h:552 [inline]
dst_cow_metrics_generic+0x55/0x1c0 net/core/dst.c:201
dst_metrics_write_ptr include/net/dst.h:117 [inline]
dst_metric_set include/net/dst.h:178 [inline]
icmp6_dst_alloc+0x385/0x560 net/ipv6/route.c:3173
ndisc_send_skb+0x25a/0xc00 net/ipv6/ndisc.c:489
ndisc_send_rs+0x532/0x6a0 net/ipv6/ndisc.c:703
addrconf_rs_timer+0x2d1/0x600 net/ipv6/addrconf.c:3962
call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x72a/0xa10 kernel/time/timer.c:1789
run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1802
__do_softirq+0x268/0x5bb kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
</IRQ>
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1094
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:schedule_debug kernel/sched/core.c:4553 [inline]
RIP: 0010:__schedule+0x11c/0x1330 kernel/sched/core.c:4698
Code: 3b 49 8d 5f 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 53 d6 f7 fc 48 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 <74> 08 48 89 df e8 3a d6 f7 fc 48 81 3b 9d 6e ac 57 0f 85 c0 0d 00
RSP: 0018:ffffc90000dcf380 EFLAGS: 00000246
RAX: 1ffff920001b9000 RBX: ffffc90000dc8000 RCX: 1ffff920001b9e7c
RDX: 1ffff920001b9e7c RSI: ffffffff85601a20 RDI: ffffffff856019e0
RBP: ffffc90000dcf470 R08: ffffffff87081008 R09: ffffffff87081018
R10: ffffffff87081010 R11: ffffffff87081003 R12: 0000000000000001
R13: dffffc0000000000 R14: ffff8881f7000000 R15: ffff8881208b4f00
preempt_schedule_irq+0xc7/0x140 kernel/sched/core.c:5065
irqentry_exit_cond_resched kernel/entry/common.c:365 [inline]
irqentry_exit+0x4f/0x60 kernel/entry/common.c:395
sysvec_apic_timer_interrupt+0xcb/0xe0 arch/x86/kernel/apic/apic.c:1094
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__list_del include/linux/list.h:113 [inline]
RIP: 0010:__list_del_entry include/linux/list.h:135 [inline]
RIP: 0010:list_del_init include/linux/list.h:204 [inline]
RIP: 0010:perf_event_exit_task+0x1bd/0x1930 kernel/events/core.c:12599
Code: 90 1d 00 4d 89 65 00 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 e7 e8 47 90 1d 00 4d 89 34 24 <49> be 00 00 00 00 00 fc ff df 4c 8b 64 24 40 4c 8b 6c 24 30 43 80
RSP: 0018:ffffc90000dcf600 EFLAGS: 00000246
RAX: 1ffff11024116b24 RBX: ffff8881131ab288 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881131ab290
RBP: ffffc90000dcfa10 R08: dffffc0000000000 R09: fffff520001b9eb1
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881208b5920
R13: ffff8881131aca90 R14: ffff8881131aca88 R15: 1ffff11022635651
do_exit+0xc93/0x2a50 kernel/exit.c:870
do_group_exit+0x141/0x310 kernel/exit.c:983
get_signal+0x10a0/0x1410 kernel/signal.c:2782
arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805
handle_signal_work kernel/entry/common.c:145 [inline]
exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169
exit_to_user_mode_prepare kernel/entry/common.c:199 [inline]
syscall_exit_to_user_mode+0xa2/0x1a0 kernel/entry/common.c:274
do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fe272323ef9
Code: Unable to access opcode bytes at RIP 0x7fe272323ecf.
RSP: 002b:00007fe2722d5218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fe2723af1e8 RCX: 00007fe272323ef9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fe2723af1e8
RBP: 00007fe2723af1e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe272374bac
R13: 4c67dbfffffa10d5 R14: afffffffffffffff R15: 009c000008e53b02
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 1392 Comm: syz-executor258 Not tainted 5.10.215-syzkaller-00370-gb58b8f9dad93 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:arch_atomic_try_cmpxchg arch/x86/include/asm/atomic.h:202 [inline]
RIP: 0010:arch_atomic_fetch_or arch/x86/include/asm/atomic.h:242 [inline]
RIP: 0010:atomic_fetch_or include/asm-generic/atomic-instrumented.h:527 [inline]
RIP: 0010:irq_work_claim kernel/irq_work.c:34 [inline]
RIP: 0010:irq_work_queue+0x5b/0x160 kernel/irq_work.c:70
Code: 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 0f 85 ed 00 00 00 45 8b 2f 44 89 e9 83 c9 23 31 db 44 89 e8 f0 41 0f b1 0f <41> 89 c6 41 0f 95 c4 0f 94 c3 bf 02 00 00 00 89 de e8 bf 01 f3 ff
RSP: 0018:ffffc90000170628 EFLAGS: 00000046
RAX: 0000000000000020 RBX: 0000000000000000 RCX: 0000000000000023
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffff888120db7338
RBP: ffffc90000170658 R08: dffffc0000000000 R09: ffffed10241b6e68
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000020 R14: ffff888120db7330 R15: ffff888120db7338
FS: 00007fe2722d56c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000113209000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<IRQ>
__perf_event_overflow+0x272/0x350 kernel/events/core.c:9049
perf_swevent_hrtimer+0x3fd/0x560 kernel/events/core.c:10448
__run_hrtimer kernel/time/hrtimer.c:1583 [inline]
__hrtimer_run_queues+0x3d7/0xa50 kernel/time/hrtimer.c:1647
hrtimer_interrupt+0x39a/0x8b0 kernel/time/hrtimer.c:1709
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1083 [inline]
__sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1100
run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline]
sysvec_apic_timer_interrupt+0xba/0xe0 arch/x86/kernel/apic/apic.c:1094
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:ndisc_alloc_skb+0x0/0x2d0 net/ipv6/ndisc.c:415
Code: ff e8 c4 bb 7b fd e9 e7 fc ff ff 89 f9 80 e1 07 38 c1 0f 8c 01 fd ff ff e8 ad bb 7b fd e9 f7 fc ff ff e8 13 a0 7f 00 0f 1f 00 <55> 48 89 e5 41 57 41 56 41 55 41 54 53 50 89 75 d4 49 89 fe 48 bb
RSP: 0018:ffffc90000170c20 EFLAGS: 00000246
RAX: 0000000000000008 RBX: 0000000000000001 RCX: ffff8881208b13c0
RDX: ffff8881208b13c0 RSI: 0000000000000010 RDI: ffff88810b728000
RBP: ffffc90000170c90 R08: ffffffff842c9ee4 R09: ffffed102233dc85
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000170d00
R13: ffffffff859443a0 R14: 0000000000000000 R15: 0000000000000006
addrconf_rs_timer+0x2d1/0x600 net/ipv6/addrconf.c:3962
call_timer_fn+0x3b/0x2d0 kernel/time/timer.c:1450
expire_timers kernel/time/timer.c:1495 [inline]
__run_timers+0x72a/0xa10 kernel/time/timer.c:1789
run_timer_softirq+0x69/0xf0 kernel/time/timer.c:1802
__do_softirq+0x268/0x5bb kernel/softirq.c:309
asm_call_irq_on_stack+0xf/0x20
</IRQ>
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x60/0x80 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:405 [inline]
__irq_exit_rcu+0x128/0x150 kernel/softirq.c:435
irq_exit_rcu+0x9/0x10 kernel/softirq.c:447
sysvec_apic_timer_interrupt+0xbf/0xe0 arch/x86/kernel/apic/apic.c:1094
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:preempt_schedule_irq+0xc2/0x140 kernel/sched/core.c:5065
Code: 4c 89 e7 e8 10 be f7 fc f6 44 24 21 02 74 0b 0f 0b 48 f7 03 08 00 00 00 74 4d bf 01 00 00 00 e8 f4 8f 98 fc fb bf 01 00 00 00 <e8> 89 e6 ff ff fa bf 01 00 00 00 e8 7e 91 98 fc 65 48 8b 1d 56 ea
RSP: 0018:ffffc90000fbf620 EFLAGS: 00000246
RAX: 1ffff110241163be RBX: 1ffff920001f7ec8 RCX: ffffffff84b1ab00
RDX: 1ffff1102411627c RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffffc90000fbf6a0 R08: ffffffff87081048 R09: ffffffff87081058
R10: ffffffff87081050 R11: ffffffff87081043 R12: ffffc90000fbf640
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff920001f7ec4
irqentry_exit_cond_resched kernel/entry/common.c:365 [inline]
irqentry_exit+0x4f/0x60 kernel/entry/common.c:395
sysvec_apic_timer_interrupt+0xcb/0xe0 arch/x86/kernel/apic/apic.c:1094
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:__should_failslab+0x47/0xe0 mm/failslab.c:20
Code: 00 00 00 fc ff df 42 80 3c 38 00 74 0c 48 c7 c7 e0 a1 0b 87 e8 5a ab ff ff 31 c0 f7 c3 00 80 00 00 75 64 4c 39 35 29 0c 63 05 <74> 5b f7 c3 00 04 00 00 74 09 80 3d 60 17 db 04 00 75 23 80 3d 58
RSP: 0018:ffffc90000fbf790 EFLAGS: 00000283
RAX: 0000000000000000 RBX: 0000000000000dc0 RCX: ffff8881208b13c0
RDX: 0000000000000004 RSI: 0000000000000dc0 RDI: ffff888100043c80
RBP: ffffc90000fbf7a8 R08: ffffffff8179ce77 R09: ffffe8ffffd44010
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888100043c80
R13: ffffffff822ebed1 R14: ffff888100043c80 R15: dffffc0000000000
should_failslab+0x9/0x20 mm/slab_common.c:1216
slab_pre_alloc_hook mm/slab.h:558 [inline]
slab_alloc_node mm/slub.c:2868 [inline]
slab_alloc mm/slub.c:2955 [inline]
kmem_cache_alloc_trace+0x3a/0x2e0 mm/slub.c:2972
kmalloc include/linux/slab.h:552 [inline]
kzalloc include/linux/slab.h:664 [inline]
selinux_bpf_prog_alloc+0x51/0x140 security/selinux/hooks.c:6935
security_bpf_prog_alloc+0x62/0x90 security/security.c:2560
bpf_prog_load kernel/bpf/syscall.c:2200 [inline]
__do_sys_bpf kernel/bpf/syscall.c:4435 [inline]
__se_sys_bpf+0x9f8c/0x11cb0 kernel/bpf/syscall.c:4391
__x64_sys_bpf+0x7b/0x90 kernel/bpf/syscall.c:4391
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fe272323ef9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 1f 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe2722d5218 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fe2723af1e8 RCX: 00007fe272323ef9
RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 00007fe2723af1e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe272374bac
R13: 4c67dbfffffa10d5 R14: afffffffffffffff R15: 009c000008e53b02


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

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages