================================================================== BUG: KASAN: slab-out-of-bounds in ethnl_bitmap32_not_zero net/ethtool/bitset.c:112 [inline] BUG: KASAN: slab-out-of-bounds in ethnl_compact_sanity_checks net/ethtool/bitset.c:529 [inline] BUG: KASAN: slab-out-of-bounds in ethnl_update_bitset32.part.0+0x8db/0x1820 net/ethtool/bitset.c:572 Read of size 4 at addr ffff8880a127d03c by task syz-executor.5/25851 CPU: 1 PID: 25851 Comm: syz-executor.5 Not tainted 5.6.0-rc3-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x32 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:641 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:134 ethnl_bitmap32_not_zero net/ethtool/bitset.c:112 [inline] ethnl_compact_sanity_checks net/ethtool/bitset.c:529 [inline] ethnl_update_bitset32.part.0+0x8db/0x1820 net/ethtool/bitset.c:572 ethnl_update_bitset32 net/ethtool/bitset.c:562 [inline] ethnl_update_bitset+0x4d/0x67 net/ethtool/bitset.c:734 ethnl_update_linkmodes net/ethtool/linkmodes.c:303 [inline] ethnl_set_linkmodes+0x461/0xc30 net/ethtool/linkmodes.c:357 genl_family_rcv_msg_doit net/netlink/genetlink.c:672 [inline] genl_family_rcv_msg net/netlink/genetlink.c:717 [inline] genl_rcv_msg+0x67d/0xea0 net/netlink/genetlink.c:734 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2478 genl_rcv+0x29/0x40 net/netlink/genetlink.c:745 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x59e/0x7e0 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x91c/0xea0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:672 ____sys_sendmsg+0x753/0x880 net/socket.c:2343 ___sys_sendmsg+0x100/0x170 net/socket.c:2397 __sys_sendmsg+0x105/0x1d0 net/socket.c:2430 __do_sys_sendmsg net/socket.c:2439 [inline] __se_sys_sendmsg net/socket.c:2437 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2437 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c449 Code: ad b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f2146309c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f214630a6d4 RCX: 000000000045c449 RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000904 R14: 00000000004d4fb0 R15: 000000000076bf2c Allocated by task 12308: save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:488 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:529 __do_kmalloc_node mm/slab.c:3616 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3630 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:142 __alloc_skb+0x10b/0x5e0 net/core/skbuff.c:210 alloc_skb include/linux/skbuff.h:1081 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:324 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:376 [inline] nsim_dev_trap_report_work+0x25c/0xaf0 drivers/net/netdevsim/dev.c:415 process_one_work+0xa05/0x17a0 kernel/workqueue.c:2264 worker_thread+0x98/0xe40 kernel/workqueue.c:2410 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 12308: save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:476 kasan_slab_free+0xe/0x10 mm/kasan/common.c:485 __cache_free mm/slab.c:3426 [inline] kfree+0x10a/0x2c0 mm/slab.c:3757 skb_free_head+0x93/0xb0 net/core/skbuff.c:590 skb_release_data+0x43c/0x8b0 net/core/skbuff.c:610 skb_release_all+0x4d/0x60 net/core/skbuff.c:664 __kfree_skb net/core/skbuff.c:678 [inline] consume_skb net/core/skbuff.c:837 [inline] consume_skb+0xfb/0x410 net/core/skbuff.c:831 nsim_dev_trap_report drivers/net/netdevsim/dev.c:390 [inline] nsim_dev_trap_report_work+0x7cb/0xaf0 drivers/net/netdevsim/dev.c:415 process_one_work+0xa05/0x17a0 kernel/workqueue.c:2264 worker_thread+0x98/0xe40 kernel/workqueue.c:2410 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff8880a127c000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 60 bytes to the right of 4096-byte region [ffff8880a127c000, ffff8880a127d000) The buggy address belongs to the page: page:ffffea0002849f00 refcount:1 mapcount:0 mapping:ffff8880aa402000 index:0x0 compound_mapcount: 0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea00024a1288 ffffea00026a1f08 ffff8880aa402000 raw: 0000000000000000 ffff8880a127c000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a127cf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a127cf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880a127d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a127d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a127d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================