syzbot


WARNING in sock_map_close

Status: upstream: reported C repro on 2024/04/09 00:01
Subsystems: bpf net
[Documentation on labels]
Reported-by: syzbot+07a2e4a1a57118ef7355@syzkaller.appspotmail.com
First crash: 47d, last: 16h11m
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] sock_map: avoid race between sock_map_close and sk_psock_put 1 (1) 2024/05/20 21:41
[syzbot] [bpf?] [net?] WARNING in sock_map_close 0 (1) 2024/04/09 00:01
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in sock_map_close origin:upstream C 1 2d22h 37d 0/3 upstream: reported C repro on 2024/04/14 07:14
linux-6.1 WARNING in sock_map_close origin:upstream C 60 7d09h 47d 0/3 upstream: reported C repro on 2024/04/04 17:51

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 (157):
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/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/18 14:45 net fe56d6e4a99a 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 13:33 bpf 581073f626e3 c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/18 11:32 net fe56d6e4a99a 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 08:36 net fe56d6e4a99a 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/16 02:42 bpf 317a215d4932 0b3dad46 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/16 02:24 net 317a215d4932 0b3dad46 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/15 11:49 net aea27a92a41d fdb4c10c .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/15 07:25 bpf aea27a92a41d fdb4c10c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/13 14:43 bpf 3e9bc0472b91 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/13 11:59 net 1164057b3c00 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/13 08:48 net 1164057b3c00 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/13 06:18 bpf 3e9bc0472b91 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in sock_map_close
2024/05/13 05:10 net 1164057b3c00 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/12 23:04 net 1164057b3c00 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/12 20:16 net 1164057b3c00 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in sock_map_close
2024/05/12 13:41 net 1164057b3c00 9026e142 .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/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/18 13:39 bpf-next 71ed6c266348 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/17 11:49 net-next 1b294a1f3561 c2e07261 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/16 16:32 net-next 1b294a1f3561 ef5d53ed .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/16 03:33 bpf-next 5c1672705a1a 0b3dad46 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/15 13:27 bpf-next 5c1672705a1a fdb4c10c .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/15 09:29 bpf-next 5c1672705a1a fdb4c10c .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/15 07:32 net-next 654de42f3fc6 fdb4c10c .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in sock_map_close
2024/05/15 03:51 bpf-next 5c1672705a1a fdb4c10c .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/15 00:00 bpf-next 5c1672705a1a fdb4c10c .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/14 08:07 bpf-next ba39486d2c43 fdb4c10c .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/14 01:25 bpf-next ba39486d2c43 fdb4c10c .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 05:41 bpf-next 20a759df3bba 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/12 18:03 bpf-next fcd1ed89a043 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in sock_map_close
2024/05/12 12:37 bpf-next fcd1ed89a043 9026e142 .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.