INFO: task syz-executor.2:27433 blocked for more than 143 seconds. Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24560 pid:27433 tgid:27433 ppid:5091 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x6a3/0xd60 kernel/locking/mutex.c:747 blkdev_put+0xff/0x770 block/bdev.c:928 bdev_release+0x57/0x70 block/bdev.c:952 blkdev_release+0x3b/0x40 block/fops.c:616 __fput+0x3cc/0xa10 fs/file_table.c:394 __do_sys_close fs/open.c:1590 [inline] __se_sys_close fs/open.c:1575 [inline] __x64_sys_close+0x7e/0x100 fs/open.c:1575 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f8eed87b9da RSP: 002b:00007ffe560d4e30 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f8eed87b9da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007f8eed99d980 R08: 0000001b31a20000 R09: 000000000000000f R10: 00000000819255f1 R11: 0000000000000293 R12: 0000000000258dcf R13: ffffffffffffffff R14: 00007f8eed400000 R15: 0000000000258a8e INFO: task syz-executor.2:27438 blocked for more than 143 seconds. Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:28816 pid:27438 tgid:27433 ppid:5091 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x6a3/0xd60 kernel/locking/mutex.c:747 blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 bdev_open_by_dev+0x79/0x140 block/bdev.c:840 disk_scan_partitions+0x1ba/0x2b0 block/genhd.c:369 blkdev_common_ioctl+0x15c5/0x2860 block/ioctl.c:558 blkdev_ioctl+0x520/0x730 block/ioctl.c:627 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f8eed87cae9 RSP: 002b:00007f8eee67e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8eed99c050 RCX: 00007f8eed87cae9 RDX: 00000000000001ff RSI: 000000000000125f RDI: 0000000000000003 RBP: 00007f8eed8c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8eed99c050 R15: 00007ffe560d4d68 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 2 locks held by getty/4810: #0: ffff88814b74d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by udevd/5090: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 2 locks held by kworker/u4:1/4253: #0: ffff8880b993c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffffc90005467d20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90005467d20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 1 lock held by syz-executor.2/27433: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xff/0x770 block/bdev.c:928 1 lock held by syz-executor.2/27438: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 1 lock held by syz-executor.2/27509: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 1 lock held by syz-executor.2/27510: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 1 lock held by syz-executor.2/27511: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 1 lock held by syz-executor.2/27579: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 1 lock held by syz-executor.2/27580: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 1 lock held by syz-executor.2/27581: #0: ffff8881413f04c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x123/0x480 block/bdev.c:786 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x310 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4493 Comm: syslogd Not tainted 6.7.0-rc1-syzkaller-00125-g7475e51b8796 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:get_task_policy+0x96/0x100 mm/mempolicy.c:178 Code: a8 ff 83 fb 40 77 6c e8 98 35 a8 ff 49 c1 e7 05 49 8d 9f 44 41 62 92 48 89 d8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 37 0f b7 1b <31> ff 89 de e8 91 38 a8 ff 85 db 49 8d 87 40 41 62 92 48 c7 c3 c0 RSP: 0018:ffffc900032bf7e0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffff88804b51d940 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000041 RBP: ffffc900032bf8f0 R08: ffffffff81e6490e R09: ffffffff81cac92d R10: 0000000000000003 R11: ffff88804b51d940 R12: 000000000000000d R13: 1ffff92000657f10 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f8ae1e8e380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561deac3bc78 CR3: 000000001fcea000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: shmem_get_pgoff_policy mm/shmem.c:2346 [inline] shmem_alloc_folio mm/shmem.c:1612 [inline] shmem_alloc_and_add_folio+0x233/0xde0 mm/shmem.c:1653 shmem_get_folio_gfp+0x7c3/0x1ee0 mm/shmem.c:2037 shmem_get_folio mm/shmem.c:2119 [inline] shmem_write_begin+0x170/0x4c0 mm/shmem.c:2702 generic_perform_write+0x31b/0x630 mm/filemap.c:3918 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2878 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f8ae1fe2bf2 Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffec466b068 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f8ae1fe2bf2 RDX: 0000000000000068 RSI: 0000562b3a057c50 RDI: 0000000000000003 RBP: 0000562b3a057c50 R08: 0000000000000001 R09: 0000000000000000 R10: 00007f8ae21813a3 R11: 0000000000000246 R12: 0000000000000068 R13: 00007f8ae1e8e300 R14: 0000000000000004 R15: 0000562b3a057a60