syz-executor5(12258): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(12258): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(12258): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(12258): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(12258): getblk(): executed=9 bh_count=0 bh_state=0 INFO: task syz-executor5:12264 blocked for more than 140 seconds. Not tainted 4.19.0-rc8-next-20181019+ #98 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor5 D24240 12264 10970 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x8cf/0x21d0 kernel/sched/core.c:3480 schedule+0xfe/0x460 kernel/sched/core.c:3524 __rwsem_down_write_failed_common+0xc9a/0x15e0 kernel/locking/rwsem-xadd.c:577 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write_nested+0xa9/0x130 kernel/locking/rwsem.c:195 inode_lock_nested include/linux/fs.h:804 [inline] filename_create+0x1b2/0x5b0 fs/namei.c:3635 user_path_create fs/namei.c:3693 [inline] do_mknodat+0x1c2/0x530 fs/namei.c:3755 __do_sys_mknod fs/namei.c:3795 [inline] __se_sys_mknod fs/namei.c:3793 [inline] __x64_sys_mknod+0x7b/0xb0 fs/namei.c:3793 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcab6da2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000085 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000020000440 RBP: 000000000072bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcab6da36d4 R13: 00000000004c2807 R14: 00000000004d3b40 R15: 00000000ffffffff syz-executor5(12258): getblk(): executed=9 bh_count=0 bh_state=0 INFO: task syz-executor5:12267 blocked for more than 140 seconds. Not tainted 4.19.0-rc8-next-20181019+ #98 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor5 D25304 12267 10970 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x8cf/0x21d0 kernel/sched/core.c:3480 schedule+0xfe/0x460 kernel/sched/core.c:3524 __rwsem_down_write_failed_common+0xc9a/0x15e0 kernel/locking/rwsem-xadd.c:577 rwsem_down_write_failed+0xe/0x10 kernel/locking/rwsem-xadd.c:606 call_rwsem_down_write_failed+0x17/0x30 arch/x86/lib/rwsem.S:117 __down_write arch/x86/include/asm/rwsem.h:142 [inline] down_write+0xa5/0x130 kernel/locking/rwsem.c:72 inode_lock include/linux/fs.h:764 [inline] vfs_setxattr+0x96/0x100 fs/xattr.c:218 setxattr+0x2ea/0x450 fs/xattr.c:450 path_setxattr+0x1e3/0x230 fs/xattr.c:469 __do_sys_setxattr fs/xattr.c:484 [inline] __se_sys_setxattr fs/xattr.c:480 [inline] __x64_sys_setxattr+0xc4/0x150 fs/xattr.c:480 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: Bad RIP value. RSP: 002b:00007fcab6d81c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457569 RDX: 0000000020000500 RSI: 0000000020000400 RDI: 0000000020000380 RBP: 000000000072c040 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000044 R11: 0000000000000246 R12: 00007fcab6d826d4 R13: 00000000004bddda R14: 00000000004d7158 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/928: #0: 000000006a4430d7 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4379 1 lock held by rsyslogd/5493: #0: 00000000f8165462 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by getty/5583: #0: 000000000ddef5f4 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000038c372e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/5584: #0: 000000005a211150 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000307a6363 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/5585: #0: 00000000b22dad6e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000001748f030 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/5586: #0: 00000000524f6b76 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000004d874d4f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/5587: #0: 000000008f2dc794 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 0000000034e1b6bc (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/5588: #0: 00000000377a20c7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000005f668f00 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/5589: #0: 00000000bd3a4cfb (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000d94611ee (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 1 lock held by syz-executor4/10389: 4 locks held by syz-executor5/12258: 2 locks held by syz-executor5/12264: #0: 0000000080293eee (sb_writers#22){.+.+}, at: sb_start_write include/linux/fs.h:1602 [inline] #0: 0000000080293eee (sb_writers#22){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:359 #1: 00000000e4463ab4 (&sb->s_type->i_mutex_key#29/1){+.+.}, at: inode_lock_nested include/linux/fs.h:804 [inline] #1: 00000000e4463ab4 (&sb->s_type->i_mutex_key#29/1){+.+.}, at: filename_create+0x1b2/0x5b0 fs/namei.c:3635 2 locks held by syz-executor5/12267: #0: 0000000080293eee (sb_writers#22){.+.+}, at: sb_start_write include/linux/fs.h:1602 [inline] #0: 0000000080293eee (sb_writers#22){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:359 #1: 00000000e4463ab4 (&sb->s_type->i_mutex_key#29){++++}, at: inode_lock include/linux/fs.h:764 [inline] #1: 00000000e4463ab4 (&sb->s_type->i_mutex_key#29){++++}, at: vfs_setxattr+0x96/0x100 fs/xattr.c:218 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 928 Comm: khungtaskd Not tainted 4.19.0-rc8-next-20181019+ #98 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 nmi_cpu_backtrace.cold.2+0x5c/0xa1 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1e8/0x22a lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:144 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:204 [inline] watchdog+0xb39/0x1050 kernel/hung_task.c:265 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 1 to CPUs 0: INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.444 msecs NMI backtrace for cpu 0 CPU: 0 PID: 12258 Comm: syz-executor5 Not tainted 4.19.0-rc8-next-20181019+ #98 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__find_get_block+0x3d1/0xf10 fs/buffer.c:1320 Code: 58 0a 00 00 49 8b 7f 10 e8 ac 5d c3 ff e8 57 f7 9d ff 48 b8 00 00 00 00 00 fc ff df 48 03 85 98 fe ff ff 48 c7 00 00 00 00 00 <48> c7 40 08 00 00 00 00 48 c7 40 10 00 00 00 00 48 c7 40 18 00 00 RSP: 0018:ffff8801825a6c48 EFLAGS: 00000282 RAX: ffffed00304b4d92 RBX: ffff8801c527fd58 RCX: ffffc90003e2d000 RDX: 0000000000040000 RSI: ffffffff81e13c79 RDI: ffffed00304b4d7e RBP: ffff8801825a6dd8 R08: ffff880185ffc500 R09: ffffed003b5c5b4f R10: 0000000000000004 R11: ffff8801dae2da7b R12: 0000000000000000 R13: dffffc0000000000 R14: 000000000000000f R15: 0000000000000000 FS: 00007fcab6dc4700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30023000 CR3: 00000001be287000 CR4: 00000000001406f0 Call Trace: __getblk_slow fs/buffer.c:1058 [inline] __getblk_gfp+0x3d3/0x1030 fs/buffer.c:1351 __bread_gfp+0x2d/0x310 fs/buffer.c:1385 sb_bread include/linux/buffer_head.h:307 [inline] fat__get_entry+0x5a6/0xa40 fs/fat/dir.c:101 fat_get_entry fs/fat/dir.c:129 [inline] fat_search_long+0x33b/0x1570 fs/fat/dir.c:479 vfat_find+0x16d/0x1a0 fs/fat/namei_vfat.c:697 vfat_lookup+0x107/0x640 fs/fat/namei_vfat.c:711 lookup_open+0x72e/0x1b90 fs/namei.c:3213 do_last fs/namei.c:3324 [inline] path_openat+0x15e4/0x5150 fs/namei.c:3534 do_filp_open+0x255/0x380 fs/namei.c:3564 do_sys_open+0x568/0x700 fs/open.c:1063 ksys_open include/linux/syscalls.h:1292 [inline] __do_sys_creat fs/open.c:1121 [inline] __se_sys_creat fs/open.c:1119 [inline] __x64_sys_creat+0x61/0x80 fs/open.c:1119 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcab6dc3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 0000000000457569 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcab6dc46d4 R13: 00000000004bdb2f R14: 00000000004cc688 R15: 00000000ffffffff