FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 ====================================================== WARNING: possible circular locking dependency detected 6.11.0-syzkaller-02574-ga430d95c5efa #0 Not tainted ------------------------------------------------------ syz.4.455/8331 is trying to acquire lock: ffffffff8dcc7e40 (console_owner){-.-.}-{0:0}, at: console_lock_spinning_enable kernel/printk/printk.c:1873 [inline] ffffffff8dcc7e40 (console_owner){-.-.}-{0:0}, at: console_emit_next_record kernel/printk/printk.c:2978 [inline] ffffffff8dcc7e40 (console_owner){-.-.}-{0:0}, at: console_flush_all+0x4ff/0xd70 kernel/printk/printk.c:3050 but task is already holding lock: ffff8880b883eb98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:568 [inline] ffff8880b883eb98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:553 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:560 raw_spin_rq_lock kernel/sched/sched.h:1415 [inline] rq_lock kernel/sched/sched.h:1714 [inline] task_fork_fair+0x73/0x250 kernel/sched/fair.c:12710 sched_cgroup_fork+0x3cf/0x510 kernel/sched/core.c:4633 copy_process+0x439b/0x8dd0 kernel/fork.c:2483 kernel_clone+0xfd/0x960 kernel/fork.c:2781 user_mode_thread+0xb4/0xf0 kernel/fork.c:2859 rest_init+0x23/0x2b0 init/main.c:712 start_kernel+0x3e4/0x4d0 init/main.c:1105 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:488 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:551 [inline] try_to_wake_up+0x9a/0x13e0 kernel/sched/core.c:4051 __wake_up_common+0x131/0x1e0 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:1821 serial8250_handle_irq+0x5d3/0x780 drivers/tty/serial/8250/8250_port.c:1929 serial8250_default_handle_irq+0x9a/0x210 drivers/tty/serial/8250/8250_port.c:1949 serial8250_interrupt+0x103/0x210 drivers/tty/serial/8250/8250_core.c:86 __handle_irq_event_percpu+0x229/0x7c0 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+0x263/0xd10 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:285 common_interrupt+0xab/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 orc_find arch/x86/kernel/unwind_orc.c:217 [inline] unwind_next_frame+0x26b/0x23a0 arch/x86/kernel/unwind_orc.c:494 arch_stack_walk+0x100/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x95/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2250 [inline] slab_free mm/slub.c:4474 [inline] kfree+0x12a/0x3b0 mm/slub.c:4595 load_elf_binary+0x4e9/0x4d80 fs/binfmt_elf.c:894 search_binary_handler fs/exec.c:1820 [inline] exec_binprm fs/exec.c:1862 [inline] bprm_execve fs/exec.c:1913 [inline] bprm_execve+0x703/0x1960 fs/exec.c:1889 do_execveat_common.isra.0+0x4f1/0x630 fs/exec.c:2020 do_execve fs/exec.c:2094 [inline] __do_sys_execve fs/exec.c:2170 [inline] __se_sys_execve fs/exec.c:2165 [inline] __x64_sys_execve+0x8c/0xb0 fs/exec.c:2165 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #2 (&tty->write_wait){-.-.}-{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 __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:1821 serial8250_handle_irq+0x5d3/0x780 drivers/tty/serial/8250/8250_port.c:1929 serial8250_default_handle_irq+0x9a/0x210 drivers/tty/serial/8250/8250_port.c:1949 serial8250_interrupt+0x103/0x210 drivers/tty/serial/8250/8250_core.c:86 __handle_irq_event_percpu+0x229/0x7c0 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+0x263/0xd10 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0xdf/0x250 arch/x86/kernel/irq.c:285 common_interrupt+0xab/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] uart_port_unlock_irqrestore include/linux/serial_core.h:669 [inline] uart_write+0x19d/0x3d0 drivers/tty/serial/serial_core.c:634 process_output_block drivers/tty/n_tty.c:574 [inline] n_tty_write+0x419/0x1140 drivers/tty/n_tty.c:2389 iterate_tty_write drivers/tty/tty_io.c:1021 [inline] file_tty_write.constprop.0+0x506/0x9a0 drivers/tty/tty_io.c:1096 tty_write drivers/tty/tty_io.c:1117 [inline] redirected_tty_write drivers/tty/tty_io.c:1140 [inline] redirected_tty_write+0xcc/0x140 drivers/tty/tty_io.c:1120 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x6b5/0x1140 fs/read_write.c:683 ksys_write+0x12f/0x260 fs/read_write.c:736 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #1 (&port_lock_key){-.-.}-{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 uart_port_lock_irqsave include/linux/serial_core.h:618 [inline] serial8250_console_write+0xaa6/0x1090 drivers/tty/serial/8250/8250_port.c:3352 console_emit_next_record kernel/printk/printk.c:2984 [inline] console_flush_all+0x53f/0xd70 kernel/printk/printk.c:3050 console_unlock+0xae/0x290 kernel/printk/printk.c:3119 vprintk_emit+0x409/0x600 kernel/printk/printk.c:2348 vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:45 _printk+0xc8/0x100 kernel/printk/printk.c:2373 register_console+0xaa2/0x10a0 kernel/printk/printk.c:3655 univ8250_console_init+0x5f/0x90 drivers/tty/serial/8250/8250_core.c:513 console_init+0xcc/0x680 kernel/printk/printk.c:3801 start_kernel+0x29a/0x4d0 init/main.c:1040 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:507 x86_64_start_kernel+0xb2/0xc0 arch/x86/kernel/head64.c:488 common_startup_64+0x13e/0x148 -> #0 (console_owner){-.-.}-{0:0}: check_prev_add kernel/locking/lockdep.c:3133 [inline] check_prevs_add kernel/locking/lockdep.c:3252 [inline] validate_chain kernel/locking/lockdep.c:3868 [inline] __lock_acquire+0x24ed/0x3cb0 kernel/locking/lockdep.c:5142 lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 console_lock_spinning_enable kernel/printk/printk.c:1873 [inline] console_emit_next_record kernel/printk/printk.c:2978 [inline] console_flush_all+0x514/0xd70 kernel/printk/printk.c:3050 console_unlock+0xae/0x290 kernel/printk/printk.c:3119 vprintk_emit+0x409/0x600 kernel/printk/printk.c:2348 vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:45 _printk+0xc8/0x100 kernel/printk/printk.c:2373 fail_dump lib/fault-inject.c:45 [inline] should_fail_ex+0x46c/0x5b0 lib/fault-inject.c:153 strncpy_from_user+0x38/0x320 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x7f/0x180 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:216 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:225 [inline] bpf_probe_read_user_str+0x26/0x70 kernel/trace/bpf_trace.c:222 bpf_prog_bc7c5c6b9645592f+0x3d/0x3f bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline] __bpf_prog_run include/linux/filter.h:691 [inline] bpf_prog_run include/linux/filter.h:698 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2406 [inline] bpf_trace_run4+0x245/0x5a0 kernel/trace/bpf_trace.c:2449 __bpf_trace_sched_switch+0x13e/0x190 include/trace/events/sched.h:222 __traceiter_sched_switch+0x6c/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x17cf/0x5490 kernel/sched/core.c:6526 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:6851 irqentry_exit+0x36/0x90 kernel/entry/common.c:354 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 __nf_register_net_hook+0x45d/0x730 net/netfilter/core.c:428 nf_register_net_hook+0x109/0x160 net/netfilter/core.c:578 nf_register_net_hooks+0x5d/0xd0 net/netfilter/core.c:594 ip_vs_register_hooks+0xe7/0x150 net/netfilter/ipvs/ip_vs_core.c:2253 ip_vs_add_service+0xd58/0x1550 net/netfilter/ipvs/ip_vs_ctl.c:1418 do_ip_vs_set_ctl+0xed7/0x11c0 net/netfilter/ipvs/ip_vs_ctl.c:2807 nf_setsockopt+0x8a/0xf0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xcb/0xf0 net/ipv4/ip_sockglue.c:1424 raw_setsockopt+0xb8/0x290 net/ipv4/raw.c:845 do_sock_setsockopt+0x222/0x480 net/socket.c:2330 __sys_setsockopt+0x1a4/0x270 net/socket.c:2353 __do_sys_setsockopt net/socket.c:2362 [inline] __se_sys_setsockopt net/socket.c:2359 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2359 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 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.4.455/8331: #0: ffffffff8fc0ef08 (__ip_vs_mutex){+.+.}-{3:3}, at: do_ip_vs_set_ctl+0x46d/0x11c0 net/netfilter/ipvs/ip_vs_ctl.c:2739 #1: ffffffff8fb73fc8 (nf_hook_mutex){+.+.}-{3:3}, at: __nf_register_net_hook+0x184/0x730 net/netfilter/core.c:432 #2: ffff8880b883eb98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:568 [inline] #2: ffff8880b883eb98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:553 #3: ffffffff8ddba6a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline] #3: ffffffff8ddba6a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #3: ffffffff8ddba6a0 (rcu_read_lock){....}-{1:2}, at: __bpf_trace_run kernel/trace/bpf_trace.c:2405 [inline] #3: ffffffff8ddba6a0 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run4+0x1d6/0x5a0 kernel/trace/bpf_trace.c:2449 #4: ffffffff8dda8280 (console_lock){+.+.}-{0:0}, at: vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:45 #5: ffffffff8dda82f0 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:331 [inline] #5: ffffffff8dda82f0 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:267 [inline] #5: ffffffff8dda82f0 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:286 [inline] #5: ffffffff8dda82f0 (console_srcu){....}-{0:0}, at: console_flush_all+0x12d/0xd70 kernel/printk/printk.c:3042 stack backtrace: CPU: 0 UID: 0 PID: 8331 Comm: syz.4.455 Not tainted 6.11.0-syzkaller-02574-ga430d95c5efa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 check_noncircular+0x31a/0x400 kernel/locking/lockdep.c:2186 check_prev_add kernel/locking/lockdep.c:3133 [inline] check_prevs_add kernel/locking/lockdep.c:3252 [inline] validate_chain kernel/locking/lockdep.c:3868 [inline] __lock_acquire+0x24ed/0x3cb0 kernel/locking/lockdep.c:5142 lock_acquire kernel/locking/lockdep.c:5759 [inline] lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724 console_lock_spinning_enable kernel/printk/printk.c:1873 [inline] console_emit_next_record kernel/printk/printk.c:2978 [inline] console_flush_all+0x514/0xd70 kernel/printk/printk.c:3050 console_unlock+0xae/0x290 kernel/printk/printk.c:3119 vprintk_emit+0x409/0x600 kernel/printk/printk.c:2348 vprintk+0x7f/0xa0 kernel/printk/printk_safe.c:45 _printk+0xc8/0x100 kernel/printk/printk.c:2373 fail_dump lib/fault-inject.c:45 [inline] should_fail_ex+0x46c/0x5b0 lib/fault-inject.c:153 strncpy_from_user+0x38/0x320 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x7f/0x180 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:216 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:225 [inline] bpf_probe_read_user_str+0x26/0x70 kernel/trace/bpf_trace.c:222 bpf_prog_bc7c5c6b9645592f+0x3d/0x3f bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline] __bpf_prog_run include/linux/filter.h:691 [inline] bpf_prog_run include/linux/filter.h:698 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2406 [inline] bpf_trace_run4+0x245/0x5a0 kernel/trace/bpf_trace.c:2449 __bpf_trace_sched_switch+0x13e/0x190 include/trace/events/sched.h:222 __traceiter_sched_switch+0x6c/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x17cf/0x5490 kernel/sched/core.c:6526 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:6851 irqentry_exit+0x36/0x90 kernel/entry/common.c:354 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:lock_is_held include/linux/lockdep.h:249 [inline] RIP: 0010:__nf_register_net_hook+0x45d/0x730 net/netfilter/core.c:434 Code: 0f b6 14 02 4c 89 f0 83 e0 07 83 c0 03 38 d0 0f 8c e8 fc ff ff 84 d2 0f 84 e0 fc ff ff 4c 89 f7 e8 28 39 b5 f8 e9 d3 fc ff ff 1e 7d 56 f8 be ff ff ff ff 48 c7 c7 c8 3f b7 8f e8 dd ae e2 01 RSP: 0018:ffffc9000324f7d8 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffffff8c8601c0 RCX: ffffffff893558f5 RDX: ffff88802ef58000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888062bdaed8 R14: ffffffff8c8601dc R15: ffff888062bd9dc0 nf_register_net_hook+0x109/0x160 net/netfilter/core.c:578 nf_register_net_hooks+0x5d/0xd0 net/netfilter/core.c:594 ip_vs_register_hooks+0xe7/0x150 net/netfilter/ipvs/ip_vs_core.c:2253 ip_vs_add_service+0xd58/0x1550 net/netfilter/ipvs/ip_vs_ctl.c:1418 do_ip_vs_set_ctl+0xed7/0x11c0 net/netfilter/ipvs/ip_vs_ctl.c:2807 nf_setsockopt+0x8a/0xf0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xcb/0xf0 net/ipv4/ip_sockglue.c:1424 raw_setsockopt+0xb8/0x290 net/ipv4/raw.c:845 do_sock_setsockopt+0x222/0x480 net/socket.c:2330 __sys_setsockopt+0x1a4/0x270 net/socket.c:2353 __do_sys_setsockopt net/socket.c:2362 [inline] __se_sys_setsockopt net/socket.c:2359 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2359 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe8fb97def9 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:00007fe8fc724038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fe8fbb36130 RCX: 00007fe8fb97def9 RDX: 0000000000000482 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007fe8fc724090 R08: 000000000000002c R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007fe8fbb36130 R15: 00007ffea2ad89d8 CPU: 0 UID: 0 PID: 8331 Comm: syz.4.455 Not tainted 6.11.0-syzkaller-02574-ga430d95c5efa #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 fail_dump lib/fault-inject.c:52 [inline] should_fail_ex+0x497/0x5b0 lib/fault-inject.c:153 strncpy_from_user+0x38/0x320 lib/strncpy_from_user.c:118 strncpy_from_user_nofault+0x7f/0x180 mm/maccess.c:186 bpf_probe_read_user_str_common kernel/trace/bpf_trace.c:216 [inline] ____bpf_probe_read_user_str kernel/trace/bpf_trace.c:225 [inline] bpf_probe_read_user_str+0x26/0x70 kernel/trace/bpf_trace.c:222 bpf_prog_bc7c5c6b9645592f+0x3d/0x3f bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline] __bpf_prog_run include/linux/filter.h:691 [inline] bpf_prog_run include/linux/filter.h:698 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2406 [inline] bpf_trace_run4+0x245/0x5a0 kernel/trace/bpf_trace.c:2449 __bpf_trace_sched_switch+0x13e/0x190 include/trace/events/sched.h:222 __traceiter_sched_switch+0x6c/0xc0 include/trace/events/sched.h:222 trace_sched_switch include/trace/events/sched.h:222 [inline] __schedule+0x17cf/0x5490 kernel/sched/core.c:6526 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:6851 irqentry_exit+0x36/0x90 kernel/entry/common.c:354 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:707 RIP: 0010:lock_is_held include/linux/lockdep.h:249 [inline] RIP: 0010:__nf_register_net_hook+0x45d/0x730 net/netfilter/core.c:434 Code: 0f b6 14 02 4c 89 f0 83 e0 07 83 c0 03 38 d0 0f 8c e8 fc ff ff 84 d2 0f 84 e0 fc ff ff 4c 89 f7 e8 28 39 b5 f8 e9 d3 fc ff ff 1e 7d 56 f8 be ff ff ff ff 48 c7 c7 c8 3f b7 8f e8 dd ae e2 01 RSP: 0018:ffffc9000324f7d8 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffffff8c8601c0 RCX: ffffffff893558f5 RDX: ffff88802ef58000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000002 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888062bdaed8 R14: ffffffff8c8601dc R15: ffff888062bd9dc0 nf_register_net_hook+0x109/0x160 net/netfilter/core.c:578 nf_register_net_hooks+0x5d/0xd0 net/netfilter/core.c:594 ip_vs_register_hooks+0xe7/0x150 net/netfilter/ipvs/ip_vs_core.c:2253 ip_vs_add_service+0xd58/0x1550 net/netfilter/ipvs/ip_vs_ctl.c:1418 do_ip_vs_set_ctl+0xed7/0x11c0 net/netfilter/ipvs/ip_vs_ctl.c:2807 nf_setsockopt+0x8a/0xf0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xcb/0xf0 net/ipv4/ip_sockglue.c:1424 raw_setsockopt+0xb8/0x290 net/ipv4/raw.c:845 do_sock_setsockopt+0x222/0x480 net/socket.c:2330 __sys_setsockopt+0x1a4/0x270 net/socket.c:2353 __do_sys_setsockopt net/socket.c:2362 [inline] __se_sys_setsockopt net/socket.c:2359 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2359 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe8fb97def9 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:00007fe8fc724038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fe8fbb36130 RCX: 00007fe8fb97def9 RDX: 0000000000000482 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007fe8fc724090 R08: 000000000000002c R09: 0000000000000000 R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007fe8fbb36130 R15: 00007ffea2ad89d8 ---------------- Code disassembly (best guess): 0: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx 4: 4c 89 f0 mov %r14,%rax 7: 83 e0 07 and $0x7,%eax a: 83 c0 03 add $0x3,%eax d: 38 d0 cmp %dl,%al f: 0f 8c e8 fc ff ff jl 0xfffffcfd 15: 84 d2 test %dl,%dl 17: 0f 84 e0 fc ff ff je 0xfffffcfd 1d: 4c 89 f7 mov %r14,%rdi 20: e8 28 39 b5 f8 call 0xf8b5394d 25: e9 d3 fc ff ff jmp 0xfffffcfd * 2a: e8 1e 7d 56 f8 call 0xf8567d4d <-- trapping instruction 2f: be ff ff ff ff mov $0xffffffff,%esi 34: 48 c7 c7 c8 3f b7 8f mov $0xffffffff8fb73fc8,%rdi 3b: e8 dd ae e2 01 call 0x1e2af1d