------------[ cut here ]------------ kernel BUG at net/core/skbuff.c:1790! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 25648 Comm: syz-executor.2 Not tainted 6.1.0-syzkaller-07445-g7e68dd7d07a2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:skb_copy+0x344/0x3c0 net/core/skbuff.c:1790 Code: 89 e7 e8 3f fa ff ff e8 7a 6b cd f9 4c 89 e0 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 63 6b cd f9 0f 0b e8 5c 6b cd f9 <0f> 0b e8 75 18 1b fa e9 b4 fd ff ff e8 ab 18 1b fa e9 7b fd ff ff RSP: 0018:ffffc900001dfff0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000fffffff2 RCX: 0000000000000100 RDX: ffff88801bcc3a80 RSI: ffffffff87b347b4 RDI: 0000000000000005 RBP: ffff8880284dba00 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff2 R11: 0000000000000000 R12: ffff8880284db000 R13: 0000000000008140 R14: ffff888022150000 R15: 000000000000805e FS: 00007f6e077f5700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30745000 CR3: 0000000046cb4000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: skb_unshare include/linux/skbuff.h:2007 [inline] netem_enqueue+0x2932/0x3570 net/sched/sch_netem.c:504 netem_enqueue+0x202f/0x3570 net/sched/sch_netem.c:483 dev_qdisc_enqueue+0x46/0x390 net/core/dev.c:3778 __dev_xmit_skb net/core/dev.c:3867 [inline] __dev_queue_xmit+0x2279/0x3ba0 net/core/dev.c:4215 dev_queue_xmit include/linux/netdevice.h:3035 [inline] neigh_hh_output include/net/neighbour.h:530 [inline] neigh_output include/net/neighbour.h:544 [inline] ip6_finish_output2+0xfa3/0x1530 net/ipv6/ip6_output.c:134 __ip6_finish_output net/ipv6/ip6_output.c:195 [inline] ip6_finish_output+0x694/0x1170 net/ipv6/ip6_output.c:206 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip6_output+0x1f1/0x540 net/ipv6/ip6_output.c:227 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:302 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] ip6_xmit+0x11f7/0x1c60 net/ipv6/ip6_output.c:343 inet6_csk_xmit+0x3b5/0x6d0 net/ipv6/inet6_connection_sock.c:135 __tcp_transmit_skb+0x1967/0x3800 net/ipv4/tcp_output.c:1399 tcp_transmit_skb net/ipv4/tcp_output.c:1417 [inline] __tcp_retransmit_skb+0x5fc/0x29e0 net/ipv4/tcp_output.c:3241 tcp_retransmit_skb+0x2e/0x360 net/ipv4/tcp_output.c:3264 tcp_retransmit_timer+0xf5c/0x3410 net/ipv4/tcp_timer.c:537 tcp_write_timer_handler net/ipv4/tcp_timer.c:620 [inline] tcp_write_timer_handler+0x4e2/0x9f0 net/ipv4/tcp_timer.c:594 tcp_write_timer+0xa6/0x2b0 net/ipv4/tcp_timer.c:637 call_timer_fn+0x1da/0x7c0 kernel/time/timer.c:1700 expire_timers+0x2c6/0x5c0 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0x326/0x910 kernel/time/timer.c:2035 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_acquire+0x227/0x630 kernel/locking/lockdep.c:5636 Code: 2f 9f 7e 83 f8 01 0f 85 3a 03 00 00 9c 58 f6 c4 02 0f 85 25 03 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc90006527a88 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 1ffff92000ca4f54 RCX: 55f1a138bbc414fd RDX: 1ffff11003798899 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff91332a07 R10: fffffbfff2266540 R11: 1ffffffff18f36e9 R12: 0000000000000002 R13: 0000000000000000 R14: ffffffff8c791100 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:325 [inline] rcu_read_lock include/linux/rcupdate.h:764 [inline] inet_twsk_purge+0x132/0x8a0 net/ipv4/inet_timewait_sock.c:268 ops_exit_list+0x125/0x170 net/core/net_namespace.c:174 setup_net+0x9bd/0xe60 net/core/net_namespace.c:356 copy_net_ns+0x31b/0x6b0 net/core/net_namespace.c:483 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xc5/0x1f0 kernel/nsproxy.c:228 ksys_unshare+0x449/0x920 kernel/fork.c:3184 __do_sys_unshare kernel/fork.c:3255 [inline] __se_sys_unshare kernel/fork.c:3253 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:3253 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6e06a8c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6e077f5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007f6e06babf80 RCX: 00007f6e06a8c0d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000006c060000 RBP: 00007f6e06ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc19897d4f R14: 00007f6e077f5300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:skb_copy+0x344/0x3c0 net/core/skbuff.c:1790 Code: 89 e7 e8 3f fa ff ff e8 7a 6b cd f9 4c 89 e0 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 63 6b cd f9 0f 0b e8 5c 6b cd f9 <0f> 0b e8 75 18 1b fa e9 b4 fd ff ff e8 ab 18 1b fa e9 7b fd ff ff RSP: 0018:ffffc900001dfff0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000fffffff2 RCX: 0000000000000100 RDX: ffff88801bcc3a80 RSI: ffffffff87b347b4 RDI: 0000000000000005 RBP: ffff8880284dba00 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff2 R11: 0000000000000000 R12: ffff8880284db000 R13: 0000000000008140 R14: ffff888022150000 R15: 000000000000805e FS: 00007f6e077f5700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30745000 CR3: 0000000046cb4000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 9f lahf 1: 7e 83 jle 0xffffff86 3: f8 clc 4: 01 0f add %ecx,(%rdi) 6: 85 3a test %edi,(%rdx) 8: 03 00 add (%rax),%eax a: 00 9c 58 f6 c4 02 0f add %bl,0xf02c4f6(%rax,%rbx,2) 11: 85 25 03 00 00 48 test %esp,0x48000003(%rip) # 0x4800001a 17: 83 7c 24 08 00 cmpl $0x0,0x8(%rsp) 1c: 74 01 je 0x1f 1e: fb sti 1f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 26: fc ff df * 29: 48 01 c3 add %rax,%rbx <-- trapping instruction 2c: 48 c7 03 00 00 00 00 movq $0x0,(%rbx) 33: 48 c7 43 08 00 00 00 movq $0x0,0x8(%rbx) 3a: 00 3b: 48 rex.W 3c: 8b .byte 0x8b 3d: 84 .byte 0x84 3e: 24 .byte 0x24