binder: 17729:17736 BC_REQUEST_DEATH_NOTIFICATION invalid ref 65280 binder: 17729:17732 ioctl 40046207 0 returned -16 ================================================================== 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 ffff8801bd07acd4 by task syz-executor2/17737 CPU: 1 PID: 17737 Comm: syz-executor2 Not tainted 4.19.0-rc7+ #60 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 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 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:00007f388f2ccc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457569 RDX: 0000000020000180 RSI: 0000000020000140 RDI: 00000000200001c0 RBP: 000000000072bf00 R08: 000000002000a000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f388f2cd6d4 R13: 00000000004c289b R14: 00000000004d3c78 R15: 00000000ffffffff Allocated by task 17737: 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 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 16739: 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 dccp_ackvec_parsed_cleanup+0xc1/0x1e0 net/dccp/ackvec.c:370 ccid2_hc_tx_packet_recv+0x1535/0x2767 net/dccp/ccids/ccid2.c:723 ccid_hc_tx_packet_recv net/dccp/ccid.h:192 [inline] dccp_deliver_input_to_ccids+0x203/0x280 net/dccp/input.c:186 dccp_rcv_established+0x87/0xb0 net/dccp/input.c:378 dccp_v6_do_rcv+0x9b9/0xbf0 net/dccp/ipv6.c:606 sk_backlog_rcv include/net/sock.h:931 [inline] __sk_receive_skb+0x3e5/0xec0 net/core/sock.c:473 dccp_v6_rcv+0xf6c/0x1ce9 net/dccp/ipv6.c:775 ip6_input_finish+0x3fc/0x1aa0 net/ipv6/ip6_input.c:383 NF_HOOK include/linux/netfilter.h:289 [inline] ip6_input+0xe9/0x600 net/ipv6/ip6_input.c:426 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x17a/0x330 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:289 [inline] ipv6_rcv+0x120/0x640 net/ipv6/ip6_input.c:271 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4913 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5023 process_backlog+0x218/0x6f0 net/core/dev.c:5829 napi_poll net/core/dev.c:6249 [inline] net_rx_action+0x7c5/0x1950 net/core/dev.c:6315 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801bd07acc0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 20 bytes inside of 32-byte region [ffff8801bd07acc0, ffff8801bd07ace0) The buggy address belongs to the page: page:ffffea0006f41e80 count:1 mapcount:0 mapping:ffff8801da8001c0 index:0xffff8801bd07afc1 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea000764b708 ffffea0007005588 ffff8801da8001c0 raw: ffff8801bd07afc1 ffff8801bd07a000 0000000100000033 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bd07ab80: 04 fc fc fc fc fc fc fc 01 fc fc fc fc fc fc fc ffff8801bd07ac00: 01 fc fc fc fc fc fc fc 01 fc fc fc fc fc fc fc >ffff8801bd07ac80: 01 fc fc fc fc fc fc fc 00 00 06 fc fc fc fc fc ^ ffff8801bd07ad00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8801bd07ad80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ================================================================== binder: 17752:17755 BC_REQUEST_DEATH_NOTIFICATION invalid ref -488063232 binder: BINDER_SET_CONTEXT_MGR already set binder: 17752:17755 ioctl 40046207 0 returned -16 binder: 17752:17761 BC_REQUEST_DEATH_NOTIFICATION invalid ref -488063232 binder: 17770:17772 BC_REQUEST_DEATH_NOTIFICATION invalid ref 65280 rpcbind: RPC call returned error 22