FAULT_INJECTION: forcing a failure.
name fail_usercopy, interval 1, probability 0, space 0, times 0
======================================================
WARNING: possible circular locking dependency detected
6.16.0-rc3-syzkaller-00044-g7595b66ae9de #0 Not tainted
------------------------------------------------------
syz.1.282/7031 is trying to acquire lock:
ffffffff8e4d1ee0 (console_owner){-.-.}-{0:0}, at: console_lock_spinning_enable+0x9f/0xd0 kernel/printk/printk.c:1924
but task is already holding lock:
ffff8880b843a2d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:606
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #4 (&rq->__lock){-.-.}-{2:2}:
_raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378
raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:606
raw_spin_rq_lock kernel/sched/sched.h:1532 [inline]
task_rq_lock+0xcf/0x490 kernel/sched/core.c:708
cgroup_move_task+0x81/0x2a0 kernel/sched/psi.c:1161
css_set_move_task+0x288/0x5f0 kernel/cgroup/cgroup.c:918
cgroup_post_fork+0x201/0x9e0 kernel/cgroup/cgroup.c:6754
copy_process+0x5cfc/0x76a0 kernel/fork.c:2413
kernel_clone+0xfc/0x960 kernel/fork.c:2599
user_mode_thread+0xc7/0x110 kernel/fork.c:2677
rest_init+0x23/0x2b0 init/main.c:710
start_kernel+0x3ee/0x4d0 init/main.c:1102
x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:307
x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:288
common_startup_64+0x13e/0x148
-> #3 (&p->pi_lock){-.-.}-{2:2}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:557 [inline]
try_to_wake_up+0xb2/0x1680 kernel/sched/core.c:4226
__wake_up_common+0x135/0x1f0 kernel/sched/wait.c:89
__wake_up_common_lock kernel/sched/wait.c:106 [inline]
__wake_up+0x31/0x60 kernel/sched/wait.c:127
tty_port_default_wakeup+0x2a/0x40 drivers/tty/tty_port.c:69
serial8250_tx_chars+0x68e/0x860 drivers/tty/serial/8250/8250_port.c:1838
serial8250_handle_irq+0x761/0xcb0 drivers/tty/serial/8250/8250_port.c:1946
serial8250_default_handle_irq+0x9a/0x210 drivers/tty/serial/8250/8250_port.c:1966
serial8250_interrupt+0x103/0x210 drivers/tty/serial/8250/8250_core.c:86
__handle_irq_event_percpu+0x229/0x7d0 kernel/irq/handle.c:158
handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210
handle_edge_irq+0x28e/0xab0 kernel/irq/chip.c:797
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:266 [inline]
__common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:292
common_interrupt+0x61/0xe0 arch/x86/kernel/irq.c:285
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693
deref_stack_reg arch/x86/kernel/unwind_orc.c:403 [inline]
unwind_next_frame+0xb78/0x20a0 arch/x86/kernel/unwind_orc.c:585
arch_stack_walk+0x94/0x100 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:548
__call_rcu_common.constprop.0+0xa5/0xa10 kernel/rcu/tree.c:3094
__put_cred+0x110/0x170 kernel/cred.c:110
put_cred_many include/linux/cred.h:250 [inline]
put_cred_many include/linux/cred.h:244 [inline]
exit_creds+0x19e/0x210 kernel/cred.c:131
__put_task_struct+0x12c/0x530 kernel/fork.c:740
put_task_struct include/linux/sched/task.h:145 [inline]
put_task_struct include/linux/sched/task.h:132 [inline]
delayed_put_task_struct+0x115/0x2e0 kernel/exit.c:230
rcu_do_batch kernel/rcu/tree.c:2576 [inline]
rcu_core+0x799/0x14e0 kernel/rcu/tree.c:2832
handle_softirqs+0x216/0x8e0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0x109/0x170 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1050 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1050
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
lock_acquire+0x62/0x350 kernel/locking/lockdep.c:5836
rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
rcu_read_lock include/linux/rcupdate.h:841 [inline]
class_rcu_constructor include/linux/rcupdate.h:1155 [inline]
unwind_next_frame+0xd1/0x20a0 arch/x86/kernel/unwind_orc.c:479
arch_stack_walk+0x94/0x100 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x8e/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_record_aux_stack+0xa7/0xc0 mm/kasan/generic.c:548
slab_free_hook mm/slub.c:2342 [inline]
slab_free mm/slub.c:4643 [inline]
kmem_cache_free+0x15a/0x4d0 mm/slub.c:4745
anon_vma_free mm/rmap.c:137 [inline]
__put_anon_vma+0x114/0x3a0 mm/rmap.c:2756
put_anon_vma include/linux/rmap.h:117 [inline]
unlink_anon_vmas+0x58a/0x820 mm/rmap.c:444
free_pgtables+0x1ca/0xcb0 mm/memory.c:381
exit_mmap+0x3fb/0xb90 mm/mmap.c:1295
__mmput+0x12a/0x410 kernel/fork.c:1121
mmput+0x62/0x70 kernel/fork.c:1144
exec_mmap fs/exec.c:896 [inline]
begin_new_exec+0x15a7/0x38b0 fs/exec.c:1151
load_elf_binary+0x892/0x4f00 fs/binfmt_elf.c:995
search_binary_handler fs/exec.c:1665 [inline]
exec_binprm fs/exec.c:1697 [inline]
bprm_execve fs/exec.c:1749 [inline]
bprm_execve+0x8c3/0x1650 fs/exec.c:1725
do_execveat_common.isra.0+0x4a5/0x610 fs/exec.c:1855
do_execve fs/exec.c:1929 [inline]
__do_sys_execve fs/exec.c:2005 [inline]
__se_sys_execve fs/exec.c:2000 [inline]
__x64_sys_execve+0x8e/0xb0 fs/exec.c:2000
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #2 (&tty->write_wait){-.-.}-{3:3}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:105 [inline]
__wake_up+0x1c/0x60 kernel/sched/wait.c:127
tty_port_default_wakeup+0x2a/0x40 drivers/tty/tty_port.c:69
serial8250_tx_chars+0x68e/0x860 drivers/tty/serial/8250/8250_port.c:1838
serial8250_handle_irq+0x761/0xcb0 drivers/tty/serial/8250/8250_port.c:1946
serial8250_default_handle_irq+0x9a/0x210 drivers/tty/serial/8250/8250_port.c:1966
serial8250_interrupt+0x103/0x210 drivers/tty/serial/8250/8250_core.c:86
__handle_irq_event_percpu+0x229/0x7d0 kernel/irq/handle.c:158
handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:210
handle_edge_irq+0x28e/0xab0 kernel/irq/chip.c:797
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:266 [inline]
__common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:292
common_interrupt+0xba/0xe0 arch/x86/kernel/irq.c:285
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693
native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline]
pv_native_safe_halt+0xf/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:749
default_idle_call+0x6d/0xb0 kernel/sched/idle.c:117
cpuidle_idle_call kernel/sched/idle.c:185 [inline]
do_idle+0x391/0x510 kernel/sched/idle.c:325
cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:423
start_secondary+0x21d/0x2b0 arch/x86/kernel/smpboot.c:315
common_startup_64+0x13e/0x148
-> #1 (&port_lock_key){-.-.}-{3:3}:
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
uart_port_lock_irqsave include/linux/serial_core.h:717 [inline]
serial8250_console_write+0x181/0x1890 drivers/tty/serial/8250/8250_port.c:3415
console_emit_next_record kernel/printk/printk.c:3138 [inline]
console_flush_all+0x801/0xc60 kernel/printk/printk.c:3226
__console_flush_and_unlock kernel/printk/printk.c:3285 [inline]
console_unlock+0xd8/0x210 kernel/printk/printk.c:3325
vprintk_emit+0x418/0x6d0 kernel/printk/printk.c:2450
_printk+0xc7/0x100 kernel/printk/printk.c:2475
register_console+0xc2d/0x11b0 kernel/printk/printk.c:4125
univ8250_console_init+0x5f/0x90 drivers/tty/serial/8250/8250_core.c:513
console_init+0x14f/0x680 kernel/printk/printk.c:4323
start_kernel+0x29f/0x4d0 init/main.c:1036
x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:307
x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:288
common_startup_64+0x13e/0x148
-> #0 (console_owner){-.-.}-{0:0}:
check_prev_add kernel/locking/lockdep.c:3168 [inline]
check_prevs_add kernel/locking/lockdep.c:3287 [inline]
validate_chain kernel/locking/lockdep.c:3911 [inline]
__lock_acquire+0x126f/0x1c90 kernel/locking/lockdep.c:5240
lock_acquire kernel/locking/lockdep.c:5871 [inline]
lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828
console_lock_spinning_enable+0xb0/0xd0 kernel/printk/printk.c:1924
console_emit_next_record kernel/printk/printk.c:3132 [inline]
console_flush_all+0x7aa/0xc60 kernel/printk/printk.c:3226
__console_flush_and_unlock kernel/printk/printk.c:3285 [inline]
console_unlock+0xd8/0x210 kernel/printk/printk.c:3325
vprintk_emit+0x418/0x6d0 kernel/printk/printk.c:2450
_printk+0xc7/0x100 kernel/printk/printk.c:2475
fail_dump lib/fault-inject.c:66 [inline]
should_fail_ex+0x4e7/0x640 lib/fault-inject.c:174
strncpy_from_user+0x3b/0x2e0 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x7f/0x180 mm/maccess.c:193
bpf_trace_copy_string kernel/bpf/helpers.c:760 [inline]
bpf_bprintf_prepare+0xe6e/0x14a0 kernel/bpf/helpers.c:974
____bpf_trace_printk kernel/trace/bpf_trace.c:373 [inline]
bpf_trace_printk+0xda/0x190 kernel/trace/bpf_trace.c:363
bpf_prog_7c77c7e0f6645ad8+0x3e/0x44
bpf_dispatcher_nop_func include/linux/bpf.h:1322 [inline]
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run include/linux/filter.h:725 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2258 [inline]
bpf_trace_run2+0x230/0x590 kernel/trace/bpf_trace.c:2299
__bpf_trace_contention_begin+0xc9/0x110 include/trace/events/lock.h:95
__preempt_count_dec_and_test arch/x86/include/asm/preempt.h:95 [inline]
class_preempt_notrace_destructor include/linux/preempt.h:482 [inline]
__do_trace_contention_begin include/trace/events/lock.h:95 [inline]
trace_contention_begin.constprop.0+0xde/0x160 include/trace/events/lock.h:95
__pv_queued_spin_lock_slowpath+0x109/0xcf0 kernel/locking/qspinlock.c:219
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
do_raw_spin_lock+0x20e/0x2b0 kernel/locking/spinlock_debug.c:116
raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:606
raw_spin_rq_lock kernel/sched/sched.h:1532 [inline]
rq_lock kernel/sched/sched.h:1856 [inline]
__schedule+0x301/0x5de0 kernel/sched/core.c:6709
preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7108
irqentry_exit+0x36/0x90 kernel/entry/common.c:307
asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707
tomoyo_path_number_perm+0x2f/0x580 security/tomoyo/file.c:710
security_file_ioctl+0x9b/0x240 security/security.c:2913
__do_sys_ioctl fs/ioctl.c:901 [inline]
__se_sys_ioctl fs/ioctl.c:893 [inline]
__x64_sys_ioctl+0xb7/0x210 fs/ioctl.c:893
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 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.1.282/7031:
#0: ffff8880b843a2d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:606
#1: ffffffff8e5c4940 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#1: ffffffff8e5c4940 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#1: ffffffff8e5c4940 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2257 [inline]
#1: ffffffff8e5c4940 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run2+0x1b6/0x590 kernel/trace/bpf_trace.c:2299
#2: ffffffff8e5b2320 (console_lock){+.+.}-{0:0}, at: _printk+0xc7/0x100 kernel/printk/printk.c:2475
#3: ffffffff8e5b2390 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:336 [inline]
#3: ffffffff8e5b2390 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:346 [inline]
#3: ffffffff8e5b2390 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:288 [inline]
#3: ffffffff8e5b2390 (console_srcu){....}-{0:0}, at: console_flush_all+0x158/0xc60 kernel/printk/printk.c:3203
stack backtrace:
CPU: 0 UID: 0 PID: 7031 Comm: syz.1.282 Not tainted 6.16.0-rc3-syzkaller-00044-g7595b66ae9de #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_circular_bug+0x275/0x350 kernel/locking/lockdep.c:2046
check_noncircular+0x14c/0x170 kernel/locking/lockdep.c:2178
check_prev_add kernel/locking/lockdep.c:3168 [inline]
check_prevs_add kernel/locking/lockdep.c:3287 [inline]
validate_chain kernel/locking/lockdep.c:3911 [inline]
__lock_acquire+0x126f/0x1c90 kernel/locking/lockdep.c:5240
lock_acquire kernel/locking/lockdep.c:5871 [inline]
lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5828
console_lock_spinning_enable+0xb0/0xd0 kernel/printk/printk.c:1924
console_emit_next_record kernel/printk/printk.c:3132 [inline]
console_flush_all+0x7aa/0xc60 kernel/printk/printk.c:3226
__console_flush_and_unlock kernel/printk/printk.c:3285 [inline]
console_unlock+0xd8/0x210 kernel/printk/printk.c:3325
vprintk_emit+0x418/0x6d0 kernel/printk/printk.c:2450
_printk+0xc7/0x100 kernel/printk/printk.c:2475
fail_dump lib/fault-inject.c:66 [inline]
should_fail_ex+0x4e7/0x640 lib/fault-inject.c:174
strncpy_from_user+0x3b/0x2e0 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x7f/0x180 mm/maccess.c:193
bpf_trace_copy_string kernel/bpf/helpers.c:760 [inline]
bpf_bprintf_prepare+0xe6e/0x14a0 kernel/bpf/helpers.c:974
____bpf_trace_printk kernel/trace/bpf_trace.c:373 [inline]
bpf_trace_printk+0xda/0x190 kernel/trace/bpf_trace.c:363
bpf_prog_7c77c7e0f6645ad8+0x3e/0x44
bpf_dispatcher_nop_func include/linux/bpf.h:1322 [inline]
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run include/linux/filter.h:725 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2258 [inline]
bpf_trace_run2+0x230/0x590 kernel/trace/bpf_trace.c:2299
__bpf_trace_contention_begin+0xc9/0x110 include/trace/events/lock.h:95
__preempt_count_dec_and_test arch/x86/include/asm/preempt.h:95 [inline]
class_preempt_notrace_destructor include/linux/preempt.h:482 [inline]
__do_trace_contention_begin include/trace/events/lock.h:95 [inline]
trace_contention_begin.constprop.0+0xde/0x160 include/trace/events/lock.h:95
__pv_queued_spin_lock_slowpath+0x109/0xcf0 kernel/locking/qspinlock.c:219
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
do_raw_spin_lock+0x20e/0x2b0 kernel/locking/spinlock_debug.c:116
raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:606
raw_spin_rq_lock kernel/sched/sched.h:1532 [inline]
rq_lock kernel/sched/sched.h:1856 [inline]
__schedule+0x301/0x5de0 kernel/sched/core.c:6709
preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7108
irqentry_exit+0x36/0x90 kernel/entry/common.c:307
asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707
RIP: 0010:tomoyo_path_number_perm+0x2f/0x580 security/tomoyo/file.c:710
Code: 57 41 56 49 be 00 00 00 00 00 fc ff df 41 55 49 89 f5 41 54 41 89 fc 55 53 48 81 ec 40 02 00 00 48 8d 5c 24 20 40 88 7c 24 10 <48> c1 eb 03 48 89 54 24 18 4a 8d 04 33 48 89 1c 24 48 c7 44 24 20
RSP: 0018:ffffc9000454fc50 EFLAGS: 00000286
RAX: 0000000000000000 RBX: ffffc9000454fc70 RCX: ffffffff848d2c5c
RDX: 0000000000008946 RSI: ffff888030a92080 RDI: 0000000000000004
RBP: ffff888030a92000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000004
R13: ffff888030a92080 R14: dffffc0000000000 R15: 0000000000000005
security_file_ioctl+0x9b/0x240 security/security.c:2913
__do_sys_ioctl fs/ioctl.c:901 [inline]
__se_sys_ioctl fs/ioctl.c:893 [inline]
__x64_sys_ioctl+0xb7/0x210 fs/ioctl.c:893
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f158198e929
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:00007f158286b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1581bb5fa0 RCX: 00007f158198e929
RDX: 0000200000000000 RSI: 0000000000008946 RDI: 0000000000000005
RBP: 00007f158286b090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 00007f1581bb5fa0 R15: 00007ffe63b26108
CPU: 0 UID: 0 PID: 7031 Comm: syz.1.282 Not tainted 6.16.0-rc3-syzkaller-00044-g7595b66ae9de #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:73 [inline]
should_fail_ex+0x512/0x640 lib/fault-inject.c:174
strncpy_from_user+0x3b/0x2e0 lib/strncpy_from_user.c:118
strncpy_from_user_nofault+0x7f/0x180 mm/maccess.c:193
bpf_trace_copy_string kernel/bpf/helpers.c:760 [inline]
bpf_bprintf_prepare+0xe6e/0x14a0 kernel/bpf/helpers.c:974
____bpf_trace_printk kernel/trace/bpf_trace.c:373 [inline]
bpf_trace_printk+0xda/0x190 kernel/trace/bpf_trace.c:363
bpf_prog_7c77c7e0f6645ad8+0x3e/0x44
bpf_dispatcher_nop_func include/linux/bpf.h:1322 [inline]
__bpf_prog_run include/linux/filter.h:718 [inline]
bpf_prog_run include/linux/filter.h:725 [inline]
__bpf_trace_run kernel/trace/bpf_trace.c:2258 [inline]
bpf_trace_run2+0x230/0x590 kernel/trace/bpf_trace.c:2299
__bpf_trace_contention_begin+0xc9/0x110 include/trace/events/lock.h:95
__preempt_count_dec_and_test arch/x86/include/asm/preempt.h:95 [inline]
class_preempt_notrace_destructor include/linux/preempt.h:482 [inline]
__do_trace_contention_begin include/trace/events/lock.h:95 [inline]
trace_contention_begin.constprop.0+0xde/0x160 include/trace/events/lock.h:95
__pv_queued_spin_lock_slowpath+0x109/0xcf0 kernel/locking/qspinlock.c:219
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
do_raw_spin_lock+0x20e/0x2b0 kernel/locking/spinlock_debug.c:116
raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:606
raw_spin_rq_lock kernel/sched/sched.h:1532 [inline]
rq_lock kernel/sched/sched.h:1856 [inline]
__schedule+0x301/0x5de0 kernel/sched/core.c:6709
preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7108
irqentry_exit+0x36/0x90 kernel/entry/common.c:307
asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707
RIP: 0010:tomoyo_path_number_perm+0x2f/0x580 security/tomoyo/file.c:710
Code: 57 41 56 49 be 00 00 00 00 00 fc ff df 41 55 49 89 f5 41 54 41 89 fc 55 53 48 81 ec 40 02 00 00 48 8d 5c 24 20 40 88 7c 24 10 <48> c1 eb 03 48 89 54 24 18 4a 8d 04 33 48 89 1c 24 48 c7 44 24 20
RSP: 0018:ffffc9000454fc50 EFLAGS: 00000286
RAX: 0000000000000000 RBX: ffffc9000454fc70 RCX: ffffffff848d2c5c
RDX: 0000000000008946 RSI: ffff888030a92080 RDI: 0000000000000004
RBP: ffff888030a92000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000004
R13: ffff888030a92080 R14: dffffc0000000000 R15: 0000000000000005
security_file_ioctl+0x9b/0x240 security/security.c:2913
__do_sys_ioctl fs/ioctl.c:901 [inline]
__se_sys_ioctl fs/ioctl.c:893 [inline]
__x64_sys_ioctl+0xb7/0x210 fs/ioctl.c:893
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f158198e929
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:00007f158286b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1581bb5fa0 RCX: 00007f158198e929
RDX: 0000200000000000 RSI: 0000000000008946 RDI: 0000000000000005
RBP: 00007f158286b090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 00007f1581bb5fa0 R15: 00007ffe63b26108
----------------
Code disassembly (best guess):
0: 57 push %rdi
1: 41 56 push %r14
3: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14
a: fc ff df
d: 41 55 push %r13
f: 49 89 f5 mov %rsi,%r13
12: 41 54 push %r12
14: 41 89 fc mov %edi,%r12d
17: 55 push %rbp
18: 53 push %rbx
19: 48 81 ec 40 02 00 00 sub $0x240,%rsp
20: 48 8d 5c 24 20 lea 0x20(%rsp),%rbx
25: 40 88 7c 24 10 mov %dil,0x10(%rsp)
* 2a: 48 c1 eb 03 shr $0x3,%rbx <-- trapping instruction
2e: 48 89 54 24 18 mov %rdx,0x18(%rsp)
33: 4a 8d 04 33 lea (%rbx,%r14,1),%rax
37: 48 89 1c 24 mov %rbx,(%rsp)
3b: 48 rex.W
3c: c7 .byte 0xc7
3d: 44 24 20 rex.R and $0x20,%al