syzbot


KASAN: use-after-free Read in reiserfs_release_objectid

Status: upstream: reported C repro on 2024/07/24 14:44
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+171dce919ec4f9ebe19c@syzkaller.appspotmail.com
First crash: 120d, last: 49d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/08/16 upstream (ToT) d7a5aa4b3c00 C [report] KASAN: slab-use-after-free Read in reiserfs_release_objectid
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: use-after-free Read in reiserfs_release_objectid C 1 630d 717d 0/1 upstream: reported C repro on 2022/12/04 21:28
linux-6.1 KASAN: use-after-free Read in reiserfs_release_objectid 1 592d 592d 0/3 auto-obsoleted due to no activity on 2023/08/07 07:31
upstream KASAN: use-after-free Read in reiserfs_release_objectid reiserfs C error done 6 322d 723d 0/28 auto-obsoleted due to no activity on 2024/05/25 08:15
linux-4.19 KASAN: use-after-free Read in reiserfs_release_objectid reiserfs C error 2 648d 724d 0/1 upstream: reported C repro on 2022/11/28 17:34
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/10/03 04:17 17m retest repro linux-5.15.y report log
2024/10/03 04:17 19m retest repro linux-5.15.y report log
2024/10/03 04:17 13m retest repro linux-5.15.y report log
2024/10/03 04:17 14m retest repro linux-5.15.y report log

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in reiserfs_release_objectid+0x454/0x63c fs/reiserfs/objectid.c:165
Read of size 8188 at addr ffff0000e59d2050 by task syz-executor217/4121

CPU: 1 PID: 4121 Comm: syz-executor217 Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Call trace:
 dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0x174/0x1e4 mm/kasan/report.c:451
 kasan_check_range+0x274/0x2b4 mm/kasan/generic.c:189
 memmove+0x90/0xe8 mm/kasan/shadow.c:54
 reiserfs_release_objectid+0x454/0x63c fs/reiserfs/objectid.c:165
 remove_save_link+0x2a0/0x460 fs/reiserfs/super.c:542
 reiserfs_evict_inode+0x304/0x3f0 fs/reiserfs/inode.c:91
 evict+0x260/0x68c fs/inode.c:587
 iput_final fs/inode.c:1705 [inline]
 iput+0x744/0x824 fs/inode.c:1731
 dentry_unlink_inode+0x37c/0x4bc fs/dcache.c:380
 __dentry_kill+0x324/0x5e4 fs/dcache.c:586
 dentry_kill+0xc8/0x250
 dput+0x21c/0x458 fs/dcache.c:893
 ovl_check_rename_whiteout fs/overlayfs/super.c:1312 [inline]
 ovl_make_workdir fs/overlayfs/super.c:1409 [inline]
 ovl_get_workdir+0x8b8/0x1110 fs/overlayfs/super.c:1524
 ovl_fill_super+0x15b4/0x2254 fs/overlayfs/super.c:2080
 mount_nodev+0x68/0x104 fs/super.c:1433
 ovl_mount+0x3c/0x50 fs/overlayfs/super.c:2171
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1517
 do_new_mount+0x278/0x8fc fs/namespace.c:3005
 path_mount+0x594/0x101c fs/namespace.c:3335
 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

The buggy address belongs to the page:
page:00000000f478755b refcount:2 mapcount:0 mapping:0000000035cdf355 index:0x10 pfn:0x1259d2
memcg:ffff0000e3ce4000
aops:def_blk_aops ino:700003
flags: 0x5ffc00000022036(referenced|uptodate|lru|active|private|mappedtodisk|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000022036 fffffc0003967448 fffffc0003967508 ffff0000c04a08c8
raw: 0000000000000010 ffff0000ddba1ae0 00000002ffffffff ffff0000e3ce4000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff0000e59d2f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff0000e59d2f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff0000e59d3000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                   ^
 ffff0000e59d3080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff0000e59d3100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
overlayfs: upper fs does not support RENAME_WHITEOUT.
overlayfs: failed to set xattr on upper
overlayfs: ...falling back to index=off,metacopy=off.

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/16 06:12 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 07:31 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 04:18 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 03:00 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 01:05 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 03:30 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 03:27 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 02:55 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/16 01:47 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/08/15 23:44 linux-5.15.y 7e89efd3ae1c e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
2024/07/24 14:43 linux-5.15.y 7c6d66f0266f 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in reiserfs_release_objectid
* Struck through repros no longer work on HEAD.