INFO: task syz-executor.0:12692 blocked for more than 143 seconds. Not tainted 5.10.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:29080 pid:12692 ppid: 8475 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4327 [inline] __schedule+0x90c/0x21a0 kernel/sched/core.c:5078 schedule+0xcf/0x270 kernel/sched/core.c:5157 rwsem_down_write_slowpath+0x7e5/0x1200 kernel/locking/rwsem.c:1106 __down_write_common kernel/locking/rwsem.c:1261 [inline] __down_write_common kernel/locking/rwsem.c:1258 [inline] __down_write kernel/locking/rwsem.c:1270 [inline] down_write+0x132/0x150 kernel/locking/rwsem.c:1407 inode_lock include/linux/fs.h:773 [inline] open_last_lookups fs/namei.c:3177 [inline] path_openat+0x907/0x2730 fs/namei.c:3368 do_filp_open+0x17e/0x3c0 fs/namei.c:3398 do_sys_openat2+0x16d/0x420 fs/open.c:1172 do_sys_open fs/open.c:1188 [inline] __do_sys_creat fs/open.c:1262 [inline] __se_sys_creat fs/open.c:1256 [inline] __x64_sys_creat+0xc9/0x120 fs/open.c:1256 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e229 RSP: 002b:00007f6e010c9c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 000000000045e229 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080 RBP: 000000000119c060 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034 R13: 00007ffc3af479ff R14: 00007f6e010ca9c0 R15: 000000000119c034 Showing all locks held in the system: 1 lock held by khungtaskd/1657: #0: ffffffff8b3637e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6254 1 lock held by in:imklog/8164: #0: ffff88801b7a45f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:949 3 locks held by syz-executor.0/12688: 2 locks held by syz-executor.0/12692: #0: ffff888069e0a460 (sb_writers#15){.+.+}-{0:0}, at: open_last_lookups fs/namei.c:3167 [inline] #0: ffff888069e0a460 (sb_writers#15){.+.+}-{0:0}, at: path_openat+0x2462/0x2730 fs/namei.c:3368 #1: ffff888064928150 (&type->i_mutex_dir_key#9){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:773 [inline] #1: ffff888064928150 (&type->i_mutex_dir_key#9){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3177 [inline] #1: ffff888064928150 (&type->i_mutex_dir_key#9){+.+.}-{3:3}, at: path_openat+0x907/0x2730 fs/namei.c:3368 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1657 Comm: khungtaskd Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 nmi_cpu_backtrace.cold+0x44/0xd7 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline] watchdog+0xd43/0xfa0 kernel/hung_task.c:294 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8165 Comm: rs:main Q:Reg Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__lock_acquire+0xd8b/0x5500 kernel/locking/lockdep.c:4702 Code: 01 00 00 00 0f 86 8e 00 00 00 89 05 ef 5b 1e 0d e9 83 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 80 3c 02 00 <0f> 85 72 30 00 00 49 81 3e c0 f2 4b 8e 0f 84 44 f3 ff ff 41 83 fc RSP: 0018:ffffc9000b9b72d0 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 1ffffffff1e3177c RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffff88801a8c0000 R08: 0000000000000001 R09: 0000000000000001 R10: fffffbfff19de1c1 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8f18bbe0 R15: 0000000000000000 FS: 00007f71b38b1700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f93020f1000 CR3: 0000000013c40000 CR4: 0000000000350ef0 Call Trace: lock_acquire kernel/locking/lockdep.c:5437 [inline] lock_acquire+0x29d/0x740 kernel/locking/lockdep.c:5402 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:159 __debug_check_no_obj_freed lib/debugobjects.c:975 [inline] debug_check_no_obj_freed+0xc7/0x420 lib/debugobjects.c:1018 free_pages_prepare mm/page_alloc.c:1272 [inline] free_pcp_prepare+0x297/0x400 mm/page_alloc.c:1302 free_unref_page_prepare mm/page_alloc.c:3195 [inline] free_unref_page+0x12/0x1b0 mm/page_alloc.c:3243 unfreeze_partials+0x16c/0x1b0 mm/slub.c:2360 put_cpu_partial+0x129/0x200 mm/slub.c:2396 qlink_free mm/kasan/quarantine.c:146 [inline] qlist_free_all+0x5a/0xc0 mm/kasan/quarantine.c:165 quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272 ____kasan_kmalloc.constprop.0+0x98/0xa0 mm/kasan/common.c:412 kasan_slab_alloc include/linux/kasan.h:205 [inline] slab_post_alloc_hook mm/slab.h:512 [inline] slab_alloc_node mm/slub.c:2892 [inline] slab_alloc mm/slub.c:2900 [inline] kmem_cache_alloc+0x1c6/0x440 mm/slub.c:2905 kmem_cache_zalloc include/linux/slab.h:672 [inline] alloc_buffer_head+0x20/0x140 fs/buffer.c:3336 alloc_page_buffers+0x134/0x660 fs/buffer.c:856 create_empty_buffers+0x2c/0x820 fs/buffer.c:1561 ext4_block_write_begin+0xd3b/0x1170 fs/ext4/inode.c:1058 ext4_da_write_begin+0x3e4/0x1150 fs/ext4/inode.c:3016 generic_perform_write+0x20a/0x4f0 mm/filemap.c:3408 ext4_buffered_write_iter+0x244/0x4d0 fs/ext4/file.c:270 ext4_file_write_iter+0x422/0x1400 fs/ext4/file.c:664 call_write_iter include/linux/fs.h:1901 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x791/0xa30 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f71b62f51cd Code: c2 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 f7 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f71b38b0590 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f71a80291a0 RCX: 00007f71b62f51cd RDX: 0000000000000527 RSI: 00007f71a80291a0 RDI: 000000000000000a RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f71b544f297 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f71a8028f20 R13: 00007f71b38b05b0 R14: 000055bd81d9f7c0 R15: 0000000000000527