================================ WARNING: inconsistent lock state 4.19.106-syzkaller #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.4/28776 [HC0[0]:SC1[1]:HE1:SE0] takes: 000000001d959ec9 (&(&local->client_conns_lock)->rlock){+.?.}, at: spin_lock include/linux/spinlock.h:329 [inline] 000000001d959ec9 (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_one_client_conn net/rxrpc/conn_client.c:949 [inline] 000000001d959ec9 (&(&local->client_conns_lock)->rlock){+.?.}, at: rxrpc_put_client_conn+0x666/0xc00 net/rxrpc/conn_client.c:1002 {SOFTIRQ-ON-W} state was registered at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] rxrpc_get_client_conn net/rxrpc/conn_client.c:309 [inline] rxrpc_connect_call+0x301/0x4630 net/rxrpc/conn_client.c:702 rxrpc_new_client_call+0x8c6/0x1850 net/rxrpc/call_object.c:291 rxrpc_new_client_call_for_sendmsg net/rxrpc/sendmsg.c:596 [inline] rxrpc_do_sendmsg+0xf2e/0x1bc1 net/rxrpc/sendmsg.c:652 rxrpc_sendmsg+0x4a8/0x5b0 net/rxrpc/af_rxrpc.c:593 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:632 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115 __sys_sendmmsg+0x195/0x470 net/socket.c:2210 __do_sys_sendmmsg net/socket.c:2239 [inline] __se_sys_sendmmsg net/socket.c:2236 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe irq event stamp: 4190 hardirqs last enabled at (4190): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (4190): [] _raw_spin_unlock_irqrestore+0x67/0xe0 kernel/locking/spinlock.c:184 hardirqs last disabled at (4189): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (4189): [] _raw_spin_lock_irqsave+0x66/0xbf kernel/locking/spinlock.c:152 softirqs last enabled at (2702): [] __do_softirq+0x650/0x93c kernel/softirq.c:318 softirqs last disabled at (4171): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (4171): [] irq_exit+0x17b/0x1c0 kernel/softirq.c:412 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&(&local->client_conns_lock)->rlock); lock(&(&local->client_conns_lock)->rlock); *** DEADLOCK *** 4 locks held by syz-executor.4/28776: #0: 0000000063c98f00 (&type->s_umount_key#64/1){+.+.}, at: alloc_super fs/super.c:226 [inline] #0: 0000000063c98f00 (&type->s_umount_key#64/1){+.+.}, at: sget_userns+0x1fc/0xcd0 fs/super.c:519 #1: 00000000a60772bb (sb_writers#4){.+.+}, at: sb_start_write include/linux/fs.h:1578 [inline] #1: 00000000a60772bb (sb_writers#4){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #2: 00000000ba7a3425 (&type->i_mutex_dir_key#3/1){+.+.}, at: inode_lock_nested include/linux/fs.h:782 [inline] #2: 00000000ba7a3425 (&type->i_mutex_dir_key#3/1){+.+.}, at: ovl_workdir_create+0xfe/0x4d0 fs/overlayfs/super.c:628 #3: 00000000981b2529 (rcu_callback){....}, at: __rcu_reclaim kernel/rcu/rcu.h:226 [inline] #3: 00000000981b2529 (rcu_callback){....}, at: rcu_do_batch kernel/rcu/tree.c:2584 [inline] #3: 00000000981b2529 (rcu_callback){....}, at: invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] #3: 00000000981b2529 (rcu_callback){....}, at: __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] #3: 00000000981b2529 (rcu_callback){....}, at: rcu_process_callbacks+0xbff/0x17f0 kernel/rcu/tree.c:2881 stack backtrace: CPU: 1 PID: 28776 Comm: syz-executor.4 Not tainted 4.19.106-syzkaller #0 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+0x188/0x20d lib/dump_stack.c:118 print_usage_bug.cold+0x327/0x425 kernel/locking/lockdep.c:2540 valid_state kernel/locking/lockdep.c:2553 [inline] mark_lock_irq kernel/locking/lockdep.c:2747 [inline] mark_lock+0xc71/0x11b0 kernel/locking/lockdep.c:3127 mark_irqflags kernel/locking/lockdep.c:3005 [inline] __lock_acquire+0xc62/0x49c0 kernel/locking/lockdep.c:3368 lock_acquire+0x170/0x400 kernel/locking/lockdep.c:3903 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] rxrpc_put_one_client_conn net/rxrpc/conn_client.c:949 [inline] rxrpc_put_client_conn+0x666/0xc00 net/rxrpc/conn_client.c:1002 rxrpc_put_connection net/rxrpc/ar-internal.h:951 [inline] rxrpc_rcu_destroy_call+0xb6/0x1e0 net/rxrpc/call_object.c:657 __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+0xb2d/0x17f0 kernel/rcu/tree.c:2881 __do_softirq+0x26c/0x93c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17b/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:__find_get_block+0x275/0xda0 fs/buffer.c:1293 Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 2f 0a 00 00 48 83 3d e5 ac fd 06 00 0f 84 a0 07 00 00 e8 02 e0 b2 ff fb 66 0f 1f 44 00 00 <4d> 85 f6 0f 84 be 01 00 00 e8 ed df b2 ff 0f 1f 44 00 00 e8 e3 df RSP: 0018:ffff888047a57568 EFLAGS: 00000212 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: ffff888093120150 RCX: ffffc9000e6da000 RDX: 0000000000013371 RSI: ffffffff81b4a93e RDI: ffff88808959aa7c RBP: 0000000000000010 R08: ffff88808959a200 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000000f R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000431 sb_find_get_block include/linux/buffer_head.h:338 [inline] recently_deleted fs/ext4/ialloc.c:682 [inline] find_inode_bit.isra.0+0x208/0x530 fs/ext4/ialloc.c:722 __ext4_new_inode+0x14b0/0x52d0 fs/ext4/ialloc.c:914 ext4_mkdir+0x396/0xd90 fs/ext4/namei.c:2655 vfs_mkdir+0x419/0x690 fs/namei.c:3819 ovl_do_mkdir fs/overlayfs/overlayfs.h:128 [inline] ovl_mkdir_real fs/overlayfs/dir.c:125 [inline] ovl_create_real+0x275/0x410 fs/overlayfs/dir.c:172 ovl_workdir_create+0x304/0x4d0 fs/overlayfs/super.c:654 ovl_make_workdir fs/overlayfs/super.c:1092 [inline] ovl_get_workdir fs/overlayfs/super.c:1195 [inline] ovl_fill_super+0x10e2/0x3d82 fs/overlayfs/super.c:1587 mount_nodev+0x60/0x110 fs/super.c:1204 mount_fs+0xa3/0x30c fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x400 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x4f4/0x2a40 fs/namespace.c:2799 ksys_mount+0xd7/0x150 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c479 Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fd407379c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd40737a6d4 RCX: 000000000045c479 RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 000000000040000a RBP: 000000000076bf20 R08: 0000000020000100 R09: 0000000000000000 R10: 000000000c000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000755 R14: 00000000004c9d21 R15: 000000000076bf2c overlayfs: conflicting lowerdir path overlayfs: conflicting lowerdir path overlayfs: conflicting lowerdir path overlayfs: conflicting lowerdir path overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=2048 sclass=netlink_route_socket pig=28887 comm=syz-executor.2 overlayfs: conflicting lowerdir path SELinux: unrecognized netlink message: protocol=0 nlmsg_type=2048 sclass=netlink_route_socket pig=28903 comm=syz-executor.2 overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=2048 sclass=netlink_route_socket pig=28921 comm=syz-executor.2 overlayfs: conflicting lowerdir path overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: conflicting lowerdir path overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. overlayfs: conflicting lowerdir path overlayfs: conflicting lowerdir path overlayfs: conflicting lowerdir path overlayfs: conflicting lowerdir path overlayfs: workdir and upperdir must reside under the same mount overlayfs: conflicting lowerdir path