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-5,10.128.0.33' (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 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.464980] ================================================================== [ 32.466117] BUG: KASAN: stack-out-of-bounds in sha3_final+0xeb/0x2e0 [ 32.466972] Write of size 4294967174 at addr ffff8801cc307cba by task syzkaller578788/3306 [ 32.468084] [ 32.468319] CPU: 0 PID: 3306 Comm: syzkaller578788 Not tainted 4.14.0+ #128 [ 32.469288] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.470505] Call Trace: [ 32.470864] dump_stack+0x194/0x257 [ 32.471354] ? arch_local_irq_restore+0x53/0x53 [ 32.471977] ? show_regs_print_info+0x65/0x65 [ 32.472580] ? find_held_lock+0x39/0x1d0 [ 32.473123] ? sha3_final+0xeb/0x2e0 [ 32.473627] print_address_description+0x73/0x250 [ 32.474270] ? sha3_final+0xeb/0x2e0 [ 32.474770] kasan_report+0x25b/0x340 [ 32.475284] check_memory_region+0x137/0x190 [ 32.475872] memset+0x23/0x40 [ 32.476295] sha3_final+0xeb/0x2e0 [ 32.476775] ? sha3_512_init+0x20/0x20 [ 32.477300] crypto_shash_final+0xd3/0x1f0 [ 32.477874] shash_finup_unaligned+0x40/0x60 [ 32.478466] crypto_shash_finup+0xc4/0x120 [ 32.479038] hmac_finup+0x182/0x330 [ 32.479524] ? shash_default_import+0x5b/0x80 [ 32.480129] crypto_shash_finup+0xc4/0x120 [ 32.480793] shash_digest_unaligned+0x9e/0xd0 [ 32.481399] crypto_shash_digest+0xc4/0x120 [ 32.481979] hmac_setkey+0x36a/0x690 [ 32.482515] ? hmac_setkey+0x20/0x690 [ 32.483043] crypto_shash_setkey+0xad/0x190 [ 32.483624] shash_async_setkey+0x47/0x60 [ 32.484197] crypto_ahash_setkey+0xaf/0x180 [ 32.484779] hash_setkey+0x40/0x90 [ 32.485270] ? hash_accept_parent+0xd0/0xd0 [ 32.489557] alg_setsockopt+0x2a1/0x350 [ 32.493504] SyS_setsockopt+0x189/0x360 [ 32.497449] ? SyS_recv+0x40/0x40 [ 32.500869] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 32.505686] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.510676] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.515413] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.520136] RIP: 0033:0x445cc9 [ 32.523292] RSP: 002b:00007f3206c54dc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 32.530972] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445cc9 [ 32.538212] RDX: 0000000000000001 RSI: 0000000000000117 RDI: 000000000000003f [ 32.545451] RBP: 0000000000000086 R08: 0000000000000079 R09: 00007f3206c55700 [ 32.552692] R10: 0000000020002000 R11: 0000000000000246 R12: 0000000000000000 [ 32.559928] R13: 00007ffc85b7096f R14: 00007f3206c559c0 R15: 0000000000000000 [ 32.567181] [ 32.568775] The buggy address belongs to the page: [ 32.573677] page:ffffea000730c1c0 count:0 mapcount:0 mapping: (null) index:0x0 [ 32.581784] flags: 0x2fffc0000000000() [ 32.585641] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 32.593487] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 32.601332] page dumped because: kasan: bad access detected [ 32.607004] [ 32.608596] Memory state around the buggy address: [ 32.613488] ffff8801cc307d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.620810] ffff8801cc307e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.628134] >ffff8801cc307e80: f1 f1 f1 f1 04 f2 f2 f2 f2 f2 f2 f2 04 f2 f2 f2 [ 32.635455] ^ [ 32.638786] ffff8801cc307f00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.646107] ffff8801cc307f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.653427] ================================================================== [ 32.660751] Disabling lock debugging due to kernel taint [ 32.666220] Kernel panic - not syncing: panic_on_warn set ... [ 32.666220] [ 32.673549] CPU: 0 PID: 3306 Comm: syzkaller578788 Tainted: G B 4.14.0+ #128 [ 32.681912] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.691234] Call Trace: [ 32.693788] dump_stack+0x194/0x257 [ 32.697380] ? arch_local_irq_restore+0x53/0x53 [ 32.702013] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.706735] ? vsnprintf+0x1ed/0x1900 [ 32.710510] ? sha3_final+0xd0/0x2e0 [ 32.714191] panic+0x1e4/0x41c [ 32.717348] ? refcount_error_report+0x214/0x214 [ 32.722068] ? add_taint+0x1c/0x50 [ 32.725574] ? add_taint+0x1c/0x50 [ 32.729086] ? sha3_final+0xeb/0x2e0 [ 32.732768] kasan_end_report+0x50/0x50 [ 32.736706] kasan_report+0x144/0x340 [ 32.740475] check_memory_region+0x137/0x190 [ 32.744848] memset+0x23/0x40 [ 32.747920] sha3_final+0xeb/0x2e0 [ 32.751429] ? sha3_512_init+0x20/0x20 [ 32.755289] crypto_shash_final+0xd3/0x1f0 [ 32.759493] shash_finup_unaligned+0x40/0x60 [ 32.763868] crypto_shash_finup+0xc4/0x120 [ 32.768067] hmac_finup+0x182/0x330 [ 32.771667] ? shash_default_import+0x5b/0x80 [ 32.776129] crypto_shash_finup+0xc4/0x120 [ 32.780333] shash_digest_unaligned+0x9e/0xd0 [ 32.784794] crypto_shash_digest+0xc4/0x120 [ 32.789080] hmac_setkey+0x36a/0x690 [ 32.792775] ? hmac_setkey+0x20/0x690 [ 32.796542] crypto_shash_setkey+0xad/0x190 [ 32.800829] shash_async_setkey+0x47/0x60 [ 32.804942] crypto_ahash_setkey+0xaf/0x180 [ 32.809229] hash_setkey+0x40/0x90 [ 32.812734] ? hash_accept_parent+0xd0/0xd0 [ 32.817022] alg_setsockopt+0x2a1/0x350 [ 32.820974] SyS_setsockopt+0x189/0x360 [ 32.824918] ? SyS_recv+0x40/0x40 [ 32.828337] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 32.833149] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.838132] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.842856] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.847575] RIP: 0033:0x445cc9 [ 32.850729] RSP: 002b:00007f3206c54dc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 32.858401] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445cc9 [ 32.865643] RDX: 0000000000000001 RSI: 0000000000000117 RDI: 000000000000003f [ 32.872885] RBP: 0000000000000086 R08: 0000000000000079 R09: 00007f3206c55700 [ 32.880119] R10: 0000000020002000 R11: 0000000000000246 R12: 0000000000000000 [ 32.887353] R13: 00007ffc85b7096f R14: 00007f3206c559c0 R15: 0000000000000000 [ 32.894629] Dumping ftrace buffer: [ 32.898137] (ftrace buffer empty) [ 32.901819] Kernel Offset: disabled [ 32.905411] Rebooting in 86400 seconds..