binder: 4604:4632 transaction failed 29189/-3, size 0-0 line 2960 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 binder: undelivered TRANSACTION_ERROR: 29189 ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:344 [inline] BUG: KASAN: slab-out-of-bounds in sha3_update+0xd7/0x270 crypto/sha3_generic.c:161 Write of size 192 at addr ffff8801cb233dfc by task syz-executor7/4677 CPU: 0 PID: 4677 Comm: syz-executor7 Not tainted 4.15.0-rc6-mm1+ #50 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x137/0x198 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23b/0x360 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 memcpy+0x37/0x50 mm/kasan/kasan.c:303 memcpy include/linux/string.h:344 [inline] sha3_update+0xd7/0x270 crypto/sha3_generic.c:161 crypto_shash_update+0xda/0x240 crypto/shash.c:110 hmac_update+0x7e/0xa0 crypto/hmac.c:122 crypto_shash_update+0xda/0x240 crypto/shash.c:110 kdf_ctr security/keys/dh.c:181 [inline] keyctl_dh_compute_kdf security/keys/dh.c:226 [inline] __keyctl_dh_compute+0x1056/0x1300 security/keys/dh.c:398 keyctl_dh_compute+0xac/0xf3 security/keys/dh.c:434 SYSC_keyctl security/keys/keyctl.c:1741 [inline] SyS_keyctl+0x72/0x2c0 security/keys/keyctl.c:1637 entry_SYSCALL_64_fastpath+0x23/0x9a RIP: 0033:0x452ac9 RSP: 002b:00007f80d05a4c58 EFLAGS: 00000212 ORIG_RAX: 00000000000000fa RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9 RDX: 00000000205cd000 RSI: 0000000020e5e000 RDI: 0000000000000017 RBP: 0000000000000016 R08: 0000000020550000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000212 R12: 00000000006ee2b0 R13: 00000000ffffffff R14: 00007f80d05a56d4 R15: 0000000000000000 Allocated by task 4677: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 __do_kmalloc mm/slab.c:3705 [inline] __kmalloc+0x162/0x760 mm/slab.c:3714 kmalloc include/linux/slab.h:521 [inline] kdf_alloc security/keys/dh.c:111 [inline] __keyctl_dh_compute+0x26e/0x1300 security/keys/dh.c:288 keyctl_dh_compute+0xac/0xf3 security/keys/dh.c:434 SYSC_keyctl security/keys/keyctl.c:1741 [inline] SyS_keyctl+0x72/0x2c0 security/keys/keyctl.c:1637 entry_SYSCALL_64_fastpath+0x23/0x9a Freed by task 3067: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3485 [inline] kfree+0xd9/0x260 mm/slab.c:3800 load_elf_binary+0x1c82/0x4790 fs/binfmt_elf.c:1110 search_binary_handler+0x142/0x6b0 fs/exec.c:1634 exec_binprm fs/exec.c:1676 [inline] do_execveat_common.isra.30+0x146f/0x1e20 fs/exec.c:1798 do_execve fs/exec.c:1843 [inline] SYSC_execve fs/exec.c:1924 [inline] SyS_execve+0x39/0x50 fs/exec.c:1919 do_syscall_64+0x1ce/0x730 arch/x86/entry/common.c:285 return_from_SYSCALL_64+0x0/0x75 The buggy address belongs to the object at ffff8801cb233d00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 252 bytes inside of 512-byte region [ffff8801cb233d00, ffff8801cb233f00) The buggy address belongs to the page: page:ffffea00072c8cc0 count:1 mapcount:0 mapping:ffff8801cb233080 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801cb233080 0000000000000000 0000000100000006 raw: ffffea00072b8520 ffffea00072c0ee0 ffff8801db000940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801cb233d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cb233e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801cb233e80: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801cb233f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801cb233f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================