[v5.15] inconsistent lock state in kernfs_path_from_node

3 views
Skip to first unread message

syzbot

unread,
May 20, 2026, 10:09:26 AMMay 20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 93741761e5e3 Linux 5.15.207
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13e71ca6580000
kernel config: https://syzkaller.appspot.com/x/.config?x=353ae28c40b35af5
dashboard link: https://syzkaller.appspot.com/bug?extid=cf8db3e15e1fb1872a53
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/33bc193847b4/disk-93741761.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/24fe0e2c618a/vmlinux-93741761.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0222d2a4b225/bzImage-93741761.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+cf8db3...@syzkaller.appspotmail.com

================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {INITIAL USE} -> {IN-NMI} usage.
syz.4.2921/14216 [HC2[2]:SC0[0]:HE0:SE1] takes:
ffffffff8c450338 (kernfs_rename_lock){....}-{2:2}, at: kernfs_path_from_node+0x84/0xb30 fs/kernfs/dir.c:224
{INITIAL USE} state was registered at:
lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623
__raw_spin_lock_irq include/linux/spinlock_api_smp.h:128 [inline]
_raw_spin_lock_irq+0xab/0xf0 kernel/locking/spinlock.c:170
spin_lock_irq include/linux/spinlock.h:389 [inline]
kernfs_rename_ns+0x52a/0x930 fs/kernfs/dir.c:1629
sysfs_rename_link_ns+0x171/0x1b0 fs/sysfs/symlink.c:192
device_rename+0x11c/0x1a0 drivers/base/core.c:4267
dev_change_name+0x2dd/0xbf0 net/core/dev.c:1323
do_setlink+0xa4e/0x3d60 net/core/rtnetlink.c:2764
__rtnl_newlink net/core/rtnetlink.c:3455 [inline]
rtnl_newlink+0x1658/0x1a50 net/core/rtnetlink.c:3577
rtnetlink_rcv_msg+0x844/0xf30 net/core/rtnetlink.c:5687
netlink_rcv_skb+0x1f5/0x440 net/netlink/af_netlink.c:2507
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x774/0x920 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x8ba/0xbe0 net/netlink/af_netlink.c:1918
sock_sendmsg_nosec net/socket.c:706 [inline]
__sock_sendmsg net/socket.c:718 [inline]
__sys_sendto+0x46d/0x620 net/socket.c:2072
__do_sys_sendto net/socket.c:2084 [inline]
__se_sys_sendto net/socket.c:2080 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2080
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
irq event stamp: 2060
hardirqs last enabled at (2059): [<ffffffff89e00e46>] asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:713
hardirqs last disabled at (2060): [<ffffffff89bcd65f>] irqentry_enter+0xf/0x50 kernel/entry/common.c:332
softirqs last enabled at (2014): [<ffffffff87e376a5>] local_bh_enable+0x5/0x20 include/linux/bottom_half.h:31
softirqs last disabled at (1998): [<ffffffff87e37685>] local_bh_disable+0x5/0x20 include/linux/bottom_half.h:18

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

CPU0
----
lock(kernfs_rename_lock);
<Interrupt>
lock(kernfs_rename_lock);

*** DEADLOCK ***

1 lock held by syz.4.2921/14216:
#0: ffffffff8c31f320 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:313

stack backtrace:
CPU: 0 PID: 14216 Comm: syz.4.2921 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<#DB>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
lock_acquire+0x2c3/0x400 kernel/locking/lockdep.c:5614
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162
kernfs_path_from_node+0x84/0xb30 fs/kernfs/dir.c:224
kernfs_path include/linux/kernfs.h:547 [inline]
cgroup_path include/linux/cgroup.h:663 [inline]
get_mm_memcg_path+0xba/0x330 mm/mmap_lock.c:82
__mmap_lock_do_trace_start_locking+0xe2/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:135 [inline]
stack_map_get_build_id_offset+0x562/0x860 kernel/bpf/stackmap.c:185
__bpf_get_stackid+0x55d/0x920 kernel/bpf/stackmap.c:294
bpf_prog_12712c88fd19bd5b+0x21/0x984
bpf_dispatcher_nop_func include/linux/bpf.h:888 [inline]
__bpf_prog_run include/linux/filter.h:628 [inline]
bpf_prog_run include/linux/filter.h:635 [inline]
bpf_overflow_handler+0x1c2/0x4a0 kernel/events/core.c:10297
__perf_event_overflow+0x364/0x530 kernel/events/core.c:9515
perf_bp_event+0x276/0x320 kernel/events/core.c:10484
hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline]
hw_breakpoint_exceptions_notify+0x152/0x470 arch/x86/kernel/hw_breakpoint.c:586
notifier_call_chain kernel/notifier.c:83 [inline]
atomic_notifier_call_chain+0x15d/0x280 kernel/notifier.c:198
notify_die+0x141/0x1a0 kernel/notifier.c:529
notify_debug+0x20/0x30 arch/x86/kernel/traps.c:872
exc_debug_kernel arch/x86/kernel/traps.c:929 [inline]
exc_debug+0xcf/0x130 arch/x86/kernel/traps.c:1029
asm_exc_debug+0x1a/0x40 arch/x86/include/asm/idtentry.h:642
RIP: 0010:__get_user_nocheck_8+0x9/0x13 arch/x86/lib/getuser.S:160
Code: 90 0f 01 cb 0f ae e8 0f b7 10 31 c0 0f 01 ca c3 90 0f 01 cb 0f ae e8 8b 10 31 c0 0f 01 ca c3 90 90 0f 01 cb 0f ae e8 48 8b 10 <31> c0 0f 01 ca c3 90 0f 01 ca 31 d2 48 c7 c0 f2 ff ff ff c3 00 00
RSP: 0000:ffffc9000325f640 EFLAGS: 00040806
RAX: 0000200000000300 RBX: 0000000000000000 RCX: ffff88802dbc3b80
RDX: 00006370692f736e RSI: 0000200000000300 RDI: 00007fffffffeff0
RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff5200064bf27 R12: 0000200000000300
R13: 00007fffffffeff0 R14: 00000000ffffffff R15: dffffc0000000000
</#DB>
<TASK>
perf_callchain_user+0x40e/0xfd0 arch/x86/events/core.c:2900
get_perf_callchain+0x33d/0x460 kernel/events/callchain.c:221
perf_callchain kernel/events/core.c:7606 [inline]
perf_prepare_sample+0x352/0x1cd0 kernel/events/core.c:7633
__perf_event_output kernel/events/core.c:7802 [inline]
perf_event_output_forward+0x185/0x2e0 kernel/events/core.c:7822
__perf_event_overflow+0x364/0x530 kernel/events/core.c:9515
perf_swevent_hrtimer+0x41b/0x5b0 kernel/events/core.c:10934
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x4b4/0xb70 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x3bb/0x8d0 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
__sysvec_apic_timer_interrupt+0x137/0x4a0 arch/x86/kernel/apic/apic.c:1114
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0x4d/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0033:0x7fc2b9713bfd
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 <c5> fd d7 c1 85 c0 74 5b f3 0f bc c0 e9 30 01 00 00 66 90 f3 0f bc
RSP: 002b:00007fc2b798d8a8 EFLAGS: 00000283
RAX: 0000000000000300 RBX: 00007fc2b798dde0 RCX: 2f666c65732f636f
RDX: 0000200000000300 RSI: 00007fc2b97f50c0 RDI: 0000200000000300
RBP: 0000200000000300 R08: 00007fc2b798e010 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000073 R14: 00007fc2b97ca0dd R15: 00007fc2b798dea0
</TASK>
----------------
Code disassembly (best guess):
0: 90 nop
1: 0f 01 cb stac
4: 0f ae e8 lfence
7: 0f b7 10 movzwl (%rax),%edx
a: 31 c0 xor %eax,%eax
c: 0f 01 ca clac
f: c3 ret
10: 90 nop
11: 0f 01 cb stac
14: 0f ae e8 lfence
17: 8b 10 mov (%rax),%edx
19: 31 c0 xor %eax,%eax
1b: 0f 01 ca clac
1e: c3 ret
1f: 90 nop
20: 90 nop
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: 0f 01 ca clac
34: 31 d2 xor %edx,%edx
36: 48 c7 c0 f2 ff ff ff mov $0xfffffffffffffff2,%rax
3d: c3 ret


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
May 20, 2026, 10:54:26 AMMay 20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 93741761e5e3 Linux 5.15.207
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1663647e580000
kernel config: https://syzkaller.appspot.com/x/.config?x=353ae28c40b35af5
dashboard link: https://syzkaller.appspot.com/bug?extid=cf8db3e15e1fb1872a53
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16c62d96580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1529ecec580000
hrtimer: interrupt took 40586 ns
================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {INITIAL USE} -> {IN-NMI} usage.
syz.1.18/4390 [HC2[2]:SC0[0]:HE0:SE1] takes:
irq event stamp: 2650
hardirqs last enabled at (2649): [<ffffffff89e00e46>] asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:713
hardirqs last disabled at (2650): [<ffffffff89bcd65f>] irqentry_enter+0xf/0x50 kernel/entry/common.c:332
softirqs last enabled at (2606): [<ffffffff81495b1b>] __do_softirq kernel/softirq.c:610 [inline]
softirqs last enabled at (2606): [<ffffffff81495b1b>] invoke_softirq kernel/softirq.c:450 [inline]
softirqs last enabled at (2606): [<ffffffff81495b1b>] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659
softirqs last disabled at (2149): [<ffffffff81495b1b>] __do_softirq kernel/softirq.c:610 [inline]
softirqs last disabled at (2149): [<ffffffff81495b1b>] invoke_softirq kernel/softirq.c:450 [inline]
softirqs last disabled at (2149): [<ffffffff81495b1b>] __irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659

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

CPU0
----
lock(kernfs_rename_lock);
<Interrupt>
lock(kernfs_rename_lock);

*** DEADLOCK ***

1 lock held by syz.1.18/4390:
#0: ffffffff8c31f320 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x9/0x30 include/linux/rcupdate.h:313

stack backtrace:
CPU: 1 PID: 4390 Comm: syz.1.18 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<#DB>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
lock_acquire+0x2c3/0x400 kernel/locking/lockdep.c:5614
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162
kernfs_path_from_node+0x84/0xb30 fs/kernfs/dir.c:224
kernfs_path include/linux/kernfs.h:547 [inline]
cgroup_path include/linux/cgroup.h:663 [inline]
get_mm_memcg_path+0xba/0x330 mm/mmap_lock.c:82
__mmap_lock_do_trace_start_locking+0xe2/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:135 [inline]
stack_map_get_build_id_offset+0x562/0x860 kernel/bpf/stackmap.c:185
__bpf_get_stackid+0x55d/0x920 kernel/bpf/stackmap.c:294
bpf_prog_12712c88fd19bd5b+0x21/0x37c
bpf_dispatcher_nop_func include/linux/bpf.h:888 [inline]
__bpf_prog_run include/linux/filter.h:628 [inline]
bpf_prog_run include/linux/filter.h:635 [inline]
bpf_overflow_handler+0x1c2/0x4a0 kernel/events/core.c:10297
__perf_event_overflow+0x364/0x530 kernel/events/core.c:9515
perf_bp_event+0x276/0x320 kernel/events/core.c:10484
hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline]
hw_breakpoint_exceptions_notify+0x152/0x470 arch/x86/kernel/hw_breakpoint.c:586
notifier_call_chain kernel/notifier.c:83 [inline]
atomic_notifier_call_chain+0x15d/0x280 kernel/notifier.c:198
notify_die+0x141/0x1a0 kernel/notifier.c:529
notify_debug+0x20/0x30 arch/x86/kernel/traps.c:872
exc_debug_kernel arch/x86/kernel/traps.c:929 [inline]
exc_debug+0xcf/0x130 arch/x86/kernel/traps.c:1029
asm_exc_debug+0x1a/0x40 arch/x86/include/asm/idtentry.h:642
RIP: 0010:__get_user_nocheck_8+0x9/0x13 arch/x86/lib/getuser.S:160
Code: 90 0f 01 cb 0f ae e8 0f b7 10 31 c0 0f 01 ca c3 90 0f 01 cb 0f ae e8 8b 10 31 c0 0f 01 ca c3 90 90 0f 01 cb 0f ae e8 48 8b 10 <31> c0 0f 01 ca c3 90 0f 01 ca 31 d2 48 c7 c0 f2 ff ff ff c3 00 00
RSP: 0000:ffffc9000334f640 EFLAGS: 00040806
RAX: 0000200000000300 RBX: 0000000000000000 RCX: ffff888020390000
RDX: 00006370692f736e RSI: 0000200000000300 RDI: 00007fffffffeff0
RBP: 0000000000000001 R08: 0000000000000003 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff52000669f27 R12: 0000200000000300
R13: 00007fffffffeff0 R14: 00000000ffffffff R15: dffffc0000000000
</#DB>
<TASK>
perf_callchain_user+0x40e/0xfd0 arch/x86/events/core.c:2900
get_perf_callchain+0x33d/0x460 kernel/events/callchain.c:221
perf_callchain kernel/events/core.c:7606 [inline]
perf_prepare_sample+0x352/0x1cd0 kernel/events/core.c:7633
__perf_event_output kernel/events/core.c:7802 [inline]
perf_event_output_forward+0x185/0x2e0 kernel/events/core.c:7822
__perf_event_overflow+0x364/0x530 kernel/events/core.c:9515
perf_swevent_hrtimer+0x41b/0x5b0 kernel/events/core.c:10934
__run_hrtimer kernel/time/hrtimer.c:1685 [inline]
__hrtimer_run_queues+0x4b4/0xb70 kernel/time/hrtimer.c:1749
hrtimer_interrupt+0x3bb/0x8d0 kernel/time/hrtimer.c:1811
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
__sysvec_apic_timer_interrupt+0x137/0x4a0 arch/x86/kernel/apic/apic.c:1114
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0x4d/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0033:0x7f7efecdcbfd
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 <c5> fd d7 c1 85 c0 74 5b f3 0f bc c0 e9 30 01 00 00 66 90 f3 0f bc
RSP: 002b:00007fffa8dcd478 EFLAGS: 00000283
RAX: 0000000000000300 RBX: 00007fffa8dcd9b0 RCX: 2f666c65732f636f
RDX: 0000200000000300 RSI: 00007f7efedbe0c0 RDI: 0000200000000300
RBP: 0000200000000300 R08: 00007fffa8dcdbe0 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000073 R14: 00007f7efed930dd R15: 00007fffa8dcda70
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
May 30, 2026, 1:20:27 AMMay 30
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: dcbcab9d7079 Linux 6.1.174
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13382ab6580000
kernel config: https://syzkaller.appspot.com/x/.config?x=4dd3c1715f0a309b
dashboard link: https://syzkaller.appspot.com/bug?extid=99b9352b47a657a7cfcf
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4a27de67cc83/disk-dcbcab9d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a5a3869b647e/vmlinux-dcbcab9d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f5850e1fdff2/bzImage-dcbcab9d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+99b935...@syzkaller.appspotmail.com

================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {INITIAL USE} -> {IN-NMI} usage.
syz.4.6648/27037 [HC1[1]:SC0[0]:HE0:SE1] takes:
ffffffff8cc84638 (kernfs_rename_lock){....}-{2:2}, at: kernfs_path_from_node+0x85/0xd30 fs/kernfs/dir.c:232
{INITIAL USE} state was registered at:
lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662
__raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
_raw_spin_lock_irq+0xab/0xf0 kernel/locking/spinlock.c:170
spin_lock_irq include/linux/spinlock.h:376 [inline]
kernfs_rename_ns+0x550/0x990 fs/kernfs/dir.c:1734
sysfs_rename_link_ns+0x171/0x1b0 fs/sysfs/symlink.c:192
device_rename+0x11c/0x1a0 drivers/base/core.c:4562
dev_change_name+0x376/0x900 net/core/dev.c:1273
do_setlink+0x93d/0x3e60 net/core/rtnetlink.c:2816
__rtnl_newlink net/core/rtnetlink.c:3613 [inline]
rtnl_newlink+0x17d9/0x20a0 net/core/rtnetlink.c:3660
rtnetlink_rcv_msg+0x87c/0xfc0 net/core/rtnetlink.c:6157
netlink_rcv_skb+0x1fb/0x450 net/netlink/af_netlink.c:2511
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x74d/0x8d0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x8ad/0xbd0 net/netlink/af_netlink.c:1872
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
__sys_sendto+0x497/0x650 net/socket.c:2152
__do_sys_sendto net/socket.c:2164 [inline]
__se_sys_sendto net/socket.c:2160 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2160
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
irq event stamp: 850
hardirqs last enabled at (849): [<ffffffff8a2e9c51>] syscall_enter_from_user_mode+0x21/0x80 kernel/entry/common.c:117
hardirqs last disabled at (850): [<ffffffff8a2e690e>] exc_debug_kernel arch/x86/kernel/traps.c:1039 [inline]
hardirqs last disabled at (850): [<ffffffff8a2e690e>] exc_debug+0x6e/0x130 arch/x86/kernel/traps.c:1175
softirqs last enabled at (822): [<ffffffff819169b7>] spin_unlock_bh include/linux/spinlock.h:396 [inline]
softirqs last enabled at (822): [<ffffffff819169b7>] bpf_map_alloc_id+0x87/0xd0 kernel/bpf/syscall.c:386
softirqs last disabled at (820): [<ffffffff81916951>] spin_lock_bh include/linux/spinlock.h:356 [inline]
softirqs last disabled at (820): [<ffffffff81916951>] bpf_map_alloc_id+0x21/0xd0 kernel/bpf/syscall.c:382

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

CPU0
----
lock(kernfs_rename_lock);
<Interrupt>
lock(kernfs_rename_lock);

*** DEADLOCK ***

no locks held by syz.4.6648/27037.

stack backtrace:
CPU: 0 PID: 27037 Comm: syz.4.6648 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<#DB>
dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
lock_acquire+0x2df/0x4a0 kernel/locking/lockdep.c:5653
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162
kernfs_path_from_node+0x85/0xd30 fs/kernfs/dir.c:232
kernfs_path include/linux/kernfs.h:595 [inline]
cgroup_path include/linux/cgroup.h:674 [inline]
get_mm_memcg_path+0xb9/0x360 mm/mmap_lock.c:82
__mmap_lock_do_trace_acquire_returned+0xe7/0x390 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:137 [inline]
stack_map_get_build_id_offset+0x6b2/0x970 kernel/bpf/stackmap.c:144
__bpf_get_stackid+0x55d/0x920 kernel/bpf/stackmap.c:250
bpf_prog_12712c88fd19bd5b+0x21/0x25
bpf_dispatcher_nop_func include/linux/bpf.h:1012 [inline]
__bpf_prog_run include/linux/filter.h:596 [inline]
bpf_prog_run include/linux/filter.h:614 [inline]
bpf_overflow_handler+0x6e8/0x7c0 kernel/events/core.c:10321
__perf_event_overflow+0x448/0x610 kernel/events/core.c:9496
perf_swevent_overflow kernel/events/core.c:9579 [inline]
perf_swevent_event+0x315/0x570 kernel/events/core.c:9630
perf_bp_event+0x312/0x3f0 kernel/events/core.c:10518
hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline]
hw_breakpoint_exceptions_notify+0x152/0x470 arch/x86/kernel/hw_breakpoint.c:586
notifier_call_chain kernel/notifier.c:87 [inline]
atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225
notify_die+0x141/0x1a0 kernel/notifier.c:593
notify_debug+0x20/0x30 arch/x86/kernel/traps.c:1018
exc_debug_kernel arch/x86/kernel/traps.c:1075 [inline]
exc_debug+0xd9/0x130 arch/x86/kernel/traps.c:1175
asm_exc_debug+0x1a/0x40 arch/x86/include/asm/idtentry.h:648
RIP: 0010:copy_user_enhanced_fast_string+0xa/0x40 arch/x86/lib/copy_user_64.S:166
Code: ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 20 0f 01 cb 83 fa 40 72 38 89 d1 <f3> a4 31 c0 0f 01 ca c3 89 ca eb 0a 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90004aafd48 EFLAGS: 00050202
RAX: ffffffff84115b01 RBX: 0000000000000050 RCX: 000000000000004f
RDX: 0000000000000050 RSI: 0000200000000301 RDI: ffffc90004aafdc1
RBP: 0000000000000000 R08: ffffc90004aafe0f R09: 1ffff92000955fc1
R10: dffffc0000000000 R11: fffff52000955fc2 R12: 00007fffffffefb0
R13: 0000000000000050 R14: ffffc90004aafdc0 R15: 0000200000000300
</#DB>
<TASK>
copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline]
_copy_from_user+0xf4/0x170 lib/usercopy.c:23
copy_from_user include/linux/uaccess.h:161 [inline]
copy_from_bpfptr_offset include/linux/bpfptr.h:53 [inline]
copy_from_bpfptr include/linux/bpfptr.h:59 [inline]
__sys_bpf+0x2ea/0x780 kernel/bpf/syscall.c:5004
__do_sys_bpf kernel/bpf/syscall.c:5135 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5133 [inline]
__x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5133
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fdca899ce59
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:00007fdca98a7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fdca8c16090 RCX: 00007fdca899ce59
RDX: 0000000000000050 RSI: 0000200000000300 RDI: 0000000000000000
RBP: 00007fdca8a32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdca8c16128 R14: 00007fdca8c16090 R15: 00007ffead3d8608
</TASK>
----------------
Code disassembly (best guess):
0: ff c9 dec %ecx
2: 75 f2 jne 0xfffffff6
4: 89 d1 mov %edx,%ecx
6: c1 e9 03 shr $0x3,%ecx
9: 83 e2 07 and $0x7,%edx
c: f3 48 a5 rep movsq %ds:(%rsi),%es:(%rdi)
f: 89 d1 mov %edx,%ecx
11: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi)
13: 31 c0 xor %eax,%eax
15: 0f 01 ca clac
18: c3 ret
19: 8d 0c ca lea (%rdx,%rcx,8),%ecx
1c: 89 ca mov %ecx,%edx
1e: eb 20 jmp 0x40
20: 0f 01 cb stac
23: 83 fa 40 cmp $0x40,%edx
26: 72 38 jb 0x60
28: 89 d1 mov %edx,%ecx
* 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction
2c: 31 c0 xor %eax,%eax
2e: 0f 01 ca clac
31: c3 ret
32: 89 ca mov %ecx,%edx
34: eb 0a jmp 0x40
36: 90 nop
37: 90 nop
38: 90 nop
39: 90 nop
3a: 90 nop
3b: 90 nop
3c: 90 nop
3d: 90 nop
3e: 90 nop
3f: 90 nop

syzbot

unread,
Jun 6, 2026, 10:18:40 PM (7 days ago) Jun 6
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 228da13e907e Linux 6.1.175
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12bb20ae580000
kernel config: https://syzkaller.appspot.com/x/.config?x=4dd3c1715f0a309b
dashboard link: https://syzkaller.appspot.com/bug?extid=99b9352b47a657a7cfcf
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=160203d2580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16fb3f2e580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/894d01ce6736/disk-228da13e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2a4cec18e217/vmlinux-228da13e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/32550387ebe8/bzImage-228da13e.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+99b935...@syzkaller.appspotmail.com

================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {INITIAL USE} -> {IN-NMI} usage.
syz.0.30/4443 [HC2[2]:SC0[0]:HE0:SE1] takes:
ffffffff8cc845f8 (kernfs_rename_lock){....}-{2:2}, at: kernfs_path_from_node+0x85/0xd30 fs/kernfs/dir.c:232
{INITIAL USE} state was registered at:
lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5662
__raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
_raw_spin_lock_irq+0xab/0xf0 kernel/locking/spinlock.c:170
spin_lock_irq include/linux/spinlock.h:376 [inline]
kernfs_rename_ns+0x550/0x990 fs/kernfs/dir.c:1734
sysfs_rename_link_ns+0x171/0x1b0 fs/sysfs/symlink.c:192
device_rename+0x11c/0x1a0 drivers/base/core.c:4577
dev_change_name+0x376/0x900 net/core/dev.c:1273
do_setlink+0x93d/0x3e60 net/core/rtnetlink.c:2817
__rtnl_newlink net/core/rtnetlink.c:3614 [inline]
rtnl_newlink+0x17d9/0x20a0 net/core/rtnetlink.c:3661
rtnetlink_rcv_msg+0x87c/0xfc0 net/core/rtnetlink.c:6158
netlink_rcv_skb+0x1fb/0x450 net/netlink/af_netlink.c:2511
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x74d/0x8d0 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x8ad/0xbd0 net/netlink/af_netlink.c:1872
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
__sys_sendto+0x497/0x650 net/socket.c:2152
__do_sys_sendto net/socket.c:2164 [inline]
__se_sys_sendto net/socket.c:2160 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2160
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
irq event stamp: 3556
hardirqs last enabled at (3555): [<ffffffff8a2f15d8>] do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82
hardirqs last disabled at (3556): [<ffffffff8a2f5e8f>] irqentry_enter+0xf/0x50 kernel/entry/common.c:328
softirqs last enabled at (3394): [<ffffffff81a9903c>] rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
softirqs last enabled at (3394): [<ffffffff81a9903c>] rcu_read_lock include/linux/rcupdate.h:791 [inline]
softirqs last enabled at (3394): [<ffffffff81a9903c>] __rhashtable_insert_fast include/linux/rhashtable.h:713 [inline]
softirqs last enabled at (3394): [<ffffffff81a9903c>] rhltable_insert_key include/linux/rhashtable.h:852 [inline]
softirqs last enabled at (3394): [<ffffffff81a9903c>] rhltable_insert include/linux/rhashtable.h:879 [inline]
softirqs last enabled at (3394): [<ffffffff81a9903c>] toggle_bp_slot+0x199c/0x2bc0 kernel/events/hw_breakpoint.c:521
softirqs last disabled at (3392): [<ffffffff81a9ab5c>] local_bh_disable include/linux/bottom_half.h:20 [inline]
softirqs last disabled at (3392): [<ffffffff81a9ab5c>] rht_lock+0x1c/0x150 include/linux/rhashtable.h:329

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

CPU0
----
lock(kernfs_rename_lock);
<Interrupt>
lock(kernfs_rename_lock);

*** DEADLOCK ***

1 lock held by syz.0.30/4443:
#0: ffffffff8cb2de60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
#0: ffffffff8cb2de60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
#0: ffffffff8cb2de60 (rcu_read_lock){....}-{1:2}, at: __perf_event_output kernel/events/core.c:7728 [inline]
#0: ffffffff8cb2de60 (rcu_read_lock){....}-{1:2}, at: perf_event_output_forward+0xbe/0x2f0 kernel/events/core.c:7750

stack backtrace:
CPU: 0 PID: 4443 Comm: syz.0.30 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
<#DB>
dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
lock_acquire+0x2df/0x4a0 kernel/locking/lockdep.c:5653
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162
kernfs_path_from_node+0x85/0xd30 fs/kernfs/dir.c:232
kernfs_path include/linux/kernfs.h:595 [inline]
cgroup_path include/linux/cgroup.h:674 [inline]
get_mm_memcg_path+0xb9/0x360 mm/mmap_lock.c:82
__mmap_lock_do_trace_acquire_returned+0xe7/0x390 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:137 [inline]
stack_map_get_build_id_offset+0x6b2/0x970 kernel/bpf/stackmap.c:144
__bpf_get_stackid+0x55d/0x920 kernel/bpf/stackmap.c:250
bpf_prog_12712c88fd19bd5b+0x21/0x25
bpf_dispatcher_nop_func include/linux/bpf.h:1012 [inline]
__bpf_prog_run include/linux/filter.h:607 [inline]
bpf_prog_run include/linux/filter.h:614 [inline]
bpf_overflow_handler+0x522/0x7c0 kernel/events/core.c:10321
__perf_event_overflow+0x448/0x610 kernel/events/core.c:9496
perf_swevent_overflow kernel/events/core.c:9579 [inline]
perf_swevent_event+0x315/0x570 kernel/events/core.c:9630
perf_bp_event+0x312/0x3f0 kernel/events/core.c:10518
hw_breakpoint_handler arch/x86/kernel/hw_breakpoint.c:555 [inline]
hw_breakpoint_exceptions_notify+0x152/0x470 arch/x86/kernel/hw_breakpoint.c:586
notifier_call_chain kernel/notifier.c:87 [inline]
atomic_notifier_call_chain+0x17a/0x2b0 kernel/notifier.c:225
notify_die+0x141/0x1a0 kernel/notifier.c:593
notify_debug+0x20/0x30 arch/x86/kernel/traps.c:1018
exc_debug_kernel arch/x86/kernel/traps.c:1075 [inline]
exc_debug+0xd9/0x130 arch/x86/kernel/traps.c:1175
asm_exc_debug+0x1a/0x40 arch/x86/include/asm/idtentry.h:648
RIP: 0010:__get_user_nocheck_8+0x9/0x13 arch/x86/lib/getuser.S:160
Code: 90 0f 01 cb 0f ae e8 0f b7 10 31 c0 0f 01 ca c3 90 0f 01 cb 0f ae e8 8b 10 31 c0 0f 01 ca c3 90 90 0f 01 cb 0f ae e8 48 8b 10 <31> c0 0f 01 ca c3 90 0f 01 ca 31 d2 48 c7 c0 f2 ff ff ff c3 00 00
RSP: 0000:ffffc900032d7640 EFLAGS: 00040806
RAX: 0000200000000300 RBX: dffffc0000000000 RCX: ffff8880276a8000
RDX: 00006370692f736e RSI: 0000200000000300 RDI: 00007fffffffeff0
RBP: 0000000000000000 R08: 000000000000007f R09: 0000000000000000
R10: dffffc0000000000 R11: fffff5200065af27 R12: 00000000ffffffff
R13: 0000200000000300 R14: 000000000000007f R15: 00007fffffffeff0
</#DB>
<TASK>
perf_callchain_user+0x55d/0x13c0 arch/x86/events/core.c:2982
get_perf_callchain+0x39e/0x490 kernel/events/callchain.c:219
perf_callchain kernel/events/core.c:7512 [inline]
perf_prepare_sample+0x399/0x2020 kernel/events/core.c:7545
__perf_event_output kernel/events/core.c:7730 [inline]
perf_event_output_forward+0x197/0x2f0 kernel/events/core.c:7750
__perf_event_overflow+0x448/0x610 kernel/events/core.c:9496
perf_event_overflow kernel/events/core.c:9517 [inline]
perf_swevent_hrtimer+0x472/0x630 kernel/events/core.c:10967
__run_hrtimer kernel/time/hrtimer.c:1751 [inline]
__hrtimer_run_queues+0x50b/0xd50 kernel/time/hrtimer.c:1815
hrtimer_interrupt+0x3c5/0x9c0 kernel/time/hrtimer.c:1877
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1107 [inline]
__sysvec_apic_timer_interrupt+0x153/0x5a0 arch/x86/kernel/apic/apic.c:1124
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
sysvec_apic_timer_interrupt+0x4d/0xc0 arch/x86/kernel/apic/apic.c:1118
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0033:0x7fc47ad4f4a0
Code: 43 08 48 3b 43 10 0f 84 11 08 00 00 48 8d 50 01 48 89 53 08 c6 00 20 8b 44 24 18 83 6c 24 10 01 89 44 24 14 e9 b9 f2 ff ff 90 <48> 89 ef e8 38 be ef ff 49 89 c4 e9 af ea ff ff 0f b6 4c 24 20 b8
RSP: 002b:00007fff6d7c7f30 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 00007fff6d7c8460 RCX: 2f666c65732f636f
RDX: 00007fff6d7c8558 RSI: 00007fc47ae5d140 RDI: 00007fc47afdcfe0
RBP: 0000200000000300 R08: 00007fff6d7c8690 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000073 R14: 00007fc47ae320dd R15: 00007fff6d7c8520
</TASK>
----------------
Code disassembly (best guess):

syzbot

unread,
Jun 8, 2026, 1:10:28 AM (5 days ago) Jun 8
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 924b4a879cbb Linux 6.6.142
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11419eee580000
kernel config: https://syzkaller.appspot.com/x/.config?x=90249d2d52c08134
dashboard link: https://syzkaller.appspot.com/bug?extid=0b2db953e598e71c5a7e
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9e93d24918c0/disk-924b4a87.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/93a808a8e8a1/vmlinux-924b4a87.xz
kernel image: https://storage.googleapis.com/syzbot-assets/813dba374501/bzImage-924b4a87.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0b2db9...@syzkaller.appspotmail.com

================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {INITIAL USE} -> {IN-NMI} usage.
syz.1.3909/20291 [HC1[1]:SC0[0]:HE0:SE1] takes:
ffffffff8d297c78 (kernfs_rename_lock){....}-{2:2}, at: kernfs_path_from_node+0x89/0xbb0 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+0x5d0/0x810 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+0x307/0x8c0 net/core/dev.c:1291
do_setlink+0x9fc/0x4130 net/core/rtnetlink.c:2889
__rtnl_newlink net/core/rtnetlink.c:3707 [inline]
rtnl_newlink+0x17da/0x20a0 net/core/rtnetlink.c:3754
rtnetlink_rcv_msg+0x869/0xfa0 net/core/rtnetlink.c:6476
netlink_rcv_skb+0x241/0x4d0 net/netlink/af_netlink.c:2545
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x751/0x8d0 net/netlink/af_netlink.c:1346
netlink_sendmsg+0x8d0/0xbf0 net/netlink/af_netlink.c:1894
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
__sys_sendto+0x4a9/0x6b0 net/socket.c:2200
__do_sys_sendto net/socket.c:2212 [inline]
__se_sys_sendto net/socket.c:2208 [inline]
__x64_sys_sendto+0xde/0xf0 net/socket.c:2208
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: 1404
hardirqs last enabled at (1403): [<ffffffff81d413ba>] seqcount_lockdep_reader_access+0x10a/0x190 include/linux/seqlock.h:104
hardirqs last disabled at (1404): [<ffffffff8a8829a3>] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline]
hardirqs last disabled at (1404): [<ffffffff8a8829a3>] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199
softirqs last enabled at (1272): [<ffffffff88b56c1f>] netlink_insert+0x109f/0x13a0 net/netlink/af_netlink.c:589
softirqs last disabled at (1270): [<ffffffff8873073f>] spin_lock_bh include/linux/spinlock.h:356 [inline]
softirqs last disabled at (1270): [<ffffffff8873073f>] release_sock+0x2f/0x1c0 net/core/sock.c:3548

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

CPU0
----
lock(kernfs_rename_lock);
<Interrupt>
lock(kernfs_rename_lock);

*** DEADLOCK ***

no locks held by syz.1.3909/20291.

stack backtrace:
CPU: 1 PID: 20291 Comm: syz.1.3909 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/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+0x89/0xbb0 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+0x5f2/0x720 kernel/bpf/stackmap.c:141
__bpf_get_stackid+0x55c/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:10584
__perf_event_overflow+0x447/0x630 kernel/events/core.c:9720
perf_swevent_overflow kernel/events/core.c:9803 [inline]
perf_swevent_event+0x319/0x570 kernel/events/core.c:9854
perf_bp_event+0x319/0x430 kernel/events/core.c:10781
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+0x197/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:rep_movs_alternative+0x4a/0x90 arch/x86/lib/copy_user_64.S:71
Code: 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 <f3> a4 c3 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 29 f8 48 01
RSP: 0018:ffffc9000430f798 EFLAGS: 00050206
RAX: ffffffff84284301 RBX: 0000000000033fe0 RCX: 0000000000033d00
RDX: 0000000000000001 RSI: 0000200000000320 RDI: ffffc900045d12e0
RBP: ffffc9000430f8f0 R08: ffffc90004604fdf R09: 1ffff920008c09fb
R10: dffffc0000000000 R11: fffff520008c09fc R12: ffffc900045d1000
R13: 0000200000000040 R14: ffffc9000430fe38 R15: 1ffff92000861fc7
</#DB>
<TASK>
copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline]
raw_copy_from_user arch/x86/include/asm/uaccess_64.h:127 [inline]
copyin lib/iov_iter.c:193 [inline]
_copy_from_iter+0x24e/0x12e0 lib/iov_iter.c:390
copy_from_iter include/linux/uio.h:209 [inline]
copy_from_iter_full include/linux/uio.h:216 [inline]
memcpy_from_msg include/linux/skbuff.h:4109 [inline]
netlink_sendmsg+0x76b/0xbf0 net/netlink/af_netlink.c:1879
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
____sys_sendmsg+0x5ba/0x960 net/socket.c:2594
___sys_sendmsg+0x2a6/0x360 net/socket.c:2648
__sys_sendmsg net/socket.c:2677 [inline]
__do_sys_sendmsg net/socket.c:2686 [inline]
__se_sys_sendmsg+0x1c2/0x2b0 net/socket.c:2684
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:0x7f67aef9ce59
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:00007f67afef3028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f67af215fa0 RCX: 00007f67aef9ce59
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 000000000000000c
RBP: 00007f67af032d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f67af216038 R14: 00007f67af215fa0 R15: 00007ffe4cbbf7c8
</TASK>
----------------
Code disassembly (best guess):
0: 75 f1 jne 0xfffffff3
2: c3 ret
3: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
a: 00 00 00
d: 0f 1f 00 nopl (%rax)
10: 48 8b 06 mov (%rsi),%rax
13: 48 89 07 mov %rax,(%rdi)
16: 48 83 c6 08 add $0x8,%rsi
1a: 48 83 c7 08 add $0x8,%rdi
1e: 83 e9 08 sub $0x8,%ecx
21: 74 df je 0x2
23: 83 f9 08 cmp $0x8,%ecx
26: 73 e8 jae 0x10
28: eb c9 jmp 0xfffffff3
* 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction
2c: c3 ret
2d: 48 8b 06 mov (%rsi),%rax
30: 48 89 07 mov %rax,(%rdi)
33: 48 8d 47 08 lea 0x8(%rdi),%rax
37: 48 83 e0 f8 and $0xfffffffffffffff8,%rax
3b: 48 29 f8 sub %rdi,%rax
3e: 48 rex.W
3f: 01 .byte 0x1

syzbot

unread,
Jun 8, 2026, 4:13:36 AM (5 days ago) Jun 8
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 924b4a879cbb Linux 6.6.142
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=110b376a580000
kernel config: https://syzkaller.appspot.com/x/.config?x=90249d2d52c08134
dashboard link: https://syzkaller.appspot.com/bug?extid=0b2db953e598e71c5a7e
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1760dbec580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1221ea56580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9e93d24918c0/disk-924b4a87.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/93a808a8e8a1/vmlinux-924b4a87.xz
kernel image: https://storage.googleapis.com/syzbot-assets/813dba374501/bzImage-924b4a87.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0b2db9...@syzkaller.appspotmail.com

================================
WARNING: inconsistent lock state
syzkaller #0 Not tainted
--------------------------------
inconsistent {INITIAL USE} -> {IN-NMI} usage.
syz.0.17/5927 [HC1[1]:SC0[0]:HE0:SE1] takes:
irq event stamp: 3168
hardirqs last enabled at (3167): [<ffffffff8a920546>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last enabled at (3167): [<ffffffff8a920546>] _raw_spin_unlock_irqrestore+0x86/0x120 kernel/locking/spinlock.c:194
hardirqs last disabled at (3168): [<ffffffff8a8829a3>] exc_debug_kernel arch/x86/kernel/traps.c:1063 [inline]
hardirqs last disabled at (3168): [<ffffffff8a8829a3>] exc_debug+0x73/0x140 arch/x86/kernel/traps.c:1199
softirqs last enabled at (3034): [<ffffffff88b56c1f>] netlink_insert+0x109f/0x13a0 net/netlink/af_netlink.c:589
softirqs last disabled at (3032): [<ffffffff8873073f>] spin_lock_bh include/linux/spinlock.h:356 [inline]
softirqs last disabled at (3032): [<ffffffff8873073f>] release_sock+0x2f/0x1c0 net/core/sock.c:3548

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

CPU0
----
lock(kernfs_rename_lock);
<Interrupt>
lock(kernfs_rename_lock);

*** DEADLOCK ***

no locks held by syz.0.17/5927.

stack backtrace:
CPU: 0 PID: 5927 Comm: syz.0.17 Not tainted syzkaller #0
hw_breakpoint_exceptions_notify+0x23e/0x670 arch/x86/kernel/hw_breakpoint.c:586
notifier_call_chain+0x197/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:rep_movs_alternative+0x4a/0x90 arch/x86/lib/copy_user_64.S:71
Code: 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 <f3> a4 c3 48 8b 06 48 89 07 48 8d 47 08 48 83 e0 f8 48 29 f8 48 01
RSP: 0018:ffffc9000478f798 EFLAGS: 00050206
RAX: ffffffff84284301 RBX: 0000000000033fe0 RCX: 0000000000033d00
RDX: 0000000000000001 RSI: 0000200000000320 RDI: ffffc900033392e0
RBP: ffffc9000478f8f0 R08: ffffc9000336cfdf R09: 1ffff9200066d9fb
R10: dffffc0000000000 R11: fffff5200066d9fc R12: ffffc90003339000
R13: 0000200000000040 R14: ffffc9000478fe38 R15: 1ffff920008f1fc7
</#DB>
<TASK>
copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline]
raw_copy_from_user arch/x86/include/asm/uaccess_64.h:127 [inline]
copyin lib/iov_iter.c:193 [inline]
_copy_from_iter+0x24e/0x12e0 lib/iov_iter.c:390
copy_from_iter include/linux/uio.h:209 [inline]
copy_from_iter_full include/linux/uio.h:216 [inline]
memcpy_from_msg include/linux/skbuff.h:4109 [inline]
netlink_sendmsg+0x76b/0xbf0 net/netlink/af_netlink.c:1879
sock_sendmsg_nosec net/socket.c:730 [inline]
__sock_sendmsg net/socket.c:745 [inline]
____sys_sendmsg+0x5ba/0x960 net/socket.c:2594
___sys_sendmsg+0x2a6/0x360 net/socket.c:2648
__sys_sendmsg net/socket.c:2677 [inline]
__do_sys_sendmsg net/socket.c:2686 [inline]
__se_sys_sendmsg+0x1c2/0x2b0 net/socket.c:2684
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:0x7f10fdb9ce59
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:00007fff03061e48 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f10fde15fa0 RCX: 00007f10fdb9ce59
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000007
RBP: 00007f10fdc32d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f10fde15fac R14: 00007f10fde15fa0 R15: 00007f10fde15fa0
Reply all
Reply to author
Forward
0 new messages