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-net-kasan-gce-1,10.128.0.13' (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 executing program executing program executing program syzkaller login: [ 33.366928] ================================================================== [ 33.367718] BUG: unable to handle kernel NULL pointer dereference at (null) [ 33.367725] IP: (null) [ 33.367728] PGD 1cc59c067 P4D 1cc59c067 PUD 1cc5cd067 PMD 0 [ 33.367737] Oops: 0010 [#1] SMP KASAN [ 33.367744] Dumping ftrace buffer: [ 33.367747] (ftrace buffer empty) [ 33.367749] Modules linked in: [ 33.367755] CPU: 0 PID: 3183 Comm: syzkaller326580 Not tainted 4.15.0-rc1+ #136 [ 33.367758] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.367761] task: 00000000b08290f7 task.stack: 0000000074d259d7 [ 33.367763] RIP: 0010: (null) [ 33.367765] RSP: 0018:ffff8801ccbef958 EFLAGS: 00010286 [ 33.367770] RAX: ffff8801cbaf7900 RBX: 1ffff1003997df2c RCX: ffffffff823a7cad [ 33.367772] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8801ccbef960 [ 33.367774] RBP: ffff8801ccbefb00 R08: 0000000000000000 R09: ffff8801cadac910 [ 33.367776] R10: 0000000000000008 R11: ffffed00395b5929 R12: ffff8801ca6d8198 [ 33.367779] R13: ffff8801cbaf7928 R14: ffff8801ccbef960 R15: dffffc0000000000 [ 33.367782] FS: 0000000000982880(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000 [ 33.367784] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 33.367786] CR2: 0000000000000000 CR3: 00000001cd16e000 CR4: 00000000001406f0 [ 33.367791] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 33.367793] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 33.367794] Call Trace: [ 33.367806] ? aead_recvmsg+0xac7/0x1bc0 [ 33.367814] ? aead_recvmsg+0x967/0x1bc0 [ 33.367827] ? aead_release+0x50/0x50 [ 33.367836] ? selinux_socket_recvmsg+0x36/0x40 [ 33.367841] ? security_socket_recvmsg+0x91/0xc0 [ 33.367846] ? aead_release+0x50/0x50 [ 33.367857] sock_recvmsg+0xc9/0x110 [ 33.367862] ? __sock_recv_wifi_status+0x210/0x210 [ 33.367868] ___sys_recvmsg+0x29b/0x630 [ 33.367876] ? ___sys_sendmsg+0x8a0/0x8a0 [ 33.367896] ? up_read+0x1a/0x40 [ 33.367904] ? __do_page_fault+0x3d6/0xc90 [ 33.367911] ? fd_install+0x4d/0x60 [ 33.367918] ? __fdget+0x18/0x20 [ 33.367925] __sys_recvmsg+0xe2/0x210 [ 33.367929] ? __sys_recvmsg+0xe2/0x210 [ 33.367934] ? SyS_sendmmsg+0x60/0x60 [ 33.367939] ? __do_page_fault+0xc90/0xc90 [ 33.367945] ? fd_install+0x4d/0x60 [ 33.367955] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.367962] SyS_recvmsg+0x2d/0x50 [ 33.367970] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.367974] RIP: 0033:0x440bf9 [ 33.367976] RSP: 002b:00007ffe7ac0ede8 EFLAGS: 00000203 ORIG_RAX: 000000000000002f [ 33.367980] RAX: ffffffffffffffda RBX: 00000000004a2470 RCX: 0000000000440bf9 [ 33.367982] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 33.367984] RBP: 00000000000081aa R08: 0000000000000000 R09: 0000000000000000 [ 33.367985] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000000000 [ 33.367987] R13: 0000000000402080 R14: 0000000000000000 R15: 0000000000000000 [ 33.367996] Code: Bad RIP value. [ 33.368008] RIP: (null) RSP: ffff8801ccbef958 [ 33.368009] CR2: 0000000000000000 [ 33.368034] ---[ end trace b90efed597a4debf ]--- [ 33.368036] Kernel panic - not syncing: Fatal exception [ 33.546313] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 33.552770] Read of size 4 at addr ffff8801cbaf791c by task syzkaller326580/3181 [ 33.560270] [ 33.561867] CPU: 1 PID: 3181 Comm: syzkaller326580 Tainted: G D 4.15.0-rc1+ #136 [ 33.570585] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.579904] Call Trace: [ 33.582464] dump_stack+0x194/0x257 [ 33.586057] ? arch_local_irq_restore+0x53/0x53 [ 33.590693] ? show_regs_print_info+0x65/0x65 [ 33.595206] ? af_alg_make_sg+0x510/0x510 [ 33.599330] ? aead_recvmsg+0x1758/0x1bc0 [ 33.603445] print_address_description+0x73/0x250 [ 33.608250] ? aead_recvmsg+0x1758/0x1bc0 [ 33.612370] kasan_report+0x25b/0x340 [ 33.616138] __asan_report_load4_noabort+0x14/0x20 [ 33.621033] aead_recvmsg+0x1758/0x1bc0 [ 33.624982] ? aead_release+0x50/0x50 [ 33.628761] ? selinux_socket_recvmsg+0x36/0x40 [ 33.633410] ? security_socket_recvmsg+0x91/0xc0 [ 33.638157] ? aead_release+0x50/0x50 [ 33.641940] sock_recvmsg+0xc9/0x110 [ 33.645624] ? __sock_recv_wifi_status+0x210/0x210 [ 33.650520] ___sys_recvmsg+0x29b/0x630 [ 33.654466] ? ___sys_sendmsg+0x8a0/0x8a0 [ 33.658599] ? up_read+0x1a/0x40 [ 33.661941] ? __do_page_fault+0x3d6/0xc90 [ 33.666234] ? fd_install+0x4d/0x60 [ 33.669841] ? __fdget+0x18/0x20 [ 33.673175] __sys_recvmsg+0xe2/0x210 [ 33.676939] ? __sys_recvmsg+0xe2/0x210 [ 33.680883] ? SyS_sendmmsg+0x60/0x60 [ 33.684647] ? __do_page_fault+0xc90/0xc90 [ 33.688848] ? fd_install+0x4d/0x60 [ 33.692447] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.697427] SyS_recvmsg+0x2d/0x50 [ 33.700938] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.705661] RIP: 0033:0x440bf9 [ 33.708818] RSP: 002b:00007ffe7ac0ede8 EFLAGS: 00000203 ORIG_RAX: 000000000000002f [ 33.716487] RAX: ffffffffffffffda RBX: 00000000004a2470 RCX: 0000000000440bf9 [ 33.723722] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 33.730957] RBP: 00000000000081ad R08: 0000000000000000 R09: 0000000000000000 [ 33.738188] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000000000 [ 33.745423] R13: 0000000000402080 R14: 0000000000000000 R15: 0000000000000000 [ 33.752670] [ 33.754267] Allocated by task 3179: [ 33.757874] save_stack+0x43/0xd0 [ 33.761292] kasan_kmalloc+0xad/0xe0 [ 33.764970] __kmalloc+0x162/0x760 [ 33.768475] crypto_create_tfm+0x82/0x2e0 [ 33.772586] crypto_alloc_tfm+0x10e/0x2f0 [ 33.776697] crypto_alloc_skcipher+0x2c/0x40 [ 33.781070] crypto_get_default_null_skcipher+0x5f/0x80 [ 33.786395] aead_bind+0x89/0x140 [ 33.789815] alg_bind+0x1ab/0x440 [ 33.793230] SYSC_bind+0x1b4/0x3f0 [ 33.796733] SyS_bind+0x24/0x30 [ 33.799976] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.804692] [ 33.806281] Freed by task 3180: [ 33.809522] save_stack+0x43/0xd0 [ 33.812939] kasan_slab_free+0x71/0xc0 [ 33.816789] kfree+0xca/0x250 [ 33.819859] kzfree+0x28/0x30 [ 33.822926] crypto_destroy_tfm+0x140/0x2e0 [ 33.827213] crypto_put_default_null_skcipher+0x35/0x60 [ 33.832536] aead_sock_destruct+0x13c/0x220 [ 33.836820] __sk_destruct+0xfd/0x910 [ 33.840582] sk_destruct+0x47/0x80 [ 33.844083] __sk_free+0x57/0x230 [ 33.847497] sk_free+0x2a/0x40 [ 33.850653] af_alg_release+0x5d/0x70 [ 33.854418] sock_release+0x8d/0x1e0 [ 33.858092] sock_close+0x16/0x20 [ 33.861508] __fput+0x333/0x7f0 [ 33.864749] ____fput+0x15/0x20 [ 33.868003] task_work_run+0x199/0x270 [ 33.871856] do_exit+0x9bb/0x1ae0 [ 33.875271] do_group_exit+0x149/0x400 [ 33.879121] SyS_exit_group+0x1d/0x20 [ 33.882884] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.887597] [ 33.889189] The buggy address belongs to the object at ffff8801cbaf7900 [ 33.889189] which belongs to the cache kmalloc-128 of size 128 [ 33.901808] The buggy address is located 28 bytes inside of [ 33.901808] 128-byte region [ffff8801cbaf7900, ffff8801cbaf7980) [ 33.913555] The buggy address belongs to the page: [ 33.918449] page:00000000d7dba575 count:1 mapcount:0 mapping:00000000eab8737e index:0x0 [ 33.926553] flags: 0x2fffc0000000100(slab) [ 33.930751] raw: 02fffc0000000100 ffff8801cbaf7000 0000000000000000 0000000100000015 [ 33.938594] raw: ffffea00072d2fe0 ffffea00072a47a0 ffff8801db000640 0000000000000000 [ 33.946435] page dumped because: kasan: bad access detected [ 33.952105] [ 33.953697] Memory state around the buggy address: [ 33.958588] ffff8801cbaf7800: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 33.965910] ffff8801cbaf7880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 33.973230] >ffff8801cbaf7900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.980549] ^ [ 33.984657] ffff8801cbaf7980: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 33.991979] ffff8801cbaf7a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 33.999300] ================================================================== [ 34.006658] Dumping ftrace buffer: [ 34.010252] (ftrace buffer empty) [ 34.013928] Kernel Offset: disabled [ 34.017524] Rebooting in 86400 seconds..