syzbot


WARNING in unlock_mount

Status: moderation: reported on 2024/04/08 10:56
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+c8facc9509b2512dbef5@syzkaller.appspotmail.com
First crash: 184d, last: 40d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in unlock_mount 3 408d 425d 0/3 auto-obsoleted due to no activity on 2023/12/02 19:20
linux-5.15 WARNING in unlock_mount (2) 2 7d14h 22d 0/3 upstream: reported on 2024/09/13 21:17
linux-5.15 WARNING in unlock_mount 2 408d 409d 0/3 auto-obsoleted due to no activity on 2023/12/03 05:00
linux-6.1 WARNING in unlock_mount (2) 6 58d 186d 0/3 upstream: reported on 2024/04/03 03:20

Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000f5ff2fa8, owner = 0x0, curr 0xffff0000d2ca0000, list empty
WARNING: CPU: 1 PID: 10040 at kernel/locking/rwsem.c:1370 __up_write kernel/locking/rwsem.c:1369 [inline]
WARNING: CPU: 1 PID: 10040 at kernel/locking/rwsem.c:1370 up_write+0x524/0x760 kernel/locking/rwsem.c:1632
Modules linked in:
CPU: 1 UID: 0 PID: 10040 Comm: syz.2.718 Not tainted 6.11.0-rc4-syzkaller-gbe6d853c7631 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __up_write kernel/locking/rwsem.c:1369 [inline]
pc : up_write+0x524/0x760 kernel/locking/rwsem.c:1632
lr : __up_write kernel/locking/rwsem.c:1369 [inline]
lr : up_write+0x524/0x760 kernel/locking/rwsem.c:1632
sp : ffff8000a0d479e0
x29: ffff8000a0d47a70 x28: 0000000000001000 x27: 1fffe0001ebfe602
x26: dfff800000000000 x25: 1fffe0001ebfe5f6 x24: ffff0000f5ff3000
x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000d2ca0000
x20: ffff0000f5ff2fa8 x19: ffff0000f5ff2fa8 x18: 0000000000000008
x17: 0000000000000000 x16: ffff800083018ec4 x15: 0000000000000001
x14: 1fffe0003679e852 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000040000 x10: 000000000000a559 x9 : 853bc4179781b500
x8 : 853bc4179781b500 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000a0d47138 x4 : ffff80008f5fb1e0 x3 : ffff800080603e88
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000
Call trace:
 __up_write kernel/locking/rwsem.c:1369 [inline]
 up_write+0x524/0x760 kernel/locking/rwsem.c:1632
 inode_unlock include/linux/fs.h:804 [inline]
 unlock_mount+0x1d8/0x244 fs/namespace.c:2634
 do_loopback+0x36c/0x3dc fs/namespace.c:2768
 path_mount+0x4b0/0xe04 fs/namespace.c:3793
 do_mount fs/namespace.c:3812 [inline]
 __do_sys_mount fs/namespace.c:4020 [inline]
 __se_sys_mount fs/namespace.c:3997 [inline]
 __arm64_sys_mount+0x45c/0x5a8 fs/namespace.c:3997
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598
irq event stamp: 292
hardirqs last  enabled at (291): [<ffff8000803873f0>] __up_console_sem kernel/printk/printk.c:341 [inline]
hardirqs last  enabled at (291): [<ffff8000803873f0>] __console_unlock kernel/printk/printk.c:2801 [inline]
hardirqs last  enabled at (291): [<ffff8000803873f0>] console_unlock+0x18c/0x3d4 kernel/printk/printk.c:3120
hardirqs last disabled at (292): [<ffff80008b2ef91c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470
softirqs last  enabled at (48): [<ffff8000800307f8>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (46): [<ffff8000800307c4>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/27 05:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci be6d853c7631 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in unlock_mount
2024/07/16 17:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c912bf709078 b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in unlock_mount
2024/06/19 04:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ac2193b4b460 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in unlock_mount
2024/06/12 11:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8867bbd4a056 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in unlock_mount
2024/06/02 11:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in unlock_mount
2024/05/13 21:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in unlock_mount
2024/04/04 10:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in unlock_mount
* Struck through repros no longer work on HEAD.