bisecting fixing commit since e109a984cf380b4b80418b7477c970bfeb428325 building syzkaller on bfb4a51e30c8c04658a2675333b9b89a9d327c4a testing commit e109a984cf380b4b80418b7477c970bfeb428325 with gcc (GCC) 8.1.0 kernel signature: 87dc1e51fcfa8cee35558880734902b891a534f564c02a2c18bf341b6a717b38 all runs: crashed: KASAN: use-after-free Read in tls_write_space testing current HEAD dda0e2920330128e0dbdeb11c8f25031aa40b11c testing commit dda0e2920330128e0dbdeb11c8f25031aa40b11c with gcc (GCC) 8.1.0 kernel signature: 26204b93b9a22b33813571f1259ed33ee06060f0df0dc0dc0f6fb671306c9e09 run #0: crashed: WARNING in static_key_slow_dec run #1: crashed: WARNING in static_key_slow_dec run #2: crashed: WARNING in corrupted run #3: crashed: WARNING in corrupted run #4: crashed: WARNING in static_key_slow_dec run #5: crashed: WARNING in corrupted run #6: OK run #7: OK run #8: OK run #9: OK revisions tested: 2, total time: 29m56.540776582s (build: 16m18.362832032s, test: 12m42.524355021s) the crash still happens on HEAD commit msg: Linux 4.19.114 crash: WARNING in corrupted RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb21d15d6d4 R13: 00000000004c8efa R14: 00000000004dfbc8 R15: 0000000000000004 CPU: 0 PID: 10673 Comm: syz-executor.4 Not tainted 4.19.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 WARNING: CPU: 1 PID: 10660 at kernel/jump_label.c:195 __static_key_slow_dec_cpuslocked+0xd2/0xf0 kernel/jump_label.c:194 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x123/0x177 lib/dump_stack.c:118 Kernel panic - not syncing: panic_on_warn set ... fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0x13 lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x70/0x770 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] gcmaes_encrypt.constprop.15+0x630/0xda0 arch/x86/crypto/aesni-intel_glue.c:952 generic_gcmaes_encrypt+0xfd/0x150 arch/x86/crypto/aesni-intel_glue.c:1297 crypto_aead_encrypt include/crypto/aead.h:335 [inline] gcmaes_wrapper_encrypt+0x109/0x180 arch/x86/crypto/aesni-intel_glue.c:1130 crypto_aead_encrypt include/crypto/aead.h:335 [inline] tls_do_encryption net/tls/tls_sw.c:193 [inline] tls_push_record+0x966/0x1720 net/tls/tls_sw.c:228 tls_sw_sendmsg+0x92d/0x1020 net/tls/tls_sw.c:427 inet_sendmsg+0x108/0x440 net/ipv4/af_inet.c:798 smc_sendmsg+0x223/0x320 net/smc/af_smc.c:1487 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 sock_write_iter+0x215/0x420 net/socket.c:901 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x443/0x890 fs/read_write.c:487 vfs_write+0x150/0x4d0 fs/read_write.c:549 ksys_write+0x103/0x260 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:608 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fba8db89c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fba8db89c90 RCX: 0000000000459279 RDX: 000000000000fdef RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fba8db8a6d4 R13: 00000000004c8efa R14: 00000000004dfbc8 R15: 0000000000000004 CPU: 1 PID: 10660 Comm: syz-executor.1 Not tainted 4.19.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x123/0x177 lib/dump_stack.c:118 panic+0x1cd/0x375 kernel/panic.c:186 __warn.cold.8+0x1b/0x3e kernel/panic.c:541 report_bug+0x1a4/0x200 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x200/0x350 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1037 RIP: 0010:__static_key_slow_dec_cpuslocked+0xd2/0xf0 kernel/jump_label.c:194 Code: b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 1d 8b 03 85 c0 0f 89 75 ff ff ff 48 c7 c7 c0 23 d1 86 e8 31 39 c1 ff <0f> 0b e9 62 ff ff ff 48 89 df e8 6f 1d 19 00 eb d9 e8 88 1d 19 00 RSP: 0018:ffff888097ba7c78 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff8a6000e0 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffffffff86ff2920 RDI: ffffffff89a816a0 RBP: ffff888097ba7c90 R08: ffffed1015d65079 R09: ffffed1015d65078 R10: ffffed1015d65078 R11: ffff8880aeb283c7 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888095d51330 R15: ffff888095d512c0 __static_key_slow_dec kernel/jump_label.c:213 [inline] static_key_slow_dec+0x4c/0x80 kernel/jump_label.c:227 clean_acked_data_disable+0x14/0x50 net/ipv4/tcp_input.c:128 tls_set_device_offload+0x9ec/0xd10 net/tls/tls_device.c:854 do_tls_setsockopt_conf net/tls/tls_main.c:472 [inline] do_tls_setsockopt net/tls/tls_main.c:525 [inline] tls_setsockopt+0x23c/0x630 net/tls/tls_main.c:544 sock_common_setsockopt+0x73/0xf0 net/core/sock.c:3049 smc_setsockopt+0xbc/0x640 net/smc/af_smc.c:1652 __sys_setsockopt+0x13e/0x210 net/socket.c:1901 __do_sys_setsockopt net/socket.c:1912 [inline] __se_sys_setsockopt net/socket.c:1909 [inline] __x64_sys_setsockopt+0xb9/0x150 net/socket.c:1909 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fdd84d59c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000459279 RDX: 0000000000000001 RSI: 000000000000011a RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000028 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000246 R12: 00007fdd84d5a6d4 R13: 00000000004c7593 R14: 00000000004dcb38 R15: 00000000ffffffff CPU: 0 PID: 10667 Comm: syz-executor.5 Not tainted 4.19.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x123/0x177 lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0x5/0x13 lib/fault-inject.c:149 __should_failslab+0xba/0xf0 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x70/0x770 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] gcmaes_encrypt.constprop.15+0x630/0xda0 arch/x86/crypto/aesni-intel_glue.c:952 generic_gcmaes_encrypt+0xfd/0x150 arch/x86/crypto/aesni-intel_glue.c:1297 crypto_aead_encrypt include/crypto/aead.h:335 [inline] gcmaes_wrapper_encrypt+0x109/0x180 arch/x86/crypto/aesni-intel_glue.c:1130 crypto_aead_encrypt include/crypto/aead.h:335 [inline] tls_do_encryption net/tls/tls_sw.c:193 [inline] tls_push_record+0x966/0x1720 net/tls/tls_sw.c:228 tls_sw_sendmsg+0x92d/0x1020 net/tls/tls_sw.c:427 inet_sendmsg+0x108/0x440 net/ipv4/af_inet.c:798 smc_sendmsg+0x223/0x320 net/smc/af_smc.c:1487 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 sock_write_iter+0x215/0x420 net/socket.c:901 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x443/0x890 fs/read_write.c:487 vfs_write+0x150/0x4d0 fs/read_write.c:549 ksys_write+0x103/0x260 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write fs/read_write.c:608 [inline] __x64_sys_write+0x6e/0xb0 fs/read_write.c:608 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007faccc7b5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007faccc7b5c90 RCX: 0000000000459279 RDX: 000000000000fdef RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007faccc7b66d4 R13: 00000000004c8efa R14: 00000000004dfbc8 R15: 0000000000000004 Kernel Offset: disabled Rebooting in 86400 seconds..