================================
WARNING: inconsistent lock state
6.0.0-rc3-syzkaller-00031-gc5e4d5e99162 #0 Not tainted
--------------------------------
inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage.
syz-executor.0/4817 [HC0[0]:SC0[0]:HE1:SE1] takes:
ffff888022dd7818 (&clnt->lock){?...}-{2:2}, at: spin_lock include/linux/spinlock.h:349 [inline]
ffff888022dd7818 (&clnt->lock){?...}-{2:2}, at: p9_fd_request+0x85/0x330 net/9p/trans_fd.c:672
{IN-HARDIRQ-W} state was registered at:
  lock_acquire kernel/locking/lockdep.c:5666 [inline]
  lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631
  __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
  _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162
  p9_tag_remove net/9p/client.c:367 [inline]
  p9_req_put net/9p/client.c:375 [inline]
  p9_req_put+0xc6/0x250 net/9p/client.c:372
  req_done+0x1de/0x2e0 net/9p/trans_virtio.c:148
  vring_interrupt drivers/virtio/virtio_ring.c:2462 [inline]
  vring_interrupt+0x29d/0x3d0 drivers/virtio/virtio_ring.c:2437
  __handle_irq_event_percpu+0x227/0x870 kernel/irq/handle.c:158
  handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
  handle_irq_event+0xa7/0x1e0 kernel/irq/handle.c:210
  handle_edge_irq+0x25f/0xd00 kernel/irq/chip.c:819
  generic_handle_irq_desc include/linux/irqdesc.h:158 [inline]
  handle_irq arch/x86/kernel/irq.c:231 [inline]
  __common_interrupt+0x9d/0x210 arch/x86/kernel/irq.c:250
  common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240
  asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:640
  rcu_rnp_online_cpus kernel/rcu/tree.c:224 [inline]
  rcu_rdp_cpu_online kernel/rcu/tree.c:234 [inline]
  rcu_lockdep_current_cpu_online kernel/rcu/tree.c:773 [inline]
  rcu_lockdep_current_cpu_online+0xc7/0x140 kernel/rcu/tree.c:757
  rcu_read_lock_held_common kernel/rcu/update.c:112 [inline]
  rcu_read_lock_held_common kernel/rcu/update.c:102 [inline]
  rcu_read_lock_sched_held+0x25/0x70 kernel/rcu/update.c:123
  trace_contention_end include/trace/events/lock.h:122 [inline]
  trace_contention_end+0xea/0x150 include/trace/events/lock.h:122
  __mutex_lock_common kernel/locking/mutex.c:612 [inline]
  __mutex_lock+0x227/0x1350 kernel/locking/mutex.c:747
  __kernfs_iattrs fs/kernfs/inode.c:32 [inline]
  kernfs_iattrs_noalloc fs/kernfs/inode.c:65 [inline]
  kernfs_xattr_get+0x25/0xa0 fs/kernfs/inode.c:303
  selinux_kernfs_init_security+0xf2/0x4c0 security/selinux/hooks.c:3507
  security_kernfs_init_security+0x48/0xa0 security/security.c:1511
  __kernfs_new_node+0x54f/0x8b0 fs/kernfs/dir.c:632
  kernfs_new_node+0x93/0x120 fs/kernfs/dir.c:655
  __kernfs_create_file+0x51/0x350 fs/kernfs/file.c:1050
  sysfs_add_file_mode_ns+0x20f/0x3f0 fs/sysfs/file.c:294
  create_files fs/sysfs/group.c:64 [inline]
  internal_create_group+0x322/0xb10 fs/sysfs/group.c:148
  internal_create_groups.part.0+0x90/0x140 fs/sysfs/group.c:188
  internal_create_groups fs/sysfs/group.c:184 [inline]
  sysfs_create_groups+0x25/0x50 fs/sysfs/group.c:214
  device_add_groups drivers/base/core.c:2572 [inline]
  device_add_attrs drivers/base/core.c:2731 [inline]
  device_add+0x14a1/0x1e90 drivers/base/core.c:3468
  netdev_register_kobject+0x181/0x400 net/core/net-sysfs.c:2015
  register_netdevice+0xe01/0x1680 net/core/dev.c:10070
  register_netdev+0x2d/0x50 net/core/dev.c:10196
  loopback_net_init+0x73/0x160 drivers/net/loopback.c:219
  ops_init+0xaf/0x470 net/core/net_namespace.c:135
  setup_net+0x5d1/0xc50 net/core/net_namespace.c:326
  copy_net_ns+0x318/0x760 net/core/net_namespace.c:472
  create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
  unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:227
  ksys_unshare+0x445/0x920 kernel/fork.c:3183
  __do_sys_unshare kernel/fork.c:3254 [inline]
  __se_sys_unshare kernel/fork.c:3252 [inline]
  __x64_sys_unshare+0x2d/0x40 kernel/fork.c:3252
  do_syscall_x64 arch/x86/entry/common.c:50 [inline]
  do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
  entry_SYSCALL_64_after_hwframe+0x63/0xcd
irq event stamp: 467
hardirqs last  enabled at (467): [<ffffffff8982744f>] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline]
hardirqs last  enabled at (467): [<ffffffff8982744f>] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202
hardirqs last disabled at (466): [<ffffffff89827221>] __raw_spin_lock_irq include/linux/spinlock_api_smp.h:117 [inline]
hardirqs last disabled at (466): [<ffffffff89827221>] _raw_spin_lock_irq+0x41/0x50 kernel/locking/spinlock.c:170
softirqs last  enabled at (0): [<ffffffff814619de>] copy_process+0x213e/0x7090 kernel/fork.c:2201
softirqs last disabled at (0): [<0000000000000000>] 0x0

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&clnt->lock);
  <Interrupt>
    lock(&clnt->lock);

 *** DEADLOCK ***

no locks held by syz-executor.0/4817.

stack backtrace:
CPU: 3 PID: 4817 Comm: syz-executor.0 Not tainted 6.0.0-rc3-syzkaller-00031-gc5e4d5e99162 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 print_usage_bug kernel/locking/lockdep.c:3961 [inline]
 valid_state kernel/locking/lockdep.c:3973 [inline]
 mark_lock_irq kernel/locking/lockdep.c:4176 [inline]
 mark_lock.part.0.cold+0x18/0xd8 kernel/locking/lockdep.c:4632
 mark_lock kernel/locking/lockdep.c:4596 [inline]
 mark_usage kernel/locking/lockdep.c:4541 [inline]
 __lock_acquire+0x847/0x56d0 kernel/locking/lockdep.c:5007
 lock_acquire kernel/locking/lockdep.c:5666 [inline]
 lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:349 [inline]
 p9_fd_request+0x85/0x330 net/9p/trans_fd.c:672
 p9_client_rpc+0x2f0/0xce0 net/9p/client.c:660
 p9_client_version net/9p/client.c:880 [inline]
 p9_client_create+0xaec/0x1070 net/9p/client.c:985
 v9fs_session_init+0x1e2/0x1810 fs/9p/v9fs.c:408
 v9fs_mount+0xba/0xc90 fs/9p/vfs_super.c:126
 legacy_get_tree+0x105/0x220 fs/fs_context.c:610
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff79ec89279
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff79fe70168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ff79ed9bf80 RCX: 00007ff79ec89279
RDX: 0000000020000040 RSI: 0000000020000080 RDI: 0000000000000000
RBP: 00007ff79ece32e9 R08: 0000000020000300 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc4f2ce51f R14: 00007ff79fe70300 R15: 0000000000022000
 </TASK>