syzbot


WARNING: lock held when returning to user space in sock_setsockopt

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 271dbc318432 sock: unlock on error in sock_setsockopt()
First crash: 580d, last: 580d

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