sctp: [Deprecated]: syz-executor4 (pid 25687) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead sctp: [Deprecated]: syz-executor4 (pid 25687) Use of int in max_burst socket option deprecated. Use struct sctp_assoc_value instead ================================================================== BUG: KASAN: use-after-free in crypto_stat_skcipher_decrypt include/crypto/skcipher.h:510 [inline] BUG: KASAN: use-after-free in crypto_skcipher_decrypt include/crypto/skcipher.h:559 [inline] BUG: KASAN: use-after-free in _skcipher_recvmsg crypto/algif_skcipher.c:131 [inline] BUG: KASAN: use-after-free in skcipher_recvmsg+0x160f/0x1780 crypto/algif_skcipher.c:165 Read of size 4 at addr ffff8801d4b07500 by task syz-executor2/25697 CPU: 0 PID: 25697 Comm: syz-executor2 Not tainted 4.20.0-rc1-next-20181109+ #110 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+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432 crypto_stat_skcipher_decrypt include/crypto/skcipher.h:510 [inline] crypto_skcipher_decrypt include/crypto/skcipher.h:559 [inline] _skcipher_recvmsg crypto/algif_skcipher.c:131 [inline] skcipher_recvmsg+0x160f/0x1780 crypto/algif_skcipher.c:165 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:1861 [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+0x1ab/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: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:00007faba07bcc78 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000020738000 RSI: 0000000000000001 RDI: 00007faba07df000 RBP: 000000000072c0e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007faba07bd6d4 R13: 00000000004be7ed R14: 00000000004ced68 R15: 00000000ffffffff Allocated by task 25697: 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/0x760 mm/slab.c:3731 kmalloc include/linux/slab.h:551 [inline] sock_kmalloc+0x15a/0x1f0 net/core/sock.c:1986 af_alg_alloc_areq+0x83/0x280 crypto/af_alg.c:1097 _skcipher_recvmsg crypto/algif_skcipher.c:75 [inline] skcipher_recvmsg+0x354/0x1780 crypto/algif_skcipher.c:165 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:1861 [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+0x1ab/0x580 fs/aio.c:1888 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 23471: 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 __sock_kfree_s net/core/sock.c:2007 [inline] sock_kfree_s+0x29/0x60 net/core/sock.c:2013 af_alg_free_resources+0x6b/0x80 crypto/af_alg.c:1033 af_alg_async_cb+0xbc/0x180 crypto/af_alg.c:1056 cryptd_skcipher_complete+0x14c/0x250 crypto/cryptd.c:474 cryptd_skcipher_decrypt+0x4e2/0x750 crypto/cryptd.c:534 cryptd_queue_worker+0x12d/0x200 crypto/cryptd.c:193 process_one_work+0xc8b/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff8801d4b07200 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 768 bytes inside of 1024-byte region [ffff8801d4b07200, ffff8801d4b07600) The buggy address belongs to the page: page:ffffea000752c180 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0xffff8801d4b06d80 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea00070ed888 ffffea000714dd08 ffff8801da800ac0 raw: ffff8801d4b06d80 ffff8801d4b06000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d4b07400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d4b07480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8801d4b07500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801d4b07580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d4b07600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================