syzbot


WARNING in path_openat (3)

Status: upstream: reported C repro on 2024/11/22 02:14
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+110691fb91c5dec27f16@syzkaller.appspotmail.com
First crash: 29d, last: 28d
Bug presence (2)
Date Name Commit Repro Result
2024/11/22 linux-5.15.y (ToT) 0a51d2d4527b C [report] WARNING in path_openat
2024/11/22 upstream (ToT) 28eb75e178d3 C Didn't crash
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in path_openat 2 550d 600d 0/3 auto-obsoleted due to no activity on 2023/09/28 05:21
upstream WARNING in path_openat fs C error done 137 18d 750d 0/28 upstream: reported C repro on 2022/12/02 03:18
linux-6.1 WARNING in path_openat (2) 12 54d 235d 0/3 upstream: reported on 2024/04/29 18:46
linux-6.1 WARNING in path_openat 5 406d 604d 0/3 auto-obsoleted due to no activity on 2024/02/19 01:27
linux-5.15 WARNING in path_openat (2) 4 198d 230d 0/3 auto-obsoleted due to no activity on 2024/09/14 06:15
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/12/06 16:54 1m fix candidate upstream error job log

Sample crash report:
------------[ cut here ]------------
DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0000debac590, owner = 0x0, curr 0xffff0000d63851c0, list empty
WARNING: CPU: 0 PID: 4931 at kernel/locking/rwsem.c:1350 __up_write kernel/locking/rwsem.c:1349 [inline]
WARNING: CPU: 0 PID: 4931 at kernel/locking/rwsem.c:1350 up_write+0x524/0x6f0 kernel/locking/rwsem.c:1604
Modules linked in:
CPU: 0 PID: 4931 Comm: syz-executor146 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/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 : ffff8000216276c0
x29: ffff8000216276d0 x28: ffff0000d10087d0 x27: ffff800021627a18
x26: dfff800000000000 x25: 1fffe0001bd758bf x24: ffff0000debac5e8
x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000d63851c0
x20: ffff0000debac590 x19: ffff0000debac590 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800011ab8a34 x15: 0000000000000005
x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 64620b213f6ffb00
x8 : 64620b213f6ffb00 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a98269c
x2 : ffff0001b418dd10 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]
 open_last_lookups fs/namei.c:3536 [inline]
 path_openat+0x1198/0x26cc fs/namei.c:3739
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769
 do_sys_openat2+0x128/0x3e0 fs/open.c:1253
 do_sys_open fs/open.c:1269 [inline]
 __do_sys_openat fs/open.c:1285 [inline]
 __se_sys_openat fs/open.c:1280 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280
 __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: 378
hardirqs last  enabled at (377): [<ffff80000826ac68>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline]
hardirqs last  enabled at (377): [<ffff80000826ac68>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4781
hardirqs last disabled at (378): [<ffff800011ab40c0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (372): [<ffff8000081b691c>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (372): [<ffff8000081b691c>] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586
softirqs last disabled at (261): [<ffff8000081b6fb4>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (261): [<ffff8000081b6fb4>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (261): [<ffff8000081b6fb4>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (261): [<ffff8000081b6fb4>] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641
---[ end trace bd71198619bb34b6 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/22 03:36 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-5-15-kasan-arm64 WARNING in path_openat
2024/11/23 14:39 linux-5.15.y 0a51d2d4527b 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in path_openat
2024/11/22 02:13 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in path_openat
* Struck through repros no longer work on HEAD.