================================================================== BUG: KASAN: slab-out-of-bounds in batadv_interface_tx+0xa24/0x1470 net/batman-adv/soft-interface.c:226 Read of size 2 at addr ffff8880a0fb8ccb by task syz-executor3/16588 CPU: 1 PID: 16588 Comm: syz-executor3 Not tainted 5.0.0-rc5+ #62 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/generic_report.c:145 batadv_interface_tx+0xa24/0x1470 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+0x346/0x640 net/core/dev.c:3930 packet_direct_xmit+0xfb/0x170 net/packet/af_packet.c:246 packet_snd net/packet/af_packet.c:2933 [inline] packet_sendmsg+0x3879/0x5ab0 net/packet/af_packet.c:2958 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 __sys_sendto+0x262/0x380 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto net/socket.c:1796 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1796 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457e39 Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9a19cfcc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000457e39 RDX: 000000000000000e RSI: 0000000020000180 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9a19cfd6d4 R13: 00000000004c550b R14: 00000000004d9390 R15: 00000000ffffffff Allocated by task 1: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:496 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:469 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:504 kmem_cache_alloc_trace+0x151/0x760 mm/slab.c:3609 kmalloc include/linux/slab.h:545 [inline] kzalloc include/linux/slab.h:740 [inline] device_private_init drivers/base/core.c:1826 [inline] device_add+0xfb6/0x1870 drivers/base/core.c:1871 device_create_groups_vargs+0x1fa/0x270 drivers/base/core.c:2555 device_create_vargs drivers/base/core.c:2595 [inline] device_create+0xdf/0x120 drivers/base/core.c:2631 aoechr_init+0x17d/0x1a2 drivers/block/aoe/aoechr.c:303 aoe_init+0x30/0x16c drivers/block/aoe/aoemain.c:48 do_one_initcall+0x109/0x796 init/main.c:888 do_initcall_level init/main.c:956 [inline] do_initcalls init/main.c:964 [inline] do_basic_setup init/main.c:982 [inline] kernel_init_freeable+0x4d5/0x5c4 init/main.c:1135 kernel_init+0x12/0x1c5 init/main.c:1055 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880a0fb8bc0 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 11 bytes to the right of 256-byte region [ffff8880a0fb8bc0, ffff8880a0fb8cc0) The buggy address belongs to the page: page:ffffea000283ee00 count:1 mapcount:0 mapping:ffff88812c3f07c0 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002838848 ffffea0002817a08 ffff88812c3f07c0 raw: 0000000000000000 ffff8880a0fb8080 000000010000000c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a0fb8b80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff8880a0fb8c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a0fb8c80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a0fb8d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a0fb8d80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ==================================================================