bisecting fixing commit since 414510bc00a5fc954d8340c170083f518d09aa55 building syzkaller on a60cb4cd840ce786236a00480e8bb1025e0c5fef testing commit 414510bc00a5fc954d8340c170083f518d09aa55 with gcc (GCC) 8.1.0 kernel signature: 07b684de7feaa655efe51ac00b9ac99582584bf90a7c3317e71252065a1a65d3 run #0: crashed: KASAN: use-after-free Write in padata_parallel_worker run #1: crashed: KASAN: use-after-free Write in padata_parallel_worker run #2: crashed: KASAN: use-after-free Write in padata_parallel_worker run #3: crashed: KASAN: use-after-free Write in padata_parallel_worker run #4: crashed: BUG: unable to handle kernel paging request in corrupted run #5: crashed: BUG: unable to handle kernel run #6: crashed: KASAN: use-after-free Write in padata_parallel_worker run #7: crashed: KASAN: use-after-free Write in padata_parallel_worker run #8: crashed: KASAN: use-after-free Write in padata_parallel_worker run #9: crashed: BUG: unable to handle kernel testing current HEAD 4520f06b03ae667e442da1ab9351fd28cd7ac598 testing commit 4520f06b03ae667e442da1ab9351fd28cd7ac598 with gcc (GCC) 8.1.0 kernel signature: e6b5802593bddb2a583577bf1a54c03f69f1edcad3077fd46a0cf608f49d3a43 run #0: crashed: KASAN: use-after-free in gcmaes_encrypt.constprop.14 run #1: crashed: KASAN: use-after-free Write in padata_parallel_worker run #2: crashed: KASAN: use-after-free Write in padata_parallel_worker run #3: crashed: KASAN: use-after-free Write in padata_parallel_worker run #4: crashed: BUG: unable to handle kernel run #5: crashed: BUG: unable to handle kernel paging request in corrupted run #6: crashed: KASAN: use-after-free Write in padata_parallel_worker run #7: crashed: KASAN: use-after-free Write in padata_parallel_worker run #8: crashed: BUG: unable to handle kernel paging request in corrupted run #9: crashed: BUG: unable to handle kernel revisions tested: 2, total time: 23m7.444541822s (build: 16m10.657423527s, test: 5m59.275962048s) the crash still happens on HEAD commit msg: Linux 4.14.175 crash: BUG: unable to handle kernel bridge0: port 1(bridge_slave_0) entered forwarding state IPv6: ADDRCONF(NETDEV_UP): veth1_to_bridge: link is not ready TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. IPv6: ADDRCONF(NETDEV_UP): bridge0: link is not ready ================================================================== BUG: unable to handle kernel BUG: KASAN: use-after-free in list_replace include/linux/list.h:141 [inline] BUG: KASAN: use-after-free in list_replace_init include/linux/list.h:149 [inline] BUG: KASAN: use-after-free in padata_parallel_worker+0x37a/0x420 kernel/padata.c:76 paging request at ffffffffffffffc8 Write of size 8 at addr ffff8880a86c3318 by task kworker/0:0/3 IP: crypto_aead_encrypt include/crypto/aead.h:330 [inline] IP: pcrypt_aead_enc+0x7b/0xf0 crypto/pcrypt.c:142 PGD 786d067 CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.14.175-syzkaller #0 P4D 786d067 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 PUD 786f067 Workqueue: pencrypt padata_parallel_worker PMD 0 Call Trace: Oops: 0000 [#1] PREEMPT SMP KASAN Modules linked in: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 CPU: 1 PID: 23 Comm: kworker/1:1 Not tainted 4.14.175-syzkaller #0 print_address_description.cold.7+0x9/0x1c9 mm/kasan/report.c:252 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: pencrypt padata_parallel_worker kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.8+0x11a/0x2d3 mm/kasan/report.c:409 task: ffff8880a9e42600 task.stack: ffff8880a9e50000 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:435 RIP: 0010:crypto_aead_encrypt include/crypto/aead.h:330 [inline] RIP: 0010:pcrypt_aead_enc+0x7b/0xf0 crypto/pcrypt.c:142 list_replace include/linux/list.h:141 [inline] list_replace_init include/linux/list.h:149 [inline] padata_parallel_worker+0x37a/0x420 kernel/padata.c:76 RSP: 0018:ffff8880a9e57c90 EFLAGS: 00010246 process_one_work+0x79e/0x16c0 kernel/workqueue.c:2116 RAX: dffffc0000000000 RBX: ffff8880a93fd210 RCX: ffffffff82b09a8e RDX: 1ffffffffffffff9 RSI: 0000000000000008 RDI: ffff8880a93fd248 worker_thread+0xcc/0xee0 kernel/workqueue.c:2250 RBP: ffff8880a9e57cb0 R08: 0000000000000001 R09: 0000000000000000 kthread+0x338/0x400 kernel/kthread.c:232 R10: 0000000000000050 R11: ffff8880a9e42600 R12: 0000000000000000 R13: ffff8880a93fd248 R14: ffff8880a9e57cf8 R15: 1ffff110153caf9b FS: 0000000000000000(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffc8 CR3: 00000000929f3000 CR4: 00000000001406e0 Allocated by task 7026: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 Call Trace: set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:551 padata_parallel_worker+0x24e/0x420 kernel/padata.c:87 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15b/0x7b0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] tls_push_record+0xf6/0x14c0 net/tls/tls_sw.c:250 process_one_work+0x79e/0x16c0 kernel/workqueue.c:2116 tls_sw_sendmsg+0x90b/0x10a0 net/tls/tls_sw.c:457 inet_sendmsg+0x108/0x440 net/ipv4/af_inet.c:762 worker_thread+0xcc/0xee0 kernel/workqueue.c:2250 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:656 kthread+0x338/0x400 kernel/kthread.c:232 SYSC_sendto+0x1e3/0x2c0 net/socket.c:1763 SyS_sendto+0x9/0x10 net/socket.c:1731 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Code: Freed by task 7026: 00 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 0f save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524 85 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 82 tls_push_record+0xd32/0x14c0 net/tls/tls_sw.c:293 00 tls_sw_sendmsg+0x90b/0x10a0 net/tls/tls_sw.c:457 00 inet_sendmsg+0x108/0x440 net/ipv4/af_inet.c:762 00 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:656 48 SYSC_sendto+0x1e3/0x2c0 net/socket.c:1763 b8 SyS_sendto+0x9/0x10 net/socket.c:1731 00 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 00 entry_SYSCALL_64_after_hwframe+0x42/0xb7 00 00 00 The buggy address belongs to the object at ffff8880a86c32c0 which belongs to the cache kmalloc-256 of size 256 fc The buggy address is located 88 bytes inside of 256-byte region [ffff8880a86c32c0, ffff8880a86c33c0) ff The buggy address belongs to the page: df page:ffffea0002a1b0c0 count:1 mapcount:0 mapping:ffff8880a86c3040 index:0x0 4d 8b flags: 0x1fffc0000000100(slab) 64 raw: 01fffc0000000100 ffff8880a86c3040 0000000000000000 000000010000000c 24 raw: ffffea00027cb3e0 ffffea0002515520 ffff8880aa8007c0 0000000000000000 38 page dumped because: kasan: bad access detected 49 8d 7c Memory state around the buggy address: 24 ffff8880a86c3200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb c8 ffff8880a86c3280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb 48 >ffff8880a86c3300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb 89 ^ fa ffff8880a86c3380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc 48 ffff8880a86c3400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb c1 ================================================================== ea