syzbot


KASAN: out-of-bounds Read in leaf_paste_entries

Status: upstream: reported C repro on 2020/11/14 23:23
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+7a1bd924e3172fd4cc0c@syzkaller.appspotmail.com
First crash: 1467d, last: 628d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: out-of-bounds Read in leaf_paste_entries origin:upstream C error 67 3d16h 619d 0/3 upstream: reported C repro on 2023/03/13 09:08
linux-6.1 KASAN: out-of-bounds Read in leaf_paste_entries origin:upstream C 61 15d 614d 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 299d 1074d 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 696d 1508d 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 1139d 1370d 20/28 fixed on 2021/11/10 00:50
linux-4.14 KASAN: use-after-free Read in leaf_paste_entries C done 6 1426d 1470d 1/1 fixed on 2021/01/26 16:42
linux-4.19 KASAN: use-after-free Read in leaf_paste_entries C done 1 1433d 1433d 1/1 fixed on 2021/01/19 18:33
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2021/11/07 22:24 11m bisect fix linux-4.19.y error job log
2021/10/08 22:00 24m bisect fix linux-4.19.y OK (0) job log log
2021/08/22 08:45 24m bisect fix linux-4.19.y OK (0) job log log
2021/07/23 07:15 26m bisect fix linux-4.19.y OK (0) job log log
2021/06/23 06:36 21m bisect fix linux-4.19.y OK (0) job log log
2021/05/19 23:39 25m bisect fix linux-4.19.y OK (0) job log log
2021/04/19 23:16 23m bisect fix linux-4.19.y OK (0) job log log
2021/03/20 22:53 22m bisect fix linux-4.19.y OK (0) job log log
2021/01/22 02:20 23m bisect fix linux-4.19.y OK (0) job log log

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 4294967295, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using r5 hash to sort names
REISERFS (device loop0): using 3.5.x disk format
==================================================================
BUG: KASAN: out-of-bounds in memmove include/linux/string.h:392 [inline]
BUG: KASAN: out-of-bounds in leaf_paste_entries+0x449/0x910 fs/reiserfs/lbalance.c:1378
Read of size 18446744073709551584 at addr ffff88808a5aefa4 by task syz-executor366/8076

CPU: 1 PID: 8076 Comm: syz-executor366 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
 kasan_report+0x8f/0xa0 mm/kasan/report.c:412
 memmove+0x20/0x50 mm/kasan/kasan.c:293
 memmove include/linux/string.h:392 [inline]
 leaf_paste_entries+0x449/0x910 fs/reiserfs/lbalance.c:1378
 balance_leaf_finish_node_paste_dirent fs/reiserfs/do_balan.c:1306 [inline]
 balance_leaf_finish_node_paste fs/reiserfs/do_balan.c:1332 [inline]
 balance_leaf_finish_node fs/reiserfs/do_balan.c:1375 [inline]
 balance_leaf+0x8fd7/0xca70 fs/reiserfs/do_balan.c:1463
 do_balance+0x30a/0x760 fs/reiserfs/do_balan.c:1899
 reiserfs_paste_into_item+0x636/0x7d0 fs/reiserfs/stree.c:2169
 reiserfs_add_entry+0x89a/0xcc0 fs/reiserfs/namei.c:566
 reiserfs_mkdir+0x66e/0x980 fs/reiserfs/namei.c:858
 create_privroot fs/reiserfs/xattr.c:880 [inline]
 reiserfs_xattr_init+0x406/0xae0 fs/reiserfs/xattr.c:1002
 reiserfs_fill_super+0x1f54/0x2d80 fs/reiserfs/super.c:2188
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fd5b87a7f4a
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd604a2a48 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd5b87a7f4a
RDX: 0000000020001100 RSI: 0000000020000040 RDI: 00007ffd604a2a60
RBP: 00007ffd604a2a60 R08: 00007ffd604a2aa0 R09: 00000000000010f3
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004
R13: 00005555574782c0 R14: 0000000000000000 R15: 00007ffd604a2aa0

The buggy address belongs to the page:
page:ffffea0002296b80 count:3 mapcount:0 mapping:ffff8880ae225520 index:0x213
flags: 0xfff00000001044(referenced|active|private)
raw: 00fff00000001044 dead000000000100 dead000000000200 ffff8880ae225520
raw: 0000000000000213 ffff88809a34af18 00000003ffffffff ffff8880b59f68c0
page dumped because: kasan: bad access detected
page->mem_cgroup:ffff8880b59f68c0

Memory state around the buggy address:
 ffff88808a5aee80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88808a5aef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88808a5aef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                               ^
 ffff88808a5af000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88808a5af080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================

Crashes (73):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/23 20:37 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/09/26 23:06 linux-4.19.y 3f8a27f9e27b d59ba983 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2021/02/18 22:49 linux-4.19.y 811218eceeaa 14052202 .config console log report syz C ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/11/18 19:15 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 BUG: unable to handle kernel paging request in leaf_paste_entries
2020/12/23 02:20 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report syz C ci2-linux-4-19
2023/03/03 19:57 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/03/02 13:34 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/03/01 19:53 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/03/01 18:00 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/27 01:01 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/23 15:47 linux-4.19.y 3f8a27f9e27b 9e2ebb3c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/23 08:26 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/23 05:28 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/22 20:14 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/22 00:15 linux-4.19.y 3f8a27f9e27b 42a4d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/20 02:10 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/19 15:00 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/19 08:27 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/18 19:07 linux-4.19.y 3f8a27f9e27b d02e9a70 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/18 16:36 linux-4.19.y 3f8a27f9e27b d02e9a70 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/16 17:49 linux-4.19.y 3f8a27f9e27b 38b317a7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/13 21:17 linux-4.19.y 3f8a27f9e27b 957959cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/12 02:30 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/11 13:58 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/11 08:33 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/10 08:59 linux-4.19.y 3f8a27f9e27b 07980f9d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/07 22:16 linux-4.19.y 3f8a27f9e27b 15c3d445 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/07 18:00 linux-4.19.y 3f8a27f9e27b 5bc3be51 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/04 05:24 linux-4.19.y 3f8a27f9e27b 1b2f701a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/02/01 03:56 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/24 04:06 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/20 07:08 linux-4.19.y 3f8a27f9e27b 71197f3a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/18 23:11 linux-4.19.y 3f8a27f9e27b 4620c2d9 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/09 17:07 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/09 13:15 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/09 00:08 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/08 13:21 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/05 20:19 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2023/01/03 21:24 linux-4.19.y 3f8a27f9e27b f0036e18 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/31 17:19 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/31 04:17 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/30 08:58 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/28 06:14 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/28 04:50 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/26 09:27 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/25 18:49 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/24 02:04 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/17 19:10 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/16 00:28 linux-4.19.y 3f8a27f9e27b 6f9c033e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/14 21:57 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/14 06:16 linux-4.19.y 3f8a27f9e27b f6511626 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/13 04:40 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/12 13:23 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/11 09:54 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/11 07:21 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/10 03:40 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/03 17:08 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/12/02 09:39 linux-4.19.y 3f8a27f9e27b e080de16 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/11/25 15:11 linux-4.19.y 3f8a27f9e27b 74a66371 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/11/20 12:59 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/10/24 04:26 linux-4.19.y 3f8a27f9e27b 23bf86af .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/09/09 16:42 linux-4.19.y 3f8a27f9e27b 90058bdc .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/04/24 06:26 linux-4.19.y 3f8a27f9e27b 131df97d .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/04/17 23:07 linux-4.19.y 3f8a27f9e27b 8bcc32a6 .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/04/15 19:41 linux-4.19.y 3f8a27f9e27b 8bcc32a6 .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/03/16 07:10 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2022/03/02 07:56 linux-4.19.y 3f8a27f9e27b 45a13a73 .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2021/11/21 23:04 linux-4.19.y 3f8a27f9e27b 4eb20a4e .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2021/09/08 22:00 linux-4.19.y b172b44fcb17 e2776ee4 .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2021/08/28 13:17 linux-4.19.y e23d55af0e1f d5a29e53 .config console log report info ci2-linux-4-19 KASAN: out-of-bounds Read in leaf_paste_entries
2021/05/24 06:17 linux-4.19.y 1e986fe9ad15 3c7fef33 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in leaf_paste_entries
2020/11/14 23:23 linux-4.19.y 31acccdc8774 1bf9a662 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.