syzbot


general protection fault in ip6gre_exit_batch_net

Status: auto-closed as invalid on 2022/07/25 16:16
Reported-by: syzbot+0e3aeab2f874e0d2f06a@syzkaller.appspotmail.com
First crash: 982d, last: 982d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ip6gre_exit_batch_net net 1 1251d 1251d 0/28 auto-closed as invalid on 2021/09/29 10:35

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 27240 Comm: kworker/u4:9 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:ip6gre_destroy_tunnels net/ipv6/ip6_gre.c:1562 [inline]
RIP: 0010:ip6gre_exit_batch_net+0x25c/0x6c0 net/ipv6/ip6_gre.c:1634
Code: f4 48 8d 58 b0 75 41 e9 8c 00 00 00 e8 ed b6 43 fa 49 81 fe 40 92 28 8b 74 6a e8 df b6 43 fa 4c 8d 73 50 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 0f 85 09 04 00 00 48 8b 43 50 48 89 dd 48 83 e8 50
RSP: 0018:ffff888048c07b70 EFLAGS: 00010206
RAX: 000ee00ee00ee000 RBX: 007700770076ffb0 RCX: 1ffff1101298b1e5
RDX: 0000000000000000 RSI: ffffffff871ece91 RDI: ffff888000102d88
RBP: ffff888000102340 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880964a1b70
R13: dffffc0000000000 R14: 0077007700770000 R15: ffff8880964a19c0
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc6396b5000 CR3: 00000000a57c7000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ops_exit_list+0xf9/0x150 net/core/net_namespace.c:156
 cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:554
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace d901c593e602e5b9 ]---
RIP: 0010:ip6gre_destroy_tunnels net/ipv6/ip6_gre.c:1562 [inline]
RIP: 0010:ip6gre_exit_batch_net+0x25c/0x6c0 net/ipv6/ip6_gre.c:1634
Code: f4 48 8d 58 b0 75 41 e9 8c 00 00 00 e8 ed b6 43 fa 49 81 fe 40 92 28 8b 74 6a e8 df b6 43 fa 4c 8d 73 50 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 0f 85 09 04 00 00 48 8b 43 50 48 89 dd 48 83 e8 50
RSP: 0018:ffff888048c07b70 EFLAGS: 00010206
RAX: 000ee00ee00ee000 RBX: 007700770076ffb0 RCX: 1ffff1101298b1e5
RDX: 0000000000000000 RSI: ffffffff871ece91 RDI: ffff888000102d88
RBP: ffff888000102340 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880964a1b70
R13: dffffc0000000000 R14: 0077007700770000 R15: ffff8880964a19c0
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3a873f5fc0 CR3: 0000000092ad3000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f4                   	hlt
   1:	48 8d 58 b0          	lea    -0x50(%rax),%rbx
   5:	75 41                	jne    0x48
   7:	e9 8c 00 00 00       	jmpq   0x98
   c:	e8 ed b6 43 fa       	callq  0xfa43b6fe
  11:	49 81 fe 40 92 28 8b 	cmp    $0xffffffff8b289240,%r14
  18:	74 6a                	je     0x84
  1a:	e8 df b6 43 fa       	callq  0xfa43b6fe
  1f:	4c 8d 73 50          	lea    0x50(%rbx),%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	0f 85 09 04 00 00    	jne    0x43e
  35:	48 8b 43 50          	mov    0x50(%rbx),%rax
  39:	48 89 dd             	mov    %rbx,%rbp
  3c:	48 83 e8 50          	sub    $0x50,%rax

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/27 16:16 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 general protection fault in ip6gre_exit_batch_net
* Struck through repros no longer work on HEAD.