syzbot


general protection fault in inet_unhash

Status: fixed on 2020/07/17 17:58
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+3610d489778b57cc8031@syzkaller.appspotmail.com
Fix commit: 02c71b144c81 l2tp: do not use inet_hash()/inet_unhash()
First crash: 1626d, last: 1568d
Cause bisection: introduced by (bisect log) :
commit af6eea57437a830293eab56246b6025cc7d46ee7
Author: Andrii Nakryiko <andriin@fb.com>
Date: Mon Mar 30 02:59:58 2020 +0000

  bpf: Implement bpf_link-based cgroup BPF program attachment

Crash: general protection fault in inet_unhash (log)
Repro: C syz .config
  
Discussions (14)
Title Replies (including bot) Last reply
[PATCH 4.19 00/25] 4.19.128-rc1 review 40 (40) 2020/06/16 08:18
[PATCH 5.6 00/41] 5.6.18-rc1 review 46 (46) 2020/06/10 19:11
[PATCH 5.4 00/34] 5.4.46-rc1 review 39 (39) 2020/06/10 19:10
[PATCH 4.14 00/46] 4.14.184-rc1 review 48 (48) 2020/06/09 19:04
[PATCH 4.9 00/42] 4.9.227-rc1 review 43 (43) 2020/06/09 17:44
[PATCH 4.4 00/36] 4.4.227-rc1 review 37 (37) 2020/06/09 17:44
[PATCH AUTOSEL 4.9 1/6] ARM: 8977/1: ptrace: Fix mask for thumb breakpoint hook 6 (6) 2020/06/05 12:26
[PATCH AUTOSEL 4.14 1/8] ARM: 8977/1: ptrace: Fix mask for thumb breakpoint hook 8 (8) 2020/06/05 12:26
[PATCH AUTOSEL 4.19 1/9] Input: mms114 - fix handling of mms345l 9 (9) 2020/06/05 12:25
[PATCH AUTOSEL 5.4 01/14] Input: mms114 - fix handling of mms345l 14 (14) 2020/06/05 12:25
[PATCH AUTOSEL 5.6 01/17] Input: mms114 - fix handling of mms345l 17 (17) 2020/06/05 12:25
[PATCH v2 net] l2tp: do not use inet_hash()/inet_unhash() 2 (2) 2020/05/31 04:56
general protection fault in inet_unhash 9 (10) 2020/05/29 22:38
[PATCH net] l2tp: do not use inet_hash()/inet_unhash() 2 (2) 2020/05/29 18:12
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in inet_unhash 2 420d 497d 0/3 auto-obsoleted due to no activity on 2023/11/26 22:36
upstream BUG: unable to handle kernel paging request in inet_unhash net 3 690d 772d 22/28 fixed on 2023/02/24 13:50

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 7087 Comm: syz-executor601 Not tainted 5.7.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:inet_unhash+0x11f/0x770 net/ipv4/inet_hashtables.c:600
Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e dd 04 00 00 48 8d 7d 08 44 8b 73 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 55 05 00 00 48 8d 7d 14 4c 8b 6d 08 48 b8 00 00
RSP: 0018:ffffc90001097d30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888092d5d940 RCX: ffffffff8695da92
RDX: 0000000000000001 RSI: ffffffff8695daa1 RDI: 0000000000000008
RBP: 0000000000000000 R08: ffff888096c20500 R09: fffffbfff1513279
R10: ffffffff8a8993c7 R11: fffffbfff1513278 R12: ffff888092d5d9b0
R13: 0000000000000007 R14: 0000000000000000 R15: ffffffff87378890
FS:  0000000000f7c880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cd090 CR3: 00000000a4077000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sk_common_release+0xba/0x370 net/core/sock.c:3202
 inet_create net/ipv4/af_inet.c:389 [inline]
 inet_create+0x966/0xe00 net/ipv4/af_inet.c:247
 __sock_create+0x3cb/0x730 net/socket.c:1433
 sock_create net/socket.c:1484 [inline]
 __sys_socket+0xef/0x200 net/socket.c:1526
 __do_sys_socket net/socket.c:1535 [inline]
 __se_sys_socket net/socket.c:1533 [inline]
 __x64_sys_socket+0x6f/0xb0 net/socket.c:1533
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x441e09
Code: e8 fc b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc12fd65a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441e09
RDX: 0000000000000073 RSI: 0000000000000002 RDI: 0000000000000002
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000402c10 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 8d97d39e8c8f34ad ]---
RIP: 0010:inet_unhash+0x11f/0x770 net/ipv4/inet_hashtables.c:600
Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e dd 04 00 00 48 8d 7d 08 44 8b 73 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 55 05 00 00 48 8d 7d 14 4c 8b 6d 08 48 b8 00 00
RSP: 0018:ffffc90001097d30 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff888092d5d940 RCX: ffffffff8695da92
RDX: 0000000000000001 RSI: ffffffff8695daa1 RDI: 0000000000000008
RBP: 0000000000000000 R08: ffff888096c20500 R09: fffffbfff1513279
R10: ffffffff8a8993c7 R11: fffffbfff1513278 R12: ffff888092d5d9b0
R13: 0000000000000007 R14: 0000000000000000 R15: ffffffff87378890
FS:  0000000000f7c880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cd090 CR3: 00000000a4077000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/29 10:27 upstream 75caf310d16c d19ed305 .config console log report syz C ci-upstream-kasan-gce-root
2020/05/27 23:08 upstream b0c3ba31be3e ec153193 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/05/27 16:44 net-old a4976a3ef844 ec153193 .config console log report syz C ci-upstream-net-this-kasan-gce
2020/05/27 16:05 net-next-old dc0f3ed1973f ec153193 .config console log report syz C ci-upstream-net-kasan-gce
2020/05/27 16:30 linux-next b0523c7b1c9d ec153193 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/05/31 12:48 upstream ffeb595d8481 a0331e89 .config console log report ci-upstream-kasan-gce-root
2020/05/31 12:46 upstream ffeb595d8481 a0331e89 .config console log report ci-upstream-kasan-gce-smack-root
2020/05/31 12:44 upstream ffeb595d8481 a0331e89 .config console log report ci-upstream-kasan-gce-selinux-root
2020/05/31 12:43 upstream ffeb595d8481 a0331e89 .config console log report ci-upstream-kasan-gce-selinux-root
2020/05/28 06:09 upstream b0c3ba31be3e 142a0957 .config console log report ci-upstream-kasan-gce-root
2020/05/29 09:51 net-old 7c6d2ecbda83 d19ed305 .config console log report ci-upstream-net-this-kasan-gce
2020/05/24 21:43 net-old 539d39ad0c61 bd28eb9d .config console log report ci-upstream-net-this-kasan-gce
2020/05/18 12:11 bpf f85c1598ddfe 37bccd4e .config console log report ci-upstream-bpf-kasan-gce
2020/05/18 03:16 bpf f85c1598ddfe 37bccd4e .config console log report ci-upstream-bpf-kasan-gce
2020/05/31 20:19 bpf-next 551f08b1d8ea a0331e89 .config console log report ci-upstream-bpf-next-kasan-gce
2020/05/31 12:45 net-next-old 39884604b116 a0331e89 .config console log report ci-upstream-net-kasan-gce
2020/05/30 15:01 bpf-next 551f08b1d8ea 954bd312 .config console log report ci-upstream-bpf-next-kasan-gce
2020/05/29 20:20 net-next-old 394f9ebf92c8 3905eaae .config console log report ci-upstream-net-kasan-gce
2020/05/27 15:36 net-next-old dc0f3ed1973f ec153193 .config console log report ci-upstream-net-kasan-gce
2020/05/04 07:00 bpf-next 115506fea499 58ae5e18 .config console log report ci-upstream-bpf-next-kasan-gce
2020/04/29 23:56 bpf-next fd9c40c575a0 496a08ae .config console log report ci-upstream-bpf-next-kasan-gce
2020/06/26 07:35 linux-next e7b08814b16b aea82c00 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/23 22:49 linux-next e7b08814b16b 54566aff .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/23 19:13 linux-next e7b08814b16b 54566aff .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/23 15:06 linux-next e7b08814b16b 54566aff .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/23 15:04 linux-next e7b08814b16b 54566aff .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/19 17:16 linux-next e7b08814b16b bc258b50 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/19 16:45 linux-next e7b08814b16b bc258b50 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/18 12:19 linux-next e7b08814b16b d45a4d69 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/18 12:19 linux-next e7b08814b16b d45a4d69 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/17 15:41 linux-next e7b08814b16b b9f3810b .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/17 03:19 linux-next e7b08814b16b 559fbe2d .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/13 19:45 linux-next e7b08814b16b dbce178a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/13 16:53 linux-next e7b08814b16b f4724dd3 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/09 22:57 linux-next e7b08814b16b 092934c1 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/08 09:06 linux-next e7b08814b16b 7751efd0 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/08 09:06 linux-next e7b08814b16b 7751efd0 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/07 22:20 linux-next e7b08814b16b 2c2b926c .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/02 16:30 linux-next e7b08814b16b 52fd7b7d .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/31 12:43 linux-next e7b08814b16b a0331e89 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.