audit: type=1800 audit(1539640325.027:30): pid=5186 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 ================================================================== BUG: KASAN: slab-out-of-bounds in fscache_set_key fs/fscache/cookie.c:120 [inline] BUG: KASAN: slab-out-of-bounds in fscache_alloc_cookie+0x7ad/0x880 fs/fscache/cookie.c:171 Read of size 4 at addr ffff8801d7b219d4 by task syz-executor191/5342 CPU: 0 PID: 5342 Comm: syz-executor191 Not tainted 4.19.0-rc8+ #188 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 fscache_set_key fs/fscache/cookie.c:120 [inline] fscache_alloc_cookie+0x7ad/0x880 fs/fscache/cookie.c:171 __fscache_acquire_cookie+0x230/0xb60 fs/fscache/cookie.c:303 fscache_acquire_cookie include/linux/fscache.h:338 [inline] nfs_fscache_get_client_cookie+0x463/0x600 fs/nfs/fscache.c:85 nfs_alloc_client+0x563/0x760 fs/nfs/client.c:188 nfs_get_client+0x8e8/0x14d0 fs/nfs/client.c:430 nfs_init_server+0x357/0x1010 fs/nfs/client.c:670 nfs_create_server+0x86/0x5f0 fs/nfs/client.c:954 nfs_try_mount+0x180/0xa80 fs/nfs/super.c:1884 nfs_fs_mount+0x17f8/0x2f1c fs/nfs/super.c:2695 mount_fs+0xae/0x31d fs/super.c:1261 vfs_kern_mount.part.35+0xdc/0x4f0 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2457 [inline] do_mount+0x581/0x31f0 fs/namespace.c:2787 __do_compat_sys_mount fs/compat.c:125 [inline] __se_compat_sys_mount fs/compat.c:92 [inline] __ia32_compat_sys_mount+0x5d5/0x860 fs/compat.c:92 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f88ca9 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000fff75aac EFLAGS: 00000286 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00000000208deff8 RCX: 0000000020343ff8 RDX: 000000002015bffc RSI: 0000000000000000 RDI: 000000002000a000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 5342: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x14e/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:518 [inline] kzalloc include/linux/slab.h:707 [inline] fscache_set_key fs/fscache/cookie.c:101 [inline] fscache_alloc_cookie+0x6f7/0x880 fs/fscache/cookie.c:171 __fscache_acquire_cookie+0x230/0xb60 fs/fscache/cookie.c:303 fscache_acquire_cookie include/linux/fscache.h:338 [inline] nfs_fscache_get_client_cookie+0x463/0x600 fs/nfs/fscache.c:85 nfs_alloc_client+0x563/0x760 fs/nfs/client.c:188 nfs_get_client+0x8e8/0x14d0 fs/nfs/client.c:430 nfs_init_server+0x357/0x1010 fs/nfs/client.c:670 nfs_create_server+0x86/0x5f0 fs/nfs/client.c:954 nfs_try_mount+0x180/0xa80 fs/nfs/super.c:1884 nfs_fs_mount+0x17f8/0x2f1c fs/nfs/super.c:2695 mount_fs+0xae/0x31d fs/super.c:1261 vfs_kern_mount.part.35+0xdc/0x4f0 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2457 [inline] do_mount+0x581/0x31f0 fs/namespace.c:2787 __do_compat_sys_mount fs/compat.c:125 [inline] __se_compat_sys_mount fs/compat.c:92 [inline] __ia32_compat_sys_mount+0x5d5/0x860 fs/compat.c:92 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 1: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3813 acpi_os_free include/acpi/platform/aclinuxex.h:62 [inline] acpi_ns_get_node_unlocked+0x2b9/0x309 drivers/acpi/acpica/nsutils.c:698 acpi_ns_get_node+0x4d/0x6b drivers/acpi/acpica/nsutils.c:738 acpi_get_handle+0x15b/0x263 drivers/acpi/acpica/nsxfname.c:98 acpi_has_method+0x70/0xb0 drivers/acpi/utils.c:555 acpi_device_setup_files+0x3aa/0x830 drivers/acpi/device_sysfs.c:565 acpi_device_add+0x8b6/0x1250 drivers/acpi/scan.c:700 acpi_add_single_object+0xaa7/0x1ed0 drivers/acpi/scan.c:1637 acpi_bus_check_add+0x5e0/0xb10 drivers/acpi/scan.c:1877 acpi_ns_walk_namespace+0x224/0x400 drivers/acpi/acpica/nswalk.c:237 acpi_walk_namespace+0xf2/0x12c drivers/acpi/acpica/nsxfeval.c:606 acpi_bus_scan+0x146/0x170 drivers/acpi/scan.c:2058 acpi_scan_init+0x403/0x8fe drivers/acpi/scan.c:2215 acpi_init+0x941/0xa19 drivers/acpi/bus.c:1261 do_one_initcall+0x145/0x957 init/main.c:885 do_initcall_level init/main.c:953 [inline] do_initcalls init/main.c:961 [inline] do_basic_setup init/main.c:979 [inline] kernel_init_freeable+0x4bb/0x5ae init/main.c:1144 kernel_init+0x11/0x1b2 init/main.c:1063 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 The buggy address belongs to the object at ffff8801d7b219c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 20 bytes inside of 32-byte region [ffff8801d7b219c0, ffff8801d7b219e0) The buggy address belongs to the page: page:ffffea00075ec840 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801d7b21fc1 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea00075ecc08 ffff8801da801248 ffff8801da8001c0 raw: ffff8801d7b21fc1 ffff8801d7b21000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d7b21880: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8801d7b21900: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8801d7b21980: fb fb fb fb fc fc fc fc 00 00 06 fc fc fc fc fc ^ ffff8801d7b21a00: 01 fc fc fc fc fc fc fc 01 fc fc fc fc fc fc fc ffff8801d7b21a80: 00 02 fc fc fc fc fc fc 00 02 fc fc fc fc fc fc ==================================================================