INFO: task syz.6.2574:20721 blocked for more than 143 seconds. Tainted: G W 6.1.121-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.2574 state:D stack:27904 pid:20721 ppid:19592 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6693 rwsem_down_read_slowpath kernel/locking/rwsem.c:1094 [inline] __down_read_common kernel/locking/rwsem.c:1261 [inline] __down_read kernel/locking/rwsem.c:1274 [inline] down_read+0x6ff/0xa30 kernel/locking/rwsem.c:1522 inode_lock_shared include/linux/fs.h:768 [inline] lookup_slow+0x45/0x70 fs/namei.c:1706 walk_component+0x2d0/0x400 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2479 filename_lookup+0x251/0x600 fs/namei.c:2508 user_path_at_empty+0x3e/0x60 fs/namei.c:2905 user_path_at include/linux/namei.h:57 [inline] do_mount fs/namespace.c:3396 [inline] __do_sys_mount fs/namespace.c:3607 [inline] __se_sys_mount+0x296/0x3c0 fs/namespace.c:3584 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2d4e385d29 RSP: 002b:00007f2d4f21d038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2d4e576080 RCX: 00007f2d4e385d29 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000380 RBP: 00007f2d4e401aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f2d4e576080 R15: 00007fff4ef8c148 INFO: task syz.6.2574:20723 blocked for more than 144 seconds. Tainted: G W 6.1.121-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.2574 state:D stack:28320 pid:20723 ppid:19592 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6693 rwsem_down_read_slowpath kernel/locking/rwsem.c:1094 [inline] __down_read_common kernel/locking/rwsem.c:1261 [inline] __down_read kernel/locking/rwsem.c:1274 [inline] down_read+0x6ff/0xa30 kernel/locking/rwsem.c:1522 inode_lock_shared include/linux/fs.h:768 [inline] open_last_lookups fs/namei.c:3549 [inline] path_openat+0x7a7/0x2e60 fs/namei.c:3780 do_filp_open+0x230/0x480 fs/namei.c:3810 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_open fs/open.c:1342 [inline] __se_sys_open fs/open.c:1338 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1338 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2d4e385d29 RSP: 002b:00007f2d4f1fc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f2d4e576160 RCX: 00007f2d4e385d29 RDX: 0000000000000000 RSI: 000000000014113e RDI: 0000000020000000 RBP: 00007f2d4e401aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f2d4e576160 R15: 00007fff4ef8c148 INFO: task syz.6.2574:20727 blocked for more than 145 seconds. Tainted: G W 6.1.121-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.2574 state:D stack:28552 pid:20727 ppid:19592 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6693 rwsem_down_read_slowpath kernel/locking/rwsem.c:1094 [inline] __down_read_common kernel/locking/rwsem.c:1261 [inline] __down_read kernel/locking/rwsem.c:1274 [inline] down_read+0x6ff/0xa30 kernel/locking/rwsem.c:1522 inode_lock_shared include/linux/fs.h:768 [inline] lookup_slow+0x45/0x70 fs/namei.c:1706 walk_component+0x2d0/0x400 fs/namei.c:1998 lookup_last fs/namei.c:2455 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2479 filename_lookup+0x251/0x600 fs/namei.c:2508 user_path_at_empty+0x3e/0x60 fs/namei.c:2905 user_path_at include/linux/namei.h:57 [inline] do_utimes_path fs/utimes.c:94 [inline] do_utimes fs/utimes.c:144 [inline] do_futimesat fs/utimes.c:198 [inline] __do_sys_utimes fs/utimes.c:211 [inline] __se_sys_utimes+0x128/0x380 fs/utimes.c:208 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2d4e385d29 RSP: 002b:00007f2d4f1db038 EFLAGS: 00000246 ORIG_RAX: 00000000000000eb RAX: ffffffffffffffda RBX: 00007f2d4e576240 RCX: 00007f2d4e385d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280 RBP: 00007f2d4e401aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f2d4e576240 R15: 00007fff4ef8c148 INFO: task syz.6.2574:20732 blocked for more than 145 seconds. Tainted: G W 6.1.121-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.2574 state:D stack:28552 pid:20732 ppid:19592 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6693 rwsem_down_read_slowpath kernel/locking/rwsem.c:1094 [inline] __down_read_common kernel/locking/rwsem.c:1261 [inline] __down_read kernel/locking/rwsem.c:1274 [inline] down_read+0x6ff/0xa30 kernel/locking/rwsem.c:1522 inode_lock_shared include/linux/fs.h:768 [inline] lookup_slow+0x45/0x70 fs/namei.c:1706 walk_component fs/namei.c:1998 [inline] link_path_walk+0x9d6/0xee0 fs/namei.c:2325 path_parentat fs/namei.c:2526 [inline] __filename_parentat+0x25e/0x6e0 fs/namei.c:2550 filename_parentat fs/namei.c:2568 [inline] do_rmdir+0x127/0x590 fs/namei.c:4219 __do_sys_rmdir fs/namei.c:4271 [inline] __se_sys_rmdir fs/namei.c:4269 [inline] __x64_sys_rmdir+0x45/0x50 fs/namei.c:4269 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f2d4e385d29 RSP: 002b:00007f2d4f199038 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007f2d4e576400 RCX: 00007f2d4e385d29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 RBP: 00007f2d4e401aa8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f2d4e576400 R15: 00007fff4ef8c148 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d32b250 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x34/0xde0 kernel/rcu/tasks.h:543 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d32ba70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x34/0xde0 kernel/rcu/tasks.h:543 1 lock held by khungtaskd/28: #0: ffffffff8d32b080 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8d32b080 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8d32b080 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6510 2 locks held by getty/4013: #0: ffff888030e09098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc9000325e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198 1 lock held by syz-executor/19598: 7 locks held by syz.6.2574/20714: 1 lock held by syz.6.2574/20721: #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1706 1 lock held by syz.6.2574/20723: #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: open_last_lookups fs/namei.c:3549 [inline] #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: path_openat+0x7a7/0x2e60 fs/namei.c:3780 1 lock held by syz.6.2574/20727: #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1706 1 lock held by syz.6.2574/20732: #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff88807076c188 (&type->i_mutex_dir_key#28){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1706 1 lock held by sed/22858: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Tainted: G W 6.1.121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ae/0x3f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xf88/0xfd0 kernel/hung_task.c:377 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 19598 Comm: syz-executor Tainted: G W 6.1.121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:cmpxchg_double_slab+0x125/0x310 mm/slub.c:552 Code: 02 00 00 0f 84 8c 00 00 00 fb e9 86 00 00 00 41 8d 46 20 a8 0f 0f 85 60 01 00 00 4c 89 f9 4c 89 e2 4c 89 e8 f0 49 0f c7 4e 20 01 74 67 eb 61 49 8b 46 08 a8 01 0f 85 73 01 00 00 0f 1f 44 00 RSP: 0018:ffffc900031f7920 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff888055135280 RCX: 00000000800c000b RDX: 00000000000c000c RSI: ffffea0001544d40 RDI: ffff88801a67d280 RBP: 00000000800c000b R08: ffff888055135280 R09: 00000000800c000b R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000000c000c R13: 0000000000000000 R14: ffffea0001544d40 R15: 00000000800c000b FS: 00005555620d9500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7754847440 CR3: 000000007cf4c000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __slab_free+0x9c/0x280 mm/slub.c:3520 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] __kmem_cache_alloc_node+0x137/0x260 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:935 [inline] __kmalloc+0xa1/0x230 mm/slab_common.c:949 kmalloc include/linux/slab.h:568 [inline] tomoyo_realpath_from_path+0xcb/0x5d0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x21f/0x7f0 security/tomoyo/file.c:723 security_file_ioctl+0x6d/0xa0 security/security.c:1568 __do_sys_ioctl fs/ioctl.c:864 [inline] __se_sys_ioctl+0x47/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7efca2d8592b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007ffe6c2c1da0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000133d RCX: 00007efca2d8592b RDX: 00007ffe6c2c1e18 RSI: 0000000040086602 RDI: 0000000000000005 RBP: 00007ffe6c2c1eb0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe6c2c2f30 R13: 00007efca2e01894 R14: 00005555620d94a8 R15: 0000000000000005