================================ WARNING: inconsistent lock state syzkaller #0 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. syz.0.1240/10063 [HC1[1]:SC0[0]:HE0:SE1] takes: ffffffff8d2978d8 (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:2897 __rtnl_newlink net/core/rtnetlink.c:3715 [inline] rtnl_newlink+0x1848/0x2170 net/core/rtnetlink.c:3762 rtnetlink_rcv_msg+0x843/0xf90 net/core/rtnetlink.c:6484 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: 408 hardirqs last enabled at (407): [] do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 hardirqs last disabled at (408): [] exc_debug_user arch/x86/kernel/traps.c:1142 [inline] hardirqs last disabled at (408): [] noist_exc_debug+0x4d/0x120 arch/x86/kernel/traps.c:1205 softirqs last enabled at (272): [] bpf_prog_load+0x1204/0x1610 kernel/bpf/syscall.c:2779 softirqs last disabled at (270): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (270): [] bpf_ksym_add+0x2c/0x330 kernel/bpf/core.c:656 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(kernfs_rename_lock); lock(kernfs_rename_lock); *** DEADLOCK *** 2 locks held by syz.0.1240/10063: #0: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #0: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #0: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: atomic_notifier_call_chain+0x26/0x180 kernel/notifier.c:230 #1: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #1: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #1: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: __perf_event_output kernel/events/core.c:7964 [inline] #1: ffffffff8d131da0 (rcu_read_lock){....}-{1:2}, at: perf_event_output_forward+0xb9/0x3e0 kernel/events/core.c:7987 stack backtrace: CPU: 1 PID: 10063 Comm: syz.0.1240 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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_acquire_returned+0xea/0x300 mm/mmap_lock.c:102 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:166 [inline] stack_map_get_build_id_offset+0x5fe/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:606 [inline] bpf_prog_run include/linux/filter.h:624 [inline] bpf_overflow_handler+0x43f/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+0x2fb/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:__get_user_nocheck_8+0xd/0x20 arch/x86/lib/getuser.S:143 Code: fa 0f 01 cb 0f ae e8 8b 10 31 c0 0f 01 ca c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 01 cb 0f ae e8 48 8b 10 <31> c0 0f 01 ca c3 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 01 ca RSP: 0000:ffffc90003947560 EFLAGS: 00040802 RAX: 0000200000000300 RBX: 00000000ffffffff RCX: 1ffff92000728eca RDX: 00006370692f736e RSI: 0000200000000300 RDI: 0000000000000000 RBP: 0000200000000300 R08: 000000000000007f R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff223d6a1 R12: 0000000000000001 R13: 1ffff92000728ec8 R14: 000000000000007f R15: dffffc0000000000 perf_callchain_user+0xbdd/0x15d0 arch/x86/events/core.c:2957 get_perf_callchain+0x394/0x510 kernel/events/callchain.c:219 perf_callchain kernel/events/core.c:7734 [inline] perf_sample_save_callchain include/linux/perf_event.h:1232 [inline] perf_prepare_sample+0x3c7/0x1db0 kernel/events/core.c:7778 __perf_event_output kernel/events/core.c:7966 [inline] perf_event_output_forward+0x187/0x3e0 kernel/events/core.c:7987 __perf_event_overflow+0x461/0x660 kernel/events/core.c:9712 perf_swevent_overflow+0x274/0x340 kernel/events/core.c:9795 perf_swevent_event+0x45c/0x570 kernel/events/core.c:-1 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_user arch/x86/kernel/traps.c:1168 [inline] noist_exc_debug+0x77/0x120 arch/x86/kernel/traps.c:1205 asm_exc_debug+0x33/0x40 arch/x86/include/asm/idtentry.h:644 RIP: 0033:0x7fb04837ce7d Code: 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 89 f8 48 89 fa c5 f9 ef c0 25 ff 0f 00 00 3d e0 0f 00 00 0f 87 27 01 00 00 c5 fd 74 0f fd d7 c1 85 c0 74 5b f3 0f bc c0 e9 30 01 00 00 66 90 f3 0f bc RSP: 002b:00007fb0492fe8a8 EFLAGS: 00000283 RAX: 0000000000000300 RBX: 00007fb0492fede0 RCX: 2f666c65732f636f RDX: 0000200000000300 RSI: 00007fb04845f780 RDI: 0000200000000300 RBP: 0000200000000300 R08: 00007fb0492ff010 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000073 R14: 00007fb04843437d R15: 00007fb0492feea0 ---------------- Code disassembly (best guess): 0: fa cli 1: 0f 01 cb stac 4: 0f ae e8 lfence 7: 8b 10 mov (%rax),%edx 9: 31 c0 xor %eax,%eax b: 0f 01 ca clac e: c3 ret f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: f3 0f 1e fa endbr64 21: 0f 01 cb stac 24: 0f ae e8 lfence 27: 48 8b 10 mov (%rax),%rdx * 2a: 31 c0 xor %eax,%eax <-- 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: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 0f 01 ca clac