syzbot


KASAN: slab-out-of-bounds Read in hfsplus_uni2asc

Status: upstream: reported C repro on 2023/03/16 05:02
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+7f3880bcabffacd625d8@syzkaller.appspotmail.com
First crash: 603d, last: 4d20h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/01/03 upstream (ToT) 610a9b8f49fb C [report] KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc hfsplus C error 2 688d 712d 0/1 upstream: reported C repro on 2022/11/27 08:50
linux-4.14 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc C 1 617d 705d 0/1 upstream: reported C repro on 2022/12/04 03:32
upstream KASAN: slab-out-of-bounds Read in hfsplus_uni2asc hfs C error 2236 1d14h 711d 0/28 upstream: reported C repro on 2022/11/28 10:02
linux-6.1 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc origin:upstream C 140 5d01h 600d 0/3 upstream: reported C repro on 2023/03/19 19:39
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/10/15 02:04 0m retest repro linux-5.15.y error
2024/10/15 02:04 0m retest repro linux-5.15.y error
2024/10/15 02:04 0m retest repro linux-5.15.y error
2024/10/15 02:04 0m retest repro linux-5.15.y error
2024/10/14 23:20 0m retest repro linux-5.15.y error
2024/10/14 23:20 0m retest repro linux-5.15.y error

Sample crash report:
loop0: detected capacity change from 0 to 1024
==================================================================
BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x576/0x11f0 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814705a40c by task syz-executor297/3499

CPU: 1 PID: 3499 Comm: syz-executor297 Not tainted 5.15.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/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
 hfsplus_uni2asc+0x576/0x11f0 fs/hfsplus/unicode.c:179
 hfsplus_readdir+0x90c/0x12f0 fs/hfsplus/dir.c:207
 iterate_dir+0x224/0x570
 __do_sys_getdents fs/readdir.c:286 [inline]
 __se_sys_getdents+0x1e8/0x4c0 fs/readdir.c:271
 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:0x7f11c44a9639
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff6ccc5a08 EFLAGS: 00000246 ORIG_RAX: 000000000000004e
RAX: ffffffffffffffda RBX: 00007fff6ccc5bd8 RCX: 00007f11c44a9639
RDX: 0000000000000090 RSI: 0000000020000180 RDI: 0000000000000004
RBP: 00007f11c451d610 R08: 0000000000000000 R09: 00007fff6ccc5bd8
R10: 000000000000069c R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff6ccc5bc8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Allocated by task 3499:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 ____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513
 kasan_kmalloc include/linux/kasan.h:264 [inline]
 __kmalloc+0x168/0x300 mm/slub.c:4407
 kmalloc include/linux/slab.h:596 [inline]
 hfsplus_find_init+0x81/0x1c0 fs/hfsplus/bfind.c:21
 hfsplus_readdir+0x204/0x12f0 fs/hfsplus/dir.c:144
 iterate_dir+0x224/0x570
 __do_sys_getdents fs/readdir.c:286 [inline]
 __se_sys_getdents+0x1e8/0x4c0 fs/readdir.c:271
 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

The buggy address belongs to the object at ffff88814705a000
 which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 1036 bytes inside of
 2048-byte region [ffff88814705a000, ffff88814705a800)
The buggy address belongs to the page:
page:ffffea00051c1600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x147058
head:ffffea00051c1600 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x57ff80000010200(slab|head|node=1|zone=2|lastcpupid=0xfff)
raw: 057ff80000010200 dead000000000100 dead000000000122 ffff888011c42000
raw: 0000000000000000 0000000080080008 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 6705429472, free_ts 0
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423
 alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2031
 alloc_slab_page mm/slub.c:1775 [inline]
 allocate_slab mm/slub.c:1912 [inline]
 new_slab+0xbb/0x4b0 mm/slub.c:1975
 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
 __slab_alloc mm/slub.c:3095 [inline]
 slab_alloc_node mm/slub.c:3186 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc_trace+0x1a0/0x290 mm/slub.c:3245
 kmalloc include/linux/slab.h:591 [inline]
 kzalloc include/linux/slab.h:721 [inline]
 acpi_os_allocate_zeroed include/acpi/platform/aclinuxex.h:57 [inline]
 acpi_ds_create_walk_state+0xff/0x2a0 drivers/acpi/acpica/dswstate.c:518
 acpi_ps_execute_method+0x241/0x870 drivers/acpi/acpica/psxface.c:134
 acpi_ns_evaluate+0x636/0x9f0 drivers/acpi/acpica/nseval.c:205
 acpi_evaluate_object+0x597/0xaf0 drivers/acpi/acpica/nsxfeval.c:354
 acpi_evaluate_integer+0x117/0x2e0 drivers/acpi/utils.c:260
 acpi_bus_get_status_handle drivers/acpi/bus.c:83 [inline]
 acpi_bus_get_status+0x176/0x3a0 drivers/acpi/bus.c:112
 acpi_serdev_check_resources drivers/tty/serdev/core.c:645 [inline]
 acpi_serdev_add_device+0x1a9/0x870 drivers/tty/serdev/core.c:720
 acpi_ns_walk_namespace+0x28c/0x4e0
 acpi_walk_namespace+0xe7/0x130 drivers/acpi/acpica/nsxfeval.c:606
 acpi_serdev_register_devices drivers/tty/serdev/core.c:734 [inline]
 serdev_controller_add+0x370/0x4c0 drivers/tty/serdev/core.c:774
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88814705a300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88814705a380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814705a400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                      ^
 ffff88814705a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88814705a500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (270):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/15 11:42 linux-5.15.y fa3df276cd36 c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/01/03 12:20 linux-5.15.y d93fa2c78854 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/09/18 05:43 linux-5.15.y 3a5928702e71 c673ca06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/06/04 19:55 linux-5.15.y c61bd26ae81a 11f2afa5 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/07/30 04:29 linux-5.15.y 09996673e313 92476829 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/05/06 07:17 linux-5.15.y 8a7f2a5c5aa1 de870ca5 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/11/04 03:52 linux-5.15.y 72244eab0dad f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/10/27 23:20 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/07/06 17:32 linux-5.15.y f45bea23c39c 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/05/12 00:56 linux-5.15.y 284087d4f7d5 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/18 19:44 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/15 11:03 linux-5.15.y fa3df276cd36 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/11/03 21:54 linux-5.15.y 72244eab0dad f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/10/27 19:24 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/10/27 13:58 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/10/27 13:56 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/09/18 03:53 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/27 04:22 linux-5.15.y c52b9710c83d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/26 22:21 linux-5.15.y c52b9710c83d 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/26 16:24 linux-5.15.y c52b9710c83d 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/26 14:48 linux-5.15.y c52b9710c83d 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/26 04:16 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/25 21:56 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/25 21:39 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/25 15:07 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/25 07:58 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/24 16:13 linux-5.15.y c52b9710c83d 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/24 08:56 linux-5.15.y c52b9710c83d 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/23 09:29 linux-5.15.y c52b9710c83d 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/22 13:26 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/22 12:19 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/21 22:45 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/21 18:00 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/21 13:59 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/19 02:27 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/18 22:25 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2024/04/05 06:11 linux-5.15.y 9465fef4ae35 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/07/10 02:54 linux-5.15.y d54cfc420586 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/07/11 04:42 linux-5.15.y d54cfc420586 52ae002a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/07/10 18:05 linux-5.15.y d54cfc420586 d47e94ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/07/10 11:54 linux-5.15.y d54cfc420586 d47e94ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/10 00:04 linux-5.15.y 7349e40704a0 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/09 16:23 linux-5.15.y 7349e40704a0 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/09 12:50 linux-5.15.y 7349e40704a0 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/08 00:09 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/07 20:03 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/05 20:28 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/05 16:12 linux-5.15.y d7af3e5ba454 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/04 09:46 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/02 19:37 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/02 09:00 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/02 06:22 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/06/01 22:10 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
2023/03/16 05:00 linux-5.15.y 2ddbd0f967b3 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: slab-out-of-bounds Read in hfsplus_uni2asc
* Struck through repros no longer work on HEAD.