syzbot


WARNING: lock held when returning to user space in afs_proc_addr_prefs_write

Status: upstream: reported C repro on 2024/12/25 21:54
Subsystems: afs
[Documentation on labels]
Reported-by: syzbot+76f33569875eb708e575@syzkaller.appspotmail.com
First crash: 5d02h, last: 5d00h
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] afs: Merge preference rule failure condition 1 (1) 2024/12/26 01:26
[syzbot] [afs?] WARNING: lock held when returning to user space in afs_proc_addr_prefs_write 0 (2) 2024/12/26 01:05
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/12/26 01:05 19m lizhi.xu@windriver.com patch upstream OK log

Sample crash report:
netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
kafs: addr_prefs: Too many elements in string
================================================
WARNING: lock held when returning to user space!
6.13.0-rc3-syzkaller-00209-g499551201b5f #0 Not tainted
------------------------------------------------
syz-executor133/5823 is leaving the kernel with locks still held!
1 lock held by syz-executor133/5823:
 #0: ffff888071cffc00 (&sb->s_type->i_mutex_key#9){++++}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]
 #0: ffff888071cffc00 (&sb->s_type->i_mutex_key#9){++++}-{4:4}, at: afs_proc_addr_prefs_write+0x2bb/0x14e0 fs/afs/addr_prefs.c:388

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/21 23:53 upstream 499551201b5f d7f584ee .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: lock held when returning to user space in afs_proc_addr_prefs_write
2024/12/21 23:09 upstream 499551201b5f d7f584ee .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: lock held when returning to user space in afs_proc_addr_prefs_write
2024/12/21 22:37 upstream 499551201b5f d7f584ee .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: lock held when returning to user space in afs_proc_addr_prefs_write
2024/12/21 21:44 upstream 499551201b5f d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING: lock held when returning to user space in afs_proc_addr_prefs_write
* Struck through repros no longer work on HEAD.