================================================================== BUG: KASAN: slab-out-of-bounds in __le32_to_cpup include/uapi/linux/byteorder/little_endian.h:58 [inline] BUG: KASAN: slab-out-of-bounds in le32_to_cpuvp crypto/chacha20_generic.c:19 [inline] BUG: KASAN: slab-out-of-bounds in crypto_chacha20_init crypto/chacha20_generic.c:58 [inline] BUG: KASAN: slab-out-of-bounds in crypto_chacha20_crypt+0xaf1/0xbd0 crypto/chacha20_generic.c:91 Read of size 4 at addr ffff8801d41383a0 by task syz-executor6/7991 CPU: 0 PID: 7991 Comm: syz-executor6 Not tainted 4.15.0-rc3+ #157 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+0x194/0x257 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x25b/0x340 mm/kasan/report.c:409 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:429 __le32_to_cpup include/uapi/linux/byteorder/little_endian.h:58 [inline] le32_to_cpuvp crypto/chacha20_generic.c:19 [inline] crypto_chacha20_init crypto/chacha20_generic.c:58 [inline] crypto_chacha20_crypt+0xaf1/0xbd0 crypto/chacha20_generic.c:91 crypto_skcipher_decrypt include/crypto/skcipher.h:463 [inline] _skcipher_recvmsg crypto/algif_skcipher.c:144 [inline] skcipher_recvmsg+0xa4e/0xf10 crypto/algif_skcipher.c:165 sock_recvmsg_nosec net/socket.c:809 [inline] sock_recvmsg+0xc9/0x110 net/socket.c:816 ___sys_recvmsg+0x295/0x620 net/socket.c:2185 __sys_recvmsg+0xe2/0x210 net/socket.c:2230 SYSC_recvmsg net/socket.c:2242 [inline] SyS_recvmsg+0x2d/0x50 net/socket.c:2237 entry_SYSCALL_64_fastpath+0x1f/0x96 RIP: 0033:0x452a09 RSP: 002b:00007ff9fbffdc58 EFLAGS: 00000212 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 000000000071bf58 RCX: 0000000000452a09 RDX: 0000000000000000 RSI: 0000000020215fc8 RDI: 0000000000000014 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ed0b8 R13: 00000000ffffffff R14: 00007ff9fbffe6d4 R15: 0000000000000002 Allocated by task 7991: 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:551 __do_kmalloc mm/slab.c:3708 [inline] __kmalloc+0x162/0x760 mm/slab.c:3717 kmalloc include/linux/slab.h:504 [inline] sock_kmalloc+0x112/0x190 net/core/sock.c:1979 _skcipher_recvmsg crypto/algif_skcipher.c:104 [inline] skcipher_recvmsg+0x3f2/0xf10 crypto/algif_skcipher.c:165 sock_recvmsg_nosec net/socket.c:809 [inline] sock_recvmsg+0xc9/0x110 net/socket.c:816 ___sys_recvmsg+0x295/0x620 net/socket.c:2185 __sys_recvmsg+0xe2/0x210 net/socket.c:2230 SYSC_recvmsg net/socket.c:2242 [inline] SyS_recvmsg+0x2d/0x50 net/socket.c:2237 entry_SYSCALL_64_fastpath+0x1f/0x96 Freed by task 3434: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3488 [inline] kfree+0xca/0x250 mm/slab.c:3803 load_elf_binary+0x3f48/0x4b50 fs/binfmt_elf.c:1096 search_binary_handler+0x142/0x6b0 fs/exec.c:1638 exec_binprm fs/exec.c:1680 [inline] do_execveat_common.isra.30+0x1754/0x23c0 fs/exec.c:1802 do_execve+0x31/0x40 fs/exec.c:1847 call_usermodehelper_exec_async+0x457/0x8f0 kernel/umh.c:100 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:441 The buggy address belongs to the object at ffff8801d4138380 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes to the right of 32-byte region [ffff8801d4138380, ffff8801d41383a0) The buggy address belongs to the page: page:00000000d4b57843 count:1 mapcount:0 mapping:000000004eaf53a4 index:0xffff8801d4138fc1 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801d4138000 ffff8801d4138fc1 0000000100000004 raw: ffffea000750a9a0 ffffea0007501ce0 ffff8801db0001c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d4138280: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8801d4138300: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8801d4138380: 00 00 00 00 fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff8801d4138400: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8801d4138480: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================