syzbot


WARNING in hook_path_rename

Status: upstream: reported C repro on 2024/10/31 08:38
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+e26c000b9284837a3bc7@syzkaller.appspotmail.com
First crash: 43d, last: 15d
Bug presence (1)
Date Name Commit Repro Result
2024/11/05 upstream (ToT) 2e1b3cc9d7f7 C [report] WARNING in current_check_refer_path
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/11/25 23:37 16m retest repro linux-5.15.y report log

Sample crash report:
NILFS (loop0): broken superblock, retrying with spare superblock (blocksize = 1024)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4019 at security/landlock/fs.c:576 hook_path_rename+0x200/0x2fc security/landlock/fs.c:637
Modules linked in:
CPU: 0 PID: 4019 Comm: syz-executor190 Not tainted 5.15.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : hook_path_rename+0x200/0x2fc security/landlock/fs.c:637
lr : get_mode_access security/landlock/fs.c:558 [inline]
lr : hook_path_rename+0x1fc/0x2fc security/landlock/fs.c:637
sp : ffff80001d0c7980
x29: ffff80001d0c7980 x28: ffff80001d0c7c60 x27: dfff800000000000
x26: ffff80001d0c7c00 x25: dfff800000000000 x24: 0000000000000020
x23: 0000000000000020 x22: 0000000000000020 x21: 000000000000ffff
x20: ffff0000cb754400 x19: ffff80001d0c7c00 x18: 0000000000000001
x17: 0000000000000000 x16: ffff80000824ebd0 x15: 00000000ffffffff
x14: 1ffff0000295606a x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000cae7b680
x8 : 0000000000000000 x7 : ffff8000089e3664 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000002 x3 : ffff0000dc118d38
x2 : ffff80001d0c7be0 x1 : 000000000000ffff x0 : 000000000000d000
Call trace:
 hook_path_rename+0x200/0x2fc security/landlock/fs.c:637
 security_path_rename+0x168/0x274 security/security.c:1199
 do_renameat2+0x75c/0x10c0 fs/namei.c:4972
 __do_sys_renameat2 fs/namei.c:5018 [inline]
 __se_sys_renameat2 fs/namei.c:5015 [inline]
 __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5015
 __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: 20358
hardirqs last  enabled at (20357): [<ffff80000832c128>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (20358): [<ffff800011ab3ab0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (19676): [<ffff8000080308b0>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (19674): [<ffff80000803087c>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace e2b5690d2597da1f ]---

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/31 10:48 linux-5.15.y 74cdd62cb470 96eb609f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in hook_path_rename
2024/11/28 16:54 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hook_path_rename
2024/11/28 16:52 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hook_path_rename
2024/11/11 20:07 linux-5.15.y 3c17fc483905 0c4b1325 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hook_path_rename
2024/11/11 20:07 linux-5.15.y 3c17fc483905 0c4b1325 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hook_path_rename
2024/10/31 10:58 linux-5.15.y 74cdd62cb470 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hook_path_rename
2024/10/31 10:58 linux-5.15.y 74cdd62cb470 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hook_path_rename
2024/11/28 13:12 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hook_path_rename
2024/11/28 13:09 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hook_path_rename
2024/11/11 18:35 linux-5.15.y 3c17fc483905 0c4b1325 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hook_path_rename
2024/11/11 18:35 linux-5.15.y 3c17fc483905 0c4b1325 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hook_path_rename
2024/10/31 08:37 linux-5.15.y 74cdd62cb470 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hook_path_rename
2024/10/31 08:37 linux-5.15.y 74cdd62cb470 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in hook_path_rename
* Struck through repros no longer work on HEAD.