CR4: actual=0x0000000000002040, shadow=0x0000000000000000, gh_mask=ffffffffffffe871 nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. CR3 = 0x0000000000000000 ================================================================== RSP = 0x0000000000000f80 RIP = 0x000000000000003f 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 ffff8801c84f6054 by task syz-executor2/7427 CPU: 1 PID: 7427 Comm: syz-executor2 Not tainted 4.19.0-rc8+ #289 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RFLAGS=0x00010082 DR7 = 0x0000000000000400 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 Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000 __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 CS: sel=0x0000, attr=0x10000, limit=0x00000000, base=0x0000000000000000 DS: sel=0x0000, attr=0x10000, limit=0x00000000, base=0x0000000000000000 __fscache_acquire_cookie+0x230/0xb60 fs/fscache/cookie.c:303 SS: sel=0x0000, attr=0x04085, limit=0x00000000, base=0x0000000000000000 ES: sel=0x0000, attr=0x10000, limit=0x00000000, base=0x0000000000000000 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 FS: sel=0x0000, attr=0x10000, limit=0x00000000, base=0x0000000000000000 nfs_get_client+0x8e8/0x14d0 fs/nfs/client.c:430 GS: sel=0x0000, attr=0x10000, limit=0x00000000, base=0x0000000000000000 GDTR: limit=0x00000000, base=0x0000000000000000 nfs_init_server+0x357/0x1010 fs/nfs/client.c:670 nfs_create_server+0x86/0x5f0 fs/nfs/client.c:954 LDTR: sel=0x0000, attr=0x10000, limit=0x00000000, base=0x0000000000000000 nfs_try_mount+0x180/0xa80 fs/nfs/super.c:1884 IDTR: limit=0x00000000, base=0x0000000000000000 nfs_fs_mount+0x17f8/0x2f1c fs/nfs/super.c:2695 TR: sel=0x0000, attr=0x10000, limit=0x00000000, base=0x0000000000000000 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 EFER = 0x0000000000000000 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 ksys_mount+0x12d/0x140 fs/namespace.c:3003 __do_sys_mount fs/namespace.c:3017 [inline] __se_sys_mount fs/namespace.c:3014 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3014 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 Interruptibility = 00000000 ActivityState = 00000000 entry_SYSCALL_64_after_hwframe+0x49/0xbe *** Host State *** RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f55b4d47c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457569 RDX: 000000002015bffc RSI: 0000000020343ff8 RDI: 0000000020000080 RBP: 000000000072bf00 R08: 000000002000a000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f55b4d486d4 R13: 00000000004c289b R14: 00000000004d3c78 R15: 00000000ffffffff RIP = 0xffffffff81212b2e RSP = 0xffff880185ed7350 Allocated by task 7427: 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 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 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 FSBase=00007fcf50e6a700 GSBase=ffff8801daf00000 TRBase=fffffe0000003000 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 ksys_mount+0x12d/0x140 fs/namespace.c:3003 __do_sys_mount fs/namespace.c:3017 [inline] __se_sys_mount fs/namespace.c:3014 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3014 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4465: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 GDTBase=fffffe0000001000 IDTBase=fffffe0000000000 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 load_elf_binary+0x3e84/0x5620 fs/binfmt_elf.c:1108 search_binary_handler+0x17d/0x570 fs/exec.c:1653 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.33+0x162f/0x2540 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve fs/exec.c:1883 [inline] __do_sys_execve fs/exec.c:1964 [inline] __se_sys_execve fs/exec.c:1959 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1959 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 CR0=0000000080050033 CR3=00000001bea92000 CR4=00000000001426e0 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801c84f6040 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 20 bytes inside of 32-byte region [ffff8801c84f6040, ffff8801c84f6060) The buggy address belongs to the page: page:ffffea0007213d80 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801c84f6fc1 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0007653848 ffff8801da801248 ffff8801da8001c0 raw: ffff8801c84f6fc1 ffff8801c84f6000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Sysenter RSP=fffffe0000002200 CS:RIP=0010:ffffffff87c013a0 Memory state around the buggy address: ffff8801c84f5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801c84f5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801c84f6000: fb fb fb fb fc fc fc fc 00 00 06 fc fc fc fc fc ^ ffff8801c84f6080: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8801c84f6100: fb fb fb fb fc fc fc fc 00 06 fc fc fc fc fc fc EFER = 0x0000000000000d01 PAT = 0x0407050600070106 ==================================================================