block nbd0: Device being setup by another task block nbd0: shutting down sockets INFO: task syz-executor.2:13554 blocked for more than 140 seconds. Not tainted 4.14.258-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D28776 13554 7996 0x00000004 Call Trace: context_switch kernel/sched/core.c:2811 [inline] __schedule+0x88b/0x1de0 kernel/sched/core.c:3387 schedule+0x8d/0x1b0 kernel/sched/core.c:3431 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3489 __mutex_lock_common kernel/locking/mutex.c:833 [inline] __mutex_lock+0x669/0x1310 kernel/locking/mutex.c:893 blkdev_put+0x27/0x4c0 fs/block_dev.c:1826 blkdev_close+0x86/0xb0 fs/block_dev.c:1875 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fc1ba677e99 RSP: 002b:00007fc1b8fed168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00007fc1ba78af60 RCX: 00007fc1ba677e99 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007fc1ba6d1ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe17b5113f R14: 00007fc1b8fed300 R15: 0000000000022000 INFO: task systemd-udevd:13584 blocked for more than 140 seconds. Not tainted 4.14.258-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. systemd-udevd D26944 13584 4628 0x00000100 Call Trace: context_switch kernel/sched/core.c:2811 [inline] __schedule+0x88b/0x1de0 kernel/sched/core.c:3387 schedule+0x8d/0x1b0 kernel/sched/core.c:3431 io_schedule+0xb5/0x120 kernel/sched/core.c:5035 wait_on_page_bit_common mm/filemap.c:1025 [inline] wait_on_page_bit+0x241/0x320 mm/filemap.c:1058 wait_on_page_locked include/linux/pagemap.h:527 [inline] wait_on_page_read mm/filemap.c:2680 [inline] do_read_cache_page+0x55f/0xc10 mm/filemap.c:2719 read_mapping_page include/linux/pagemap.h:398 [inline] read_dev_sector+0xbd/0x3c0 block/partition-generic.c:659 read_part_sector block/partitions/check.h:38 [inline] adfspart_check_ICS+0xf6/0xc00 block/partitions/acorn.c:366 check_partition+0x330/0x610 block/partitions/check.c:167 rescan_partitions+0x192/0x800 block/partition-generic.c:523 __blkdev_get+0xd7f/0x1090 fs/block_dev.c:1541 blkdev_get+0x88/0x890 fs/block_dev.c:1611 blkdev_open+0x1cc/0x250 fs/block_dev.c:1772 do_dentry_open+0x44b/0xec0 fs/open.c:777 vfs_open+0x105/0x220 fs/open.c:888 do_last fs/namei.c:3428 [inline] path_openat+0x628/0x2970 fs/namei.c:3569 do_filp_open+0x179/0x3c0 fs/namei.c:3603 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fd8bb1f8840 RSP: 002b:00007fff06246908 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000555ab8fb9a10 RCX: 00007fd8bb1f8840 RDX: 0000555ab7281fe3 RSI: 00000000000a0800 RDI: 0000555ab8fbb1d0 RBP: 00007fff06246a80 R08: 0000555ab7281670 R09: 0000000000000010 R10: 0000555ab7281d0c R11: 0000000000000246 R12: 00007fff062469d0 R13: 0000555ab8fb9b10 R14: 0000000000000003 R15: 000000000000000e Showing all locks held in the system: 1 lock held by khungtaskd/1529: #0: (tasklist_lock){.+.+}, at: [] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548 1 lock held by syz-executor.2/13554: #0: (&bdev->bd_mutex){+.+.}, at: [] blkdev_put+0x27/0x4c0 fs/block_dev.c:1826 1 lock held by systemd-udevd/13584: #0: (&bdev->bd_mutex){+.+.}, at: [] __blkdev_get+0x191/0x1090 fs/block_dev.c:1455 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1529 Comm: khungtaskd Not tainted 4.14.258-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x13a/0x180 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline] watchdog+0x5b9/0xb40 kernel/hung_task.c:274 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 7687 Comm: rs:main Q:Reg Not tainted 4.14.258-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880a6a184c0 task.stack: ffff88808fe60000 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:60 RSP: 0018:ffff88808fe67710 EFLAGS: 00000246 RAX: 0000000000000003 RBX: ffffffff88f45048 RCX: 000000000000616b RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88f45040 RBP: 0000000000000000 R08: ffffffff8b9ce618 R09: 00000000000404c4 R10: ffff8880a6a18dc0 R11: ffff8880a6a184c0 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f84fbe92700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f414469d000 CR3: 0000000093418000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: map_id_up+0x9a/0x180 kernel/user_namespace.c:260 from_kuid+0x75/0xa0 kernel/user_namespace.c:308 i_uid_read include/linux/fs.h:1462 [inline] ext4_do_update_inode fs/ext4/inode.c:5153 [inline] ext4_mark_iloc_dirty+0x5c6/0x26a0 fs/ext4/inode.c:5783 ext4_mark_inode_dirty+0x1d3/0x7a0 fs/ext4/inode.c:5977 ext4_dirty_inode+0x6c/0x90 fs/ext4/inode.c:6008 __mark_inode_dirty+0x11e/0xf40 fs/fs-writeback.c:2131 mark_inode_dirty include/linux/fs.h:2026 [inline] generic_write_end+0x25e/0x360 fs/buffer.c:2229 ext4_da_write_end+0x50c/0x8e0 fs/ext4/inode.c:3208 generic_perform_write+0x268/0x420 mm/filemap.c:3066 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180 ext4_file_write_iter+0x276/0xd20 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f84fe8d61cd RSP: 002b:00007f84fbe91590 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f84f00212b0 RCX: 00007f84fe8d61cd RDX: 0000000000000453 RSI: 00007f84f00212b0 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f84f0021030 R13: 00007f84fbe915b0 R14: 000055dc6f589360 R15: 0000000000000453 Code: ff ff 48 89 df e8 51 af 29 00 e9 9f fe ff ff 4c 89 e7 e8 44 af 29 00 e9 2c fe ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <65> 48 8b 04 25 c0 7f 02 00 48 85 c0 74 1a 65 8b 15 eb 43 ad 7e ---------------- Code disassembly (best guess), 1 bytes skipped: 0: ff 48 89 decl -0x77(%rax) 3: df e8 fucomip %st(0),%st 5: 51 push %rcx 6: af scas %es:(%rdi),%eax 7: 29 00 sub %eax,(%rax) 9: e9 9f fe ff ff jmpq 0xfffffead e: 4c 89 e7 mov %r12,%rdi 11: e8 44 af 29 00 callq 0x29af5a 16: e9 2c fe ff ff jmpq 0xfffffe47 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 27: 90 nop 28: 90 nop 29: 90 nop * 2a: 65 48 8b 04 25 c0 7f mov %gs:0x27fc0,%rax <-- trapping instruction 31: 02 00 33: 48 85 c0 test %rax,%rax 36: 74 1a je 0x52 38: 65 8b 15 eb 43 ad 7e mov %gs:0x7ead43eb(%rip),%edx # 0x7ead442a