INFO: task syz.1.109:6232 blocked for more than 143 seconds. Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.109 state:D stack:27424 pid:6232 tgid:6230 ppid:5434 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:815 [inline] chmod_common+0x1bb/0x4c0 fs/open.c:647 do_fchmodat fs/open.c:701 [inline] __do_sys_fchmodat fs/open.c:720 [inline] __se_sys_fchmodat fs/open.c:717 [inline] __x64_sys_fchmodat+0x11d/0x1c0 fs/open.c:717 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f17ae97dff9 RSP: 002b:00007f17ae3de038 EFLAGS: 00000246 ORIG_RAX: 000000000000010c RAX: ffffffffffffffda RBX: 00007f17aeb36058 RCX: 00007f17ae97dff9 RDX: 00000000fffffe13 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007f17ae9f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f17aeb36058 R15: 00007ffd2262b6e8 INFO: task syz.1.109:6233 blocked for more than 144 seconds. Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.109 state:D stack:27424 pid:6233 tgid:6230 ppid:5434 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write_nested+0x1e0/0x220 kernel/locking/rwsem.c:1694 inode_lock_nested include/linux/fs.h:850 [inline] filename_create+0x260/0x540 fs/namei.c:4026 do_mknodat+0x18b/0x5b0 fs/namei.c:4172 __do_sys_mknodat fs/namei.c:4213 [inline] __se_sys_mknodat fs/namei.c:4210 [inline] __x64_sys_mknodat+0xa7/0xc0 fs/namei.c:4210 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f17ae97dff9 RSP: 002b:00007f17ae3bd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000103 RAX: ffffffffffffffda RBX: 00007f17aeb36130 RCX: 00007f17ae97dff9 RDX: b0a54e68b1cd2fdb RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007f17ae9f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000103 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f17aeb36130 R15: 00007ffd2262b6e8 INFO: task syz.1.109:6235 blocked for more than 144 seconds. Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.109 state:D stack:27320 pid:6235 tgid:6230 ppid:5434 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:815 [inline] open_last_lookups fs/namei.c:3691 [inline] path_openat+0x89a/0x3590 fs/namei.c:3930 do_filp_open+0x235/0x490 fs/namei.c:3960 do_sys_openat2+0x13e/0x1d0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f17ae97dff9 RSP: 002b:00007f17ae39c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f17aeb36208 RCX: 00007f17ae97dff9 RDX: 0000000000000040 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f17ae9f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f17aeb36208 R15: 00007ffd2262b6e8 INFO: task syz.1.109:6238 blocked for more than 144 seconds. Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.109 state:D stack:23552 pid:6238 tgid:6230 ppid:5434 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5315 [inline] __schedule+0x1843/0x4ae0 kernel/sched/core.c:6675 __schedule_loop kernel/sched/core.c:6752 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6767 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6824 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d7/0x220 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:815 [inline] open_last_lookups fs/namei.c:3691 [inline] path_openat+0x89a/0x3590 fs/namei.c:3930 do_filp_open+0x235/0x490 fs/namei.c:3960 do_sys_openat2+0x13e/0x1d0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f17ae97dff9 RSP: 002b:00007f17ae37b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f17aeb362e0 RCX: 00007f17ae97dff9 RDX: 0000000000125440 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f17ae9f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f17aeb362e0 R15: 00007ffd2262b6e8 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937de0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6720 2 locks held by getty/4970: #0: ffff8880325620a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 1 lock held by syz.1.109/6231: 2 locks held by syz.1.109/6232: #0: ffff888029a60420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: chmod_common+0x1bb/0x4c0 fs/open.c:647 2 locks held by syz.1.109/6233: #0: ffff888029a60420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888060130180 (&type->i_mutex_dir_key#23/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:850 [inline] #1: ffff888060130180 (&type->i_mutex_dir_key#23/1){+.+.}-{3:3}, at: filename_create+0x260/0x540 fs/namei.c:4026 2 locks held by syz.1.109/6235: #0: ffff888029a60420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: open_last_lookups fs/namei.c:3691 [inline] #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: path_openat+0x89a/0x3590 fs/namei.c:3930 2 locks held by syz.1.109/6238: #0: ffff888029a60420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: open_last_lookups fs/namei.c:3691 [inline] #1: ffff888060130180 (&type->i_mutex_dir_key#23){++++}-{3:3}, at: path_openat+0x89a/0x3590 fs/namei.c:3930 1 lock held by syz-executor/7161: #0: ffff8880370ea0e0 (&type->s_umount_key#87){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff8880370ea0e0 (&type->s_umount_key#87){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff8880370ea0e0 (&type->s_umount_key#87){++++}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505 1 lock held by syz.4.394/8081: #0: ffffffff8f17c0c8 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x54/0x340 drivers/char/misc.c:129 2 locks held by syz.1.396/8079: 6 locks held by syz.2.397/8085: 1 lock held by syz.2.397/8086: #0: ffffffff8f17c0c8 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x54/0x340 drivers/char/misc.c:129 1 lock held by syz.2.397/8089: #0: ffffffff8f17c0c8 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x54/0x340 drivers/char/misc.c:129 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 4662 Comm: klogd Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:safesetid_security_capable+0x0/0x1d0 security/safesetid/lsm.c:95 Code: 5d fe ff ff 48 8b 7c 24 10 e8 1c 6a 89 fd e9 4e fe ff ff 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 41 57 41 56 41 54 53 89 cd 41 89 d4 49 89 fe e8 37 RSP: 0018:ffffc900034ffce0 EFLAGS: 00000293 RAX: ffffffff8468d04e RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000022 RSI: ffffffff8e7de060 RDI: ffff88802d040700 RBP: ffff88802d040700 R08: ffffffff8468ce8f R09: 0000000000000000 R10: ffffc900034ffdf0 R11: fffff5200069ffc9 R12: ffffffff8e7de060 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000022 FS: 00007f8173086380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055556f0a65c8 CR3: 000000007de76000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: security_capable+0xd3/0x2d0 security/security.c:1142 ns_capable_common kernel/capability.c:362 [inline] ns_capable kernel/capability.c:383 [inline] capable+0x6e/0xe0 kernel/capability.c:436 check_syslog_permissions kernel/printk/printk.c:648 [inline] do_syslog+0x12f/0x810 kernel/printk/printk.c:1750 __do_sys_syslog kernel/printk/printk.c:1858 [inline] __se_sys_syslog kernel/printk/printk.c:1856 [inline] __x64_sys_syslog+0x7c/0x90 kernel/printk/printk.c:1856 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f81731e7fa7 Code: 73 01 c3 48 8b 0d 81 ce 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 67 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 51 ce 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffc8e445958 EFLAGS: 00000206 ORIG_RAX: 0000000000000067 RAX: ffffffffffffffda RBX: 00007f81733864a0 RCX: 00007f81731e7fa7 RDX: 00000000000003ff RSI: 00007f81733864a0 RDI: 0000000000000002 RBP: 0000000000000000 R08: 0000000000000007 R09: 78a1d8ec2a65a72f R10: 0000000000004000 R11: 0000000000000206 R12: 00007f81733864a0 R13: 00007f8173376212 R14: 00007f81733866d2 R15: 00007f81733866d2