================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.0.343/7058 [HC1[1]:SC0[0]:HE0:SE1] takes: ffffffff8d297658 (kernfs_rename_lock){....}-{2:2}, at: kernfs_path_from_node+0x88/0xbd0 fs/kernfs/dir.c:229 {INITIAL USE} state was registered at: lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754 __raw_write_lock_irq include/linux/rwlock_api_smp.h:195 [inline] _raw_write_lock_irq+0xaf/0xf0 kernel/locking/spinlock.c:326 kernfs_rename_ns+0x5e4/0x830 fs/kernfs/dir.c:1762 sysfs_rename_link_ns+0x175/0x1b0 fs/sysfs/symlink.c:192 device_rename+0x110/0x1e0 drivers/base/core.c:4597 dev_change_name+0x308/0x8e0 net/core/dev.c:1291 do_setlink+0x925/0x3f40 net/core/rtnetlink.c:2889 __rtnl_newlink net/core/rtnetlink.c:3707 [inline] rtnl_newlink+0x1848/0x2170 net/core/rtnetlink.c:3754 rtnetlink_rcv_msg+0x843/0xf90 net/core/rtnetlink.c:6476 netlink_rcv_skb+0x235/0x4c0 net/netlink/af_netlink.c:2550 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x7b1/0x930 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1899 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x4a9/0x6b0 net/socket.c:2201 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2209 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 1556 hardirqs last enabled at (1555): [] syscall_enter_from_user_mode+0x25/0x80 kernel/entry/common.c:117 hardirqs last disabled at (1556): [] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline] hardirqs last disabled at (1556): [] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199 softirqs last enabled at (1450): [] bpf_prog_load+0x1204/0x1610 kernel/bpf/syscall.c:2779 softirqs last disabled at (1448): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (1448): [] bpf_ksym_add+0x2c/0x330 kernel/bpf/core.c:655 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(kernfs_rename_lock); lock(kernfs_rename_lock); *** DEADLOCK *** no locks held by syz.0.343/7058. stack backtrace: CPU: 1 PID: 7058 Comm: syz.0.343 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: <#DB> dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 lock_acquire+0x2c2/0x420 kernel/locking/lockdep.c:5745 __raw_read_lock_irqsave include/linux/rwlock_api_smp.h:160 [inline] _raw_read_lock_irqsave+0xbc/0x100 kernel/locking/spinlock.c:236 kernfs_path_from_node+0x88/0xbd0 fs/kernfs/dir.c:229 kernfs_path include/linux/kernfs.h:597 [inline] cgroup_path include/linux/cgroup.h:601 [inline] get_mm_memcg_path+0xb9/0x360 mm/mmap_lock.c:82 __mmap_lock_do_trace_start_locking+0xe6/0x2f0 mm/mmap_lock.c:95 __mmap_lock_trace_start_locking include/linux/mmap_lock.h:29 [inline] mmap_read_trylock include/linux/mmap_lock.h:164 [inline] stack_map_get_build_id_offset+0x5d3/0x720 kernel/bpf/stackmap.c:141 __bpf_get_stackid+0x564/0x900 kernel/bpf/stackmap.c:247 bpf_prog_12712c88fd19bd5b+0x29/0x2d bpf_dispatcher_nop_func include/linux/bpf.h:1224 [inline] __bpf_prog_run include/linux/filter.h:616 [inline] bpf_prog_run include/linux/filter.h:623 [inline] bpf_overflow_handler+0x1fc/0x510 kernel/events/core.c:10576 __perf_event_overflow+0x461/0x660 kernel/events/core.c:9712 perf_swevent_overflow kernel/events/core.c:9795 [inline] perf_swevent_event+0x319/0x570 kernel/events/core.c:9846 perf_bp_event+0x319/0x430 kernel/events/core.c:10773 hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline] hw_breakpoint_exceptions_notify+0x23e/0x670 arch/x86/kernel/hw_breakpoint.c:586 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:231 notify_die+0x145/0x1a0 kernel/notifier.c:596 notify_debug+0x2e/0x50 arch/x86/kernel/traps.c:1042 exc_debug_kernel arch/x86/kernel/traps.c:1099 [inline] exc_debug+0xde/0x140 arch/x86/kernel/traps.c:1199 asm_exc_debug+0x1e/0x40 arch/x86/include/asm/idtentry.h:644 RIP: 0010:__put_user_4+0x13/0x20 arch/x86/lib/putuser.S:90 Code: c3 90 90 90 90 90 90 f3 0f 1e fa 0f 01 cb 66 89 01 31 c9 0f 01 ca c3 f3 0f 1e fa 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb 89 01 <31> c9 0f 01 ca c3 90 90 90 90 90 90 90 f3 0f 1e fa 0f 01 cb 89 01 RSP: 0018:ffffc90010057e80 EFLAGS: 00040206 RAX: 0000000000000007 RBX: 0000000000000000 RCX: 0000200000000300 RDX: 0000000000000000 RSI: ffffffff8acadce0 RDI: ffffffff8b1cfa20 RBP: 0000000000000007 R08: ffffffff8e8c6b2f R09: 1ffffffff1d18d65 R10: dffffc0000000000 R11: fffffbfff1d18d66 R12: 0000000000000000 R13: 0000200000000300 R14: 0000000000000001 R15: 0000000000000001 __sys_socketpair+0xb8/0x550 net/socket.c:1765 __do_sys_socketpair net/socket.c:1831 [inline] __se_sys_socketpair net/socket.c:1828 [inline] __x64_sys_socketpair+0x9b/0xb0 net/socket.c:1828 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f3d1f19de59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3d20057028 EFLAGS: 00000246 ORIG_RAX: 0000000000000035 RAX: ffffffffffffffda RBX: 00007f3d1f425fa0 RCX: 00007f3d1f19de59 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: 00007f3d1f233e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000200000000300 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3d1f426038 R14: 00007f3d1f425fa0 R15: 00007fff11a3d288 ---------------- Code disassembly (best guess): 0: c3 ret 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: f3 0f 1e fa endbr64 b: 0f 01 cb stac e: 66 89 01 mov %ax,(%rcx) 11: 31 c9 xor %ecx,%ecx 13: 0f 01 ca clac 16: c3 ret 17: f3 0f 1e fa endbr64 1b: 48 89 cb mov %rcx,%rbx 1e: 48 c1 fb 3f sar $0x3f,%rbx 22: 48 09 d9 or %rbx,%rcx 25: 0f 01 cb stac 28: 89 01 mov %eax,(%rcx) * 2a: 31 c9 xor %ecx,%ecx <-- trapping instruction 2c: 0f 01 ca clac 2f: c3 ret 30: 90 nop 31: 90 nop 32: 90 nop 33: 90 nop 34: 90 nop 35: 90 nop 36: 90 nop 37: f3 0f 1e fa endbr64 3b: 0f 01 cb stac 3e: 89 01 mov %eax,(%rcx)