FAULT_INJECTION: forcing a failure.
name fail_usercopy, interval 1, probability 0, space 0, times 0
======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Not tainted
------------------------------------------------------
syz.4.473/8623 is trying to acquire lock:
ffffffff8e331260 (console_owner){-.-.}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:336 [inline]
ffffffff8e331260 (console_owner){-.-.}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:335 [inline]
ffffffff8e331260 (console_owner){-.-.}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:289 [inline]
ffffffff8e331260 (console_owner){-.-.}-{0:0}, at: console_flush_all+0x13a/0xb10 kernel/printk/printk.c:3176
but task is already holding lock:
ffff8880b863a018 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:646
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #4 (&rq->__lock){-.-.}-{2:2}:
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
_raw_spin_lock_nested+0x32/0x50 kernel/locking/spinlock.c:378
raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:638
raw_spin_rq_lock kernel/sched/sched.h:1546 [inline]
task_rq_lock+0xbc/0x470 kernel/sched/core.c:738
cgroup_move_task+0x92/0x2a0 kernel/sched/psi.c:1170
css_set_move_task+0x658/0x9e0 kernel/cgroup/cgroup.c:951
cgroup_post_fork+0x1ef/0x790 kernel/cgroup/cgroup.c:6913
copy_process+0x3862/0x3c00 kernel/fork.c:2425
kernel_clone+0x21e/0x840 kernel/fork.c:2609
user_mode_thread+0xdd/0x140 kernel/fork.c:2685
rest_init+0x23/0x300 init/main.c:722
start_kernel+0x3ae/0x410 init/main.c:1111
x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310
x86_64_start_kernel+0x143/0x1c0 arch/x86/kernel/head64.c:291
common_startup_64+0x13e/0x147
-> #3 (&p->pi_lock){-.-.}-{2:2}:
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xa7/0xf0 kernel/locking/spinlock.c:162
class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:557 [inline]
try_to_wake_up+0x67/0x12b0 kernel/sched/core.c:4181
__wake_up_common kernel/sched/wait.c:108 [inline]
__wake_up_common_lock+0x137/0x1f0 kernel/sched/wait.c:125
tty_port_default_wakeup+0xfb/0x170 drivers/tty/tty_port.c:67
serial8250_tx_chars+0x72e/0x970 drivers/tty/serial/8250/8250_port.c:1719
serial8250_handle_irq+0x633/0xbb0 drivers/tty/serial/8250/8250_port.c:1827
serial8250_default_handle_irq+0xbf/0x200 drivers/tty/serial/8250/8250_port.c:1846
serial8250_interrupt+0x8d/0x180 drivers/tty/serial/8250/8250_core.c:82
__handle_irq_event_percpu+0x295/0xab0 kernel/irq/handle.c:203
handle_irq_event_percpu kernel/irq/handle.c:240 [inline]
handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:257
handle_edge_irq+0x23b/0xa10 kernel/irq/chip.c:855
generic_handle_irq_desc include/linux/irqdesc.h:173 [inline]
handle_irq arch/x86/kernel/irq.c:254 [inline]
call_irq_handler arch/x86/kernel/irq.c:-1 [inline]
__common_interrupt+0x141/0x1f0 arch/x86/kernel/irq.c:325
common_interrupt+0xb6/0xe0 arch/x86/kernel/irq.c:318
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:688
native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
pv_native_safe_halt+0x13/0x20 arch/x86/kernel/paravirt.c:81
arch_safe_halt arch/x86/include/asm/paravirt.h:107 [inline]
default_idle+0x13/0x20 arch/x86/kernel/process.c:767
default_idle_call+0x73/0xb0 kernel/sched/idle.c:122
cpuidle_idle_call kernel/sched/idle.c:190 [inline]
do_idle+0x1e7/0x510 kernel/sched/idle.c:330
cpu_startup_entry+0x44/0x60 kernel/sched/idle.c:428
rest_init+0x2de/0x300 init/main.c:757
start_kernel+0x3ae/0x410 init/main.c:1111
x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310
x86_64_start_kernel+0x143/0x1c0 arch/x86/kernel/head64.c:291
common_startup_64+0x13e/0x147
-> #2 (&tty->write_wait){-.-.}-{3:3}:
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xa7/0xf0 kernel/locking/spinlock.c:162
__wake_up_common_lock+0x2f/0x1f0 kernel/sched/wait.c:124
tty_port_default_wakeup+0xfb/0x170 drivers/tty/tty_port.c:67
serial8250_tx_chars+0x72e/0x970 drivers/tty/serial/8250/8250_port.c:1719
serial8250_handle_irq+0x633/0xbb0 drivers/tty/serial/8250/8250_port.c:1827
serial8250_default_handle_irq+0xbf/0x200 drivers/tty/serial/8250/8250_port.c:1846
serial8250_interrupt+0x8d/0x180 drivers/tty/serial/8250/8250_core.c:82
__handle_irq_event_percpu+0x295/0xab0 kernel/irq/handle.c:203
handle_irq_event_percpu kernel/irq/handle.c:240 [inline]
handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:257
handle_edge_irq+0x23b/0xa10 kernel/irq/chip.c:855
generic_handle_irq_desc include/linux/irqdesc.h:173 [inline]
handle_irq arch/x86/kernel/irq.c:254 [inline]
call_irq_handler arch/x86/kernel/irq.c:-1 [inline]
__common_interrupt+0x141/0x1f0 arch/x86/kernel/irq.c:325
common_interrupt+0xb6/0xe0 arch/x86/kernel/irq.c:318
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:688
native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
pv_native_safe_halt+0x13/0x20 arch/x86/kernel/paravirt.c:81
arch_safe_halt arch/x86/include/asm/paravirt.h:107 [inline]
default_idle+0x13/0x20 arch/x86/kernel/process.c:767
default_idle_call+0x73/0xb0 kernel/sched/idle.c:122
cpuidle_idle_call kernel/sched/idle.c:190 [inline]
do_idle+0x1e7/0x510 kernel/sched/idle.c:330
cpu_startup_entry+0x44/0x60 kernel/sched/idle.c:428
rest_init+0x2de/0x300 init/main.c:757
start_kernel+0x3ae/0x410 init/main.c:1111
x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310
x86_64_start_kernel+0x143/0x1c0 arch/x86/kernel/head64.c:291
common_startup_64+0x13e/0x147
-> #1 (&port_lock_key){-.-.}-{3:3}:
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xa7/0xf0 kernel/locking/spinlock.c:162
uart_port_lock_irqsave include/linux/serial_core.h:717 [inline]
serial8250_console_write+0x17e/0x1ba0 drivers/tty/serial/8250/8250_port.c:3301
console_emit_next_record kernel/printk/printk.c:3111 [inline]
console_flush_all+0x6f3/0xb10 kernel/printk/printk.c:3199
__console_flush_and_unlock kernel/printk/printk.c:3258 [inline]
console_unlock+0xbb/0x190 kernel/printk/printk.c:3298
vprintk_emit+0x4c5/0x590 kernel/printk/printk.c:2423
_printk+0xcf/0x120 kernel/printk/printk.c:2448
register_console+0xa8b/0xf90 kernel/printk/printk.c:4099
univ8250_console_init+0x3a/0x70 drivers/tty/serial/8250/8250_core.c:511
console_init+0x10e/0x430 kernel/printk/printk.c:4298
start_kernel+0x254/0x410 init/main.c:1048
x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310
x86_64_start_kernel+0x143/0x1c0 arch/x86/kernel/head64.c:291
common_startup_64+0x13e/0x147
-> #0 (console_owner){-.-.}-{0:0}:
check_prev_add kernel/locking/lockdep.c:3165 [inline]
check_prevs_add kernel/locking/lockdep.c:3284 [inline]
validate_chain+0xb9b/0x2140 kernel/locking/lockdep.c:3908
__lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
console_lock_spinning_enable kernel/printk/printk.c:1897 [inline]
console_emit_next_record kernel/printk/printk.c:3105 [inline]
console_flush_all+0x69c/0xb10 kernel/printk/printk.c:3199
__console_flush_and_unlock kernel/printk/printk.c:3258 [inline]
console_unlock+0xbb/0x190 kernel/printk/printk.c:3298
vprintk_emit+0x4c5/0x590 kernel/printk/printk.c:2423
_printk+0xcf/0x120 kernel/printk/printk.c:2448
fail_dump lib/fault-inject.c:66 [inline]
should_fail_ex+0x3f5/0x560 lib/fault-inject.c:174
strncpy_from_user+0x36/0x290 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x72/0x150 mm/maccess.c:192
bpf_trace_copy_string kernel/bpf/helpers.c:758 [inline]
bpf_bprintf_prepare+0xb91/0x13a0 kernel/bpf/helpers.c:976
____bpf_trace_printk kernel/trace/bpf_trace.c:372 [inline]
bpf_trace_printk+0xdb/0x190 kernel/trace/bpf_trace.c:362
bpf_prog_930ede9872f2967c+0x3e/0x44
bpf_dispatcher_nop_func include/linux/bpf.h:1350 [inline]
__bpf_prog_run include/linux/filter.h:721 [inline]
bpf_prog_run include/linux/filter.h:728 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline]
bpf_trace_run2+0x284/0x4b0 kernel/trace/bpf_trace.c:2116
__bpf_trace_contention_begin+0xdc/0x130 include/trace/events/lock.h:95
__do_trace_contention_begin include/trace/events/lock.h:95 [inline]
trace_contention_begin+0x114/0x140 include/trace/events/lock.h:95
__pv_queued_spin_lock_slowpath+0xf0/0xb60 kernel/locking/qspinlock.c:219
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [inline]
queued_spin_lock_slowpath+0x43/0x50 arch/x86/include/asm/qspinlock.h:51
queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
do_raw_spin_lock+0x21f/0x290 kernel/locking/spinlock_debug.c:116
raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:646
raw_spin_rq_lock kernel/sched/sched.h:1546 [inline]
rq_lock kernel/sched/sched.h:1868 [inline]
__schedule+0x36b/0x4cc0 kernel/sched/core.c:6833
preempt_schedule_irq+0xb5/0x150 kernel/sched/core.c:7256
irqentry_exit+0x6f/0x90 kernel/entry/common.c:211
asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
memset_orig+0x52/0xb0 arch/x86/lib/memset_64.S:76
kasan_poison mm/kasan/shadow.c:146 [inline]
kasan_unpoison+0x48/0x70 mm/kasan/shadow.c:178
__kasan_unpoison_pages+0x25/0x30 mm/kasan/common.c:139
kasan_unpoison_pages include/linux/kasan.h:125 [inline]
post_alloc_hook+0xb7/0x2a0 mm/page_alloc.c:1834
prep_new_page mm/page_alloc.c:1858 [inline]
get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183
alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416
___kmalloc_large_node+0x5f/0x1b0 mm/slub.c:5544
__kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5575
__do_kmalloc_node mm/slub.c:5591 [inline]
__kvmalloc_node_noprof+0x6e/0x910 mm/slub.c:7036
netlink_alloc_large_skb+0x62/0x110 net/netlink/af_netlink.c:1188
netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871
sock_sendmsg_nosec net/socket.c:714 [inline]
__sock_sendmsg+0x21c/0x270 net/socket.c:729
____sys_sendmsg+0x505/0x830 net/socket.c:2617
___sys_sendmsg+0x21f/0x2a0 net/socket.c:2671
__sys_sendmsg net/socket.c:2703 [inline]
__do_sys_sendmsg net/socket.c:2708 [inline]
__se_sys_sendmsg net/socket.c:2706 [inline]
__x64_sys_sendmsg+0x19b/0x260 net/socket.c:2706
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
other info that might help us debug this:
Chain exists of:
console_owner --> &p->pi_lock --> &rq->__lock
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&rq->__lock);
lock(&p->pi_lock);
lock(&rq->__lock);
lock(console_owner);
*** DEADLOCK ***
4 locks held by syz.4.473/8623:
#0: ffff8880b863a018 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:646
#1: ffffffff8e33d2e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#1: ffffffff8e33d2e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline]
#1: ffffffff8e33d2e0 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2074 [inline]
#1: ffffffff8e33d2e0 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run2+0x186/0x4b0 kernel/trace/bpf_trace.c:2116
#2: ffffffff8e3312c0 (console_lock){+.+.}-{0:0}, at: _printk+0xcf/0x120 kernel/printk/printk.c:2448
#3: ffffffff8e218b90 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:336 [inline]
#3: ffffffff8e218b90 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:335 [inline]
#3: ffffffff8e218b90 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:289 [inline]
#3: ffffffff8e218b90 (console_srcu){....}-{0:0}, at: console_flush_all+0x13a/0xb10 kernel/printk/printk.c:3176
stack backtrace:
CPU: 0 UID: 0 PID: 8623 Comm: syz.4.473 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
print_circular_bug+0x2ee/0x310 kernel/locking/lockdep.c:2043
check_noncircular+0x134/0x160 kernel/locking/lockdep.c:2175
check_prev_add kernel/locking/lockdep.c:3165 [inline]
check_prevs_add kernel/locking/lockdep.c:3284 [inline]
validate_chain+0xb9b/0x2140 kernel/locking/lockdep.c:3908
__lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237
lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868
console_lock_spinning_enable kernel/printk/printk.c:1897 [inline]
console_emit_next_record kernel/printk/printk.c:3105 [inline]
console_flush_all+0x69c/0xb10 kernel/printk/printk.c:3199
__console_flush_and_unlock kernel/printk/printk.c:3258 [inline]
console_unlock+0xbb/0x190 kernel/printk/printk.c:3298
vprintk_emit+0x4c5/0x590 kernel/printk/printk.c:2423
_printk+0xcf/0x120 kernel/printk/printk.c:2448
fail_dump lib/fault-inject.c:66 [inline]
should_fail_ex+0x3f5/0x560 lib/fault-inject.c:174
strncpy_from_user+0x36/0x290 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x72/0x150 mm/maccess.c:192
bpf_trace_copy_string kernel/bpf/helpers.c:758 [inline]
bpf_bprintf_prepare+0xb91/0x13a0 kernel/bpf/helpers.c:976
____bpf_trace_printk kernel/trace/bpf_trace.c:372 [inline]
bpf_trace_printk+0xdb/0x190 kernel/trace/bpf_trace.c:362
bpf_prog_930ede9872f2967c+0x3e/0x44
bpf_dispatcher_nop_func include/linux/bpf.h:1350 [inline]
__bpf_prog_run include/linux/filter.h:721 [inline]
bpf_prog_run include/linux/filter.h:728 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline]
bpf_trace_run2+0x284/0x4b0 kernel/trace/bpf_trace.c:2116
__bpf_trace_contention_begin+0xdc/0x130 include/trace/events/lock.h:95
__do_trace_contention_begin include/trace/events/lock.h:95 [inline]
trace_contention_begin+0x114/0x140 include/trace/events/lock.h:95
__pv_queued_spin_lock_slowpath+0xf0/0xb60 kernel/locking/qspinlock.c:219
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [inline]
queued_spin_lock_slowpath+0x43/0x50 arch/x86/include/asm/qspinlock.h:51
queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
do_raw_spin_lock+0x21f/0x290 kernel/locking/spinlock_debug.c:116
raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:646
raw_spin_rq_lock kernel/sched/sched.h:1546 [inline]
rq_lock kernel/sched/sched.h:1868 [inline]
__schedule+0x36b/0x4cc0 kernel/sched/core.c:6833
preempt_schedule_irq+0xb5/0x150 kernel/sched/core.c:7256
irqentry_exit+0x6f/0x90 kernel/entry/common.c:211
asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:memset_orig+0x52/0xb0 arch/x86/lib/memset_64.S:77
Code: 0f 1f 84 00 00 00 00 00 48 ff c9 48 89 07 48 89 47 08 48 89 47 10 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 <48> 8d 7f 40 75 d8 0f 1f 84 00 00 00 00 00 89 d1 83 e1 38 74 14 c1
RSP: 0018:ffffc900055b7348 EFLAGS: 00000206
RAX: 0000000000000000 RBX: ffff888046e40000 RCX: 00000000000001c5
RDX: 0000000000008000 RSI: 0000000000000000 RDI: ffffed1008dc8e80
RBP: 0000000000000001 R08: ffffffff8fc36c77 R09: 0000000000000000
R10: ffffed1008dc8000 R11: fffffbfff1f86d8f R12: 0000000000000000
R13: ffffea00011b9000 R14: 0000000000040000 R15: dffffc0000000000
kasan_poison mm/kasan/shadow.c:146 [inline]
kasan_unpoison+0x48/0x70 mm/kasan/shadow.c:178
__kasan_unpoison_pages+0x25/0x30 mm/kasan/common.c:139
kasan_unpoison_pages include/linux/kasan.h:125 [inline]
post_alloc_hook+0xb7/0x2a0 mm/page_alloc.c:1834
prep_new_page mm/page_alloc.c:1858 [inline]
get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183
alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416
___kmalloc_large_node+0x5f/0x1b0 mm/slub.c:5544
__kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5575
__do_kmalloc_node mm/slub.c:5591 [inline]
__kvmalloc_node_noprof+0x6e/0x910 mm/slub.c:7036
netlink_alloc_large_skb+0x62/0x110 net/netlink/af_netlink.c:1188
netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871
sock_sendmsg_nosec net/socket.c:714 [inline]
__sock_sendmsg+0x21c/0x270 net/socket.c:729
____sys_sendmsg+0x505/0x830 net/socket.c:2617
___sys_sendmsg+0x21f/0x2a0 net/socket.c:2671
__sys_sendmsg net/socket.c:2703 [inline]
__do_sys_sendmsg net/socket.c:2708 [inline]
__se_sys_sendmsg net/socket.c:2706 [inline]
__x64_sys_sendmsg+0x19b/0x260 net/socket.c:2706
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51e318eec9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f51e3fc3038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f51e33e5fa0 RCX: 00007f51e318eec9
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000005
RBP: 00007f51e3fc3090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f51e33e6038 R14: 00007f51e33e5fa0 R15: 00007ffee336c9b8
CPU: 0 UID: 0 PID: 8623 Comm: syz.4.473 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:73 [inline]
should_fail_ex+0x414/0x560 lib/fault-inject.c:174
strncpy_from_user+0x36/0x290 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x72/0x150 mm/maccess.c:192
bpf_trace_copy_string kernel/bpf/helpers.c:758 [inline]
bpf_bprintf_prepare+0xb91/0x13a0 kernel/bpf/helpers.c:976
____bpf_trace_printk kernel/trace/bpf_trace.c:372 [inline]
bpf_trace_printk+0xdb/0x190 kernel/trace/bpf_trace.c:362
bpf_prog_930ede9872f2967c+0x3e/0x44
bpf_dispatcher_nop_func include/linux/bpf.h:1350 [inline]
__bpf_prog_run include/linux/filter.h:721 [inline]
bpf_prog_run include/linux/filter.h:728 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2075 [inline]
bpf_trace_run2+0x284/0x4b0 kernel/trace/bpf_trace.c:2116
__bpf_trace_contention_begin+0xdc/0x130 include/trace/events/lock.h:95
__do_trace_contention_begin include/trace/events/lock.h:95 [inline]
trace_contention_begin+0x114/0x140 include/trace/events/lock.h:95
__pv_queued_spin_lock_slowpath+0xf0/0xb60 kernel/locking/qspinlock.c:219
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [inline]
queued_spin_lock_slowpath+0x43/0x50 arch/x86/include/asm/qspinlock.h:51
queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
do_raw_spin_lock+0x21f/0x290 kernel/locking/spinlock_debug.c:116
raw_spin_rq_lock_nested+0xad/0x140 kernel/sched/core.c:646
raw_spin_rq_lock kernel/sched/sched.h:1546 [inline]
rq_lock kernel/sched/sched.h:1868 [inline]
__schedule+0x36b/0x4cc0 kernel/sched/core.c:6833
preempt_schedule_irq+0xb5/0x150 kernel/sched/core.c:7256
irqentry_exit+0x6f/0x90 kernel/entry/common.c:211
asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:memset_orig+0x52/0xb0 arch/x86/lib/memset_64.S:77
Code: 0f 1f 84 00 00 00 00 00 48 ff c9 48 89 07 48 89 47 08 48 89 47 10 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 <48> 8d 7f 40 75 d8 0f 1f 84 00 00 00 00 00 89 d1 83 e1 38 74 14 c1
RSP: 0018:ffffc900055b7348 EFLAGS: 00000206
RAX: 0000000000000000 RBX: ffff888046e40000 RCX: 00000000000001c5
RDX: 0000000000008000 RSI: 0000000000000000 RDI: ffffed1008dc8e80
RBP: 0000000000000001 R08: ffffffff8fc36c77 R09: 0000000000000000
R10: ffffed1008dc8000 R11: fffffbfff1f86d8f R12: 0000000000000000
R13: ffffea00011b9000 R14: 0000000000040000 R15: dffffc0000000000
kasan_poison mm/kasan/shadow.c:146 [inline]
kasan_unpoison+0x48/0x70 mm/kasan/shadow.c:178
__kasan_unpoison_pages+0x25/0x30 mm/kasan/common.c:139
kasan_unpoison_pages include/linux/kasan.h:125 [inline]
post_alloc_hook+0xb7/0x2a0 mm/page_alloc.c:1834
prep_new_page mm/page_alloc.c:1858 [inline]
get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183
alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416
___kmalloc_large_node+0x5f/0x1b0 mm/slub.c:5544
__kmalloc_large_node_noprof+0x18/0x90 mm/slub.c:5575
__do_kmalloc_node mm/slub.c:5591 [inline]
__kvmalloc_node_noprof+0x6e/0x910 mm/slub.c:7036
netlink_alloc_large_skb+0x62/0x110 net/netlink/af_netlink.c:1188
netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871
sock_sendmsg_nosec net/socket.c:714 [inline]
__sock_sendmsg+0x21c/0x270 net/socket.c:729
____sys_sendmsg+0x505/0x830 net/socket.c:2617
___sys_sendmsg+0x21f/0x2a0 net/socket.c:2671
__sys_sendmsg net/socket.c:2703 [inline]
__do_sys_sendmsg net/socket.c:2708 [inline]
__se_sys_sendmsg net/socket.c:2706 [inline]
__x64_sys_sendmsg+0x19b/0x260 net/socket.c:2706
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f51e318eec9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f51e3fc3038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f51e33e5fa0 RCX: 00007f51e318eec9
RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000005
RBP: 00007f51e3fc3090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f51e33e6038 R14: 00007f51e33e5fa0 R15: 00007ffee336c9b8
----------------
Code disassembly (best guess):
0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
7: 00
8: 48 ff c9 dec %rcx
b: 48 89 07 mov %rax,(%rdi)
e: 48 89 47 08 mov %rax,0x8(%rdi)
12: 48 89 47 10 mov %rax,0x10(%rdi)
16: 48 89 47 18 mov %rax,0x18(%rdi)
1a: 48 89 47 20 mov %rax,0x20(%rdi)
1e: 48 89 47 28 mov %rax,0x28(%rdi)
22: 48 89 47 30 mov %rax,0x30(%rdi)
26: 48 89 47 38 mov %rax,0x38(%rdi)
* 2a: 48 8d 7f 40 lea 0x40(%rdi),%rdi <-- trapping instruction
2e: 75 d8 jne 0x8
30: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
37: 00
38: 89 d1 mov %edx,%ecx
3a: 83 e1 38 and $0x38,%ecx
3d: 74 14 je 0x53
3f: c1 .byte 0xc1