bridge0: port 2(bridge_slave_1) entered blocking state bridge0: port 2(bridge_slave_1) entered forwarding state bridge0: port 1(bridge_slave_0) entered blocking state bridge0: port 1(bridge_slave_0) entered forwarding state ================================================================== BUG: KASAN: use-after-free in list_replace include/linux/list.h:140 [inline] BUG: KASAN: use-after-free in list_replace_init include/linux/list.h:148 [inline] BUG: KASAN: use-after-free in padata_parallel_worker+0x633/0x660 kernel/padata.c:74 Write of size 8 at addr ffff88006b4cf718 by task kworker/0:1/553 CPU: 0 PID: 553 Comm: kworker/0:1 Not tainted 4.14.0-rc1+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 Workqueue: pencrypt padata_parallel_worker Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x145/0x1e1 lib/dump_stack.c:52 print_address_description.cold.7+0x9/0x1c9 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.8+0x121/0x2da mm/kasan/report.c:409 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:435 list_replace include/linux/list.h:140 [inline] list_replace_init include/linux/list.h:148 [inline] padata_parallel_worker+0x633/0x660 kernel/padata.c:74 process_one_work+0x9f7/0x1a80 kernel/workqueue.c:2119 worker_thread+0x215/0x1820 kernel/workqueue.c:2253 kthread+0x376/0x440 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 Allocated by task 6509: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x14e/0x7b0 mm/slab.c:3734 kmalloc include/linux/slab.h:498 [inline] tls_do_encryption net/tls/tls_sw.c:222 [inline] tls_push_record+0x6b8/0x12d0 net/tls/tls_sw.c:264 tls_sw_push_pending_record+0xe/0x10 net/tls/tls_sw.c:292 tls_handle_open_record net/tls/tls_main.c:133 [inline] tls_sk_proto_close+0x5bc/0x980 net/tls/tls_main.c:221 inet_release+0xd9/0x1c0 net/ipv4/af_inet.c:425 inet6_release+0x46/0x60 net/ipv6/af_inet6.c:433 sock_release+0x83/0x190 net/socket.c:597 sock_close+0xd/0x20 net/socket.c:1126 __fput+0x2db/0x910 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0x15e/0x240 kernel/task_work.c:112 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x216/0x280 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath+0x341/0x400 arch/x86/entry/common.c:266 entry_SYSCALL_64_fastpath+0xc0/0xc2 Freed by task 6509: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 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 __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x270 mm/slab.c:3820 tls_do_encryption net/tls/tls_sw.c:238 [inline] tls_push_record+0x9ae/0x12d0 net/tls/tls_sw.c:264 tls_sw_push_pending_record+0xe/0x10 net/tls/tls_sw.c:292 tls_handle_open_record net/tls/tls_main.c:133 [inline] tls_sk_proto_close+0x5bc/0x980 net/tls/tls_main.c:221 inet_release+0xd9/0x1c0 net/ipv4/af_inet.c:425 inet6_release+0x46/0x60 net/ipv6/af_inet6.c:433 sock_release+0x83/0x190 net/socket.c:597 sock_close+0xd/0x20 net/socket.c:1126 __fput+0x2db/0x910 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0x15e/0x240 kernel/task_work.c:112 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x216/0x280 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath+0x341/0x400 arch/x86/entry/common.c:266 entry_SYSCALL_64_fastpath+0xc0/0xc2 The buggy address belongs to the object at ffff88006b4cf6c0 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 88 bytes inside of 1024-byte region [ffff88006b4cf6c0, ffff88006b4cfac0) The buggy address belongs to the page: page:ffffea0001ad3380 count:1 mapcount:0 mapping:ffff88006b4ce040 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff88006b4ce040 0000000000000000 0000000100000007 raw: ffffea00017c1620 ffffea0001a465a0 ffff88006c000ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88006b4cf600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88006b4cf680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff88006b4cf700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88006b4cf780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88006b4cf800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================