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.1.2369/14933 is trying to acquire lock: ffffffff8e2d1680 (console_owner){-.-.}-{0:0}, at: console_lock_spinning_enable+0x61/0x80 kernel/printk/printk.c:1897 but task is already holding lock: ffff8880b843a398 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:646 [inline] ffff8880b843a398 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:631 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:638 raw_spin_rq_lock kernel/sched/sched.h:1546 [inline] task_rq_lock+0xcf/0x490 kernel/sched/core.c:738 cgroup_move_task+0x81/0x2a0 kernel/sched/psi.c:1170 css_set_move_task+0x288/0x5f0 kernel/cgroup/cgroup.c:951 cgroup_post_fork+0x201/0x9d0 kernel/cgroup/cgroup.c:6913 copy_process+0x602d/0x76a0 kernel/fork.c:2425 kernel_clone+0xfc/0x930 kernel/fork.c:2609 user_mode_thread+0xc8/0x110 kernel/fork.c:2685 rest_init+0x23/0x2b0 init/main.c:722 start_kernel+0x3f6/0x4e0 init/main.c:1111 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:291 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+0xb7/0x1870 kernel/sched/core.c:4181 __wake_up_common+0x135/0x1f0 kernel/sched/wait.c:108 __wake_up_common_lock kernel/sched/wait.c:125 [inline] __wake_up+0x31/0x60 kernel/sched/wait.c:146 tty_port_default_wakeup+0x47/0x60 drivers/tty/tty_port.c:67 serial8250_tx_chars+0x68e/0x860 drivers/tty/serial/8250/8250_port.c:1719 serial8250_handle_irq+0x761/0xcb0 drivers/tty/serial/8250/8250_port.c:1827 serial8250_default_handle_irq+0x9e/0x270 drivers/tty/serial/8250/8250_port.c:1846 serial8250_interrupt+0xf8/0x1d0 drivers/tty/serial/8250/8250_core.c:82 __handle_irq_event_percpu+0x236/0x920 kernel/irq/handle.c:203 handle_irq_event_percpu kernel/irq/handle.c:240 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:257 handle_edge_irq+0x3ca/0x9e0 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:310 [inline] __common_interrupt+0xd0/0x2f0 arch/x86/kernel/irq.c:325 common_interrupt+0xba/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+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:767 default_idle_call+0x6c/0xb0 kernel/sched/idle.c:122 cpuidle_idle_call kernel/sched/idle.c:190 [inline] do_idle+0x38d/0x500 kernel/sched/idle.c:330 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:428 start_secondary+0x21d/0x2b0 arch/x86/kernel/smpboot.c:315 common_startup_64+0x13e/0x148 -> #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:124 [inline] __wake_up+0x1c/0x60 kernel/sched/wait.c:146 tty_port_default_wakeup+0x47/0x60 drivers/tty/tty_port.c:67 serial8250_tx_chars+0x68e/0x860 drivers/tty/serial/8250/8250_port.c:1719 serial8250_handle_irq+0x761/0xcb0 drivers/tty/serial/8250/8250_port.c:1827 serial8250_default_handle_irq+0x9e/0x270 drivers/tty/serial/8250/8250_port.c:1846 serial8250_interrupt+0xf8/0x1d0 drivers/tty/serial/8250/8250_core.c:82 __handle_irq_event_percpu+0x236/0x920 kernel/irq/handle.c:203 handle_irq_event_percpu kernel/irq/handle.c:240 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:257 handle_edge_irq+0x3ca/0x9e0 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:310 [inline] __common_interrupt+0xd0/0x2f0 arch/x86/kernel/irq.c:325 common_interrupt+0xba/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+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:767 default_idle_call+0x6c/0xb0 kernel/sched/idle.c:122 cpuidle_idle_call kernel/sched/idle.c:190 [inline] do_idle+0x38d/0x500 kernel/sched/idle.c:330 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:428 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:3301 console_emit_next_record kernel/printk/printk.c:3111 [inline] console_flush_all+0x801/0xc60 kernel/printk/printk.c:3199 __console_flush_and_unlock kernel/printk/printk.c:3258 [inline] console_unlock+0xd8/0x210 kernel/printk/printk.c:3298 vprintk_emit+0x3d7/0x680 kernel/printk/printk.c:2423 _printk+0xc7/0x100 kernel/printk/printk.c:2448 register_console+0xc2d/0x11b0 kernel/printk/printk.c:4099 univ8250_console_init+0x5f/0x90 drivers/tty/serial/8250/8250_core.c:511 console_init+0x152/0x680 kernel/printk/printk.c:4298 start_kernel+0x29f/0x4e0 init/main.c:1048 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x148 -> #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 kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x126f/0x1c90 kernel/locking/lockdep.c:5237 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 console_lock_spinning_enable+0x72/0x80 kernel/printk/printk.c:1897 console_emit_next_record kernel/printk/printk.c:3105 [inline] console_flush_all+0x7aa/0xc60 kernel/printk/printk.c:3199 __console_flush_and_unlock kernel/printk/printk.c:3258 [inline] console_unlock+0xd8/0x210 kernel/printk/printk.c:3298 vprintk_emit+0x3d7/0x680 kernel/printk/printk.c:2423 _printk+0xc7/0x100 kernel/printk/printk.c:2448 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:192 bpf_trace_copy_string kernel/bpf/helpers.c:764 [inline] bpf_bprintf_prepare+0xe90/0x13f0 kernel/bpf/helpers.c:976 ____bpf_trace_printk kernel/trace/bpf_trace.c:372 [inline] bpf_trace_printk+0xda/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+0x239/0x590 kernel/trace/bpf_trace.c:2116 __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:471 [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 kernel/sched/core.c:646 [inline] raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:631 raw_spin_rq_lock kernel/sched/sched.h:1546 [inline] rq_lock kernel/sched/sched.h:1868 [inline] __schedule+0x307/0x5de0 kernel/sched/core.c:6833 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7256 irqentry_exit+0x36/0x90 kernel/entry/common.c:211 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 orc_ip arch/x86/kernel/unwind_orc.c:80 [inline] __orc_find+0x86/0xf0 arch/x86/kernel/unwind_orc.c:102 orc_find arch/x86/kernel/unwind_orc.c:227 [inline] unwind_next_frame+0x2ec/0x20a0 arch/x86/kernel/unwind_orc.c:494 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:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:400 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:262 [inline] __do_kmalloc_node mm/slub.c:5634 [inline] __kmalloc_noprof+0x32f/0x880 mm/slub.c:5646 kmalloc_noprof include/linux/slab.h:961 [inline] tomoyo_realpath_from_path+0xc2/0x6e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x245/0x580 security/tomoyo/file.c:723 security_file_ioctl+0x9b/0x240 security/security.c:2982 __do_sys_ioctl fs/ioctl.c:591 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xb7/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/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 *** 6 locks held by syz.1.2369/14933: #0: ffffffff8eda6d70 (tomoyo_ss){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #0: ffffffff8eda6d70 (tomoyo_ss){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #0: ffffffff8eda6d70 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_read_lock security/tomoyo/common.h:1108 [inline] #0: ffffffff8eda6d70 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_path_number_perm+0x237/0x580 security/tomoyo/file.c:722 #1: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #1: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #1: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1195 [inline] #1: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0xbd/0x20a0 arch/x86/kernel/unwind_orc.c:479 #2: ffff8880b843a398 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:646 [inline] #2: ffff8880b843a398 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:631 #3: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #3: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #3: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2074 [inline] #3: ffffffff8e3c4460 (rcu_read_lock){....}-{1:3}, at: bpf_trace_run2+0x1bc/0x590 kernel/trace/bpf_trace.c:2116 #4: ffffffff8e3b1ac0 (console_lock){+.+.}-{0:0}, at: _printk+0xc7/0x100 kernel/printk/printk.c:2448 #5: ffffffff8e3b1b30 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:336 [inline] #5: ffffffff8e3b1b30 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:335 [inline] #5: ffffffff8e3b1b30 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:289 [inline] #5: ffffffff8e3b1b30 (console_srcu){....}-{0:0}, at: console_flush_all+0x158/0xc60 kernel/printk/printk.c:3176 stack backtrace: CPU: 0 UID: 0 PID: 14933 Comm: syz.1.2369 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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:2043 check_noncircular+0x14c/0x170 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 kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x126f/0x1c90 kernel/locking/lockdep.c:5237 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x179/0x350 kernel/locking/lockdep.c:5825 console_lock_spinning_enable+0x72/0x80 kernel/printk/printk.c:1897 console_emit_next_record kernel/printk/printk.c:3105 [inline] console_flush_all+0x7aa/0xc60 kernel/printk/printk.c:3199 __console_flush_and_unlock kernel/printk/printk.c:3258 [inline] console_unlock+0xd8/0x210 kernel/printk/printk.c:3298 vprintk_emit+0x3d7/0x680 kernel/printk/printk.c:2423 _printk+0xc7/0x100 kernel/printk/printk.c:2448 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:192 bpf_trace_copy_string kernel/bpf/helpers.c:764 [inline] bpf_bprintf_prepare+0xe90/0x13f0 kernel/bpf/helpers.c:976 ____bpf_trace_printk kernel/trace/bpf_trace.c:372 [inline] bpf_trace_printk+0xda/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+0x239/0x590 kernel/trace/bpf_trace.c:2116 __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:471 [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 kernel/sched/core.c:646 [inline] raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:631 raw_spin_rq_lock kernel/sched/sched.h:1546 [inline] rq_lock kernel/sched/sched.h:1868 [inline] __schedule+0x307/0x5de0 kernel/sched/core.c:6833 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7256 irqentry_exit+0x36/0x90 kernel/entry/common.c:211 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:80 [inline] RIP: 0010:__orc_find+0x86/0xf0 arch/x86/kernel/unwind_orc.c:102 Code: f2 48 d1 fa 48 8d 5c 95 00 48 89 da 48 c1 ea 03 0f b6 34 0a 48 89 da 83 e2 07 83 c2 03 40 38 f2 7c 05 40 84 f6 75 4b 48 63 13 <48> 01 da 49 39 d5 73 af 4c 8d 63 fc 49 39 ec 73 b2 4d 29 f7 49 c1 RSP: 0018:ffffc9001a6b7718 EFLAGS: 00000246 RAX: ffffffff9127df68 RBX: ffffffff909ee958 RCX: dffffc0000000000 RDX: fffffffff19ee61b RSI: 0000000000000000 RDI: ffffffff909ee94c RBP: ffffffff909ee94c R08: ffffffff9127df98 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000013dcf R12: ffffffff909ee968 R13: ffffffff823dcf36 R14: ffffffff909ee94c R15: ffffffff909ee94c orc_find arch/x86/kernel/unwind_orc.c:227 [inline] unwind_next_frame+0x2ec/0x20a0 arch/x86/kernel/unwind_orc.c:494 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:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:400 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:262 [inline] __do_kmalloc_node mm/slub.c:5634 [inline] __kmalloc_noprof+0x32f/0x880 mm/slub.c:5646 kmalloc_noprof include/linux/slab.h:961 [inline] tomoyo_realpath_from_path+0xc2/0x6e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x245/0x580 security/tomoyo/file.c:723 security_file_ioctl+0x9b/0x240 security/security.c:2982 __do_sys_ioctl fs/ioctl.c:591 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xb7/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f466338efc9 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:00007f46641ee038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f46635e6180 RCX: 00007f466338efc9 RDX: 0000200000000000 RSI: 000000004020565a RDI: 000000000000000a RBP: 00007f46641ee090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007f46635e6218 R14: 00007f46635e6180 R15: 00007ffeb0c79938 CPU: 0 UID: 0 PID: 14933 Comm: syz.1.2369 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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:192 bpf_trace_copy_string kernel/bpf/helpers.c:764 [inline] bpf_bprintf_prepare+0xe90/0x13f0 kernel/bpf/helpers.c:976 ____bpf_trace_printk kernel/trace/bpf_trace.c:372 [inline] bpf_trace_printk+0xda/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+0x239/0x590 kernel/trace/bpf_trace.c:2116 __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:471 [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 kernel/sched/core.c:646 [inline] raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:631 raw_spin_rq_lock kernel/sched/sched.h:1546 [inline] rq_lock kernel/sched/sched.h:1868 [inline] __schedule+0x307/0x5de0 kernel/sched/core.c:6833 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7256 irqentry_exit+0x36/0x90 kernel/entry/common.c:211 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:orc_ip arch/x86/kernel/unwind_orc.c:80 [inline] RIP: 0010:__orc_find+0x86/0xf0 arch/x86/kernel/unwind_orc.c:102 Code: f2 48 d1 fa 48 8d 5c 95 00 48 89 da 48 c1 ea 03 0f b6 34 0a 48 89 da 83 e2 07 83 c2 03 40 38 f2 7c 05 40 84 f6 75 4b 48 63 13 <48> 01 da 49 39 d5 73 af 4c 8d 63 fc 49 39 ec 73 b2 4d 29 f7 49 c1 RSP: 0018:ffffc9001a6b7718 EFLAGS: 00000246 RAX: ffffffff9127df68 RBX: ffffffff909ee958 RCX: dffffc0000000000 RDX: fffffffff19ee61b RSI: 0000000000000000 RDI: ffffffff909ee94c RBP: ffffffff909ee94c R08: ffffffff9127df98 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000013dcf R12: ffffffff909ee968 R13: ffffffff823dcf36 R14: ffffffff909ee94c R15: ffffffff909ee94c orc_find arch/x86/kernel/unwind_orc.c:227 [inline] unwind_next_frame+0x2ec/0x20a0 arch/x86/kernel/unwind_orc.c:494 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:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:400 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:417 kasan_kmalloc include/linux/kasan.h:262 [inline] __do_kmalloc_node mm/slub.c:5634 [inline] __kmalloc_noprof+0x32f/0x880 mm/slub.c:5646 kmalloc_noprof include/linux/slab.h:961 [inline] tomoyo_realpath_from_path+0xc2/0x6e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x245/0x580 security/tomoyo/file.c:723 security_file_ioctl+0x9b/0x240 security/security.c:2982 __do_sys_ioctl fs/ioctl.c:591 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xb7/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f466338efc9 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:00007f46641ee038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f46635e6180 RCX: 00007f466338efc9 RDX: 0000200000000000 RSI: 000000004020565a RDI: 000000000000000a RBP: 00007f46641ee090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007f46635e6218 R14: 00007f46635e6180 R15: 00007ffeb0c79938 ---------------- Code disassembly (best guess): 0: f2 48 d1 fa repnz sar %rdx 4: 48 8d 5c 95 00 lea 0x0(%rbp,%rdx,4),%rbx 9: 48 89 da mov %rbx,%rdx c: 48 c1 ea 03 shr $0x3,%rdx 10: 0f b6 34 0a movzbl (%rdx,%rcx,1),%esi 14: 48 89 da mov %rbx,%rdx 17: 83 e2 07 and $0x7,%edx 1a: 83 c2 03 add $0x3,%edx 1d: 40 38 f2 cmp %sil,%dl 20: 7c 05 jl 0x27 22: 40 84 f6 test %sil,%sil 25: 75 4b jne 0x72 27: 48 63 13 movslq (%rbx),%rdx * 2a: 48 01 da add %rbx,%rdx <-- trapping instruction 2d: 49 39 d5 cmp %rdx,%r13 30: 73 af jae 0xffffffe1 32: 4c 8d 63 fc lea -0x4(%rbx),%r12 36: 49 39 ec cmp %rbp,%r12 39: 73 b2 jae 0xffffffed 3b: 4d 29 f7 sub %r14,%r15 3e: 49 rex.WB 3f: c1 .byte 0xc1