syzbot


KASAN: out-of-bounds Read in leaf_paste_entries

Status: upstream: reported C repro on 2023/03/13 09:08
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+137c25e094e0ed6a2ce6@syzkaller.appspotmail.com
First crash: 570d, last: 4d13h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/05/10 upstream (ToT) 16a8829130ca C [report] KASAN: out-of-bounds Read in leaf_paste_entries
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: out-of-bounds Read in leaf_paste_entries reiserfs C error 73 580d 1419d 0/1 upstream: reported C repro on 2020/11/14 23:23
linux-6.1 KASAN: out-of-bounds Read in leaf_paste_entries origin:upstream C 58 16d 566d 0/3 upstream: reported C repro on 2023/03/18 05:48
upstream KASAN: out-of-bounds Read in leaf_paste_entries (2) reiserfs C inconclusive inconclusive 327 251d 1025d 0/28 auto-obsoleted due to no activity on 2024/04/06 02:37
linux-4.14 KASAN: out-of-bounds Read in leaf_paste_entries reiserfs C error 13 648d 1459d 0/1 upstream: reported C repro on 2020/10/05 14:11
upstream KASAN: out-of-bounds Read in leaf_paste_entries reiserfs C inconclusive 8 1090d 1322d 20/28 fixed on 2021/11/10 00:50
linux-4.14 KASAN: use-after-free Read in leaf_paste_entries C done 6 1378d 1421d 1/1 fixed on 2021/01/26 16:42
linux-4.19 KASAN: use-after-free Read in leaf_paste_entries C done 1 1384d 1384d 1/1 fixed on 2021/01/19 18:33

Sample crash report:
REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
==================================================================
BUG: KASAN: out-of-bounds in leaf_paste_entries+0x504/0x944 fs/reiserfs/lbalance.c:1377
Read of size 18446744073709551584 at addr ffff0000e0e39fa4 by task syz-executor280/4017

CPU: 1 PID: 4017 Comm: syz-executor280 Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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
 leaf_paste_entries+0x504/0x944 fs/reiserfs/lbalance.c:1377
 balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1295 [inline]
 balance_leaf_finish_node_paste fs/reiserfs/do_balan.c:1321 [inline]
 balance_leaf_finish_node fs/reiserfs/do_balan.c:1364 [inline]
 balance_leaf+0xa0d4/0xe860 fs/reiserfs/do_balan.c:1452
 do_balance+0x27c/0x790 fs/reiserfs/do_balan.c:1888
 reiserfs_paste_into_item+0x630/0x744 fs/reiserfs/stree.c:2159
 reiserfs_add_entry+0x8c0/0xc8c fs/reiserfs/namei.c:567
 reiserfs_mkdir+0x588/0x77c fs/reiserfs/namei.c:862
 xattr_mkdir fs/reiserfs/xattr.c:76 [inline]
 create_privroot fs/reiserfs/xattr.c:889 [inline]
 reiserfs_xattr_init+0x2b0/0x6dc fs/reiserfs/xattr.c:1012
 reiserfs_fill_super+0x1b28/0x1e8c fs/reiserfs/super.c:2179
 mount_bdev+0x274/0x370 fs/super.c:1387
 get_super_block+0x44/0x58 fs/reiserfs/super.c:2608
 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:00000000189c7190 refcount:2 mapcount:0 mapping:0000000077e73558 index:0x213 pfn:0x120e39
memcg:ffff0000c08ac000
aops:def_blk_aops ino:700000
flags: 0x5ffc00000002032(referenced|lru|active|private|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000002032 fffffc00032704c8 fffffc000358c948 ffff0000c51e4f48
raw: 0000000000000213 ffff0000de3bfe80 00000002ffffffff ffff0000c08ac000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff0000e0e39e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff0000e0e39f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff0000e0e39f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                               ^
 ffff0000e0e3a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff0000e0e3a080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
REISERFS warning: reiserfs-5094 has_valid_deh_location: directory entry location seems wrong *3.5*[1768256046 1718773107 0x72705f73 UNKNOWN], item_len 29662, item_location 2, free_space(entry_count) 37376
REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 531. Fsck?
REISERFS (device loop0): Remounting filesystem read-only
REISERFS error (device loop0): vs-13050 reiserfs_update_sd_size: i/o failure occurred trying to update [1 2 0x0 SD] stat data
REISERFS warning (device loop0): jdm-20006 create_privroot: xattrs/ACLs enabled and couldn't find/create .reiserfs_priv. Failing mount.
REISERFS warning: reiserfs-5094 has_valid_deh_location: directory entry location seems wrong *3.5*[1768256046 1718773107 0x72705f73 UNKNOWN], item_len 29662, item_location 2, free_space(entry_count) 37376
REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 531. Fsck?
REISERFS error (device loop0): zam-7001 reiserfs_find_entry: io error

Crashes (60):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/03 11:52 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/07/24 10:59 linux-5.15.y 7c6d66f0266f 57b2edb1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/07/21 22:54 linux-5.15.y 7c6d66f0266f b88348e9 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/26 10:54 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/03/10 08:40 linux-5.15.y 574362648507 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/05/10 04:15 linux-5.15.y 8a7f2a5c5aa1 30aa2a7e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/08/21 14:08 linux-5.15.y f6f7927ac664 d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/08/19 18:56 linux-5.15.y f6f7927ac664 d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/08/19 17:39 linux-5.15.y f6f7927ac664 d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/08/14 03:59 linux-5.15.y 24c4de4069cb 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/08/13 16:49 linux-5.15.y 24c4de4069cb 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/08/06 14:19 linux-5.15.y 38d4ca22a528 4ffcc9ef .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/30 15:21 linux-5.15.y 4af60700a60c 01298212 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/23 10:41 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/23 06:29 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/05/29 20:41 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/07/02 19:45 linux-5.15.y 4af60700a60c bfc47836 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/26 08:28 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/22 22:24 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/22 19:03 linux-5.15.y f67653019430 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/21 12:38 linux-5.15.y 471e639e59d1 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/08 11:15 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/05/29 19:25 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/05/29 10:01 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/05/29 04:17 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/06/30 17:07 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/05/06 01:12 linux-5.15.y 284087d4f7d5 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/21 07:06 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/20 23:16 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/08 07:01 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/06 19:02 linux-5.15.y 9465fef4ae35 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/05 14:50 linux-5.15.y 9465fef4ae35 77230c29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/02 08:09 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/11/27 17:38 linux-5.15.y 2a910f4af54d 7ec6c044 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/09/22 21:17 linux-5.15.y 35ecaa3632bf 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2024/09/22 02:25 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/09/19 07:57 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/09/17 13:06 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/08/19 02:10 linux-5.15.y 7e89efd3ae1c dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/08/11 08:41 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/08/07 00:06 linux-5.15.y 7e89efd3ae1c 1ef9fe42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/05/17 07:32 linux-5.15.y 284087d4f7d5 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/04/04 00:47 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/03/27 14:14 linux-5.15.y 9465fef4ae35 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/03/12 08:03 linux-5.15.y 574362648507 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/03/10 08:17 linux-5.15.y 574362648507 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/02/05 11:19 linux-5.15.y 6139f2a02fe0 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/04/16 06:47 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/04/10 15:08 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/04/09 04:56 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Read in leaf_paste_entries
2023/07/28 12:57 linux-5.15.y 09996673e313 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/07/20 21:27 linux-5.15.y d54cfc420586 f49af159 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/07/15 12:49 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/06/18 12:40 linux-5.15.y 471e639e59d1 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2023/03/13 09:08 linux-5.15.y bbf9f29bac04 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Read in leaf_paste_entries
2024/08/08 01:09 linux-5.15.y 7e89efd3ae1c de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in leaf_paste_entries
2024/09/29 17:58 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in leaf_paste_entries
2024/09/02 08:09 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in leaf_paste_entries
2024/08/29 05:15 linux-5.15.y fa93fa65db6e ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in leaf_paste_entries
* Struck through repros no longer work on HEAD.