syzbot


general protection fault in inetdev_event

Status: moderation: reported on 2025/06/03 15:30
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+5f8fcd632806e5e9ca49@syzkaller.appspotmail.com
First crash: 42d, last: 42d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000083: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000418-0x000000000000041f]
CPU: 0 UID: 0 PID: 19322 Comm: kworker/u8:18 Not tainted 6.15.0-rc7-syzkaller-00014-gd608703fcdd9 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: netns cleanup_net
RIP: 0010:inetdev_destroy net/ipv4/devinet.c:332 [inline]
RIP: 0010:inetdev_event+0x667/0x15b0 net/ipv4/devinet.c:1656
Code: a3 df 89 e8 4b 6a c7 f7 e9 31 ff ff ff 48 8b 44 24 20 48 8d 98 18 04 00 00 48 89 d8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df <42> 80 3c 28 00 74 08 48 89 df e8 7a 23 42 f8 48 c7 03 00 00 00 00
RSP: 0018:ffffc9000df07720 EFLAGS: 00010202
RAX: 0000000000000083 RBX: 0000000000000418 RCX: ffff88802f7b5a00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000df077e8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff89e1ae46 R12: 1ffff1100e28f880
R13: dffffc0000000000 R14: ffff88807147c400 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881260c2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000800df018 CR3: 000000002f072000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 notifier_call_chain+0x1b6/0x3e0 kernel/notifier.c:85
 call_netdevice_notifiers_extack net/core/dev.c:2214 [inline]
 call_netdevice_notifiers net/core/dev.c:2228 [inline]
 unregister_netdevice_many_notify+0x15d8/0x2330 net/core/dev.c:11972
 cleanup_net+0x6a3/0xbd0 net/core/net_namespace.c:649
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
 kthread+0x70e/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:inetdev_destroy net/ipv4/devinet.c:332 [inline]
RIP: 0010:inetdev_event+0x667/0x15b0 net/ipv4/devinet.c:1656
Code: a3 df 89 e8 4b 6a c7 f7 e9 31 ff ff ff 48 8b 44 24 20 48 8d 98 18 04 00 00 48 89 d8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df <42> 80 3c 28 00 74 08 48 89 df e8 7a 23 42 f8 48 c7 03 00 00 00 00
RSP: 0018:ffffc9000df07720 EFLAGS: 00010202
RAX: 0000000000000083 RBX: 0000000000000418 RCX: ffff88802f7b5a00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000df077e8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff89e1ae46 R12: 1ffff1100e28f880
R13: dffffc0000000000 R14: ffff88807147c400 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881261c2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6841069e9c CR3: 000000000dd38000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 3 bytes skipped:
   0:	e8 4b 6a c7 f7       	call   0xf7c76a50
   5:	e9 31 ff ff ff       	jmp    0xffffff3b
   a:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
   f:	48 8d 98 18 04 00 00 	lea    0x418(%rax),%rbx
  16:	48 89 d8             	mov    %rbx,%rax
  19:	48 c1 e8 03          	shr    $0x3,%rax
  1d:	49 bd 00 00 00 00 00 	movabs $0xdffffc0000000000,%r13
  24:	fc ff df
* 27:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2c:	74 08                	je     0x36
  2e:	48 89 df             	mov    %rbx,%rdi
  31:	e8 7a 23 42 f8       	call   0xf84223b0
  36:	48 c7 03 00 00 00 00 	movq   $0x0,(%rbx)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/22 12:59 upstream d608703fcdd9 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in inetdev_event
* Struck through repros no longer work on HEAD.