syzbot


general protection fault in xdp_del_sk_umem

Status: upstream: reported C repro on 2020/08/07 12:49
Reported-by: syzbot+20739cef7eb06c2b0725@syzkaller.appspotmail.com
First crash: 1582d, last: 656d
Fix bisection: failed (error log, bisect log)
  
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2020/10/17 00:01 3m bisect fix linux-4.19.y error job log
2020/09/16 23:37 24m bisect fix linux-4.19.y OK (0) job log log

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: 8105 Comm: syz-executor140 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__list_del_entry_valid+0x81/0xf0 lib/list_debug.c:51
Code: 0f 84 30 52 85 04 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 31 52 85 04 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 e8 51 85 04 49 8d 7d
RSP: 0018:ffff888092c1fc38 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880b07c8300 RCX: ffffffff814bdebb
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b07c87d0
RBP: ffff8880b07c87c8 R08: 0000000000000001 R09: ffffed101605a04d
R10: ffff8880b02d026b R11: 0000000000074071 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880b07c87c8 R15: ffff8880b07c87d0
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd774932e88 CR3: 0000000009e6d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del_rcu include/linux/rculist.h:130 [inline]
 xdp_del_sk_umem+0x72/0x1a0 net/xdp/xdp_umem.c:42
 xsk_release+0x128/0x350 net/xdp/xsk.c:344
 __sock_release+0xcd/0x2a0 net/socket.c:599
 sock_close+0x15/0x20 net/socket.c:1214
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xbf3/0x2be0 kernel/exit.c:870
 do_group_exit+0x125/0x310 kernel/exit.c:967
 __do_sys_exit_group kernel/exit.c:978 [inline]
 __se_sys_exit_group kernel/exit.c:976 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:976
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fd7748eed69
Code: Bad RIP value.
RSP: 002b:00007ffd22ed17d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fd774962270 RCX: 00007fd7748eed69
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000000
R10: 0000000020000080 R11: 0000000000000246 R12: 00007fd774962270
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Modules linked in:
---[ end trace ba34fcb498be2830 ]---
RIP: 0010:__list_del_entry_valid+0x81/0xf0 lib/list_debug.c:51
Code: 0f 84 30 52 85 04 48 b8 00 02 00 00 00 00 ad de 49 39 c4 0f 84 31 52 85 04 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 75 51 49 8b 14 24 48 39 ea 0f 85 e8 51 85 04 49 8d 7d
RSP: 0018:ffff888092c1fc38 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880b07c8300 RCX: ffffffff814bdebb
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b07c87d0
RBP: ffff8880b07c87c8 R08: 0000000000000001 R09: ffffed101605a04d
R10: ffff8880b02d026b R11: 0000000000074071 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880b07c87c8 R15: ffff8880b07c87d0
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd7748eed3f CR3: 0000000009e6d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0f 84 30 52 85 04    	je     0x4855236
   6:	48 b8 00 02 00 00 00 	movabs $0xdead000000000200,%rax
   d:	00 ad de
  10:	49 39 c4             	cmp    %rax,%r12
  13:	0f 84 31 52 85 04    	je     0x485524a
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	75 51                	jne    0x81
  30:	49 8b 14 24          	mov    (%r12),%rdx
  34:	48 39 ea             	cmp    %rbp,%rdx
  37:	0f 85 e8 51 85 04    	jne    0x4855225
  3d:	49                   	rex.WB
  3e:	8d                   	.byte 0x8d
  3f:	7d                   	.byte 0x7d

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/18 23:41 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/07/21 16:00 linux-4.19.y 3f8a27f9e27b 6e67af9d .config console log report syz C ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2020/08/07 13:13 linux-4.19.y 961f830af065 28ac5c9e .config console log report syz C ci2-linux-4-19
2023/02/19 15:23 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2023/02/08 05:32 linux-4.19.y 3f8a27f9e27b 15c3d445 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2023/02/04 11:54 linux-4.19.y 3f8a27f9e27b 1b2f701a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2023/01/29 09:49 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2023/01/27 05:09 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2023/01/11 11:04 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2023/01/05 23:33 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/12/19 02:17 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/12/15 09:38 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/11/22 22:01 linux-4.19.y 3f8a27f9e27b 9da37ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/11/20 09:11 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/11/18 23:18 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/08/12 04:10 linux-4.19.y 3f8a27f9e27b 21724cb2 .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/07/21 15:38 linux-4.19.y 3f8a27f9e27b 6e67af9d .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/05/05 04:44 linux-4.19.y 3f8a27f9e27b dc9e5259 .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/04/06 07:35 linux-4.19.y 3f8a27f9e27b 0127c10f .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/03/04 08:17 linux-4.19.y 3f8a27f9e27b 45a13a73 .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/02/22 15:37 linux-4.19.y 3f8a27f9e27b 6e821dbf .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/02/14 07:58 linux-4.19.y 3f8a27f9e27b 8b9ca619 .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2022/01/08 03:36 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2021/12/14 14:47 linux-4.19.y 3f8a27f9e27b d018dd31 .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2021/10/25 23:22 linux-4.19.y 3f8a27f9e27b c1132b49 .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2021/10/13 12:51 linux-4.19.y 3f8a27f9e27b 9d56e7dd .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2021/09/19 07:47 linux-4.19.y b172b44fcb17 70b76c1d .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2021/05/18 13:39 linux-4.19.y 3c8c23092588 a343ba6b .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2021/05/15 23:26 linux-4.19.y 3c8c23092588 93f844de .config console log report info ci2-linux-4-19 general protection fault in xdp_del_sk_umem
2020/11/07 17:05 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/08/17 22:43 linux-4.19.y c14d30dc9987 5ce13532 .config console log report ci2-linux-4-19
2020/08/07 12:48 linux-4.19.y 961f830af065 28ac5c9e .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.