syzbot


invalid opcode in llc_ui_setsockopt

Status: closed as invalid on 2025/07/02 15:51
Subsystems: net
[Documentation on labels]
First crash: 82d, last: 82d

Sample crash report:
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 11156 Comm: modprobe Not tainted 6.15.0-syzkaller-07774-g90b83efa6701 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:llc_ui_setsockopt+0x3a2/0x5f0 net/llc/af_llc.c:1114
Code: 00 e8 32 45 55 f8 41 be ea ff ff ff e9 83 01 00 00 e8 22 45 55 f8 41 be a4 ff ff ff e9 73 01 00 00 e8 12 45 55 f8 4d 8d b7 08 <07> 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 84 a2 00 00
RSP: 0018:ffffc90000007b98 EFLAGS: 00010246
RAX: ffffffff81adc4b5 RBX: 0000000000000801 RCX: ffff88801c3f9e00
RDX: 0000000000000100 RSI: ffffffff8be263e0 RDI: ffff8880493b5410
RBP: ffffc90000007c90 R08: ffffffff8fa0b1b7 R09: 1ffffffff1f41636
R10: dffffc0000000000 R11: ffffffff896ab5e0 R12: 1ffff92000000f78
R13: ffff8880493b5410 R14: 0000000000000001 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888125c66000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0d0a43e9c CR3: 000000007f194000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 expire_timers kernel/time/timer.c:1798 [inline]
 __run_timers kernel/time/timer.c:2372 [inline]
 __run_timer_base+0x61a/0x860 kernel/time/timer.c:2384
 run_timer_base kernel/time/timer.c:2393 [inline]
 run_timer_softirq+0xb7/0x180 kernel/time/timer.c:2403
 handle_softirqs+0x286/0x870 kernel/softirq.c:579
 __do_softirq kernel/softirq.c:613 [inline]
 invoke_softirq kernel/softirq.c:453 [inline]
 __irq_exit_rcu+0xca/0x1f0 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+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1050
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa8/0x110 kernel/locking/spinlock.c:194
Code: 74 05 e8 2b 61 61 f6 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f6 44 24 21 02 75 4f f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 03 77 2a f6 65 8b 05 0c 86 35 07 85 c0 74 40 48 c7 04 24 0e 36
RSP: 0018:ffffc90003a9f820 EFLAGS: 00000206
RAX: 13492951226e0300 RBX: 0000000000000a02 RCX: 13492951226e0300
RDX: 0000000000000006 RSI: ffffffff8d96be2f RDI: 0000000000000001
RBP: ffffc90003a9f8b0 R08: ffffffff8fa0b1b7 R09: 1ffffffff1f41636
R10: dffffc0000000000 R11: fffffbfff1f41637 R12: dffffc0000000000
R13: 1ffff92000753f24 R14: ffffffff99c98b50 R15: 1ffff92000753f04
 debug_rcu_head_queue kernel/rcu/rcu.h:237 [inline]
 __call_rcu_common kernel/rcu/tree.c:3075 [inline]
 call_rcu+0xae/0x990 kernel/rcu/tree.c:3210
 slab_free_hook mm/slub.c:2344 [inline]
 slab_free mm/slub.c:4642 [inline]
 kmem_cache_free+0x309/0x400 mm/slub.c:4744
 exit_mmap+0x593/0xba0 mm/mmap.c:1309
 __mmput+0x118/0x420 kernel/fork.c:1381
 exit_mm+0x1da/0x2c0 kernel/exit.c:595
 do_exit+0x864/0x2550 kernel/exit.c:947
 do_group_exit+0x21c/0x2d0 kernel/exit.c:1108
 __do_sys_exit_group kernel/exit.c:1119 [inline]
 __se_sys_exit_group kernel/exit.c:1117 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1117
 x64_sys_call+0x21ba/0x21c0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff0d0ba26c5
Code: Unable to access opcode bytes at 0x7ff0d0ba269b.
RSP: 002b:00007fff67556408 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007ff0d0ca3fe8 RCX: 00007ff0d0ba26c5
RDX: 00000000000000e7 RSI: ffffffffffffff88 RDI: 0000000000000001
RBP: 0000000000000001 R08: 00007fff67556398 R09: 0000000000000000
R10: 00007fff67556230 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000001 R14: 00007ff0d0ca2680 R15: 00007ff0d0ca4000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:llc_ui_setsockopt+0x3a2/0x5f0 net/llc/af_llc.c:1114
Code: 00 e8 32 45 55 f8 41 be ea ff ff ff e9 83 01 00 00 e8 22 45 55 f8 41 be a4 ff ff ff e9 73 01 00 00 e8 12 45 55 f8 4d 8d b7 08 <07> 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 84 a2 00 00
RSP: 0018:ffffc90000007b98 EFLAGS: 00010246
RAX: ffffffff81adc4b5 RBX: 0000000000000801 RCX: ffff88801c3f9e00
RDX: 0000000000000100 RSI: ffffffff8be263e0 RDI: ffff8880493b5410
RBP: ffffc90000007c90 R08: ffffffff8fa0b1b7 R09: 1ffffffff1f41636
R10: dffffc0000000000 R11: ffffffff896ab5e0 R12: 1ffff92000000f78
R13: ffff8880493b5410 R14: 0000000000000001 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888125c66000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff0d0a43e9c CR3: 000000007f194000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	74 05                	je     0x7
   2:	e8 2b 61 61 f6       	call   0xf6616132
   7:	48 c7 44 24 20 00 00 	movq   $0x0,0x20(%rsp)
   e:	00 00
  10:	9c                   	pushf
  11:	8f 44 24 20          	pop    0x20(%rsp)
  15:	f6 44 24 21 02       	testb  $0x2,0x21(%rsp)
  1a:	75 4f                	jne    0x6b
  1c:	f7 c3 00 02 00 00    	test   $0x200,%ebx
  22:	74 01                	je     0x25
  24:	fb                   	sti
  25:	bf 01 00 00 00       	mov    $0x1,%edi
* 2a:	e8 03 77 2a f6       	call   0xf62a7732 <-- trapping instruction
  2f:	65 8b 05 0c 86 35 07 	mov    %gs:0x735860c(%rip),%eax        # 0x7358642
  36:	85 c0                	test   %eax,%eax
  38:	74 40                	je     0x7a
  3a:	48                   	rex.W
  3b:	c7                   	.byte 0xc7
  3c:	04 24                	add    $0x24,%al
  3e:	0e                   	(bad)
  3f:	36                   	ss

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/31 13:14 net-next 90b83efa6701 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce invalid opcode in llc_ui_setsockopt
* Struck through repros no longer work on HEAD.