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.15' (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: [ 32.236090] ================================================================== [ 32.237140] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 32.238036] Read of size 4 at addr ffff8801cbc7655c by task syzkaller706529/3300 [ 32.239047] [ 32.239280] CPU: 1 PID: 3300 Comm: syzkaller706529 Not tainted 4.15.0-rc1+ #205 [ 32.240258] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.241479] Call Trace: [ 32.241836] dump_stack+0x194/0x257 [ 32.242329] ? arch_local_irq_restore+0x53/0x53 [ 32.242954] ? show_regs_print_info+0x65/0x65 [ 32.243557] ? af_alg_make_sg+0x510/0x510 [ 32.244113] ? aead_recvmsg+0x1758/0x1bc0 [ 32.244671] print_address_description+0x73/0x250 [ 32.245316] ? aead_recvmsg+0x1758/0x1bc0 [ 32.245890] kasan_report+0x25b/0x340 [ 32.246404] __asan_report_load4_noabort+0x14/0x20 [ 32.247057] aead_recvmsg+0x1758/0x1bc0 [ 32.247384] BUG: unable to handle kernel NULL pointer dereference at (null) [ 32.247390] IP: (null) [ 32.247392] PGD 1cbfd1067 P4D 1cbfd1067 PUD 1cbfb0067 PMD 0 [ 32.247400] Oops: 0010 [#1] SMP KASAN [ 32.247405] Dumping ftrace buffer: [ 32.247408] (ftrace buffer empty) [ 32.247409] Modules linked in: [ 32.247415] CPU: 0 PID: 3302 Comm: syzkaller706529 Not tainted 4.15.0-rc1+ #205 [ 32.247418] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.247421] task: 00000000900e400d task.stack: 00000000dbf76f0d [ 32.247423] RIP: 0010: (null) [ 32.247425] RSP: 0018:ffff8801cb247958 EFLAGS: 00010286 [ 32.247428] RAX: ffff8801cbc76540 RBX: 1ffff10039648f2c RCX: ffffffff823a8d7d [ 32.247431] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8801cb247960 [ 32.247433] RBP: ffff8801cb247b00 R08: 0000000000000000 R09: ffff8801cb404050 [ 32.247435] R10: 0000000000000008 R11: ffffed0039680811 R12: ffff8801cac10818 [ 32.247437] R13: ffff8801cbc76568 R14: ffff8801cb247960 R15: dffffc0000000000 [ 32.247440] FS: 00007fe861fa8700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000 [ 32.247443] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.247445] CR2: 0000000000000000 CR3: 00000001cbb53000 CR4: 00000000001406f0 [ 32.247449] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 32.247451] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 32.247452] Call Trace: [ 32.247461] ? aead_recvmsg+0xac7/0x1bc0 [ 32.247471] ? aead_recvmsg+0x967/0x1bc0 [ 32.247486] ? aead_release+0x50/0x50 [ 32.247493] ? selinux_socket_recvmsg+0x36/0x40 [ 32.247498] ? security_socket_recvmsg+0x91/0xc0 [ 32.247503] ? aead_release+0x50/0x50 [ 32.247510] sock_recvmsg+0xc9/0x110 [ 32.247516] ? __sock_recv_wifi_status+0x210/0x210 [ 32.247523] ___sys_recvmsg+0x29b/0x630 [ 32.247531] ? ___sys_sendmsg+0x8a0/0x8a0 [ 32.247552] ? lock_downgrade+0x980/0x980 [ 32.247561] ? __fdget+0x18/0x20 [ 32.247568] __sys_recvmsg+0xe2/0x210 [ 32.247571] ? __sys_recvmsg+0xe2/0x210 [ 32.247577] ? SyS_sendmmsg+0x60/0x60 [ 32.247583] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.247589] ? lockdep_sys_exit+0x47/0xf0 [ 32.247598] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.247605] SyS_recvmsg+0x2d/0x50 [ 32.247612] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.247615] RIP: 0033:0x447a79 [ 32.247617] RSP: 002b:00007fe861fa7d08 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 32.247620] RAX: ffffffffffffffda RBX: 00007fe861fa8700 RCX: 0000000000447a79 [ 32.247622] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000004 [ 32.247624] RBP: 00007fff7388e3c0 R08: 00007fe861fa8700 R09: 00007fe861fa8700 [ 32.247626] R10: 00007fe861fa8700 R11: 0000000000000246 R12: 0000000000000000 [ 32.247628] R13: 00007fff7388e3bf R14: 00007fe861fa89c0 R15: 0000000000000000 [ 32.247637] Code: Bad RIP value. [ 32.247644] RIP: (null) RSP: ffff8801cb247958 [ 32.247646] CR2: 0000000000000000 [ 32.247652] ---[ end trace 90be1768f90323d3 ]--- [ 32.247654] Kernel panic - not syncing: Fatal exception [ 32.480666] ? aead_release+0x50/0x50 [ 32.484440] ? selinux_socket_recvmsg+0x36/0x40 [ 32.489072] ? security_socket_recvmsg+0x91/0xc0 [ 32.493793] ? aead_release+0x50/0x50 [ 32.497559] sock_recvmsg+0xc9/0x110 [ 32.501235] ? __sock_recv_wifi_status+0x210/0x210 [ 32.506136] ___sys_recvmsg+0x29b/0x630 [ 32.510079] ? ___sys_sendmsg+0x8a0/0x8a0 [ 32.514208] ? lock_downgrade+0x980/0x980 [ 32.518325] ? __fdget+0x18/0x20 [ 32.521660] __sys_recvmsg+0xe2/0x210 [ 32.525437] ? __sys_recvmsg+0xe2/0x210 [ 32.529376] ? SyS_sendmmsg+0x60/0x60 [ 32.533142] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.538123] ? lockdep_sys_exit+0x47/0xf0 [ 32.542241] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.547226] SyS_recvmsg+0x2d/0x50 [ 32.550733] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.555452] RIP: 0033:0x447a79 [ 32.558608] RSP: 002b:00007fe861fa7d08 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 32.566284] RAX: ffffffffffffffda RBX: 00007fe861fa8700 RCX: 0000000000447a79 [ 32.573520] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000004 [ 32.580755] RBP: 00007fff7388e3c0 R08: 00007fe861fa8700 R09: 00007fe861fa8700 [ 32.587988] R10: 00007fe861fa8700 R11: 0000000000000246 R12: 0000000000000000 [ 32.595223] R13: 00007fff7388e3bf R14: 00007fe861fa89c0 R15: 0000000000000000 [ 32.602470] [ 32.604062] Allocated by task 3247: [ 32.607657] save_stack+0x43/0xd0 [ 32.611075] kasan_kmalloc+0xad/0xe0 [ 32.614755] __kmalloc+0x162/0x760 [ 32.618270] crypto_create_tfm+0x82/0x2e0 [ 32.622387] crypto_alloc_tfm+0x10e/0x2f0 [ 32.626497] crypto_alloc_skcipher+0x2c/0x40 [ 32.630868] crypto_get_default_null_skcipher+0x5f/0x80 [ 32.636195] aead_bind+0x89/0x140 [ 32.639611] alg_bind+0x1ab/0x440 [ 32.643032] SYSC_bind+0x1b4/0x3f0 [ 32.646535] SyS_bind+0x24/0x30 [ 32.649781] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.654506] [ 32.656096] Freed by task 3099: [ 32.659341] save_stack+0x43/0xd0 [ 32.662759] kasan_slab_free+0x71/0xc0 [ 32.666620] kfree+0xca/0x250 [ 32.669690] kzfree+0x28/0x30 [ 32.672759] crypto_destroy_tfm+0x140/0x2e0 [ 32.677047] crypto_put_default_null_skcipher+0x35/0x60 [ 32.682376] aead_sock_destruct+0x13c/0x220 [ 32.686660] __sk_destruct+0xfd/0x910 [ 32.690424] sk_destruct+0x47/0x80 [ 32.693937] __sk_free+0x57/0x230 [ 32.697353] sk_free+0x2a/0x40 [ 32.700515] af_alg_release+0x5d/0x70 [ 32.704280] sock_release+0x8d/0x1e0 [ 32.707958] sock_close+0x16/0x20 [ 32.711376] __fput+0x333/0x7f0 [ 32.714619] ____fput+0x15/0x20 [ 32.717867] task_work_run+0x199/0x270 [ 32.721717] do_exit+0x9bb/0x1ae0 [ 32.725133] do_group_exit+0x149/0x400 [ 32.728986] SyS_exit_group+0x1d/0x20 [ 32.732753] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.737470] [ 32.739063] The buggy address belongs to the object at ffff8801cbc76540 [ 32.739063] which belongs to the cache kmalloc-128 of size 128 [ 32.751683] The buggy address is located 28 bytes inside of [ 32.751683] 128-byte region [ffff8801cbc76540, ffff8801cbc765c0) [ 32.763437] The buggy address belongs to the page: [ 32.768331] page:0000000097417384 count:1 mapcount:0 mapping:00000000b6b4ff7d index:0x0 [ 32.776437] flags: 0x2fffc0000000100(slab) [ 32.780637] raw: 02fffc0000000100 ffff8801cbc76000 0000000000000000 0000000100000015 [ 32.788480] raw: ffffea00072e06e0 ffffea00072c9aa0 ffff8801db000640 0000000000000000 [ 32.796320] page dumped because: kasan: bad access detected [ 32.801992] [ 32.803582] Memory state around the buggy address: [ 32.808474] ffff8801cbc76400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.815796] ffff8801cbc76480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.823125] >ffff8801cbc76500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.830447] ^ [ 32.836641] ffff8801cbc76580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.843960] ffff8801cbc76600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.851281] ================================================================== [ 32.858633] Dumping ftrace buffer: [ 32.862190] (ftrace buffer empty) [ 32.865870] Kernel Offset: disabled [ 32.869470] Rebooting in 86400 seconds..