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-kasan-gce-6,10.128.0.41' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz7.router_solicitations = 0 net.ipv6.conf.syz6.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 executing program syzkaller login: [ 33.959559] ================================================================== [ 33.960659] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 33.961515] Read of size 4 at addr ffff8801c7b6001c by task syzkaller081892/3406 [ 33.962528] [ 33.962762] CPU: 1 PID: 3406 Comm: syzkaller081892 Not tainted 4.15.0-rc2+ #208 [ 33.963736] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.964954] Call Trace: [ 33.965312] dump_stack+0x194/0x257 [ 33.965804] ? arch_local_irq_restore+0x53/0x53 [ 33.966428] ? show_regs_print_info+0x65/0x65 [ 33.967031] ? af_alg_make_sg+0x510/0x510 [ 33.967602] ? aead_recvmsg+0x1758/0x1bc0 [ 33.968160] print_address_description+0x73/0x250 [ 33.968803] ? aead_recvmsg+0x1758/0x1bc0 [ 33.969361] kasan_report+0x25b/0x340 [ 33.969878] __asan_report_load4_noabort+0x14/0x20 [ 33.970532] aead_recvmsg+0x1758/0x1bc0 [ 33.971084] ? aead_release+0x50/0x50 [ 33.971597] ? selinux_socket_recvmsg+0x36/0x40 [ 33.972220] ? security_socket_recvmsg+0x91/0xc0 [ 33.972857] ? aead_release+0x50/0x50 [ 33.973369] sock_recvmsg+0xc9/0x110 [ 33.973871] ? __sock_recv_wifi_status+0x210/0x210 [ 33.973950] BUG: unable to handle kernel NULL pointer dereference at (null) [ 33.973956] IP: (null) [ 33.973958] PGD 1cc12f067 P4D 1cc12f067 PUD 1c7f96067 PMD 0 [ 33.973966] Oops: 0010 [#1] SMP KASAN [ 33.973970] Dumping ftrace buffer: [ 33.973973] (ftrace buffer empty) [ 33.973974] Modules linked in: [ 33.973980] CPU: 0 PID: 3418 Comm: syzkaller081892 Not tainted 4.15.0-rc2+ #208 [ 33.973982] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.973985] task: 00000000adbd0689 task.stack: 000000001e5c027e [ 33.973987] RIP: 0010: (null) [ 33.973989] RSP: 0018:ffff8801c50a7958 EFLAGS: 00010286 [ 33.973992] RAX: ffff8801c7b60000 RBX: 1ffff10038a14f2c RCX: ffffffff823a8ded [ 33.973995] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8801c50a7960 [ 33.973997] RBP: ffff8801c50a7b00 R08: 0000000000000000 R09: ffff8801c6360490 [ 33.973999] R10: 0000000000000008 R11: ffffed0038c6c099 R12: 0000000000000000 [ 33.974004] R13: ffff8801c7b60028 R14: ffff8801c50a7960 R15: dffffc0000000000 [ 33.974008] FS: 00007f5cd2f6b700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000 [ 33.974010] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 33.974012] CR2: 0000000000000000 CR3: 00000001c64fc000 CR4: 00000000001406f0 [ 33.974016] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 33.974019] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 33.974020] Call Trace: [ 33.974027] ? aead_recvmsg+0xac7/0x1bc0 [ 33.974034] ? aead_recvmsg+0x967/0x1bc0 [ 33.974047] ? aead_release+0x50/0x50 [ 33.974054] ? selinux_socket_recvmsg+0x36/0x40 [ 33.974058] ? security_socket_recvmsg+0x91/0xc0 [ 33.974063] ? aead_release+0x50/0x50 [ 33.974068] sock_recvmsg+0xc9/0x110 [ 33.974073] ? __sock_recv_wifi_status+0x210/0x210 [ 33.974078] ___sys_recvmsg+0x29b/0x630 [ 33.974086] ? ___sys_sendmsg+0x8a0/0x8a0 [ 33.974100] ? fget_raw+0x20/0x20 [ 33.974106] ? lock_release+0xda0/0xda0 [ 33.974112] ? lock_downgrade+0x980/0x980 [ 33.974116] ? do_raw_spin_trylock+0x190/0x190 [ 33.974123] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.974131] ? __fdget+0x18/0x20 [ 33.974137] __sys_recvmsg+0xe2/0x210 [ 33.974141] ? __sys_recvmsg+0xe2/0x210 [ 33.974146] ? SyS_sendmmsg+0x60/0x60 [ 33.974153] ? account_kernel_stack+0x155/0x1f0 [ 33.974160] ? lockdep_sys_exit+0x47/0xf0 [ 33.974169] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.974176] SyS_recvmsg+0x2d/0x50 [ 33.974181] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.974184] RIP: 0033:0x44a739 [ 33.974186] RSP: 002b:00007f5cd2f6adc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 33.974190] RAX: ffffffffffffffda RBX: 00007f5cd2f6b700 RCX: 000000000044a739 [ 33.974192] RDX: 0000000000000020 RSI: 00000000201f5000 RDI: 0000000000000006 [ 33.974194] RBP: 00007ffed823dab0 R08: 00007f5cd2f6b700 R09: 00007f5cd2f6b700 [ 33.974196] R10: 00007f5cd2f6b700 R11: 0000000000000202 R12: 0000000000000000 [ 33.974198] R13: 00007ffed823daaf R14: 00007f5cd2f6b9c0 R15: 0000000000000000 [ 33.974207] Code: Bad RIP value. [ 33.974214] RIP: (null) RSP: ffff8801c50a7958 [ 33.974216] CR2: 0000000000000000 [ 33.974249] ---[ end trace ce7c8a53d02e8124 ]--- [ 33.974252] Kernel panic - not syncing: Fatal exception [ 34.238848] ___sys_recvmsg+0x29b/0x630 [ 34.242794] ? ___sys_sendmsg+0x8a0/0x8a0 [ 34.246914] ? fget_raw+0x20/0x20 [ 34.250335] ? find_held_lock+0x39/0x1d0 [ 34.254365] ? lock_downgrade+0x980/0x980 [ 34.258480] ? __fdget+0x18/0x20 [ 34.261814] __sys_recvmsg+0xe2/0x210 [ 34.265579] ? __sys_recvmsg+0xe2/0x210 [ 34.269517] ? SyS_sendmmsg+0x60/0x60 [ 34.273281] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.278262] ? lockdep_sys_exit+0x47/0xf0 [ 34.282376] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.287358] SyS_recvmsg+0x2d/0x50 [ 34.290863] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.295581] RIP: 0033:0x44a739 [ 34.298735] RSP: 002b:00007f5cd2f6adc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 34.306405] RAX: ffffffffffffffda RBX: 00007f5cd2f6b700 RCX: 000000000044a739 [ 34.313637] RDX: 0000000000000020 RSI: 00000000201f5000 RDI: 0000000000000006 [ 34.320872] RBP: 00007ffed823dab0 R08: 00007f5cd2f6b700 R09: 00007f5cd2f6b700 [ 34.328106] R10: 00007f5cd2f6b700 R11: 0000000000000202 R12: 0000000000000000 [ 34.335339] R13: 00007ffed823daaf R14: 00007f5cd2f6b9c0 R15: 0000000000000000 [ 34.342578] [ 34.344170] Allocated by task 3301: [ 34.347761] save_stack+0x43/0xd0 [ 34.351177] kasan_kmalloc+0xad/0xe0 [ 34.354855] __kmalloc+0x162/0x760 [ 34.358360] crypto_create_tfm+0x82/0x2e0 [ 34.362470] crypto_alloc_tfm+0x10e/0x2f0 [ 34.366581] crypto_alloc_skcipher+0x2c/0x40 [ 34.370953] crypto_get_default_null_skcipher+0x5f/0x80 [ 34.376286] aead_bind+0x89/0x140 [ 34.379700] alg_bind+0x1ab/0x440 [ 34.383115] SYSC_bind+0x1b4/0x3f0 [ 34.386616] SyS_bind+0x24/0x30 [ 34.389861] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.394576] [ 34.396169] Freed by task 3311: [ 34.399410] save_stack+0x43/0xd0 [ 34.402830] kasan_slab_free+0x71/0xc0 [ 34.406679] kfree+0xca/0x250 [ 34.409749] kzfree+0x28/0x30 [ 34.412821] crypto_destroy_tfm+0x140/0x2e0 [ 34.417109] crypto_put_default_null_skcipher+0x35/0x60 [ 34.422434] aead_sock_destruct+0x13c/0x220 [ 34.426718] __sk_destruct+0xfd/0x910 [ 34.430479] sk_destruct+0x47/0x80 [ 34.433981] __sk_free+0x57/0x230 [ 34.437396] sk_free+0x2a/0x40 [ 34.440550] af_alg_release+0x5d/0x70 [ 34.444314] sock_release+0x8d/0x1e0 [ 34.448336] sock_close+0x16/0x20 [ 34.452794] __fput+0x333/0x7f0 [ 34.456037] ____fput+0x15/0x20 [ 34.459280] task_work_run+0x199/0x270 [ 34.463144] do_exit+0x9bb/0x1ae0 [ 34.466558] do_group_exit+0x149/0x400 [ 34.470415] SyS_exit_group+0x1d/0x20 [ 34.474178] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 34.478894] [ 34.480487] The buggy address belongs to the object at ffff8801c7b60000 [ 34.480487] which belongs to the cache kmalloc-128 of size 128 [ 34.493104] The buggy address is located 28 bytes inside of [ 34.493104] 128-byte region [ffff8801c7b60000, ffff8801c7b60080) [ 34.504850] The buggy address belongs to the page: [ 34.509741] page:0000000024ed6f68 count:1 mapcount:0 mapping:00000000528740c2 index:0x0 [ 34.517846] flags: 0x2fffc0000000100(slab) [ 34.522046] raw: 02fffc0000000100 ffff8801c7b60000 0000000000000000 0000000100000015 [ 34.529891] raw: ffffea00071f04e0 ffffea00071edf60 ffff8801db000640 0000000000000000 [ 34.537731] page dumped because: kasan: bad access detected [ 34.543401] [ 34.544990] Memory state around the buggy address: [ 34.549882] ffff8801c7b5ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.557203] ffff8801c7b5ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.564523] >ffff8801c7b60000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.571842] ^ [ 34.575949] ffff8801c7b60080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.583269] ffff8801c7b60100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 34.591284] ================================================================== [ 34.598630] Dumping ftrace buffer: [ 34.602170] (ftrace buffer empty) [ 34.605850] Kernel Offset: disabled [ 34.609447] Rebooting in 86400 seconds..