block nbd0: Device being setup by another task INFO: task syz-executor0:14710 blocked for more than 140 seconds. Not tainted 5.0.0-rc2+ #30 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D20440 14710 1 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3472 schedule+0xfe/0x350 kernel/sched/core.c:3516 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:280 [inline] rwsem_down_read_failed+0x360/0x6d0 kernel/locking/rwsem-xadd.c:297 call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x9b/0x120 kernel/locking/rwsem.c:26 inode_lock_shared include/linux/fs.h:767 [inline] lookup_slow+0x4a/0x80 fs/namei.c:1687 walk_component+0x8e5/0x26a0 fs/namei.c:1810 link_path_walk.part.0+0xa57/0x1550 fs/namei.c:2141 link_path_walk fs/namei.c:2072 [inline] path_openat+0x222/0x5650 fs/namei.c:3533 do_filp_open+0x26f/0x370 fs/namei.c:3564 do_sys_open+0x59a/0x7c0 fs/open.c:1063 __do_sys_open fs/open.c:1081 [inline] __se_sys_open fs/open.c:1076 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1076 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4560c0 Code: Bad RIP value. RSP: 002b:00007ffe57acb2f0 EFLAGS: 00000206 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004560c0 RDX: 0000000000000000 RSI: 0000000000090800 RDI: 00000000004bcbd6 RBP: 00000000000004b6 R08: 0000000000000001 R09: 0000000000fe0940 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000010 R13: 00000000000b1cca R14: 0000000000000188 R15: 0000000000000000 INFO: task syz-executor0:24500 blocked for more than 140 seconds. Not tainted 5.0.0-rc2+ #30 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D24040 24500 14710 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3472 schedule+0xfe/0x350 kernel/sched/core.c:3516 __rwsem_down_write_failed_common+0xa4d/0x1620 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:757 [inline] do_last fs/namei.c:3321 [inline] path_openat+0x1967/0x5650 fs/namei.c:3534 do_filp_open+0x26f/0x370 fs/namei.c:3564 do_sys_open+0x59a/0x7c0 fs/open.c:1063 __do_sys_openat fs/open.c:1090 [inline] __se_sys_openat fs/open.c:1084 [inline] __x64_sys_openat+0x9d/0x100 fs/open.c:1084 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458099 Code: Bad RIP value. RSP: 002b:00007f2a0bfffc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000458099 RDX: 0000000000002761 RSI: 0000000020000480 RDI: ffffffffffffffff RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2a0c0006d4 R13: 00000000004c408f R14: 00000000004d72a0 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/1035: #0: 0000000030c7a6f6 (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4389 1 lock held by rsyslogd/7549: #0: 00000000614ef354 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795 2 locks held by getty/7640: #0: 00000000c0558bb9 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000d9b4adf3 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7641: #0: 0000000032836be2 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000f6426a66 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7642: #0: 00000000d96bdf7f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000003ba50518 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7643: #0: 0000000022589f71 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000004ca3f81a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7644: #0: 00000000c5d25358 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000002f3369c4 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7645: #0: 00000000eb6f9503 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000027838e31 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7646: #0: 00000000013afbd7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000006f2a7b28 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 1 lock held by syz-executor0/14710: #0: 00000000964b7e5f (&sb->s_type->i_mutex_key#20){++++}, at: inode_lock_shared include/linux/fs.h:767 [inline] #0: 00000000964b7e5f (&sb->s_type->i_mutex_key#20){++++}, at: lookup_slow+0x4a/0x80 fs/namei.c:1687 3 locks held by syz-executor0/24499: 2 locks held by syz-executor0/24500: #0: 000000007449d70b (sb_writers#12){.+.+}, at: sb_start_write include/linux/fs.h:1602 [inline] #0: 000000007449d70b (sb_writers#12){.+.+}, at: mnt_want_write+0x3f/0xc0 fs/namespace.c:357 #1: 00000000964b7e5f (&sb->s_type->i_mutex_key#20){++++}, at: inode_lock include/linux/fs.h:757 [inline] #1: 00000000964b7e5f (&sb->s_type->i_mutex_key#20){++++}, at: do_last fs/namei.c:3321 [inline] #1: 00000000964b7e5f (&sb->s_type->i_mutex_key#20){++++}, at: path_openat+0x1967/0x5650 fs/namei.c:3534 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1035 Comm: khungtaskd Not tainted 5.0.0-rc2+ #30 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+0x1db/0x2d0 lib/dump_stack.c:113 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1be/0x236 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:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0xbbb/0x1170 kernel/hung_task.c:287 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 21 Comm: kworker/u4:1 Not tainted 5.0.0-rc2+ #30 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_purge_orig RIP: 0010:find_held_lock+0xef/0x120 kernel/locking/lockdep.c:3466 Code: e4 48 b8 00 00 00 00 00 fc ff df 48 8b 55 d0 48 c1 ea 03 0f b6 04 02 84 c0 74 04 3c 03 7e 19 48 8b 45 d0 44 89 38 48 83 c4 08 <4c> 89 e0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 8b 7d d0 e8 3a 8d 62 RSP: 0018:ffff8880a95b7660 EFLAGS: 00000096 RAX: ffff8880a95b7700 RBX: 0000000000000003 RCX: dffffc0000000000 RDX: 1ffff110152b6ee0 RSI: 0000000000000000 RDI: ffff8880a95a6e60 RBP: ffff8880a95b7688 R08: ffff8880a95a6580 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000003 R12: ffff8880a95a6e50 R13: ffffffff87d3e886 R14: ffff888081b93690 R15: 0000000000000002 FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000045806f CR3: 000000008d429000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_release kernel/locking/lockdep.c:3599 [inline] lock_release+0x28a/0xc40 kernel/locking/lockdep.c:3860 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:174 [inline] _raw_spin_unlock_bh+0x1b/0x40 kernel/locking/spinlock.c:200 spin_unlock_bh include/linux/spinlock.h:374 [inline] batadv_purge_orig_ref+0xcc6/0x13c0 net/batman-adv/originator.c:1376 batadv_purge_orig+0x1b/0x70 net/batman-adv/originator.c:1389 process_one_work+0xd0c/0x1ce0 kernel/workqueue.c:2153 worker_thread+0x143/0x14a0 kernel/workqueue.c:2296 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352