device bond_slave_1 entered promiscuous mode bond0: Enslaving bond_slave_1 as an active interface with an up link bond0: Releasing backup interface bond_slave_1 bond0: the permanent HWaddr of bond_slave_1 - 42:7d:52:c3:83:3c - is still in use by bond0 - set the HWaddr of bond_slave_1 to a different address to avoid conflicts ================================================================== BUG: KASAN: slab-out-of-bounds in batadv_interface_tx+0x160a/0x18b0 net/batman-adv/soft-interface.c:226 Read of size 2 at addr ffff88805efc5acb by task syz-executor0/29615 CPU: 0 PID: 29615 Comm: syz-executor0 Not tainted 4.20.0+ #295 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+0x1d3/0x2c6 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/report.c:443 batadv_interface_tx+0x160a/0x18b0 net/batman-adv/soft-interface.c:226 __netdev_start_xmit include/linux/netdevice.h:4382 [inline] netdev_start_xmit include/linux/netdevice.h:4391 [inline] dev_direct_xmit+0x36c/0x6a0 net/core/dev.c:3930 packet_direct_xmit+0xfb/0x170 net/packet/af_packet.c:246 packet_snd net/packet/af_packet.c:2932 [inline] packet_sendmsg+0x298a/0x6ad0 net/packet/af_packet.c:2957 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 __sys_sendto+0x3d7/0x670 net/socket.c:1788 binder: BINDER_SET_CONTEXT_MGR already set binder: 29587:29596 ioctl 40046207 0 returned -16 binder_alloc: 29587: binder_alloc_buf, no vma __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto net/socket.c:1796 [inline] __ia32_sys_sendto+0xdf/0x1a0 net/socket.c:1796 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 binder: 29587:29588 transaction failed 29189/-3, size 0-0 line 2973 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7ff4849 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5ff00cc EFLAGS: 00000296 ORIG_RAX: 0000000000000171 kobject: 'loop3' (000000006e9e1fe8): kobject_uevent_env RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000180 RDX: 000000000000004c RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kobject: 'loop3' (000000006e9e1fe8): fill_kobj_path: path = '/devices/virtual/block/loop3' Allocated by task 28638: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kmem_cache_alloc_trace+0x152/0x750 mm/slab.c:3620 kmalloc include/linux/slab.h:546 [inline] perf_event_mmap_event kernel/events/core.c:7255 [inline] perf_event_mmap+0x77b/0x1350 kernel/events/core.c:7453 mmap_region+0x48d/0x1cd0 mm/mmap.c:1819 do_mmap+0xa22/0x1230 mm/mmap.c:1559 do_mmap_pgoff include/linux/mm.h:2328 [inline] vm_mmap_pgoff+0x213/0x2c0 mm/util.c:350 ksys_mmap_pgoff+0x4da/0x660 mm/mmap.c:1609 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 binder: 29587:29588 got reply transaction with no transaction stack do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 28638: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3817 perf_event_mmap_event kernel/events/core.c:7335 [inline] perf_event_mmap+0xd4f/0x1350 kernel/events/core.c:7453 mmap_region+0x48d/0x1cd0 mm/mmap.c:1819 do_mmap+0xa22/0x1230 mm/mmap.c:1559 do_mmap_pgoff include/linux/mm.h:2328 [inline] vm_mmap_pgoff+0x213/0x2c0 mm/util.c:350 ksys_mmap_pgoff+0x4da/0x660 mm/mmap.c:1609 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 binder: 29587:29588 transaction failed 29201/-71, size 0-0 line 2741 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88805efc42c0 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 2059 bytes to the right of 4096-byte region [ffff88805efc42c0, ffff88805efc52c0) The buggy address belongs to the page: page:ffffea00017bf100 count:1 mapcount:0 mapping:ffff88812c3f0dc0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00018dd588 ffffea000251c508 ffff88812c3f0dc0 raw: 0000000000000000 ffff88805efc42c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: binder_release_work: 6 callbacks suppressed binder: undelivered TRANSACTION_ERROR: 29190 ffff88805efc5980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805efc5a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805efc5a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805efc5b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805efc5b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc binder: send failed reply for transaction 3867 to 29592:29594 ==================================================================