================================================================== BUG: KASAN: slab-out-of-bounds in suffix_kstrtoint.constprop.0+0x214/0x250 fs/xfs/xfs_super.c:1083 Read of size 1 at addr ffff8880a6ae983f by task syz-executor.1/18067 CPU: 0 PID: 18067 Comm: syz-executor.1 Not tainted 5.5.0-next-20200207-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x32 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:641 __asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:132 suffix_kstrtoint.constprop.0+0x214/0x250 fs/xfs/xfs_super.c:1083 xfs_fc_parse_param+0x991/0xcd0 fs/xfs/xfs_super.c:1127 vfs_parse_fs_param+0x2b4/0x610 fs/fs_context.c:147 vfs_parse_fs_string+0x10a/0x170 fs/fs_context.c:191 generic_parse_monolithic+0x181/0x200 fs/fs_context.c:231 parse_monolithic_mount_data+0x69/0x90 fs/fs_context.c:679 do_new_mount fs/namespace.c:2818 [inline] do_mount+0x1310/0x1b50 fs/namespace.c:3107 __do_sys_mount fs/namespace.c:3316 [inline] __se_sys_mount fs/namespace.c:3293 [inline] __x64_sys_mount+0x192/0x230 fs/namespace.c:3293 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45ddea Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 4d 8c fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 2a 8c fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007fb3b44afa68 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fb3b44b06d4 RCX: 000000000045ddea RDX: 00007fb3b44afae0 RSI: 00000000200002c0 RDI: 00007fb3b44afb00 RBP: 000000000075bf20 R08: 00007fb3b44afb40 R09: 00007fb3b44afae0 R10: 0000000000000000 R11: 0000000000000202 R12: 00000000ffffffff R13: 0000000000000bb5 R14: 00000000004cc92a R15: 000000000075bf2c Allocated by task 1: save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:488 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:529 __do_kmalloc mm/slab.c:3656 [inline] __kmalloc_track_caller+0x15f/0x760 mm/slab.c:3671 kvasprintf+0xc8/0x170 lib/kasprintf.c:25 kvasprintf_const+0x65/0x190 lib/kasprintf.c:49 kobject_set_name_vargs+0x5b/0x150 lib/kobject.c:289 dev_set_name+0xbb/0xf0 drivers/base/core.c:2265 acpi_device_add+0x519/0xab0 drivers/acpi/scan.c:682 acpi_add_single_object+0x7d0/0x17e0 drivers/acpi/scan.c:1633 acpi_bus_check_add+0x210/0x5e0 drivers/acpi/scan.c:1873 acpi_ns_walk_namespace+0x22f/0x412 drivers/acpi/acpica/nswalk.c:237 acpi_walk_namespace drivers/acpi/acpica/nsxfeval.c:606 [inline] acpi_walk_namespace+0xf8/0x134 drivers/acpi/acpica/nsxfeval.c:554 acpi_bus_scan+0xff/0x110 drivers/acpi/scan.c:2054 acpi_scan_init+0x27e/0x67e drivers/acpi/scan.c:2218 acpi_init+0x676/0x71f drivers/acpi/bus.c:1249 do_one_initcall+0x120/0x820 init/main.c:1125 do_initcall_level init/main.c:1198 [inline] do_initcalls init/main.c:1214 [inline] do_basic_setup init/main.c:1234 [inline] kernel_init_freeable+0x522/0x5d0 init/main.c:1418 kernel_init+0x12/0x1bf init/main.c:1325 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a6ae9800 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 31 bytes to the right of 32-byte region [ffff8880a6ae9800, ffff8880a6ae9820) The buggy address belongs to the page: page:ffffea00029aba40 refcount:1 mapcount:0 mapping:ffff8880aa4001c0 index:0xffff8880a6ae9fc1 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea00029a96c8 ffffea000293f708 ffff8880aa4001c0 raw: ffff8880a6ae9fc1 ffff8880a6ae9000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a6ae9700: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc ffff8880a6ae9780: 00 00 04 fc fc fc fc fc 00 04 fc fc fc fc fc fc >ffff8880a6ae9800: 00 04 fc fc fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff8880a6ae9880: 05 fc fc fc fc fc fc fc 07 fc fc fc fc fc fc fc ffff8880a6ae9900: 00 00 fc fc fc fc fc fc 06 fc fc fc fc fc fc fc ==================================================================