===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected 4.19.56 #28 Not tainted ----------------------------------------------------- syz-executor.2/26812 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: 000000003acb7a1e (&ctx->fault_pending_wqh){+.+.}, at: spin_lock include/linux/spinlock.h:329 [inline] 000000003acb7a1e (&ctx->fault_pending_wqh){+.+.}, at: userfaultfd_ctx_read fs/userfaultfd.c:1046 [inline] 000000003acb7a1e (&ctx->fault_pending_wqh){+.+.}, at: userfaultfd_read+0x394/0x18c0 fs/userfaultfd.c:1204 and this task is already holding: 00000000cd52e383 (&ctx->fd_wqh){....}, at: spin_lock_irq include/linux/spinlock.h:354 [inline] 00000000cd52e383 (&ctx->fd_wqh){....}, at: userfaultfd_ctx_read fs/userfaultfd.c:1042 [inline] 00000000cd52e383 (&ctx->fd_wqh){....}, at: userfaultfd_read+0x262/0x18c0 fs/userfaultfd.c:1204 which would create a new lock dependency: (&ctx->fd_wqh){....} -> (&ctx->fault_pending_wqh){+.+.} but this new dependency connects a SOFTIRQ-irq-safe lock: (&(&ctx->ctx_lock)->rlock){..-.} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:128 [inline] _raw_spin_lock_irq+0x60/0x80 kernel/locking/spinlock.c:160 spin_lock_irq include/linux/spinlock.h:354 [inline] free_ioctx_users+0x2d/0x490 fs/aio.c:614 percpu_ref_put_many include/linux/percpu-refcount.h:284 [inline] percpu_ref_put include/linux/percpu-refcount.h:300 [inline] percpu_ref_call_confirm_rcu lib/percpu-refcount.c:123 [inline] percpu_ref_switch_to_atomic_rcu+0x407/0x540 lib/percpu-refcount.c:158 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0xba0/0x1a30 kernel/rcu/tree.c:2881 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:869 arch_local_irq_restore arch/x86/include/asm/paravirt.h:788 [inline] lock_is_held_type+0x17e/0x210 kernel/locking/lockdep.c:3940 lock_is_held include/linux/lockdep.h:344 [inline] ___might_sleep+0x201/0x280 kernel/sched/core.c:6115 __might_sleep+0x95/0x190 kernel/sched/core.c:6103 __getblk_gfp+0x52/0x970 fs/buffer.c:1319 sb_getblk include/linux/buffer_head.h:325 [inline] __ext4_get_inode_loc+0x362/0x10d0 fs/ext4/inode.c:4567 ext4_get_inode_loc fs/ext4/inode.c:4680 [inline] ext4_reserve_inode_write+0xf0/0x260 fs/ext4/inode.c:5859 ext4_mark_inode_dirty+0x178/0x940 fs/ext4/inode.c:6011 add_dirent_to_buf+0x402/0x680 fs/ext4/namei.c:1894 ext4_add_entry+0x5cc/0xb70 fs/ext4/namei.c:2087 ext4_add_nondir+0x28/0x90 fs/ext4/namei.c:2416 ext4_symlink+0x5e8/0xbe0 fs/ext4/namei.c:3168 vfs_symlink fs/namei.c:4126 [inline] vfs_symlink+0x373/0x5c0 fs/namei.c:4112 do_symlinkat+0x22b/0x290 fs/namei.c:4153 __do_sys_symlink fs/namei.c:4172 [inline] __se_sys_symlink fs/namei.c:4170 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4170 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe to a SOFTIRQ-irq-unsafe lock: (&ctx->fault_pending_wqh){+.+.} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] handle_userfault+0x58a/0x18b0 fs/userfaultfd.c:462 shmem_getpage_gfp+0x2f53/0x3960 mm/shmem.c:1764 shmem_fault+0x233/0x760 mm/shmem.c:2032 __do_fault+0x111/0x480 mm/memory.c:3269 do_read_fault mm/memory.c:3681 [inline] do_fault mm/memory.c:3810 [inline] handle_pte_fault mm/memory.c:4041 [inline] __handle_mm_fault+0x2d78/0x3f80 mm/memory.c:4165 handle_mm_fault+0x43f/0xb30 mm/memory.c:4202 __do_page_fault+0x62a/0xe90 arch/x86/mm/fault.c:1393 do_page_fault+0x71/0x57d arch/x86/mm/fault.c:1468 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1181 copy_user_generic_unrolled+0x86/0xc0 arch/x86/lib/copy_user_64.S:65 copy_from_user include/linux/uaccess.h:147 [inline] sctp_getsockopt_local_addrs net/sctp/socket.c:5938 [inline] sctp_getsockopt net/sctp/socket.c:7480 [inline] sctp_getsockopt+0x182e/0x60f8 net/sctp/socket.c:7415 sock_common_getsockopt+0x94/0xd0 net/core/sock.c:3003 __sys_getsockopt+0x15f/0x240 net/socket.c:1938 __do_sys_getsockopt net/socket.c:1949 [inline] __se_sys_getsockopt net/socket.c:1946 [inline] __x64_sys_getsockopt+0xbe/0x150 net/socket.c:1946 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: &(&ctx->ctx_lock)->rlock --> &ctx->fd_wqh --> &ctx->fault_pending_wqh Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ctx->fault_pending_wqh); local_irq_disable(); lock(&(&ctx->ctx_lock)->rlock); lock(&ctx->fd_wqh); lock(&(&ctx->ctx_lock)->rlock); *** DEADLOCK *** 1 lock held by syz-executor.2/26812: #0: 00000000cd52e383 (&ctx->fd_wqh){....}, at: spin_lock_irq include/linux/spinlock.h:354 [inline] #0: 00000000cd52e383 (&ctx->fd_wqh){....}, at: userfaultfd_ctx_read fs/userfaultfd.c:1042 [inline] #0: 00000000cd52e383 (&ctx->fd_wqh){....}, at: userfaultfd_read+0x262/0x18c0 fs/userfaultfd.c:1204 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&(&ctx->ctx_lock)->rlock){..-.} ops: 376 { IN-SOFTIRQ-W at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:128 [inline] _raw_spin_lock_irq+0x60/0x80 kernel/locking/spinlock.c:160 spin_lock_irq include/linux/spinlock.h:354 [inline] free_ioctx_users+0x2d/0x490 fs/aio.c:614 percpu_ref_put_many include/linux/percpu-refcount.h:284 [inline] percpu_ref_put include/linux/percpu-refcount.h:300 [inline] percpu_ref_call_confirm_rcu lib/percpu-refcount.c:123 [inline] percpu_ref_switch_to_atomic_rcu+0x407/0x540 lib/percpu-refcount.c:158 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0xba0/0x1a30 kernel/rcu/tree.c:2881 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:869 arch_local_irq_restore arch/x86/include/asm/paravirt.h:788 [inline] lock_is_held_type+0x17e/0x210 kernel/locking/lockdep.c:3940 lock_is_held include/linux/lockdep.h:344 [inline] ___might_sleep+0x201/0x280 kernel/sched/core.c:6115 __might_sleep+0x95/0x190 kernel/sched/core.c:6103 __getblk_gfp+0x52/0x970 fs/buffer.c:1319 sb_getblk include/linux/buffer_head.h:325 [inline] __ext4_get_inode_loc+0x362/0x10d0 fs/ext4/inode.c:4567 ext4_get_inode_loc fs/ext4/inode.c:4680 [inline] ext4_reserve_inode_write+0xf0/0x260 fs/ext4/inode.c:5859 ext4_mark_inode_dirty+0x178/0x940 fs/ext4/inode.c:6011 add_dirent_to_buf+0x402/0x680 fs/ext4/namei.c:1894 ext4_add_entry+0x5cc/0xb70 fs/ext4/namei.c:2087 ext4_add_nondir+0x28/0x90 fs/ext4/namei.c:2416 ext4_symlink+0x5e8/0xbe0 fs/ext4/namei.c:3168 vfs_symlink fs/namei.c:4126 [inline] vfs_symlink+0x373/0x5c0 fs/namei.c:4112 do_symlinkat+0x22b/0x290 fs/namei.c:4153 __do_sys_symlink fs/namei.c:4172 [inline] __se_sys_symlink fs/namei.c:4170 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4170 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe INITIAL USE at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:128 [inline] _raw_spin_lock_irq+0x60/0x80 kernel/locking/spinlock.c:160 spin_lock_irq include/linux/spinlock.h:354 [inline] free_ioctx_users+0x2d/0x490 fs/aio.c:614 percpu_ref_put_many include/linux/percpu-refcount.h:284 [inline] percpu_ref_put include/linux/percpu-refcount.h:300 [inline] percpu_ref_call_confirm_rcu lib/percpu-refcount.c:123 [inline] percpu_ref_switch_to_atomic_rcu+0x407/0x540 lib/percpu-refcount.c:158 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0xba0/0x1a30 kernel/rcu/tree.c:2881 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:869 arch_local_irq_restore arch/x86/include/asm/paravirt.h:788 [inline] lock_is_held_type+0x17e/0x210 kernel/locking/lockdep.c:3940 lock_is_held include/linux/lockdep.h:344 [inline] ___might_sleep+0x201/0x280 kernel/sched/core.c:6115 __might_sleep+0x95/0x190 kernel/sched/core.c:6103 __getblk_gfp+0x52/0x970 fs/buffer.c:1319 sb_getblk include/linux/buffer_head.h:325 [inline] __ext4_get_inode_loc+0x362/0x10d0 fs/ext4/inode.c:4567 ext4_get_inode_loc fs/ext4/inode.c:4680 [inline] ext4_reserve_inode_write+0xf0/0x260 fs/ext4/inode.c:5859 ext4_mark_inode_dirty+0x178/0x940 fs/ext4/inode.c:6011 add_dirent_to_buf+0x402/0x680 fs/ext4/namei.c:1894 ext4_add_entry+0x5cc/0xb70 fs/ext4/namei.c:2087 ext4_add_nondir+0x28/0x90 fs/ext4/namei.c:2416 ext4_symlink+0x5e8/0xbe0 fs/ext4/namei.c:3168 vfs_symlink fs/namei.c:4126 [inline] vfs_symlink+0x373/0x5c0 fs/namei.c:4112 do_symlinkat+0x22b/0x290 fs/namei.c:4153 __do_sys_symlink fs/namei.c:4172 [inline] __se_sys_symlink fs/namei.c:4170 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4170 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe } ... key at: [] __key.50193+0x0/0x40 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] aio_poll fs/aio.c:1741 [inline] __io_submit_one fs/aio.c:1849 [inline] io_submit_one+0xef2/0x2eb0 fs/aio.c:1885 __do_sys_io_submit fs/aio.c:1929 [inline] __se_sys_io_submit fs/aio.c:1900 [inline] __x64_sys_io_submit+0x1aa/0x520 fs/aio.c:1900 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> (&ctx->fd_wqh){....} ops: 151 { INITIAL USE at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:152 __wake_up_common_lock+0xc7/0x190 kernel/sched/wait.c:120 __wake_up+0xe/0x10 kernel/sched/wait.c:145 handle_userfault+0x921/0x18b0 fs/userfaultfd.c:488 shmem_getpage_gfp+0x2f53/0x3960 mm/shmem.c:1764 shmem_fault+0x233/0x760 mm/shmem.c:2032 __do_fault+0x111/0x480 mm/memory.c:3269 do_read_fault mm/memory.c:3681 [inline] do_fault mm/memory.c:3810 [inline] handle_pte_fault mm/memory.c:4041 [inline] __handle_mm_fault+0x2d78/0x3f80 mm/memory.c:4165 handle_mm_fault+0x43f/0xb30 mm/memory.c:4202 __do_page_fault+0x62a/0xe90 arch/x86/mm/fault.c:1393 do_page_fault+0x71/0x57d arch/x86/mm/fault.c:1468 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1181 copy_user_generic_unrolled+0x86/0xc0 arch/x86/lib/copy_user_64.S:65 copy_from_user include/linux/uaccess.h:147 [inline] sctp_getsockopt_local_addrs net/sctp/socket.c:5938 [inline] sctp_getsockopt net/sctp/socket.c:7480 [inline] sctp_getsockopt+0x182e/0x60f8 net/sctp/socket.c:7415 sock_common_getsockopt+0x94/0xd0 net/core/sock.c:3003 __sys_getsockopt+0x15f/0x240 net/socket.c:1938 __do_sys_getsockopt net/socket.c:1949 [inline] __se_sys_getsockopt net/socket.c:1946 [inline] __x64_sys_getsockopt+0xbe/0x150 net/socket.c:1946 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe } ... key at: [] __key.43730+0x0/0x40 ... acquired at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] userfaultfd_ctx_read fs/userfaultfd.c:1046 [inline] userfaultfd_read+0x394/0x18c0 fs/userfaultfd.c:1204 __vfs_read+0x114/0x800 fs/read_write.c:416 vfs_read+0x194/0x3d0 fs/read_write.c:452 ksys_read+0x14f/0x2d0 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:587 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (&ctx->fault_pending_wqh){+.+.} ops: 154 { HARDIRQ-ON-W at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] handle_userfault+0x58a/0x18b0 fs/userfaultfd.c:462 shmem_getpage_gfp+0x2f53/0x3960 mm/shmem.c:1764 shmem_fault+0x233/0x760 mm/shmem.c:2032 __do_fault+0x111/0x480 mm/memory.c:3269 do_read_fault mm/memory.c:3681 [inline] do_fault mm/memory.c:3810 [inline] handle_pte_fault mm/memory.c:4041 [inline] __handle_mm_fault+0x2d78/0x3f80 mm/memory.c:4165 handle_mm_fault+0x43f/0xb30 mm/memory.c:4202 __do_page_fault+0x62a/0xe90 arch/x86/mm/fault.c:1393 do_page_fault+0x71/0x57d arch/x86/mm/fault.c:1468 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1181 copy_user_generic_unrolled+0x86/0xc0 arch/x86/lib/copy_user_64.S:65 copy_from_user include/linux/uaccess.h:147 [inline] sctp_getsockopt_local_addrs net/sctp/socket.c:5938 [inline] sctp_getsockopt net/sctp/socket.c:7480 [inline] sctp_getsockopt+0x182e/0x60f8 net/sctp/socket.c:7415 sock_common_getsockopt+0x94/0xd0 net/core/sock.c:3003 __sys_getsockopt+0x15f/0x240 net/socket.c:1938 __do_sys_getsockopt net/socket.c:1949 [inline] __se_sys_getsockopt net/socket.c:1946 [inline] __x64_sys_getsockopt+0xbe/0x150 net/socket.c:1946 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe SOFTIRQ-ON-W at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] handle_userfault+0x58a/0x18b0 fs/userfaultfd.c:462 shmem_getpage_gfp+0x2f53/0x3960 mm/shmem.c:1764 shmem_fault+0x233/0x760 mm/shmem.c:2032 __do_fault+0x111/0x480 mm/memory.c:3269 do_read_fault mm/memory.c:3681 [inline] do_fault mm/memory.c:3810 [inline] handle_pte_fault mm/memory.c:4041 [inline] __handle_mm_fault+0x2d78/0x3f80 mm/memory.c:4165 handle_mm_fault+0x43f/0xb30 mm/memory.c:4202 __do_page_fault+0x62a/0xe90 arch/x86/mm/fault.c:1393 do_page_fault+0x71/0x57d arch/x86/mm/fault.c:1468 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1181 copy_user_generic_unrolled+0x86/0xc0 arch/x86/lib/copy_user_64.S:65 copy_from_user include/linux/uaccess.h:147 [inline] sctp_getsockopt_local_addrs net/sctp/socket.c:5938 [inline] sctp_getsockopt net/sctp/socket.c:7480 [inline] sctp_getsockopt+0x182e/0x60f8 net/sctp/socket.c:7415 sock_common_getsockopt+0x94/0xd0 net/core/sock.c:3003 __sys_getsockopt+0x15f/0x240 net/socket.c:1938 __do_sys_getsockopt net/socket.c:1949 [inline] __se_sys_getsockopt net/socket.c:1946 [inline] __x64_sys_getsockopt+0xbe/0x150 net/socket.c:1946 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe INITIAL USE at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] handle_userfault+0x58a/0x18b0 fs/userfaultfd.c:462 shmem_getpage_gfp+0x2f53/0x3960 mm/shmem.c:1764 shmem_fault+0x233/0x760 mm/shmem.c:2032 __do_fault+0x111/0x480 mm/memory.c:3269 do_read_fault mm/memory.c:3681 [inline] do_fault mm/memory.c:3810 [inline] handle_pte_fault mm/memory.c:4041 [inline] __handle_mm_fault+0x2d78/0x3f80 mm/memory.c:4165 handle_mm_fault+0x43f/0xb30 mm/memory.c:4202 __do_page_fault+0x62a/0xe90 arch/x86/mm/fault.c:1393 do_page_fault+0x71/0x57d arch/x86/mm/fault.c:1468 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1181 copy_user_generic_unrolled+0x86/0xc0 arch/x86/lib/copy_user_64.S:65 copy_from_user include/linux/uaccess.h:147 [inline] sctp_getsockopt_local_addrs net/sctp/socket.c:5938 [inline] sctp_getsockopt net/sctp/socket.c:7480 [inline] sctp_getsockopt+0x182e/0x60f8 net/sctp/socket.c:7415 sock_common_getsockopt+0x94/0xd0 net/core/sock.c:3003 __sys_getsockopt+0x15f/0x240 net/socket.c:1938 __do_sys_getsockopt net/socket.c:1949 [inline] __se_sys_getsockopt net/socket.c:1946 [inline] __x64_sys_getsockopt+0xbe/0x150 net/socket.c:1946 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe } ... key at: [] __key.43727+0x0/0x40 ... acquired at: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] userfaultfd_ctx_read fs/userfaultfd.c:1046 [inline] userfaultfd_read+0x394/0x18c0 fs/userfaultfd.c:1204 __vfs_read+0x114/0x800 fs/read_write.c:416 vfs_read+0x194/0x3d0 fs/read_write.c:452 ksys_read+0x14f/0x2d0 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:587 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe stack backtrace: CPU: 1 PID: 26812 Comm: syz-executor.2 Not tainted 4.19.56 #28 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+0x172/0x1f0 lib/dump_stack.c:113 print_bad_irq_dependency kernel/locking/lockdep.c:1568 [inline] check_usage.cold+0x611/0x946 kernel/locking/lockdep.c:1600 check_irq_usage kernel/locking/lockdep.c:1656 [inline] check_prev_add_irq kernel/locking/lockdep_states.h:8 [inline] check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1974 [inline] validate_chain kernel/locking/lockdep.c:2415 [inline] __lock_acquire+0x1ee4/0x48f0 kernel/locking/lockdep.c:3411 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3900 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] userfaultfd_ctx_read fs/userfaultfd.c:1046 [inline] userfaultfd_read+0x394/0x18c0 fs/userfaultfd.c:1204 __vfs_read+0x114/0x800 fs/read_write.c:416 vfs_read+0x194/0x3d0 fs/read_write.c:452 ksys_read+0x14f/0x2d0 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read fs/read_write.c:587 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:587 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4597c9 Code: fd b7 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 b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff232661c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004597c9 RDX: 0000000000000080 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff2326626d4 R13: 00000000004c58fc R14: 00000000004dba38 R15: 00000000ffffffff kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' vivid-001: kernel_thread() failed kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: '9p-13' (000000009997003c): kobject_add_internal: parent: 'bdi', set: 'devices' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: '9p-13' (000000009997003c): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: '9p-13' (000000009997003c): fill_kobj_path: path = '/devices/virtual/bdi/9p-13' kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: '9p-13' (000000009997003c): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: '9p-13' (000000009997003c): fill_kobj_path: path = '/devices/virtual/bdi/9p-13' kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: '9p-13' (000000009997003c): kobject_cleanup, parent (null) kobject: '9p-13' (000000009997003c): calling ktype release kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: '9p-13': free name kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: '9p-14' (00000000dcd21267): kobject_add_internal: parent: 'bdi', set: 'devices' kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: '9p-14' (00000000dcd21267): kobject_uevent_env kobject: '9p-14' (00000000dcd21267): fill_kobj_path: path = '/devices/virtual/bdi/9p-14' kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: '9p-14' (00000000dcd21267): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: '9p-14' (00000000dcd21267): fill_kobj_path: path = '/devices/virtual/bdi/9p-14' kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: '9p-14' (00000000dcd21267): kobject_cleanup, parent (null) kobject: '9p-14' (00000000dcd21267): calling ktype release kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: '9p-14': free name kobject: 'loop2' (00000000ed90e937): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: '9p-15' (000000004412a00c): kobject_add_internal: parent: 'bdi', set: 'devices' kobject: '9p-15' (000000004412a00c): kobject_uevent_env kobject: '9p-16' (0000000053efdcb9): kobject_add_internal: parent: 'bdi', set: 'devices' kobject: 'loop0' (00000000bb6fa2c5): kobject_uevent_env kobject: 'loop0' (00000000bb6fa2c5): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: '9p-15' (000000004412a00c): fill_kobj_path: path = '/devices/virtual/bdi/9p-15' kobject: '9p-16' (0000000053efdcb9): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): kobject_uevent_env kobject: '9p-16' (0000000053efdcb9): fill_kobj_path: path = '/devices/virtual/bdi/9p-16' kobject: '9p-16' (0000000053efdcb9): kobject_uevent_env kobject: 'loop5' (00000000d5d6a707): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: '9p-16' (0000000053efdcb9): fill_kobj_path: path = '/devices/virtual/bdi/9p-16' kobject: '9p-16' (0000000053efdcb9): kobject_cleanup, parent (null) kobject: 'loop2' (00000000ed90e937): kobject_uevent_env kobject: '9p-16' (0000000053efdcb9): calling ktype release