syzbot


WARNING: lock held when returning to user space in sock_setsockopt

Status: fixed on 2021/11/10 00:50
Subsystems: net
[Documentation on labels]
Fix commit: 271dbc318432 sock: unlock on error in sock_setsockopt()
First crash: 1030d, last: 1030d

Sample crash report:
================================================
WARNING: lock held when returning to user space!
5.13.0-syzkaller #0 Not tainted
------------------------------------------------
syz-executor.5/24852 is leaving the kernel with locks still held!
1 lock held by syz-executor.5/24852:
 #0: ffff88807f934220 (sk_lock-AF_TIPC){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1613 [inline]
 #0: ffff88807f934220 (sk_lock-AF_TIPC){+.+.}-{0:0}, at: sock_setsockopt+0x1e3/0x2490 net/core/sock.c:980

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/06 02:29 net-old c6c205ed442e 55aa55c2 .config console log report info ci-upstream-net-this-kasan-gce WARNING: lock held when returning to user space in sock_setsockopt
* Struck through repros no longer work on HEAD.