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.3.740/8012 is trying to acquire lock: ffffffff8cd24080 (console_owner){-.-.}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:339 [inline] ffffffff8cd24080 (console_owner){-.-.}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:232 [inline] ffffffff8cd24080 (console_owner){-.-.}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:292 [inline] ffffffff8cd24080 (console_owner){-.-.}-{0:0}, at: console_flush_all+0x10f/0xd00 kernel/printk/printk.c:2992 but task is already holding lock: ffff8880b8f3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 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+0x32/0x50 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 raw_spin_rq_lock kernel/sched/sched.h:1372 [inline] rq_lock kernel/sched/sched.h:1681 [inline] task_fork_fair+0x62/0x1f0 kernel/sched/fair.c:12675 sched_cgroup_fork+0x333/0x3c0 kernel/sched/core.c:4816 copy_process+0x21e4/0x3d70 kernel/fork.c:2614 kernel_clone+0x21b/0x840 kernel/fork.c:2914 user_mode_thread+0xde/0x130 kernel/fork.c:2992 rest_init+0x27/0x300 init/main.c:697 arch_call_rest_init+0xe/0x10 init/main.c:829 start_kernel+0x459/0x4e0 init/main.c:1074 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555 copy_bootdata+0x0/0xe0 arch/x86/kernel/head64.c:536 secondary_startup_64_no_verify+0x179/0x17b -> #3 (&p->pi_lock){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa8/0xf0 kernel/locking/spinlock.c:162 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:522 [inline] try_to_wake_up+0x60/0x1140 kernel/sched/core.c:4232 __wake_up_common+0x2a4/0x4e0 kernel/sched/wait.c:107 __wake_up_common_lock kernel/sched/wait.c:138 [inline] __wake_up+0x112/0x190 kernel/sched/wait.c:160 tty_port_default_wakeup+0xa2/0xf0 drivers/tty/tty_port.c:69 serial8250_tx_chars+0x6bd/0x8a0 drivers/tty/serial/8250/8250_port.c:1837 serial8250_handle_irq+0x534/0x6e0 drivers/tty/serial/8250/8250_port.c:1944 serial8250_default_handle_irq+0xb8/0x1a0 drivers/tty/serial/8250/8250_port.c:1964 serial8250_interrupt+0x9f/0x1c0 drivers/tty/serial/8250/8250_core.c:127 __handle_irq_event_percpu+0x276/0x930 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x247/0xb30 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline] handle_irq arch/x86/kernel/irq.c:240 [inline] __common_interrupt+0x13b/0x230 arch/x86/kernel/irq.c:259 common_interrupt+0xb4/0xd0 arch/x86/kernel/irq.c:249 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:678 stack_trace_consume_entry+0x9/0x270 kernel/stacktrace.c:83 arch_stack_walk+0x138/0x190 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6e/0x4d0 mm/slab.h:767 slab_alloc_node mm/slub.c:3495 [inline] kmem_cache_alloc_node+0x150/0x330 mm/slub.c:3540 __alloc_skb+0x108/0x2c0 net/core/skbuff.c:640 alloc_skb include/linux/skbuff.h:1284 [inline] alloc_skb_with_frags+0xca/0x7c0 net/core/skbuff.c:6328 sock_alloc_send_pskb+0x857/0x990 net/core/sock.c:2821 unix_dgram_sendmsg+0x5a1/0x1720 net/unix/af_unix.c:2001 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] sock_write_iter+0x2bb/0x3f0 net/socket.c:1160 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x79a/0xc70 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_writev+0x252/0x410 fs/read_write.c:976 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #2 (&tty->write_wait){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa8/0xf0 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0xf8/0x190 kernel/sched/wait.c:160 tty_port_default_wakeup+0xa2/0xf0 drivers/tty/tty_port.c:69 serial8250_tx_chars+0x6bd/0x8a0 drivers/tty/serial/8250/8250_port.c:1837 serial8250_handle_irq+0x534/0x6e0 drivers/tty/serial/8250/8250_port.c:1944 serial8250_default_handle_irq+0xb8/0x1a0 drivers/tty/serial/8250/8250_port.c:1964 serial8250_interrupt+0x9f/0x1c0 drivers/tty/serial/8250/8250_core.c:127 __handle_irq_event_percpu+0x276/0x930 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:210 handle_edge_irq+0x247/0xb30 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline] handle_irq arch/x86/kernel/irq.c:240 [inline] __common_interrupt+0x13b/0x230 arch/x86/kernel/irq.c:259 common_interrupt+0xb4/0xd0 arch/x86/kernel/irq.c:249 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:678 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock_irqrestore+0xa9/0x110 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] uart_write+0x45b/0x5d0 drivers/tty/serial/serial_core.c:634 process_output_block drivers/tty/n_tty.c:580 [inline] n_tty_write+0xd27/0x11d0 drivers/tty/n_tty.c:2395 iterate_tty_write drivers/tty/tty_io.c:1017 [inline] file_tty_write+0x54b/0x980 drivers/tty/tty_io.c:1088 call_write_iter include/linux/fs.h:2018 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x43b/0x940 fs/read_write.c:584 ksys_write+0x147/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #1 (&port_lock_key){-.-.}-{2:2}: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xa8/0xf0 kernel/locking/spinlock.c:162 serial8250_console_write+0x16d/0x17a0 drivers/tty/serial/8250/8250_port.c:3433 console_emit_next_record kernel/printk/printk.c:2944 [inline] console_flush_all+0x6cd/0xd00 kernel/printk/printk.c:3000 console_unlock+0xae/0x340 kernel/printk/printk.c:3069 vprintk_emit+0x477/0x600 kernel/printk/printk.c:2341 _printk+0xd0/0x110 kernel/printk/printk.c:2366 register_console+0x91b/0xe60 kernel/printk/printk.c:3583 univ8250_console_init+0x45/0x50 drivers/tty/serial/8250/8250_core.c:717 console_init+0x17b/0x5e0 kernel/printk/printk.c:3726 start_kernel+0x2c0/0x4e0 init/main.c:1010 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555 copy_bootdata+0x0/0xe0 arch/x86/kernel/head64.c:536 secondary_startup_64_no_verify+0x179/0x17b -> #0 (console_owner){-.-.}-{0:0}: check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x2ddb/0x7c80 kernel/locking/lockdep.c:5137 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754 console_lock_spinning_enable kernel/printk/printk.c:1871 [inline] console_emit_next_record kernel/printk/printk.c:2938 [inline] console_flush_all+0x693/0xd00 kernel/printk/printk.c:3000 console_unlock+0xae/0x340 kernel/printk/printk.c:3069 vprintk_emit+0x477/0x600 kernel/printk/printk.c:2341 _printk+0xd0/0x110 kernel/printk/printk.c:2366 fail_dump lib/fault-inject.c:45 [inline] should_fail_ex+0x37e/0x4d0 lib/fault-inject.c:153 strncpy_from_user+0x36/0x2e0 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x71/0x140 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:212 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:221 [inline] bpf_probe_read_user_str+0x2a/0x70 kernel/trace/bpf_trace.c:218 bpf_prog_bc7c5c6b9645592f+0x3d/0x3f bpf_dispatcher_nop_func include/linux/bpf.h:1223 [inline] __bpf_prog_run include/linux/filter.h:612 [inline] bpf_prog_run include/linux/filter.h:619 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2322 [inline] bpf_trace_run4+0x1f9/0x420 kernel/trace/bpf_trace.c:2363 __bpf_trace_sched_switch+0x17b/0x1e0 include/trace/events/sched.h:222 __traceiter_sched_switch+0x93/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x2197/0x44d0 kernel/sched/core.c:6696 preempt_schedule_irq+0xb5/0x140 kernel/sched/core.c:7009 irqentry_exit+0x67/0x70 kernel/entry/common.c:438 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 check_region_inline mm/kasan/generic.c:172 [inline] kasan_check_range+0x29/0x290 mm/kasan/generic.c:187 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] tomoyo_check_acl+0x2d8/0x3f0 security/tomoyo/domain.c:184 tomoyo_path_number_perm+0x2d9/0x590 security/tomoyo/file.c:733 security_file_ioctl+0x70/0xa0 security/security.c:2647 __do_sys_ioctl fs/ioctl.c:865 [inline] __se_sys_ioctl+0x48/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 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 *** 5 locks held by syz.3.740/8012: #0: ffffffff8d352630 (tomoyo_ss){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline] #0: ffffffff8d352630 (tomoyo_ss){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline] #0: ffffffff8d352630 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_read_lock security/tomoyo/common.h:1108 [inline] #0: ffffffff8d352630 (tomoyo_ss){.+.+}-{0:0}, at: tomoyo_path_number_perm+0x1ba/0x590 security/tomoyo/file.c:722 #1: ffff8880b8f3c218 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #2: ffffffff8cd2fe20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline] #2: ffffffff8cd2fe20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline] #2: ffffffff8cd2fe20 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2321 [inline] #2: ffffffff8cd2fe20 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run4+0xfd/0x420 kernel/trace/bpf_trace.c:2363 #3: ffffffff8cd24160 (console_lock){+.+.}-{0:0}, at: _printk+0xd0/0x110 kernel/printk/printk.c:2366 #4: ffffffff8cc0b970 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:339 [inline] #4: ffffffff8cc0b970 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:232 [inline] #4: ffffffff8cc0b970 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:292 [inline] #4: ffffffff8cc0b970 (console_srcu){....}-{0:0}, at: console_flush_all+0x10f/0xd00 kernel/printk/printk.c:2992 stack backtrace: CPU: 1 PID: 8012 Comm: syz.3.740 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 check_noncircular+0x2bd/0x3c0 kernel/locking/lockdep.c:2187 check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3869 [inline] __lock_acquire+0x2ddb/0x7c80 kernel/locking/lockdep.c:5137 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754 console_lock_spinning_enable kernel/printk/printk.c:1871 [inline] console_emit_next_record kernel/printk/printk.c:2938 [inline] console_flush_all+0x693/0xd00 kernel/printk/printk.c:3000 console_unlock+0xae/0x340 kernel/printk/printk.c:3069 vprintk_emit+0x477/0x600 kernel/printk/printk.c:2341 _printk+0xd0/0x110 kernel/printk/printk.c:2366 fail_dump lib/fault-inject.c:45 [inline] should_fail_ex+0x37e/0x4d0 lib/fault-inject.c:153 strncpy_from_user+0x36/0x2e0 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x71/0x140 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:212 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:221 [inline] bpf_probe_read_user_str+0x2a/0x70 kernel/trace/bpf_trace.c:218 bpf_prog_bc7c5c6b9645592f+0x3d/0x3f bpf_dispatcher_nop_func include/linux/bpf.h:1223 [inline] __bpf_prog_run include/linux/filter.h:612 [inline] bpf_prog_run include/linux/filter.h:619 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2322 [inline] bpf_trace_run4+0x1f9/0x420 kernel/trace/bpf_trace.c:2363 __bpf_trace_sched_switch+0x17b/0x1e0 include/trace/events/sched.h:222 __traceiter_sched_switch+0x93/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x2197/0x44d0 kernel/sched/core.c:6696 preempt_schedule_irq+0xb5/0x140 kernel/sched/core.c:7009 irqentry_exit+0x67/0x70 kernel/entry/common.c:438 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:check_region_inline mm/kasan/generic.c:172 [inline] RIP: 0010:kasan_check_range+0x29/0x290 mm/kasan/generic.c:187 Code: cc 66 0f 1f 00 b0 01 48 85 f6 0f 84 b8 01 00 00 55 41 57 41 56 41 55 41 54 53 4c 8d 04 37 49 39 f8 0f 82 5a 02 00 00 49 89 f9 <49> c1 e9 2f 41 81 f9 ff ff 01 00 0f 82 46 02 00 00 49 89 ff 49 c1 RSP: 0018:ffffc90004aa7b78 EFLAGS: 00000202 RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffffffff83db14b8 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88803084b9c0 RBP: ffff88803084b990 R08: ffff88803084b9c8 R09: ffff88803084b9c0 R10: dffffc0000000000 R11: ffffed1006109739 R12: ffff88803084b9b0 R13: 0000000000000085 R14: 0000000000000084 R15: 0000000000000001 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] tomoyo_check_acl+0x2d8/0x3f0 security/tomoyo/domain.c:184 tomoyo_path_number_perm+0x2d9/0x590 security/tomoyo/file.c:733 security_file_ioctl+0x70/0xa0 security/security.c:2647 __do_sys_ioctl fs/ioctl.c:865 [inline] __se_sys_ioctl+0x48/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fbfe078eec9 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:00007fbfe15b1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fbfe09e5fa0 RCX: 00007fbfe078eec9 RDX: 0000200000000080 RSI: 0000000000008946 RDI: 000000000000002d RBP: 00007fbfe15b1090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fbfe09e6038 R14: 00007fbfe09e5fa0 R15: 00007fff86f86f28 CPU: 1 PID: 8012 Comm: syz.3.740 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 fail_dump lib/fault-inject.c:52 [inline] should_fail_ex+0x39d/0x4d0 lib/fault-inject.c:153 strncpy_from_user+0x36/0x2e0 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x71/0x140 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:212 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:221 [inline] bpf_probe_read_user_str+0x2a/0x70 kernel/trace/bpf_trace.c:218 bpf_prog_bc7c5c6b9645592f+0x3d/0x3f bpf_dispatcher_nop_func include/linux/bpf.h:1223 [inline] __bpf_prog_run include/linux/filter.h:612 [inline] bpf_prog_run include/linux/filter.h:619 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2322 [inline] bpf_trace_run4+0x1f9/0x420 kernel/trace/bpf_trace.c:2363 __bpf_trace_sched_switch+0x17b/0x1e0 include/trace/events/sched.h:222 __traceiter_sched_switch+0x93/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x2197/0x44d0 kernel/sched/core.c:6696 preempt_schedule_irq+0xb5/0x140 kernel/sched/core.c:7009 irqentry_exit+0x67/0x70 kernel/entry/common.c:438 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:check_region_inline mm/kasan/generic.c:172 [inline] RIP: 0010:kasan_check_range+0x29/0x290 mm/kasan/generic.c:187 Code: cc 66 0f 1f 00 b0 01 48 85 f6 0f 84 b8 01 00 00 55 41 57 41 56 41 55 41 54 53 4c 8d 04 37 49 39 f8 0f 82 5a 02 00 00 49 89 f9 <49> c1 e9 2f 41 81 f9 ff ff 01 00 0f 82 46 02 00 00 49 89 ff 49 c1 RSP: 0018:ffffc90004aa7b78 EFLAGS: 00000202 RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffffffff83db14b8 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88803084b9c0 RBP: ffff88803084b990 R08: ffff88803084b9c8 R09: ffff88803084b9c0 R10: dffffc0000000000 R11: ffffed1006109739 R12: ffff88803084b9b0 R13: 0000000000000085 R14: 0000000000000084 R15: 0000000000000001 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] tomoyo_check_acl+0x2d8/0x3f0 security/tomoyo/domain.c:184 tomoyo_path_number_perm+0x2d9/0x590 security/tomoyo/file.c:733 security_file_ioctl+0x70/0xa0 security/security.c:2647 __do_sys_ioctl fs/ioctl.c:865 [inline] __se_sys_ioctl+0x48/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fbfe078eec9 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:00007fbfe15b1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fbfe09e5fa0 RCX: 00007fbfe078eec9 RDX: 0000200000000080 RSI: 0000000000008946 RDI: 000000000000002d RBP: 00007fbfe15b1090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fbfe09e6038 R14: 00007fbfe09e5fa0 R15: 00007fff86f86f28 ---------------- Code disassembly (best guess): 0: cc int3 1: 66 0f 1f 00 nopw (%rax) 5: b0 01 mov $0x1,%al 7: 48 85 f6 test %rsi,%rsi a: 0f 84 b8 01 00 00 je 0x1c8 10: 55 push %rbp 11: 41 57 push %r15 13: 41 56 push %r14 15: 41 55 push %r13 17: 41 54 push %r12 19: 53 push %rbx 1a: 4c 8d 04 37 lea (%rdi,%rsi,1),%r8 1e: 49 39 f8 cmp %rdi,%r8 21: 0f 82 5a 02 00 00 jb 0x281 27: 49 89 f9 mov %rdi,%r9 * 2a: 49 c1 e9 2f shr $0x2f,%r9 <-- trapping instruction 2e: 41 81 f9 ff ff 01 00 cmp $0x1ffff,%r9d 35: 0f 82 46 02 00 00 jb 0x281 3b: 49 89 ff mov %rdi,%r15 3e: 49 rex.WB 3f: c1 .byte 0xc1