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-8,10.128.0.59' (ECDSA) to the list of known hosts. 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: [ 33.587283] ================================================================== [ 33.588445] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 33.589318] Read of size 4 at addr ffff8801cc5fc3dc by task syzkaller944364/3095 [ 33.590303] [ 33.590537] CPU: 0 PID: 3095 Comm: syzkaller944364 Not tainted 4.15.0-rc1-mm1+ #29 [ 33.591584] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.592806] Call Trace: [ 33.593167] dump_stack+0x194/0x257 [ 33.593663] ? arch_local_irq_restore+0x53/0x53 [ 33.594289] ? show_regs_print_info+0x65/0x65 [ 33.594906] ? af_alg_make_sg+0x510/0x510 [ 33.595401] BUG: unable to handle kernel NULL pointer dereference at (null) [ 33.595406] IP: (null) [ 33.595409] PGD 1ccb84067 P4D 1ccb84067 PUD 1ccb5f067 PMD 0 [ 33.595417] Oops: 0010 [#1] SMP KASAN [ 33.595422] Dumping ftrace buffer: [ 33.595425] (ftrace buffer empty) [ 33.595427] Modules linked in: [ 33.595433] CPU: 1 PID: 3175 Comm: syzkaller944364 Not tainted 4.15.0-rc1-mm1+ #29 [ 33.595435] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.595437] task: 00000000f38f58d1 task.stack: 0000000017b160c1 [ 33.595439] RIP: 0010: (null) [ 33.595441] RSP: 0018:ffff8801cbe97958 EFLAGS: 00010286 [ 33.595445] RAX: ffff8801cbcabcc0 RBX: 1ffff100397d2f2c RCX: ffffffff823afbad [ 33.595447] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8801cbe97960 [ 33.595449] RBP: ffff8801cbe97b00 R08: 0000000000000000 R09: ffff8801caa14490 [ 33.595451] R10: 0000000000000008 R11: ffffed0039542899 R12: ffff8801ca46aed8 [ 33.595454] R13: ffff8801cbcabce8 R14: ffff8801cbe97960 R15: dffffc0000000000 [ 33.595457] FS: 0000000000da8880(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 [ 33.595459] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 33.595461] CR2: 0000000000000000 CR3: 00000001cc79a000 CR4: 00000000001406e0 [ 33.595466] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 33.595468] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 33.595469] Call Trace: [ 33.595476] ? aead_recvmsg+0xac7/0x1bc0 [ 33.595484] ? aead_recvmsg+0x967/0x1bc0 [ 33.595497] ? aead_release+0x50/0x50 [ 33.595503] ? selinux_socket_recvmsg+0x36/0x40 [ 33.595508] ? security_socket_recvmsg+0x91/0xc0 [ 33.595513] ? aead_release+0x50/0x50 [ 33.595519] sock_recvmsg+0xc9/0x110 [ 33.595524] ? __sock_recv_wifi_status+0x210/0x210 [ 33.595530] ___sys_recvmsg+0x29b/0x630 [ 33.595538] ? ___sys_sendmsg+0x8a0/0x8a0 [ 33.595557] ? up_read+0x1a/0x40 [ 33.595564] ? __do_page_fault+0x3d6/0xc90 [ 33.595569] ? fd_install+0x4d/0x60 [ 33.595577] ? __fdget+0x18/0x20 [ 33.595583] __sys_recvmsg+0xe2/0x210 [ 33.595586] ? __sys_recvmsg+0xe2/0x210 [ 33.595591] ? SyS_sendmmsg+0x60/0x60 [ 33.595596] ? __do_page_fault+0xc90/0xc90 [ 33.595602] ? fd_install+0x4d/0x60 [ 33.595613] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.595619] SyS_recvmsg+0x2d/0x50 [ 33.595626] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.595630] RIP: 0033:0x440c29 [ 33.595632] RSP: 002b:00007ffd621c7628 EFLAGS: 00000203 ORIG_RAX: 000000000000002f [ 33.595636] RAX: ffffffffffffffda RBX: 00000000004a24e1 RCX: 0000000000440c29 [ 33.595638] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 33.595640] RBP: 00000000000082aa R08: 0000000000000000 R09: 0000000000000000 [ 33.595642] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000000000 [ 33.595644] R13: 00000000004020b0 R14: 0000000000000000 R15: 0000000000000000 [ 33.595653] Code: Bad RIP value. [ 33.595660] RIP: (null) RSP: ffff8801cbe97958 [ 33.595661] CR2: 0000000000000000 [ 33.595668] ---[ end trace e3e6605bb0de7754 ]--- [ 33.595671] Kernel panic - not syncing: Fatal exception [ 33.813201] ? aead_recvmsg+0x1758/0x1bc0 [ 33.817317] print_address_description+0x73/0x250 [ 33.822124] ? aead_recvmsg+0x1758/0x1bc0 [ 33.826237] kasan_report+0x25b/0x340 [ 33.830006] __asan_report_load4_noabort+0x14/0x20 [ 33.834898] aead_recvmsg+0x1758/0x1bc0 [ 33.838844] ? aead_release+0x50/0x50 [ 33.842609] ? selinux_socket_recvmsg+0x36/0x40 [ 33.847266] ? security_socket_recvmsg+0x91/0xc0 [ 33.851988] ? aead_release+0x50/0x50 [ 33.855847] sock_recvmsg+0xc9/0x110 [ 33.859526] ? __sock_recv_wifi_status+0x210/0x210 [ 33.864421] ___sys_recvmsg+0x29b/0x630 [ 33.868362] ? ___sys_sendmsg+0x8a0/0x8a0 [ 33.872491] ? up_read+0x1a/0x40 [ 33.875823] ? __do_page_fault+0x3d6/0xc90 [ 33.880033] ? fd_install+0x4d/0x60 [ 33.883630] ? __fdget+0x18/0x20 [ 33.886964] __sys_recvmsg+0xe2/0x210 [ 33.890727] ? __sys_recvmsg+0xe2/0x210 [ 33.894665] ? SyS_sendmmsg+0x60/0x60 [ 33.898443] ? __do_page_fault+0xc90/0xc90 [ 33.902653] ? fd_install+0x4d/0x60 [ 33.906250] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.911235] SyS_recvmsg+0x2d/0x50 [ 33.914743] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.919462] RIP: 0033:0x440c29 [ 33.922616] RSP: 002b:00007ffd621c7628 EFLAGS: 00000203 ORIG_RAX: 000000000000002f [ 33.930287] RAX: ffffffffffffffda RBX: 00000000004a24e1 RCX: 0000000000440c29 [ 33.937521] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 33.944755] RBP: 00000000006cb018 R08: 0000000000000000 R09: 0000000000000000 [ 33.951994] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000000000 [ 33.959241] R13: 00000000004020b0 R14: 0000000000000000 R15: 0000000000000000 [ 33.966483] [ 33.968078] Allocated by task 3086: [ 33.971673] save_stack+0x43/0xd0 [ 33.975091] kasan_kmalloc+0xad/0xe0 [ 33.978770] __kmalloc+0x162/0x760 [ 33.982277] crypto_create_tfm+0x82/0x2e0 [ 33.986387] crypto_alloc_tfm+0x10e/0x2f0 [ 33.990499] crypto_alloc_skcipher+0x2c/0x40 [ 33.994872] crypto_get_default_null_skcipher+0x5f/0x80 [ 34.000201] aead_bind+0x89/0x140 [ 34.003619] alg_bind+0x1ab/0x440 [ 34.007039] SYSC_bind+0x1b4/0x3f0 [ 34.010542] SyS_bind+0x24/0x30 [ 34.013789] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.018506] [ 34.020098] Freed by task 3098: [ 34.023343] save_stack+0x43/0xd0 [ 34.026759] kasan_slab_free+0x71/0xc0 [ 34.030608] kfree+0xca/0x250 [ 34.033677] kzfree+0x28/0x30 [ 34.036744] crypto_destroy_tfm+0x140/0x2e0 [ 34.041028] crypto_put_default_null_skcipher+0x35/0x60 [ 34.046356] aead_sock_destruct+0x13c/0x220 [ 34.050640] __sk_destruct+0xfd/0x910 [ 34.054402] sk_destruct+0x47/0x80 [ 34.057905] __sk_free+0x57/0x230 [ 34.061321] sk_free+0x2a/0x40 [ 34.064478] af_alg_release+0x5d/0x70 [ 34.068242] sock_release+0x8d/0x1e0 [ 34.071926] sock_close+0x16/0x20 [ 34.075344] __fput+0x333/0x7f0 [ 34.078587] ____fput+0x15/0x20 [ 34.081832] task_work_run+0x199/0x270 [ 34.085681] do_exit+0x9bb/0x1ae0 [ 34.089098] do_group_exit+0x149/0x400 [ 34.092949] SyS_exit_group+0x1d/0x20 [ 34.096715] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.101431] [ 34.103023] The buggy address belongs to the object at ffff8801cc5fc3c0 [ 34.103023] which belongs to the cache kmalloc-128 of size 128 [ 34.115642] The buggy address is located 28 bytes inside of [ 34.115642] 128-byte region [ffff8801cc5fc3c0, ffff8801cc5fc440) [ 34.127396] The buggy address belongs to the page: [ 34.132288] page:00000000e3b729ec count:1 mapcount:0 mapping:00000000d8c80573 index:0x0 [ 34.140393] flags: 0x2fffc0000000100(slab) [ 34.144594] raw: 02fffc0000000100 ffff8801cc5fc000 0000000000000000 0000000100000015 [ 34.152438] raw: ffffea000732d420 ffffea000731f6a0 ffff8801db000640 0000000000000000 [ 34.160280] page dumped because: kasan: bad access detected [ 34.165954] [ 34.167548] Memory state around the buggy address: [ 34.172440] ffff8801cc5fc280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 34.179763] ffff8801cc5fc300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.187087] >ffff8801cc5fc380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.194408] ^ [ 34.200603] ffff8801cc5fc400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 34.207926] ffff8801cc5fc480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.215343] ================================================================== [ 34.222693] Dumping ftrace buffer: [ 34.226239] (ftrace buffer empty) [ 34.229923] Kernel Offset: disabled [ 34.233522] Rebooting in 86400 seconds..