REISERFS warning (device loop0): super-6502 reiserfs_getopt: unknown mount option "" ================================================================== BUG: KASAN: use-after-free in af_alg_sndbuf include/crypto/if_alg.h:190 [inline] BUG: KASAN: use-after-free in af_alg_writable include/crypto/if_alg.h:204 [inline] BUG: KASAN: use-after-free in af_alg_wmem_wakeup+0x711/0x7d0 crypto/af_alg.c:731 Read of size 8 at addr ffff8801c6fa39b0 by task syz-executor5/4062 CPU: 1 PID: 4062 Comm: syz-executor5 Not tainted 4.19.0-rc6-next-20181004+ #87 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+0x1d3/0x2c4 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_load8_noabort+0x14/0x20 mm/kasan/report.c:433 af_alg_sndbuf include/crypto/if_alg.h:190 [inline] af_alg_writable include/crypto/if_alg.h:204 [inline] af_alg_wmem_wakeup+0x711/0x7d0 crypto/af_alg.c:731 skcipher_recvmsg+0xb75/0x11e0 crypto/algif_skcipher.c:185 sock_recvmsg_nosec net/socket.c:795 [inline] sock_recvmsg+0xd0/0x110 net/socket.c:802 sock_read_iter+0x39b/0x570 net/socket.c:879 call_read_iter include/linux/fs.h:1838 [inline] aio_read+0x297/0x490 fs/aio.c:1517 io_submit_one+0xac2/0xf80 fs/aio.c:1833 __do_sys_io_submit fs/aio.c:1917 [inline] __se_sys_io_submit fs/aio.c:1888 [inline] __x64_sys_io_submit+0x1b7/0x580 fs/aio.c:1888 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457579 Code: 1d b4 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa7b328cc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579 RDX: 0000000020738000 RSI: 0000000000000001 RDI: 00007fa7b326c000 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa7b328d6d4 R13: 00000000004be741 R14: 00000000004ce380 R15: 00000000ffffffff Allocated by task 4062: 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:3722 [inline] __kmalloc+0x15b/0x770 mm/slab.c:3731 kmalloc include/linux/slab.h:551 [inline] sk_prot_alloc+0x1b0/0x2e0 net/core/sock.c:1468 sk_alloc+0x10d/0x1690 net/core/sock.c:1522 af_alg_accept+0x9d/0x7d0 crypto/af_alg.c:287 alg_accept+0x46/0x60 crypto/af_alg.c:332 __sys_accept4+0x3b2/0x8a0 net/socket.c:1591 __do_sys_accept net/socket.c:1632 [inline] __se_sys_accept net/socket.c:1629 [inline] __x64_sys_accept+0x75/0xb0 net/socket.c:1629 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4061: 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:3817 sk_prot_free net/core/sock.c:1505 [inline] __sk_destruct+0x797/0xa80 net/core/sock.c:1587 sk_destruct+0x78/0x90 net/core/sock.c:1595 __sk_free+0xcf/0x300 net/core/sock.c:1606 sk_free+0x42/0x50 net/core/sock.c:1617 sock_put include/net/sock.h:1693 [inline] af_alg_release+0x6e/0x90 crypto/af_alg.c:126 __sock_release+0xd7/0x250 net/socket.c:580 sock_close+0x19/0x20 net/socket.c:1142 __fput+0x3bc/0xa70 fs/file_table.c:279 ____fput+0x15/0x20 fs/file_table.c:312 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801c6fa3540 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1136 bytes inside of 2048-byte region [ffff8801c6fa3540, ffff8801c6fa3d40) The buggy address belongs to the page: page:ffffea00071be880 count:1 mapcount:0 mapping:ffff8801da800c40 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea00072cc788 ffffea0006ebf488 ffff8801da800c40 raw: 0000000000000000 ffff8801c6fa2440 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c6fa3880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c6fa3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8801c6fa3980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801c6fa3a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c6fa3a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================