syzbot


WARNING in unlock_mount (2)

Status: upstream: reported on 2024/09/13 21:17
Reported-by: syzbot+9d4f9edb72b2ea8b38a0@syzkaller.appspotmail.com
First crash: 90d, last: 75d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in unlock_mount 3 476d 493d 0/3 auto-obsoleted due to no activity on 2023/12/02 19:20
upstream WARNING in unlock_mount fs 7 107d 248d 0/28 auto-obsoleted due to no activity on 2024/11/25 05:01
linux-5.15 WARNING in unlock_mount 2 475d 476d 0/3 auto-obsoleted due to no activity on 2023/12/03 05:00
linux-6.1 WARNING in unlock_mount (2) 6 126d 253d 0/3 auto-obsoleted due to no activity on 2024/11/16 19:35
linux-6.1 WARNING in unlock_mount (3) 1 18d 18d 0/3 upstream: reported on 2024/11/24 09:42

Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000e7667930, owner = 0x0, curr 0xffff0000d184b680, list empty
WARNING: CPU: 1 PID: 7315 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline]
WARNING: CPU: 1 PID: 7315 at kernel/locking/rwsem.c:1350 up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 1 PID: 7315 Comm: syz.3.769 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __up_write kernel/locking/rwsem.c:1349 [inline]
pc : up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604
lr : __up_write kernel/locking/rwsem.c:1349 [inline]
lr : up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604
sp : ffff8000211f7a50
x29: ffff8000211f7a60 x28: dfff800000000000 x27: ffff0000d9a8ba00
x26: dfff800000000000 x25: 1fffe0001ceccf33 x24: ffff0000e7667988
x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000d184b680
x20: ffff0000e7667930 x19: ffff0000e7667930 x18: 1fffe00036835d8e
x17: 1fffe00036835d8e x16: ffff800011ac23e0 x15: ffff800014b5ef40
x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000040000
x11: 000000000000a0d6 x10: ffff800026599000 x9 : 8673c2d87e8aa400
x8 : 8673c2d87e8aa400 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a987d1c
x2 : ffff0001b41aed10 x1 : 0000000100000000 x0 : 00000000000000bd
Call trace:
 __up_write kernel/locking/rwsem.c:1349 [inline]
 up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604
 inode_unlock include/linux/fs.h:794 [inline]
 unlock_mount+0x1d8/0x244 fs/namespace.c:2281
 do_loopback+0x368/0x3d8 fs/namespace.c:2415
 path_mount+0x4b4/0x101c fs/namespace.c:3329
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount fs/namespace.c:3533 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 252
hardirqs last  enabled at (251): [<ffff80000826ad58>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline]
hardirqs last  enabled at (251): [<ffff80000826ad58>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4781
hardirqs last disabled at (252): [<ffff800011abda6c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (246): [<ffff8000081b6d74>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (246): [<ffff8000081b6d74>] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586
softirqs last disabled at (211): [<ffff8000081b740c>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (211): [<ffff8000081b740c>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (211): [<ffff8000081b740c>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (211): [<ffff8000081b740c>] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641
---[ end trace 46927cd9e5657336 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/28 17:34 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in unlock_mount
2024/09/13 21:16 linux-5.15.y 3a5928702e71 b58f933c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in unlock_mount
* Struck through repros no longer work on HEAD.