syzbot


general protection fault in macvlan_forward_source

Status: closed as invalid on 2025/01/15 13:03
Subsystems: wireguard
[Documentation on labels]
First crash: 40d, last: 40d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __crc32c_le_base (2) crypto C 6207 658d 1730d 0/28 closed as invalid on 2023/04/06 23:31

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000016: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x00000000000000b0-0x00000000000000b7]
CPU: 1 UID: 0 PID: 5884 Comm: kworker/1:4 Not tainted 6.13.0-rc1-syzkaller-00371-g65fb414c93f4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: wg-crypt-wg1 wg_packet_encrypt_worker
RIP: 0010:macvlan_forward_source_one drivers/net/macvlan.c:407 [inline]
RIP: 0010:macvlan_forward_source+0x1a2/0x610 drivers/net/macvlan.c:437
Code: ba 1a fb 4c 89 f8 48 c1 e8 03 42 80 3c 30 00 74 08 4c 89 ff e8 ef 9e 85 fb 4d 8b 2f 49 8d ad b0 00 00 00 48 89 e8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 36 03 00 00 8b 6d 00 89 ee 83 e6 01 31
RSP: 0018:ffffc90000a18548 EFLAGS: 00010202
RAX: 0000000000000016 RBX: ffff88807e015300 RCX: 0000000000000000
RDX: ffff88805e71da00 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000000b0 R08: ffffffff8684baeb R09: 0000000000000000
R10: ffffc90000a18520 R11: fffff520001430a6 R12: ffff88807fe16108
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88803372ad80
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f673cddc19c CR3: 0000000060da2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 macvlan_handle_frame+0x383/0x1450 drivers/net/macvlan.c:470
 __netif_receive_skb_core+0x14eb/0x4690 net/core/dev.c:5566
 __netif_receive_skb_one_core net/core/dev.c:5670 [inline]
 __netif_receive_skb+0x12f/0x650 net/core/dev.c:5785
 process_backlog+0x662/0x15b0 net/core/dev.c:6117
 __napi_poll+0xcb/0x490 net/core/dev.c:6883
 napi_poll net/core/dev.c:6952 [inline]
 net_rx_action+0x89b/0x1240 net/core/dev.c:7074
 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:554
 do_softirq+0x11b/0x1e0 kernel/softirq.c:455
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:382
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline]
 wg_packet_encrypt_worker+0x2c4/0x16b0 drivers/net/wireguard/send.c:293
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:macvlan_forward_source_one drivers/net/macvlan.c:407 [inline]
RIP: 0010:macvlan_forward_source+0x1a2/0x610 drivers/net/macvlan.c:437
Code: ba 1a fb 4c 89 f8 48 c1 e8 03 42 80 3c 30 00 74 08 4c 89 ff e8 ef 9e 85 fb 4d 8b 2f 49 8d ad b0 00 00 00 48 89 e8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 36 03 00 00 8b 6d 00 89 ee 83 e6 01 31
RSP: 0018:ffffc90000a18548 EFLAGS: 00010202
RAX: 0000000000000016 RBX: ffff88807e015300 RCX: 0000000000000000
RDX: ffff88805e71da00 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000000b0 R08: ffffffff8684baeb R09: 0000000000000000
R10: ffffc90000a18520 R11: fffff520001430a6 R12: ffff88807fe16108
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88803372ad80
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f673cddc19c CR3: 0000000060da2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ba 1a fb 4c 89       	mov    $0x894cfb1a,%edx
   5:	f8                   	clc
   6:	48 c1 e8 03          	shr    $0x3,%rax
   a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
   f:	74 08                	je     0x19
  11:	4c 89 ff             	mov    %r15,%rdi
  14:	e8 ef 9e 85 fb       	call   0xfb859f08
  19:	4d 8b 2f             	mov    (%r15),%r13
  1c:	49 8d ad b0 00 00 00 	lea    0xb0(%r13),%rbp
  23:	48 89 e8             	mov    %rbp,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 0f b6 04 30       	movzbl (%rax,%r14,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 36 03 00 00    	jne    0x36d
  37:	8b 6d 00             	mov    0x0(%rbp),%ebp
  3a:	89 ee                	mov    %ebp,%esi
  3c:	83 e6 01             	and    $0x1,%esi
  3f:	31                   	.byte 0x31

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/11 17:28 net-next 65fb414c93f4 ff949d25 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in macvlan_forward_source
* Struck through repros no longer work on HEAD.