(unnamed net_device) (uninitialized): option active_slave: invalid value (lo) (unnamed net_device) (uninitialized): Device lo is not bonding slave (unnamed net_device) (uninitialized): option active_slave: invalid value (lo) bond0: Error: Device is in use and cannot be enslaved ================================================================== 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_serial_worker+0x362/0x400 kernel/padata.c:301 Write of size 8 at addr ffff8880796a6d18 by task kworker/1:2/2553 CPU: 1 PID: 2553 Comm: kworker/1:2 Not tainted 4.14.151 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: pencrypt padata_serial_worker Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x197 lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:435 list_replace include/linux/list.h:141 [inline] list_replace_init include/linux/list.h:149 [inline] padata_serial_worker+0x362/0x400 kernel/padata.c:301 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 15649: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15d/0x7a0 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] tls_push_record+0x10a/0x1210 net/tls/tls_sw.c:250 tls_sw_sendmsg+0x9e8/0x1020 net/tls/tls_sw.c:457 inet_sendmsg+0x122/0x500 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 sock_write_iter+0x21d/0x390 net/socket.c:925 call_write_iter include/linux/fs.h:1777 [inline] do_iter_readv_writev+0x418/0x670 fs/read_write.c:675 do_iter_write fs/read_write.c:954 [inline] do_iter_write+0x154/0x540 fs/read_write.c:935 vfs_writev+0x170/0x2a0 fs/read_write.c:999 do_writev+0x10a/0x2d0 fs/read_write.c:1034 SYSC_writev fs/read_write.c:1107 [inline] SyS_writev+0x28/0x30 fs/read_write.c:1104 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 15649: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 tls_push_record+0xc03/0x1210 net/tls/tls_sw.c:293 tls_sw_sendmsg+0x9e8/0x1020 net/tls/tls_sw.c:457 inet_sendmsg+0x122/0x500 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 sock_write_iter+0x21d/0x390 net/socket.c:925 call_write_iter include/linux/fs.h:1777 [inline] do_iter_readv_writev+0x418/0x670 fs/read_write.c:675 do_iter_write fs/read_write.c:954 [inline] do_iter_write+0x154/0x540 fs/read_write.c:935 vfs_writev+0x170/0x2a0 fs/read_write.c:999 do_writev+0x10a/0x2d0 fs/read_write.c:1034 SYSC_writev fs/read_write.c:1107 [inline] SyS_writev+0x28/0x30 fs/read_write.c:1104 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8880796a6cc0 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 88 bytes inside of 256-byte region [ffff8880796a6cc0, ffff8880796a6dc0) The buggy address belongs to the page: page:ffffea0001e5a980 count:1 mapcount:0 mapping:ffff8880796a6040 index:0x0 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffff8880796a6040 0000000000000000 000000010000000c raw: ffffea00027b7920 ffffea0002a041a0 ffff8880aa8007c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880796a6c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880796a6c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8880796a6d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880796a6d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880796a6e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================