syzbot


WARNING in unlock_mount (3)

Status: upstream: reported on 2025/04/02 02:56
Reported-by: syzbot+e62fb674504ae5f0b786@syzkaller.appspotmail.com
First crash: 48d, last: 48d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in unlock_mount 3 634d 651d 0/3 auto-obsoleted due to no activity on 2023/12/02 19:20
linux-5.15 WARNING in unlock_mount (2) 2 233d 248d 0/3 auto-obsoleted due to no activity on 2025/01/06 17:35
upstream WARNING in unlock_mount fs 7 266d 406d 0/28 auto-obsoleted due to no activity on 2024/11/25 05:01
linux-5.15 WARNING in unlock_mount 2 634d 635d 0/3 auto-obsoleted due to no activity on 2023/12/03 05:00
linux-6.1 WARNING in unlock_mount (2) 6 284d 412d 0/3 auto-obsoleted due to no activity on 2024/11/16 19:35
linux-6.1 WARNING in unlock_mount (3) 2 149d 177d 0/3 auto-obsoleted due to no activity on 2025/03/31 14:44

Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000f08a9950, owner = 0x0, curr 0xffff0000c73ab680, list empty
WARNING: CPU: 1 PID: 7844 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline]
WARNING: CPU: 1 PID: 7844 at kernel/locking/rwsem.c:1350 up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 1 PID: 7844 Comm: syz.5.579 Not tainted 5.15.179-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
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 : ffff800020aa7a30
x29: ffff800020aa7a40 x28: 1ffff00004154f60 x27: 1fffe0001d13cc2f
x26: dfff800000000000 x25: 1fffe0001e115337 x24: ffff0000f08a99a8
x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000c73ab680
x20: ffff0000f08a9950 x19: ffff0000f08a9950 x18: 1fffe0003683298e
x17: 1fffe0003683298e x16: ffff800011b5ac80 x15: ffff800014c0f2a0
x14: 1ffff0000296e06c x13: dfff800000000000 x12: 0000000000080000
x11: 0000000000011581 x10: ffff80002cc07000 x9 : a8b273ff8da4e200
x8 : a8b273ff8da4e200 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000aa1313c
x2 : ffff0001b4194d10 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:792 [inline]
 unlock_mount+0x1d8/0x244 fs/namespace.c:2281
 do_new_mount_fc fs/namespace.c:2955 [inline]
 do_new_mount+0x700/0x8fc fs/namespace.c:3014
 path_mount+0x594/0x101c fs/namespace.c:3342
 do_mount fs/namespace.c:3355 [inline]
 __do_sys_mount fs/namespace.c:3563 [inline]
 __se_sys_mount fs/namespace.c:3540 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540
 __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: 506
hardirqs last  enabled at (505): [<ffff80000826b288>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline]
hardirqs last  enabled at (505): [<ffff80000826b288>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4783
hardirqs last disabled at (506): [<ffff800011b56334>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (500): [<ffff8000081b70b8>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (500): [<ffff8000081b70b8>] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586
softirqs last disabled at (317): [<ffff8000081b7750>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (317): [<ffff8000081b7750>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (317): [<ffff8000081b7750>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (317): [<ffff8000081b7750>] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641
---[ end trace c42e49c2dce2b5ce ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/02 02:55 linux-5.15.y 0c935c049b5c b8645499 .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.