Hello,
syzbot found the following issue on:
HEAD commit: 414e6c8e941c ANDROID: fix up abi issue with struct snd_pcm..
git tree: android12-5.10-lts
console output:
https://syzkaller.appspot.com/x/log.txt?x=13140a27700000
kernel config:
https://syzkaller.appspot.com/x/.config?x=c82cd64ef7210f0c
dashboard link:
https://syzkaller.appspot.com/bug?extid=e42ae441c3b10acf9e9d
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=15714dc3700000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=166f6887700000
The issue was bisected to:
commit 0d6882dd158e559b291a2d1b045a65bc2fa4fc58
Author: Maxime Ripard <max...@cerno.tech>
Date: Sat Feb 19 12:07:55 2022 +0000
ARM: boot: dts: bcm2711: Fix HVS register range
bisection log:
https://syzkaller.appspot.com/x/bisect.txt?x=12bd5e9b700000
final oops:
https://syzkaller.appspot.com/x/report.txt?x=11bd5e9b700000
console output:
https://syzkaller.appspot.com/x/log.txt?x=16bd5e9b700000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+e42ae4...@syzkaller.appspotmail.com
Fixes: 0d6882dd158e ("ARM: boot: dts: bcm2711: Fix HVS register range")
list_add corruption. prev->next should be next (ffff8881f715c060), but was ffff88810e794870. (prev=ffff88810e794870).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:28!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 397 Comm: kworker/1:2 Tainted: G W 5.10.109-syzkaller-00693-g414e6c8e941c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: cgroup_destroy css_free_rwork_fn
RIP: 0010:__list_add_valid+0xbb/0xc0 lib/list_debug.c:26
Code: 48 c7 c7 e0 c3 49 85 4c 89 e6 4c 89 f1 31 c0 e8 e2 9b 01 ff 0f 0b 48 c7 c7 a0 c4 49 85 4c 89 f6 4c 89 e1 31 c0 e8 cc 9b 01 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 54 53 49 89 fe 49 bc 00
RSP: 0018:ffffc900001609e0 EFLAGS: 00010046
RAX: 0000000000000075 RBX: ffff8881f715c068 RCX: af2b18e851678f00
RDX: 0000000080000102 RSI: 0000000080000102 RDI: 0000000000000000
RBP: ffffc90000160a08 R08: ffffffff815454d8 R09: 0000000000000003
R10: fffff5200002c091 R11: 0000000000000004 R12: ffff88810e794870
R13: dffffc0000000000 R14: ffff8881f715c060 R15: ffff88810e794870
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555ad8380 CR3: 000000011d102000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__list_add include/linux/list.h:67 [inline]
list_add_tail include/linux/list.h:100 [inline]
insert_work+0x107/0x330 kernel/workqueue.c:1352
__queue_work+0x951/0xda0 kernel/workqueue.c:1514
queue_work_on+0xef/0x150 kernel/workqueue.c:1541
queue_work include/linux/workqueue.h:513 [inline]
css_release+0xae/0xc0 kernel/cgroup/cgroup.c:5146
percpu_ref_put_many include/linux/percpu-refcount.h:322 [inline]
percpu_ref_put include/linux/percpu-refcount.h:338 [inline]
percpu_ref_call_confirm_rcu lib/percpu-refcount.c:162 [inline]
percpu_ref_switch_to_atomic_rcu+0x5a0/0x5b0 lib/percpu-refcount.c:199
rcu_do_batch+0x4cd/0xb40 kernel/rcu/tree.c:2485
rcu_core+0x822/0x10a0 kernel/rcu/tree.c:2722
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2735
__do_softirq+0x27e/0x598 kernel/softirq.c:305
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
do_softirq kernel/softirq.c:355 [inline]
__local_bh_enable_ip+0x158/0x170 kernel/softirq.c:190
__raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
_raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:207
spin_unlock_bh include/linux/spinlock.h:399 [inline]
cgroup_idr_remove kernel/cgroup/cgroup.c:343 [inline]
css_free_rwork_fn+0x106/0x680 kernel/cgroup/cgroup.c:5050
process_one_work+0x6b4/0xfb0 kernel/workqueue.c:2296
worker_thread+0xb15/0x1600 kernel/workqueue.c:2442
kthread+0x371/0x390 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
Modules linked in:
---[ end trace 2c8d7c89d484fe8a ]---
RIP: 0010:__list_add_valid+0xbb/0xc0 lib/list_debug.c:26
Code: 48 c7 c7 e0 c3 49 85 4c 89 e6 4c 89 f1 31 c0 e8 e2 9b 01 ff 0f 0b 48 c7 c7 a0 c4 49 85 4c 89 f6 4c 89 e1 31 c0 e8 cc 9b 01 ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 54 53 49 89 fe 49 bc 00
RSP: 0018:ffffc900001609e0 EFLAGS: 00010046
RAX: 0000000000000075 RBX: ffff8881f715c068 RCX: af2b18e851678f00
RDX: 0000000080000102 RSI: 0000000080000102 RDI: 0000000000000000
RBP: ffffc90000160a08 R08: ffffffff815454d8 R09: 0000000000000003
R10: fffff5200002c091 R11: 0000000000000004 R12: ffff88810e794870
R13: dffffc0000000000 R14: ffff8881f715c060 R15: ffff88810e794870
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555ad8380 CR3: 000000011d102000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
---
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.
For information about bisection process see:
https://goo.gl/tpsmEJ#bisection
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches