syzbot


WARNING in __kernfs_remove

Status: closed as dup on 2022/09/28 11:04
Reported-by: syzbot+9526e2e1fc98a6452cd5@syzkaller.appspotmail.com
First crash: 89d, last: 30d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in __kernfs_remove C done 3985 58d 102d

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3296 at fs/kernfs/dir.c:504 kernfs_get fs/kernfs/dir.c:504 [inline]
WARNING: CPU: 1 PID: 3296 at fs/kernfs/dir.c:504 __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
Modules linked in:
CPU: 1 PID: 3296 Comm: syz-executor112 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : kernfs_get fs/kernfs/dir.c:504 [inline]
pc : __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
lr : kernfs_get fs/kernfs/dir.c:504 [inline]
lr : __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
sp : ffff8000128db8a0
x29: ffff8000128db8d0 x28: ffff80000cee8161 x27: 0000000080000001
x26: ffff0000c0011a00 x25: ffff80000d30c000 x24: ffff0000c5641150
x23: ffff0000cb172190 x22: 0000000000000000 x21: ffff0000c5641150
x20: ffff0000c5641150 x19: ffff8000086f7744 x18: 000000000000017e
x17: 0000000000000005 x16: ffff80000db49158 x15: ffff0000ccb4cf80
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000ccb4cf80
x11: ff808000086f70dc x10: 0000000000000000 x9 : ffff8000086f70dc
x8 : ffff0000ccb4cf80 x7 : ffff8000095d331c x6 : 0000000000000000
x5 : 0000000080180006 x4 : fffffc0003159060 x3 : 0000000080180006
x2 : ffff0000c5641150 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 kernfs_get fs/kernfs/dir.c:504 [inline]
 __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
 kernfs_remove_by_name_ns+0x68/0xb8 fs/kernfs/dir.c:1589
 kernfs_remove_by_name include/linux/kernfs.h:615 [inline]
 sysfs_remove_link+0x40/0x50 fs/sysfs/symlink.c:152
 sysfs_slab_add+0x70/0x274 mm/slub.c:5955
 __kmem_cache_create+0x60/0x118 mm/slub.c:4906
 create_cache mm/slab_common.c:229 [inline]
 kmem_cache_create_usercopy+0x19c/0x31c mm/slab_common.c:335
 p9_client_create+0x618/0x758 net/9p/client.c:993
 v9fs_session_init+0xa4/0x9f0 fs/9p/v9fs.c:408
 v9fs_mount+0x6c/0x568 fs/9p/vfs_super.c:126
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 738
hardirqs last  enabled at (737): [<ffff80000bfc89b4>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (737): [<ffff80000bfc89b4>] _raw_spin_unlock_irqrestore+0x48/0x8c kernel/locking/spinlock.c:194
hardirqs last disabled at (738): [<ffff80000bfb5fbc>] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404
softirqs last  enabled at (472): [<ffff80000801c33c>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (470): [<ffff80000801c308>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
sysfs: cannot create duplicate filename '/kernel/slab/9p-fcall-cache/poison'
CPU: 1 PID: 3296 Comm: syz-executor112 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
Call trace:
 dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156
 show_stack+0x2c/0x54 arch/arm64/kernel/stacktrace.c:163
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106
 dump_stack+0x1c/0x58 lib/dump_stack.c:113
 sysfs_warn_dup+0x74/0x90 fs/sysfs/dir.c:30
 sysfs_add_file_mode_ns+0x158/0x1b4 fs/sysfs/file.c:298
 create_files fs/sysfs/group.c:64 [inline]
 internal_create_group+0x22c/0x654 fs/sysfs/group.c:148
 sysfs_create_group+0x2c/0x3c fs/sysfs/group.c:174
 sysfs_slab_add+0x15c/0x274 mm/slub.c:5972
 __kmem_cache_create+0x60/0x118 mm/slub.c:4906
 create_cache mm/slab_common.c:229 [inline]
 kmem_cache_create_usercopy+0x19c/0x31c mm/slab_common.c:335
 p9_client_create+0x618/0x758 net/9p/client.c:993
 v9fs_session_init+0xa4/0x9f0 fs/9p/v9fs.c:408
 v9fs_mount+0x6c/0x568 fs/9p/vfs_super.c:126
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3296 at fs/kernfs/dir.c:504 kernfs_get fs/kernfs/dir.c:504 [inline]
WARNING: CPU: 1 PID: 3296 at fs/kernfs/dir.c:504 __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
Modules linked in:
CPU: 1 PID: 3296 Comm: syz-executor112 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : kernfs_get fs/kernfs/dir.c:504 [inline]
pc : __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
lr : kernfs_get fs/kernfs/dir.c:504 [inline]
lr : __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
sp : ffff8000128db820
x29: ffff8000128db850 x28: 0000000000000100 x27: ffff80000d4699b0
x26: 0000000000000000 x25: ffff80000d30c000 x24: 0000000000000000
x23: ffff0000c5641150 x22: 0000000000000000 x21: ffff0000c5641150
x20: ffff0000c5641150 x19: ffff8000086f7744 x18: 00000000000000c0
x17: 6e69676e45206574 x16: ffff80000db49158 x15: ffff0000ccb4cf80
x14: 0000000000000008 x13: 00000000ffffffff x12: ffff0000ccb4cf80
x11: ff808000086f70dc x10: 0000000000000000 x9 : ffff8000086f70dc
x8 : ffff0000ccb4cf80 x7 : 7f7f7f7f7f7f7f7f x6 : 0000800000000000
x5 : 0000000000000000 x4 : 0000000000800000 x3 : 00524f4345450000
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 kernfs_get fs/kernfs/dir.c:504 [inline]
 __kernfs_remove+0x6f4/0x7d8 fs/kernfs/dir.c:1377
 kernfs_remove_by_name_ns+0x68/0xb8 fs/kernfs/dir.c:1589
 kernfs_remove_by_name include/linux/kernfs.h:615 [inline]
 remove_files fs/sysfs/group.c:28 [inline]
 create_files fs/sysfs/group.c:70 [inline]
 internal_create_group+0x424/0x654 fs/sysfs/group.c:148
 sysfs_create_group+0x2c/0x3c fs/sysfs/group.c:174
 sysfs_slab_add+0x15c/0x274 mm/slub.c:5972
 __kmem_cache_create+0x60/0x118 mm/slub.c:4906
 create_cache mm/slab_common.c:229 [inline]
 kmem_cache_create_usercopy+0x19c/0x31c mm/slab_common.c:335
 p9_client_create+0x618/0x758 net/9p/client.c:993
 v9fs_session_init+0xa4/0x9f0 fs/9p/v9fs.c:408
 v9fs_mount+0x6c/0x568 fs/9p/vfs_super.c:126
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 1034
hardirqs last  enabled at (1033): [<ffff80000bfc89b4>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (1033): [<ffff80000bfc89b4>] _raw_spin_unlock_irqrestore+0x48/0x8c kernel/locking/spinlock.c:194
hardirqs last disabled at (1034): [<ffff80000bfb5fbc>] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404
softirqs last  enabled at (980): [<ffff8000080102e4>] _stext+0x2e4/0x37c
softirqs last disabled at (875): [<ffff800008017c14>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
kmem_cache_create_usercopy(9p-fcall-cache) failed with error -17
CPU: 1 PID: 3296 Comm: syz-executor112 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
Call trace:
 dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156
 show_stack+0x2c/0x54 arch/arm64/kernel/stacktrace.c:163
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106
 dump_stack+0x1c/0x58 lib/dump_stack.c:113
 kmem_cache_create_usercopy+0x268/0x31c mm/slab_common.c:353
 p9_client_create+0x618/0x758 net/9p/client.c:993
 v9fs_session_init+0xa4/0x9f0 fs/9p/v9fs.c:408
 v9fs_mount+0x6c/0x568 fs/9p/vfs_super.c:126
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

=============================
WARNING: suspicious RCU usage
6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0 Tainted: G        W         
-----------------------------
kernel/sched/core.c:9854 Illegal context switch in RCU-bh read-side critical section!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor112/3296:
 #0: ffff0000ccb410e0 (&type->s_umount_key#40/1){+.+.}-{3:3}, at: alloc_super+0xf8/0x430 fs/super.c:228

stack backtrace:
CPU: 1 PID: 3296 Comm: syz-executor112 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
Call trace:
 dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156
 show_stack+0x2c/0x54 arch/arm64/kernel/stacktrace.c:163
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106
 dump_stack+0x1c/0x58 lib/dump_stack.c:113
 lockdep_rcu_suspicious+0x138/0x154 kernel/locking/lockdep.c:6595
 __might_resched+0x6c/0x218 kernel/sched/core.c:9854
 __might_sleep+0x48/0x78 kernel/sched/core.c:9821
 do_page_fault+0x214/0x79c arch/arm64/mm/fault.c:593
 do_translation_fault+0x78/0x194 arch/arm64/mm/fault.c:685
 do_mem_abort+0x54/0x130 arch/arm64/mm/fault.c:821
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:366
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:426
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:576
 __lock_acquire+0x60/0x30a4 kernel/locking/lockdep.c:4923
 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666
 down_write+0x5c/0xcc kernel/locking/rwsem.c:1552
 kernfs_add_one+0x44/0x2d4 fs/kernfs/dir.c:734
 __kernfs_create_file+0x13c/0x188 fs/kernfs/file.c:1079
 sysfs_add_file_mode_ns+0xf8/0x1b4 fs/sysfs/file.c:294
 sysfs_create_file_ns+0x7c/0xc4 fs/sysfs/file.c:355
 sysfs_create_file include/linux/sysfs.h:623 [inline]
 device_create_file drivers/base/core.c:2875 [inline]
 device_add+0x38c/0x958 drivers/base/core.c:3461
 device_create_groups_vargs+0xf4/0x15c drivers/base/core.c:4194
 device_create+0x88/0xbc drivers/base/core.c:4236
 bdi_register_va+0x8c/0x328 mm/backing-dev.c:873
 super_setup_bdi_name+0x84/0x120 fs/super.c:1589
 super_setup_bdi+0x50/0x8c fs/super.c:1611
 v9fs_fill_super fs/9p/vfs_super.c:76 [inline]
 v9fs_mount+0x1a4/0x568 fs/9p/vfs_super.c:137
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

=============================
WARNING: suspicious RCU usage
6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0 Tainted: G        W         
-----------------------------
kernel/sched/core.c:9854 Illegal context switch in RCU-sched read-side critical section!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor112/3296:
 #0: ffff0000ccb410e0 (&type->s_umount_key#40/1){+.+.}-{3:3}, at: alloc_super+0xf8/0x430 fs/super.c:228

stack backtrace:
CPU: 1 PID: 3296 Comm: syz-executor112 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
Call trace:
 dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156
 show_stack+0x2c/0x54 arch/arm64/kernel/stacktrace.c:163
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106
 dump_stack+0x1c/0x58 lib/dump_stack.c:113
 lockdep_rcu_suspicious+0x138/0x154 kernel/locking/lockdep.c:6595
 __might_resched+0xb4/0x218 kernel/sched/core.c:9854
 __might_sleep+0x48/0x78 kernel/sched/core.c:9821
 do_page_fault+0x214/0x79c arch/arm64/mm/fault.c:593
 do_translation_fault+0x78/0x194 arch/arm64/mm/fault.c:685
 do_mem_abort+0x54/0x130 arch/arm64/mm/fault.c:821
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:366
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:426
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:576
 __lock_acquire+0x60/0x30a4 kernel/locking/lockdep.c:4923
 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666
 down_write+0x5c/0xcc kernel/locking/rwsem.c:1552
 kernfs_add_one+0x44/0x2d4 fs/kernfs/dir.c:734
 __kernfs_create_file+0x13c/0x188 fs/kernfs/file.c:1079
 sysfs_add_file_mode_ns+0xf8/0x1b4 fs/sysfs/file.c:294
 sysfs_create_file_ns+0x7c/0xc4 fs/sysfs/file.c:355
 sysfs_create_file include/linux/sysfs.h:623 [inline]
 device_create_file drivers/base/core.c:2875 [inline]
 device_add+0x38c/0x958 drivers/base/core.c:3461
 device_create_groups_vargs+0xf4/0x15c drivers/base/core.c:4194
 device_create+0x88/0xbc drivers/base/core.c:4236
 bdi_register_va+0x8c/0x328 mm/backing-dev.c:873
 super_setup_bdi_name+0x84/0x120 fs/super.c:1589
 super_setup_bdi+0x50/0x8c fs/super.c:1611
 v9fs_fill_super fs/9p/vfs_super.c:76 [inline]
 v9fs_mount+0x1a4/0x568 fs/9p/vfs_super.c:137
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
BUG: sleeping function called from invalid context at arch/arm64/mm/fault.c:593
in_atomic(): 0, irqs_disabled(): 128, non_block: 0, pid: 3296, name: syz-executor112
preempt_count: 0, expected: 0
RCU nest depth: 0, expected: 0
1 lock held by syz-executor112/3296:
 #0: ffff0000ccb410e0 (&type->s_umount_key#40/1){+.+.}-{3:3}, at: alloc_super+0xf8/0x430 fs/super.c:228
irq event stamp: 1351
hardirqs last  enabled at (1351): [<ffff80000bfc89b4>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (1351): [<ffff80000bfc89b4>] _raw_spin_unlock_irqrestore+0x48/0x8c kernel/locking/spinlock.c:194
hardirqs last disabled at (1350): [<ffff80000bfc87f0>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (1350): [<ffff80000bfc87f0>] _raw_spin_lock_irqsave+0xa4/0xb4 kernel/locking/spinlock.c:162
softirqs last  enabled at (1120): [<ffff8000080102e4>] _stext+0x2e4/0x37c
softirqs last disabled at (1109): [<ffff800008017c14>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
CPU: 1 PID: 3296 Comm: syz-executor112 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
Call trace:
 dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156
 show_stack+0x2c/0x54 arch/arm64/kernel/stacktrace.c:163
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106
 dump_stack+0x1c/0x58 lib/dump_stack.c:113
 __might_resched+0x208/0x218 kernel/sched/core.c:9892
 __might_sleep+0x48/0x78 kernel/sched/core.c:9821
 do_page_fault+0x214/0x79c arch/arm64/mm/fault.c:593
 do_translation_fault+0x78/0x194 arch/arm64/mm/fault.c:685
 do_mem_abort+0x54/0x130 arch/arm64/mm/fault.c:821
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:366
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:426
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:576
 __lock_acquire+0x60/0x30a4 kernel/locking/lockdep.c:4923
 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666
 down_write+0x5c/0xcc kernel/locking/rwsem.c:1552
 kernfs_add_one+0x44/0x2d4 fs/kernfs/dir.c:734
 __kernfs_create_file+0x13c/0x188 fs/kernfs/file.c:1079
 sysfs_add_file_mode_ns+0xf8/0x1b4 fs/sysfs/file.c:294
 sysfs_create_file_ns+0x7c/0xc4 fs/sysfs/file.c:355
 sysfs_create_file include/linux/sysfs.h:623 [inline]
 device_create_file drivers/base/core.c:2875 [inline]
 device_add+0x38c/0x958 drivers/base/core.c:3461
 device_create_groups_vargs+0xf4/0x15c drivers/base/core.c:4194
 device_create+0x88/0xbc drivers/base/core.c:4236
 bdi_register_va+0x8c/0x328 mm/backing-dev.c:873
 super_setup_bdi_name+0x84/0x120 fs/super.c:1589
 super_setup_bdi+0x50/0x8c fs/super.c:1611
 v9fs_fill_super fs/9p/vfs_super.c:76 [inline]
 v9fs_mount+0x1a4/0x568 fs/9p/vfs_super.c:137
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Unable to handle kernel paging request at virtual address 0000000000001148
Mem abort info:
  ESR = 0x0000000096000006
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x06: level 2 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000006
  CM = 0, WnR = 0
user pgtable: 4k pages, 48-bit VAs, pgdp=000000010b39f000
[0000000000001148] pgd=08000001061d0003, p4d=08000001061d0003, pud=080000010b124003, pmd=0000000000000000
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3296 Comm: syz-executor112 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __lock_acquire+0x60/0x30a4 kernel/locking/lockdep.c:4923
lr : lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666
sp : ffff8000128db5e0
x29: ffff8000128db6c0 x28: 0000000000000000 x27: 0000000000000000
x26: 0000000000001148 x25: ffff8000086f4a58 x24: 0000000000000000
x23: 0000000000000000 x22: 0000000000001148 x21: 0000000000000000
x20: 0000000000000000 x19: 0000000000000000 x18: 000000000000018e
x17: ffff80000bffd6bc x16: ffff80000db49158 x15: ffff0000ccb4cf80
x14: 0000000000000008 x13: 00000000ffffffff x12: ffff0000ccb4cf80
x11: ff808000095d1a0c x10: 0000000000000000 x9 : 0000000000000001
x8 : 0000000000000001 x7 : ffff8000086f4a58 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000001148
Call trace:
 __lock_acquire+0x60/0x30a4 kernel/locking/lockdep.c:4923
 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666
 down_write+0x5c/0xcc kernel/locking/rwsem.c:1552
 kernfs_add_one+0x44/0x2d4 fs/kernfs/dir.c:734
 __kernfs_create_file+0x13c/0x188 fs/kernfs/file.c:1079
 sysfs_add_file_mode_ns+0xf8/0x1b4 fs/sysfs/file.c:294
 sysfs_create_file_ns+0x7c/0xc4 fs/sysfs/file.c:355
 sysfs_create_file include/linux/sysfs.h:623 [inline]
 device_create_file drivers/base/core.c:2875 [inline]
 device_add+0x38c/0x958 drivers/base/core.c:3461
 device_create_groups_vargs+0xf4/0x15c drivers/base/core.c:4194
 device_create+0x88/0xbc drivers/base/core.c:4236
 bdi_register_va+0x8c/0x328 mm/backing-dev.c:873
 super_setup_bdi_name+0x84/0x120 fs/super.c:1589
 super_setup_bdi+0x50/0x8c fs/super.c:1611
 v9fs_fill_super fs/9p/vfs_super.c:76 [inline]
 v9fs_mount+0x1a4/0x568 fs/9p/vfs_super.c:137
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2c4/0x3c4 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 2a0303f4 2a0203f7 aa0003fa 34000148 (f9400348) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	2a0303f4 	mov	w20, w3
   4:	2a0203f7 	mov	w23, w2
   8:	aa0003fa 	mov	x26, x0
   c:	34000148 	cbz	w8, 0x34
* 10:	f9400348 	ldr	x8, [x26] <-- trapping instruction

Crashes (132):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-arm64 2022/11/05 12:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/30 22:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/23 21:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 23bf86af .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/22 16:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 c0b80a55 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/14 14:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/08 16:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/26 19:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 d59ba983 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/23 05:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 16c9f284e746 0042f2b4 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/22 17:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aa49f95768a9 0042f2b4 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/19 08:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/19 04:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/17 03:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/12 00:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/11 20:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/07 10:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c 5fc30c37 .config log report syz C WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/04 17:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/04 08:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/03 19:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/03 17:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 7a2ebf95 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/03 00:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 08977f5d .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/02 15:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 08977f5d .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/01 22:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/01 18:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/01 17:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/11/01 05:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 a1d8560a .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/31 23:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/31 05:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/31 00:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/30 05:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/29 02:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/29 01:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/28 23:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ea12ae9b .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/28 10:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/28 08:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/27 07:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 86777b7f .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/26 23:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2159e4d2 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/26 00:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 1984aebd .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/25 20:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 1984aebd .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/25 08:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 45645420 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/24 23:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ff2fe65d .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/24 20:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ff2fe65d .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/24 17:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 ff2fe65d .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/24 02:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 23bf86af .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/23 22:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 23bf86af .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/22 18:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 c0b80a55 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/22 07:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 c0b80a55 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/21 06:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 63e790dd .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/19 20:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/19 09:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/19 00:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/18 20:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/15 19:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/14 18:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/14 08:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/14 07:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/13 21:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 adf90437 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/10/13 14:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 adf90437 .config log report info WARNING in __kernfs_remove
ci-upstream-gce-arm64 2022/09/07 10:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c 5fc30c37 .config log report info WARNING in __kernfs_remove
* Struck through repros no longer work on HEAD.