syzbot


WARNING in sock_map_close

Status: fixed on 2024/06/11 03:41
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+07a2e4a1a57118ef7355@syzkaller.appspotmail.com
Fix commit: 4b4647add7d3 sock_map: avoid race between sock_map_close and sk_psock_put
First crash: 244d, last: 177d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH net v2] sock_map: avoid race between sock_map_close and sk_psock_put 4 (4) 2024/05/28 20:20
[PATCH net] sock_map: avoid race between sock_map_close and sk_psock_put 4 (4) 2024/05/23 09:20
[syzbot] [bpf?] [net?] WARNING in sock_map_close 0 (1) 2024/04/09 00:01
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in sock_map_close origin:upstream missing-backport C inconclusive 1 175d 234d 0/3 auto-obsoleted due to no activity on 2024/10/03 08:16
linux-6.1 WARNING in sock_map_close origin:upstream C error 60 90d 244d 0/3 upstream: reported C repro on 2024/04/04 17:51
upstream WARNING in sock_map_close (2) bpf net C done 3 104d 104d 28/28 fixed on 2024/10/22 11:57

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7220 at net/core/sock_map.c:1701 sock_map_close+0x2a2/0x2d0 net/core/sock_map.c:1701
Modules linked in:
CPU: 1 PID: 7220 Comm: syz-executor380 Not tainted 6.9.0-syzkaller-07726-g3c999d1ae3c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:sock_map_close+0x2a2/0x2d0 net/core/sock_map.c:1701
Code: df e8 92 29 88 f8 48 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 79 29 88 f8 4c 8b 23 eb 89 e8 4f 15 23 f8 90 <0f> 0b 90 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d e9 13 26 3d 02
RSP: 0018:ffffc9000441fda8 EFLAGS: 00010293
RAX: ffffffff89731ae1 RBX: ffffffff94b87540 RCX: ffff888029470000
RDX: 0000000000000000 RSI: ffffffff8bcab5c0 RDI: ffffffff8c1faba0
RBP: 0000000000000000 R08: ffffffff92f9b61f R09: 1ffffffff25f36c3
R10: dffffc0000000000 R11: fffffbfff25f36c4 R12: ffffffff89731840
R13: ffff88804b587000 R14: ffff88804b587000 R15: ffffffff89731870
FS:  000055555e080380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000207d4000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 unix_release+0x87/0xc0 net/unix/af_unix.c:1048
 __sock_release net/socket.c:659 [inline]
 sock_close+0xbe/0x240 net/socket.c:1421
 __fput+0x42b/0x8a0 fs/file_table.c:422
 __do_sys_close fs/open.c:1556 [inline]
 __se_sys_close fs/open.c:1541 [inline]
 __x64_sys_close+0x7f/0x110 fs/open.c:1541
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb37d618070
Code: 00 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d4 e8 10 2c 00 00 80 3d 31 f0 07 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c
RSP: 002b:00007ffcd4a525d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fb37d618070
RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000100000000 R09: 0000000100000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (182):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/16 17:15 upstream 3c999d1ae3c7 ef5d53ed .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in sock_map_close
2024/05/25 13:55 bpf 44382b3ed6b2 a10a183e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/24 20:33 bpf 4b377b4868ef 8f98448e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/23 10:59 net 30a92c9e3d6b 4d098039 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/23 05:54 net 30a92c9e3d6b 4d098039 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/22 05:35 bpf 4b377b4868ef 1014eca7 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/21 11:08 bpf 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/21 03:12 bpf 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/20 14:55 bpf 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/20 02:26 net 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/19 19:59 net 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/18 23:03 net 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/09 19:09 net 6e7ffa180a53 de979bc2 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/04/06 05:21 bpf 443574b03387 18ea8213 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/04/04 19:26 net f99c5f563c17 0ee3535e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/06/10 22:55 bpf-next f85af9d955ac 048c640a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/06/09 06:58 bpf-next f85af9d955ac 82c05ab8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/06/08 05:36 bpf-next f85af9d955ac 82c05ab8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/06/06 21:53 bpf-next 7015843afcaf 121701b6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/06/04 00:21 bpf-next 96a27ee76f0e 0aba2352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/06/03 14:30 bpf-next 531876c80004 0aba2352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/06/01 20:43 bpf-next 531876c80004 3113787f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/06/01 00:47 net-next ccf23c916ca3 3113787f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/29 13:13 bpf-next eb4e7726279a 34889ee3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/28 06:20 net-next 5233a55a5254 f550015e .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/27 16:39 bpf-next e245ef8a0b06 a10a183e .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/27 12:42 bpf-next e245ef8a0b06 a10a183e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/26 08:26 bpf-next f980f13e4eb2 a10a183e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/26 03:28 bpf-next f980f13e4eb2 a10a183e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/23 20:59 bpf-next 6f130e4d4a5f 8f98448e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/23 12:56 bpf-next 6f130e4d4a5f 4d098039 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/23 04:56 bpf-next 6f130e4d4a5f 4d098039 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/23 00:21 bpf-next 6f130e4d4a5f 4d098039 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/22 17:34 bpf-next 6f130e4d4a5f 4d098039 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/22 03:59 bpf-next 6f130e4d4a5f 1014eca7 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/21 10:10 bpf-next 6f130e4d4a5f c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/21 06:39 bpf-next 6f130e4d4a5f c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/21 01:49 bpf-next 6f130e4d4a5f c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/20 17:26 bpf-next 6f130e4d4a5f c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/20 15:10 net-next 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/20 13:43 bpf-next 6f130e4d4a5f c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/20 10:35 net-next 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/20 06:37 net-next 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/20 05:11 bpf-next 6f130e4d4a5f c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/20 02:56 net-next 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/19 20:36 net-next 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/19 16:02 bpf-next 6f130e4d4a5f c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/19 06:20 net-next 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/19 01:12 net-next 4b377b4868ef c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/18 23:59 bpf-next 6f130e4d4a5f c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/13 19:55 net 1164057b3c00 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/04 03:19 net-next 5829614a7b3b 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
* Struck through repros no longer work on HEAD.