syzbot


KASAN: stack-out-of-bounds Read in gfs2_file_read_iter (2)

Status: upstream: reported on 2024/04/21 05:24
Reported-by: syzbot+0e28304b093273945196@syzkaller.appspotmail.com
First crash: 245d, last: 12h24m
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter 15 463d 477d 0/3 auto-obsoleted due to no activity on 2023/11/25 16:09

Sample crash report:
==================================================================
BUG: KASAN: stack-out-of-bounds in should_fault_in_pages fs/gfs2/file.c:784 [inline]
BUG: KASAN: stack-out-of-bounds in gfs2_file_read_iter+0x938/0xe40 fs/gfs2/file.c:994
Read of size 8 at addr ffffc90002f6ed70 by task syz.4.404/5588

CPU: 0 PID: 5588 Comm: syz.4.404 Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
 print_address_description+0x63/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
 should_fault_in_pages fs/gfs2/file.c:784 [inline]
 gfs2_file_read_iter+0x938/0xe40 fs/gfs2/file.c:994
 __kernel_read+0x5ac/0xa60 fs/read_write.c:443
 integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:228
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
 ima_calc_file_hash+0xa5d/0x1c00 security/integrity/ima/ima_crypto.c:573
 ima_collect_measurement+0x323/0x820 security/integrity/ima/ima_api.c:255
 process_measurement+0x1363/0x21c0 security/integrity/ima/ima_main.c:351
 ima_file_check+0xf3/0x180 security/integrity/ima/ima_main.c:533
 do_open fs/namei.c:3610 [inline]
 path_openat+0x2748/0x2f20 fs/namei.c:3742
 do_filp_open+0x21c/0x460 fs/namei.c:3769
 do_sys_openat2+0x13b/0x4f0 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]
 __x64_sys_openat+0x243/0x290 fs/open.c:1280
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f15556b7d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1553528038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f15558a7fa0 RCX: 00007f15556b7d29
RDX: 0000000000000000 RSI: 0000000020000100 RDI: ffffffffffffff9c
RBP: 00007f1555733aa8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f15558a7fa0 R15: 00007fff18787fb8
 </TASK>


addr ffffc90002f6ed70 is located in stack of task syz.4.404/5588 at offset 48 in frame:
 __kernel_read+0x0/0xa60

this frame has 3 objects:
 [32, 48) 'iov'
 [64, 112) 'kiocb'
 [144, 184) 'iter'

Memory state around the buggy address:
 ffffc90002f6ec00: f1 f1 f1 f1 00 00 00 00 00 00 00 f3 f3 f3 f3 f3
 ffffc90002f6ec80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90002f6ed00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2
                                                             ^
 ffffc90002f6ed80: 00 00 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 f3
 ffffc90002f6ee00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (162):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/22 08:37 linux-5.15.y 91786f140358 d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/12/15 01:40 linux-5.15.y 963e654022cc 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/12/02 09:35 linux-5.15.y 0a51d2d4527b 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/29 18:11 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/24 16:05 linux-5.15.y 0a51d2d4527b 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/19 19:18 linux-5.15.y 0a51d2d4527b 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/16 05:28 linux-5.15.y d98fd109f827 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/15 08:28 linux-5.15.y d98fd109f827 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/15 00:06 linux-5.15.y d98fd109f827 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/14 10:04 linux-5.15.y 3c17fc483905 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/13 15:32 linux-5.15.y 3c17fc483905 bb3f8425 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/11 04:12 linux-5.15.y 3c17fc483905 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/07 19:51 linux-5.15.y 72244eab0dad 867e44df .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/06 19:23 linux-5.15.y 72244eab0dad df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/31 23:55 linux-5.15.y 74cdd62cb470 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/20 05:40 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/17 19:15 linux-5.15.y 584a40a22cb9 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/14 07:38 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/13 20:43 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/11 19:43 linux-5.15.y 3a5928702e71 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/30 09:51 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/28 22:43 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/20 16:52 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/20 08:18 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/20 04:42 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/15 19:21 linux-5.15.y 3a5928702e71 08d8a733 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/04/21 05:23 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/12/07 07:37 linux-5.15.y 0a51d2d4527b 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/30 20:49 linux-5.15.y 0a51d2d4527b 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/26 18:42 linux-5.15.y 0a51d2d4527b e9a9a9f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/11/03 02:36 linux-5.15.y 72244eab0dad f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/28 05:14 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/27 15:04 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/27 07:40 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/25 10:00 linux-5.15.y 74cdd62cb470 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/24 02:02 linux-5.15.y 74cdd62cb470 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/21 04:14 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/20 03:41 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/10/05 15:01 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/19 01:08 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/18 09:25 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/17 07:26 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/16 19:32 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
2024/09/11 23:25 linux-5.15.y 14e468424d3e d94c83d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: stack-out-of-bounds Read in gfs2_file_read_iter
* Struck through repros no longer work on HEAD.