syzbot


BUG: corrupted list in kobject_cleanup

Status: upstream: reported on 2022/10/01 13:42
Reported-by: syzbot+430e395e8c74123e1918@syzkaller.appspotmail.com
First crash: 69d, last: 69d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kobject_cleanup C unreliable 72 635d 648d 22/24 fixed on 2021/04/09 19:46

Sample crash report:
list_del corruption. next->prev should be ffff00010248a8a0, but was dead4ead00000000. (next=ffff0000f3429438)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:64!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3061 Comm: syz-executor.3 Not tainted 6.0.0-rc6-syzkaller-17742-gc194837ebb57 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __list_del_entry_valid+0xcc/0xd0 lib/list_debug.c:62
lr : __list_del_entry_valid+0xcc/0xd0 lib/list_debug.c:62
sp : ffff80001281bb90
x29: ffff80001281bb90 x28: ffff0000c8b4b500 x27: 0000000000000000
x26: ffff80000d30cf28 x25: ffff80000d309000 x24: 0000000000000008
x23: 0000000000000003 x22: ffff80000d56ad28 x21: 0000000000000000
x20: ffff00010248a8a0 x19: ffff00010248a898 x18: 00000000000000c0
x17: 20747562202c3061 x16: ffff80000db49158 x15: ffff0000c8b4b500
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c8b4b500
x11: ff808000081c1630 x10: 0000000000000000 x9 : bf3d65c85afff700
x8 : bf3d65c85afff700 x7 : ffff800008195d30 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : ffff0001fefbecd0 x1 : 0000000000000001 x0 : 000000000000006d
Call trace:
 __list_del_entry_valid+0xcc/0xd0 lib/list_debug.c:62
 __list_del_entry include/linux/list.h:134 [inline]
 list_del_init include/linux/list.h:206 [inline]
 kobj_kset_leave lib/kobject.c:175 [inline]
 __kobject_del+0xa8/0x1f8 lib/kobject.c:592
 kobject_cleanup+0xfc/0x280 lib/kobject.c:664
 kobject_release lib/kobject.c:704 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x94/0xf8 lib/kobject.c:721
 nilfs_sysfs_delete_segctor_group fs/nilfs2/sysfs.c:700 [inline]
 nilfs_sysfs_delete_device_group+0x50/0x7c fs/nilfs2/sysfs.c:1044
 destroy_nilfs+0x4c/0xa0 fs/nilfs2/the_nilfs.c:89
 nilfs_put_super+0x84/0x9c fs/nilfs2/super.c:480
 generic_shutdown_super+0x8c/0x190 fs/super.c:491
 kill_block_super+0x30/0x78 fs/super.c:1427
 deactivate_locked_super+0x70/0xe8 fs/super.c:332
 deactivate_super+0xd0/0xd4 fs/super.c:363
 cleanup_mnt+0x1f8/0x234 fs/namespace.c:1186
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193
 task_work_run+0xc4/0x14c kernel/task_work.c:177
 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:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190
Code: d4210000 9001b460 912e4800 94a768fa (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/09/27 05:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 10323ddf .config log report info BUG: corrupted list in kobject_cleanup
* Struck through repros no longer work on HEAD.