syzbot


WARNING in ida_free

Status: auto-obsoleted due to no activity on 2023/03/07 20:09
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+84a3c66e4b9dbbb678a8@syzkaller.appspotmail.com
First crash: 535d, last: 535d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in ida_free 0 (1) 2022/11/11 20:17
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in ida_free (2) bluetooth C 14 72d 72d 0/26 upstream: reported C repro on 2024/02/13 16:36

Sample crash report:
------------[ cut here ]------------
ida_free called for id=0 which is not allocated.
WARNING: CPU: 0 PID: 3066 at lib/idr.c:525 ida_free+0x1b0/0x208 lib/idr.c:525
Modules linked in:
CPU: 0 PID: 3066 Comm: syz-executor.1 Not tainted 6.1.0-rc4-syzkaller-31833-gf0c4d9fc9cc9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ida_free+0x1b0/0x208 lib/idr.c:525
lr : ida_free+0x1b0/0x208 lib/idr.c:525
sp : ffff800012bf3c40
x29: ffff800012bf3c80 x28: ffff0000c4048000 x27: 0000000000000000
x26: 00000000000000c0 x25: 0000000000000002 x24: ffff80000d2dd050
x23: 0007fffffffffffe x22: 0000000000000001 x21: 0000000000000000
x20: 0000000000000000 x19: 0000000000000000 x18: 000000000000033b
x17: 0000000000000000 x16: ffff80000db2a158 x15: ffff0000c4048000
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c4048000
x11: ff808000081c06c8 x10: 0000000000000000 x9 : 16d63cd4e166ba00
x8 : 16d63cd4e166ba00 x7 : ffff800008162114 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : ffff0001fefbecc8 x1 : 0000000100000000 x0 : 0000000000000030
Call trace:
 ida_free+0x1b0/0x208 lib/idr.c:525
 free_anon_bdev fs/super.c:1073 [inline]
 kill_anon_super+0x34/0x44 fs/super.c:1087
 v9fs_kill_super+0x24/0x50 fs/9p/vfs_super.c:223
 deactivate_locked_super+0x70/0xe8 fs/super.c:332
 deactivate_super+0xd0/0xd4 fs/super.c:363
 cleanup_mnt+0x184/0x1c0 fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0x100/0x148 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x174/0x1f0 arch/arm64/kernel/signal.c:1127
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x150 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 13153724
hardirqs last  enabled at (13153723): [<ffff8000081621a4>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline]
hardirqs last  enabled at (13153723): [<ffff8000081621a4>] finish_lock_switch+0x94/0xe8 kernel/sched/core.c:4950
hardirqs last disabled at (13153724): [<ffff80000c00eacc>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (13153716): [<ffff8000080102e4>] _stext+0x2e4/0x37c
softirqs last disabled at (13153683): [<ffff800008017c68>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
list_del corruption, ffff00012527d000->next is NULL
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:50!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3066 Comm: syz-executor.1 Tainted: G        W          6.1.0-rc4-syzkaller-31833-gf0c4d9fc9cc9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __list_del_entry_valid+0x70/0xd0 lib/list_debug.c:49
lr : __list_del_entry_valid+0x70/0xd0 lib/list_debug.c:49
sp : ffff800012bf3cc0
x29: ffff800012bf3cc0 x28: ffff0000c4048000 x27: 0000000000000000
x26: 00000000000000c0 x25: 0000000000000002 x24: ffff80000d2dd050
x23: ffff80000d2d9000 x22: 0000000000000000 x21: 0000000000000000
x20: 0000000000000000 x19: ffff00012527d000 x18: 00000000000000c0
x17: ffff80000dcec198 x16: ffff80000db2a158 x15: ffff0000c4048000
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c4048000
x11: ff808000081c06c8 x10: 0000000000000000 x9 : 16d63cd4e166ba00
x8 : 16d63cd4e166ba00 x7 : ffff80000c01c69c x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : ffff0001fefddcc8 x1 : 0000000100000001 x0 : 0000000000000033
Call trace:
 __list_del_entry_valid+0x70/0xd0 lib/list_debug.c:49
 __list_del_entry include/linux/list.h:134 [inline]
 list_del_init include/linux/list.h:206 [inline]
 __put_super+0x48/0x198 fs/super.c:289
 put_super fs/super.c:311 [inline]
 deactivate_locked_super+0xa0/0xe8 fs/super.c:343
 deactivate_super+0xd0/0xd4 fs/super.c:363
 cleanup_mnt+0x184/0x1c0 fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0x100/0x148 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 do_notify_resume+0x174/0x1f0 arch/arm64/kernel/signal.c:1127
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
 el0_svc+0x9c/0x150 arch/arm64/kernel/entry-common.c:638
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: d65f03c0 b001b160 91341000 94a843f8 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/07 20:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f0c4d9fc9cc9 a779b11a .config console log report info ci-upstream-gce-arm64 WARNING in ida_free
* Struck through repros no longer work on HEAD.