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-8,10.128.0.20' (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: [ 27.215632] ================================================================== [ 27.216783] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 27.217641] Read of size 4 at addr ffff8801cc14855c by task syzkaller256554/3084 [ 27.218627] [ 27.218863] CPU: 0 PID: 3084 Comm: syzkaller256554 Not tainted 4.15.0-rc2+ #208 [ 27.219838] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.221079] Call Trace: [ 27.221438] dump_stack+0x194/0x257 [ 27.222303] ? arch_local_irq_restore+0x53/0x53 [ 27.222929] ? show_regs_print_info+0x65/0x65 [ 27.223535] ? af_alg_make_sg+0x510/0x510 [ 27.224093] ? aead_recvmsg+0x1758/0x1bc0 [ 27.224653] print_address_description+0x73/0x250 [ 27.225299] ? aead_recvmsg+0x1758/0x1bc0 [ 27.225858] kasan_report+0x25b/0x340 [ 27.226375] __asan_report_load4_noabort+0x14/0x20 [ 27.226996] BUG: unable to handle kernel NULL pointer dereference at (null) [ 27.227005] IP: (null) [ 27.227007] PGD 1cb21d067 P4D 1cb21d067 PUD 1cbb48067 PMD 0 [ 27.227015] Oops: 0010 [#1] SMP KASAN [ 27.227020] Dumping ftrace buffer: [ 27.227023] (ftrace buffer empty) [ 27.227024] Modules linked in: [ 27.227029] CPU: 1 PID: 3182 Comm: syzkaller256554 Not tainted 4.15.0-rc2+ #208 [ 27.227032] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.227034] task: 00000000af1aa915 task.stack: 00000000261fe092 [ 27.227036] RIP: 0010: (null) [ 27.227038] RSP: 0018:ffff8801cb9df958 EFLAGS: 00010286 [ 27.227043] RAX: ffff8801cb55f600 RBX: 1ffff1003973bf2c RCX: ffffffff823a8ded [ 27.227046] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8801cb9df960 [ 27.227048] RBP: ffff8801cb9dfb00 R08: 0000000000000000 R09: ffff8801cbf25b50 [ 27.227050] R10: 0000000000000008 R11: ffffed00397e4b71 R12: ffff8801ca760ed8 [ 27.227052] R13: ffff8801cb55f628 R14: ffff8801cb9df960 R15: dffffc0000000000 [ 27.227055] FS: 0000000000e35880(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 [ 27.227058] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 27.227060] CR2: 0000000000000000 CR3: 00000001cbb64000 CR4: 00000000001406e0 [ 27.227065] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 27.227067] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 27.227069] Call Trace: [ 27.227076] ? aead_recvmsg+0xac7/0x1bc0 [ 27.227084] ? aead_recvmsg+0x967/0x1bc0 [ 27.227097] ? aead_release+0x50/0x50 [ 27.227105] ? selinux_socket_recvmsg+0x36/0x40 [ 27.227110] ? security_socket_recvmsg+0x91/0xc0 [ 27.227115] ? aead_release+0x50/0x50 [ 27.227121] sock_recvmsg+0xc9/0x110 [ 27.227125] ? __sock_recv_wifi_status+0x210/0x210 [ 27.227131] ___sys_recvmsg+0x29b/0x630 [ 27.227139] ? ___sys_sendmsg+0x8a0/0x8a0 [ 27.227158] ? up_read+0x1a/0x40 [ 27.227164] ? __do_page_fault+0x3d6/0xc90 [ 27.227168] ? fd_install+0x4d/0x60 [ 27.227176] ? __fdget+0x18/0x20 [ 27.227183] __sys_recvmsg+0xe2/0x210 [ 27.227187] ? __sys_recvmsg+0xe2/0x210 [ 27.227192] ? SyS_sendmmsg+0x60/0x60 [ 27.227197] ? __do_page_fault+0xc90/0xc90 [ 27.227207] ? fd_install+0x4d/0x60 [ 27.227218] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.227225] SyS_recvmsg+0x2d/0x50 [ 27.227231] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.227235] RIP: 0033:0x440bf9 [ 27.227237] RSP: 002b:00007ffdbc3ded48 EFLAGS: 00000203 ORIG_RAX: 000000000000002f [ 27.227240] RAX: ffffffffffffffda RBX: 00000000004a2470 RCX: 0000000000440bf9 [ 27.227243] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 27.227245] RBP: 00000000000069b7 R08: 0000000000000000 R09: 0000000000000000 [ 27.227247] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000000000 [ 27.227249] R13: 0000000000402080 R14: 0000000000000000 R15: 0000000000000000 [ 27.227258] Code: Bad RIP value. [ 27.227265] RIP: (null) RSP: ffff8801cb9df958 [ 27.227266] CR2: 0000000000000000 [ 27.227293] ---[ end trace 23dfa9a52a6e8f8e ]--- [ 27.227295] Kernel panic - not syncing: Fatal exception [ 27.466518] aead_recvmsg+0x1758/0x1bc0 [ 27.470471] ? aead_release+0x50/0x50 [ 27.474241] ? selinux_socket_recvmsg+0x36/0x40 [ 27.478878] ? security_socket_recvmsg+0x91/0xc0 [ 27.483601] ? aead_release+0x50/0x50 [ 27.487370] sock_recvmsg+0xc9/0x110 [ 27.491051] ? __sock_recv_wifi_status+0x210/0x210 [ 27.495948] ___sys_recvmsg+0x29b/0x630 [ 27.499892] ? ___sys_sendmsg+0x8a0/0x8a0 [ 27.504039] ? up_read+0x1a/0x40 [ 27.507374] ? __do_page_fault+0x3d6/0xc90 [ 27.511574] ? fd_install+0x4d/0x60 [ 27.515170] ? __fdget+0x18/0x20 [ 27.518506] __sys_recvmsg+0xe2/0x210 [ 27.522271] ? __sys_recvmsg+0xe2/0x210 [ 27.526210] ? SyS_sendmmsg+0x60/0x60 [ 27.529976] ? __do_page_fault+0xc90/0xc90 [ 27.534179] ? fd_install+0x4d/0x60 [ 27.537787] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.542773] SyS_recvmsg+0x2d/0x50 [ 27.546281] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.551005] RIP: 0033:0x440bf9 [ 27.554168] RSP: 002b:00007ffdbc3ded48 EFLAGS: 00000203 ORIG_RAX: 000000000000002f [ 27.561839] RAX: ffffffffffffffda RBX: 00000000004a2470 RCX: 0000000000440bf9 [ 27.569075] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 27.576310] RBP: 00000000006cb018 R08: 0000000000000000 R09: 0000000000000000 [ 27.583544] R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000000000 [ 27.590779] R13: 0000000000402080 R14: 0000000000000000 R15: 0000000000000000 [ 27.598026] [ 27.599632] Allocated by task 3084: [ 27.603225] save_stack+0x43/0xd0 [ 27.606641] kasan_kmalloc+0xad/0xe0 [ 27.610319] __kmalloc+0x162/0x760 [ 27.613823] crypto_create_tfm+0x82/0x2e0 [ 27.617934] crypto_alloc_tfm+0x10e/0x2f0 [ 27.622045] crypto_alloc_skcipher+0x2c/0x40 [ 27.626417] crypto_get_default_null_skcipher+0x5f/0x80 [ 27.631743] aead_bind+0x89/0x140 [ 27.635160] alg_bind+0x1ab/0x440 [ 27.638578] SYSC_bind+0x1b4/0x3f0 [ 27.642082] SyS_bind+0x24/0x30 [ 27.645326] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.650044] [ 27.651636] Freed by task 3097: [ 27.654880] save_stack+0x43/0xd0 [ 27.658296] kasan_slab_free+0x71/0xc0 [ 27.662147] kfree+0xca/0x250 [ 27.665229] kzfree+0x28/0x30 [ 27.668319] crypto_destroy_tfm+0x140/0x2e0 [ 27.672605] crypto_put_default_null_skcipher+0x35/0x60 [ 27.677932] aead_sock_destruct+0x13c/0x220 [ 27.682217] __sk_destruct+0xfd/0x910 [ 27.685980] sk_destruct+0x47/0x80 [ 27.689484] __sk_free+0x57/0x230 [ 27.692901] sk_free+0x2a/0x40 [ 27.696066] af_alg_release+0x5d/0x70 [ 27.699833] sock_release+0x8d/0x1e0 [ 27.703510] sock_close+0x16/0x20 [ 27.706930] __fput+0x333/0x7f0 [ 27.710181] ____fput+0x15/0x20 [ 27.713427] task_work_run+0x199/0x270 [ 27.717279] do_exit+0x9bb/0x1ae0 [ 27.720696] do_group_exit+0x149/0x400 [ 27.724546] SyS_exit_group+0x1d/0x20 [ 27.728327] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.733051] [ 27.734645] The buggy address belongs to the object at ffff8801cc148540 [ 27.734645] which belongs to the cache kmalloc-128 of size 128 [ 27.747264] The buggy address is located 28 bytes inside of [ 27.747264] 128-byte region [ffff8801cc148540, ffff8801cc1485c0) [ 27.759015] The buggy address belongs to the page: [ 27.763910] page:0000000059c35b25 count:1 mapcount:0 mapping:000000007b49f9ca index:0x0 [ 27.772015] flags: 0x2fffc0000000100(slab) [ 27.776221] raw: 02fffc0000000100 ffff8801cc148000 0000000000000000 0000000100000015 [ 27.784066] raw: ffffea000730f8e0 ffffea000731fe20 ffff8801db000640 0000000000000000 [ 27.791909] page dumped because: kasan: bad access detected [ 27.797584] [ 27.799177] Memory state around the buggy address: [ 27.804070] ffff8801cc148400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.811392] ffff8801cc148480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.819191] >ffff8801cc148500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 27.826515] ^ [ 27.832722] ffff8801cc148580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.840045] ffff8801cc148600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.847365] ================================================================== [ 27.854714] Dumping ftrace buffer: [ 27.858262] (ftrace buffer empty) [ 27.861945] Kernel Offset: disabled [ 27.865546] Rebooting in 86400 seconds..