INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-mmots-kasan-gce-1,10.128.0.15' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz7.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 25.751210] ================================================================== [ 25.752373] BUG: KASAN: use-after-free in aead_recvmsg+0x1552/0x1970 [ 25.753228] Read of size 4 at addr ffff8801c7471b5c by task syzkaller018329/3350 [ 25.754212] [ 25.754444] CPU: 0 PID: 3350 Comm: syzkaller018329 Not tainted 4.14.0-mm1+ #25 [ 25.755406] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.756641] Call Trace: [ 25.756998] dump_stack+0x194/0x257 [ 25.757489] ? arch_local_irq_restore+0x53/0x53 [ 25.758114] ? show_regs_print_info+0x65/0x65 [ 25.758715] ? af_alg_make_sg+0x510/0x510 [ 25.759269] ? aead_recvmsg+0x1552/0x1970 [ 25.759826] print_address_description+0x73/0x250 [ 25.760470] ? aead_recvmsg+0x1552/0x1970 [ 25.761026] kasan_report+0x25b/0x340 [ 25.761539] __asan_report_load4_noabort+0x14/0x20 [ 25.762195] aead_recvmsg+0x1552/0x1970 [ 25.762748] ? aead_sendpage_nokey+0xa0/0xa0 [ 25.763339] ? selinux_socket_recvmsg+0x36/0x40 [ 25.763960] ? security_socket_recvmsg+0x91/0xc0 [ 25.764596] ? aead_sendpage_nokey+0xa0/0xa0 [ 25.765182] sock_recvmsg+0xc9/0x110 [ 25.765680] ? __sock_recv_wifi_status+0x210/0x210 [ 25.766336] ___sys_recvmsg+0x29b/0x630 [ 25.766875] ? ___sys_sendmsg+0x8a0/0x8a0 [ 25.767445] ? fget_raw+0x20/0x20 [ 25.767914] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 25.768522] ? vmacache_find+0x5f/0x280 [ 25.769053] ? vmacache_update+0xfe/0x130 [ 25.769632] ? up_read+0x1a/0x40 [ 25.770090] ? __do_page_fault+0x3d6/0xc90 [ 25.770653] ? lock_downgrade+0x980/0x980 [ 25.771225] ? __fdget+0x18/0x20 [ 25.771686] __sys_recvmsg+0xe2/0x210 [ 25.775450] ? __sys_recvmsg+0xe2/0x210 [ 25.775954] BUG: unable to handle kernel NULL pointer dereference at (null) [ 25.775960] IP: (null) [ 25.775962] PGD 1c6b11067 P4D 1c6b11067 PUD 1c6b07067 PMD 0 [ 25.775970] Oops: 0010 [#1] SMP KASAN [ 25.775975] Dumping ftrace buffer: [ 25.775978] (ftrace buffer empty) [ 25.775979] Modules linked in: [ 25.775985] CPU: 1 PID: 3367 Comm: syzkaller018329 Not tainted 4.14.0-mm1+ #25 [ 25.775987] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.775990] task: ffff8801c64b84c0 task.stack: ffff8801c6738000 [ 25.775992] RIP: 0010: (null) [ 25.775994] RSP: 0018:ffff8801c673f960 EFLAGS: 00010292 [ 25.775997] RAX: ffff8801c7471b40 RBX: 1ffff10038ce7f2d RCX: ffffffff823ad4d9 [ 25.775999] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8801c673f968 [ 25.776005] RBP: ffff8801c673fb00 R08: 0000000000000000 R09: ffff8801cbf24910 [ 25.776007] R10: 0000000000000008 R11: ffffed00397e4929 R12: dffffc0000000000 [ 25.776009] R13: ffff8801c7471b68 R14: ffff8801c6668a80 R15: ffff8801cbf24900 [ 25.776013] FS: 00007f487260c700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 [ 25.776015] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 25.776017] CR2: 0000000000000000 CR3: 00000001c6e70000 CR4: 00000000001406e0 [ 25.776021] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 25.776024] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 25.776025] Call Trace: [ 25.776032] ? aead_recvmsg+0xc96/0x1970 [ 25.776039] ? aead_recvmsg+0xb38/0x1970 [ 25.776052] ? aead_sendpage_nokey+0xa0/0xa0 [ 25.776059] ? selinux_socket_recvmsg+0x36/0x40 [ 25.776063] ? security_socket_recvmsg+0x91/0xc0 [ 25.776068] ? aead_sendpage_nokey+0xa0/0xa0 [ 25.776072] sock_recvmsg+0xc9/0x110 [ 25.776076] ? __sock_recv_wifi_status+0x210/0x210 [ 25.776081] ___sys_recvmsg+0x29b/0x630 [ 25.776089] ? ___sys_sendmsg+0x8a0/0x8a0 [ 25.776102] ? fget_raw+0x20/0x20 [ 25.776107] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 25.776111] ? vmacache_find+0x5f/0x280 [ 25.776115] ? vmacache_update+0xfe/0x130 [ 25.776122] ? up_read+0x1a/0x40 [ 25.776127] ? __do_page_fault+0x3d6/0xc90 [ 25.776131] ? lock_downgrade+0x980/0x980 [ 25.776138] ? __fdget+0x18/0x20 [ 25.776145] __sys_recvmsg+0xe2/0x210 [ 25.776148] ? __sys_recvmsg+0xe2/0x210 [ 25.776153] ? SyS_sendmmsg+0x60/0x60 [ 25.776158] ? __do_page_fault+0xc90/0xc90 [ 25.776162] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.776167] ? lockdep_sys_exit+0x47/0xf0 [ 25.776176] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.776183] SyS_recvmsg+0x2d/0x50 [ 25.776190] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 25.776193] RIP: 0033:0x44a6f9 [ 25.776195] RSP: 002b:00007f487260bdc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 25.776199] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a6f9 [ 25.776201] RDX: 0000000000000040 RSI: 00000000207e0000 RDI: 0000000000000006 [ 25.776203] RBP: 0000000000000086 R08: 00007f487260c700 R09: 00007f487260c700 [ 25.776205] R10: 00007f487260c700 R11: 0000000000000202 R12: 0000000000000000 [ 25.776207] R13: 00007fff1ceab94f R14: 00007f487260c9c0 R15: 0000000000000000 [ 25.776220] Code: Bad RIP value. [ 25.776228] RIP: (null) RSP: ffff8801c673f960 [ 25.776229] CR2: 0000000000000000 [ 25.776256] ---[ end trace 560ffe56058d119e ]--- [ 25.776259] Kernel panic - not syncing: Fatal exception [ 26.098209] ? SyS_sendmmsg+0x60/0x60 [ 26.101976] ? __do_page_fault+0xc90/0xc90 [ 26.106174] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.111156] ? lockdep_sys_exit+0x47/0xf0 [ 26.115272] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.120254] SyS_recvmsg+0x2d/0x50 [ 26.123761] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.128481] RIP: 0033:0x44a6f9 [ 26.131634] RSP: 002b:00007f487260bdc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 26.139303] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a6f9 [ 26.146535] RDX: 0000000000000040 RSI: 00000000207e0000 RDI: 0000000000000006 [ 26.153767] RBP: 0000000000000086 R08: 00007f487260c700 R09: 00007f487260c700 [ 26.161000] R10: 00007f487260c700 R11: 0000000000000202 R12: 0000000000000000 [ 26.168234] R13: 00007fff1ceab94f R14: 00007f487260c9c0 R15: 0000000000000000 [ 26.175474] [ 26.177065] Allocated by task 3248: [ 26.180658] save_stack+0x43/0xd0 [ 26.184073] kasan_kmalloc+0xad/0xe0 [ 26.187753] __kmalloc+0x162/0x760 [ 26.191255] crypto_create_tfm+0x82/0x2e0 [ 26.195366] crypto_alloc_tfm+0x10e/0x2f0 [ 26.199477] crypto_alloc_skcipher+0x2c/0x40 [ 26.203851] crypto_get_default_null_skcipher+0x5f/0x80 [ 26.209180] aead_bind+0x89/0x140 [ 26.212600] alg_bind+0x1ab/0x440 [ 26.216015] SYSC_bind+0x1b4/0x3f0 [ 26.219517] SyS_bind+0x24/0x30 [ 26.222761] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.227476] [ 26.229069] Freed by task 3272: [ 26.232313] save_stack+0x43/0xd0 [ 26.235727] kasan_slab_free+0x71/0xc0 [ 26.239575] kfree+0xca/0x250 [ 26.242642] kzfree+0x28/0x30 [ 26.245709] crypto_destroy_tfm+0x140/0x2e0 [ 26.249995] crypto_put_default_null_skcipher+0x35/0x60 [ 26.255320] aead_sock_destruct+0x13c/0x220 [ 26.259604] __sk_destruct+0xfd/0x910 [ 26.263369] sk_destruct+0x47/0x80 [ 26.266871] __sk_free+0x57/0x230 [ 26.270292] sk_free+0x2a/0x40 [ 26.273448] af_alg_release+0x5d/0x70 [ 26.277211] sock_release+0x8d/0x1e0 [ 26.280887] sock_close+0x16/0x20 [ 26.284304] __fput+0x333/0x7f0 [ 26.287545] ____fput+0x15/0x20 [ 26.290790] task_work_run+0x199/0x270 [ 26.294641] do_exit+0x9bb/0x1ae0 [ 26.298056] do_group_exit+0x149/0x400 [ 26.301906] SyS_exit_group+0x1d/0x20 [ 26.305670] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.310386] [ 26.311977] The buggy address belongs to the object at ffff8801c7471b40 [ 26.311977] which belongs to the cache kmalloc-128 of size 128 [ 26.324600] The buggy address is located 28 bytes inside of [ 26.324600] 128-byte region [ffff8801c7471b40, ffff8801c7471bc0) [ 26.336349] The buggy address belongs to the page: [ 26.341239] page:ffffea00071d1c40 count:1 mapcount:0 mapping:ffff8801c7471000 index:0x0 [ 26.349342] flags: 0x2fffc0000000100(slab) [ 26.353539] raw: 02fffc0000000100 ffff8801c7471000 0000000000000000 0000000100000015 [ 26.361384] raw: ffffea0007210fa0 ffffea00071c9da0 ffff8801db000640 0000000000000000 [ 26.369232] page dumped because: kasan: bad access detected [ 26.374903] [ 26.376493] Memory state around the buggy address: [ 26.381385] ffff8801c7471a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.388705] ffff8801c7471a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.396026] >ffff8801c7471b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.403346] ^ [ 26.409539] ffff8801c7471b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.416860] ffff8801c7471c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.424180] ================================================================== [ 26.431528] Dumping ftrace buffer: [ 26.435063] (ftrace buffer empty) [ 26.438741] Kernel Offset: disabled [ 26.442340] Rebooting in 86400 seconds..