syzbot


WARNING in sock_map_close

Status: auto-obsoleted due to no activity on 2024/10/03 08:16
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+fe89bfefad18e7730575@syzkaller.appspotmail.com
First crash: 221d, last: 161d
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: WARNING in sock_map_close (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2024/06/12 linux-5.15.y (ToT) c61bd26ae81a C [report] WARNING in sock_map_close
2024/04/28 upstream (ToT) 2c8159388952 C [report] WARNING in sock_map_close
2024/06/12 upstream (ToT) 2ef5971ff345 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in sock_map_close origin:upstream C error 60 76d 230d 0/3 upstream: reported C repro on 2024/04/04 17:51
upstream WARNING in sock_map_close (2) bpf net C done 3 91d 91d 28/28 fixed on 2024/10/22 11:57
upstream WARNING in sock_map_close bpf net C error 182 163d 226d 25/28 fixed on 2024/06/11 03:41
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/10/03 07:50 24m retest repro linux-5.15.y OK log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/07/15 04:29 2h18m fix candidate upstream OK (0) job log
2024/05/19 02:40 2h11m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3575 at net/core/sock_map.c:1586 sock_map_close+0x25f/0x290
Modules linked in:
CPU: 0 PID: 3575 Comm: syz-executor432 Not tainted 5.15.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:sock_map_close+0x25f/0x290 net/core/sock_map.c:1586
Code: 48 89 df e8 d3 a2 79 f9 48 8b 1b 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 bb a2 79 f9 4c 8b 2b eb 92 e8 b1 df 2f f9 <0f> 0b 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 9f df 2f f9 48 89 df be
RSP: 0018:ffffc90002cd7d30 EFLAGS: 00010293
RAX: ffffffff88507d2f RBX: ffffffff917d9f40 RCX: ffff888075925940
RDX: 0000000000000000 RSI: ffffffff8a8b2a00 RDI: ffffffff8ad8f400
RBP: dffffc0000000000 R08: dffffc0000000000 R09: fffffbfff1f7ec2d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffffff88507ad0 R14: 0000000000000000 R15: ffff8880748bb000
FS:  0000555555efb380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555efbca8 CR3: 000000001fedb000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 unix_release+0x7e/0xc0 net/unix/af_unix.c:949
 __sock_release net/socket.c:649 [inline]
 sock_close+0xcd/0x230 net/socket.c:1336
 __fput+0x3bf/0x890 fs/file_table.c:280
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f89c8d41420
Code: ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 80 3d 81 8c 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:00007ffcaf333c58 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f89c8d41420
RDX: 0000000000000010 RSI: 0000000020000bc0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000055efc610 R09: 0000000055efc610
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/14 07:13 linux-5.15.y fa3df276cd36 c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in sock_map_close
* Struck through repros no longer work on HEAD.