netlink: 4 bytes leftover after parsing attributes in process `syz-executor1'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor1'. ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:179 [inline] BUG: KASAN: use-after-free in rhashtable_last_table+0x216/0x240 lib/rhashtable.c:217 Read of size 8 at addr ffff8801380412c0 by task kworker/1:2/15186 CPU: 1 PID: 15186 Comm: kworker/1:2 Not tainted 4.19.0+ #164 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events rht_deferred_worker Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __read_once_size include/linux/compiler.h:179 [inline] rhashtable_last_table+0x216/0x240 lib/rhashtable.c:217 rht_deferred_worker+0x157/0x1de0 lib/rhashtable.c:410 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:350 Allocated by task 12094: 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 __do_kmalloc_node mm/slab.c:3684 [inline] __kmalloc_node+0x50/0x70 mm/slab.c:3691 kmalloc_node include/linux/slab.h:589 [inline] kvmalloc_node+0xb9/0xf0 mm/util.c:416 kvmalloc include/linux/mm.h:577 [inline] kvzalloc include/linux/mm.h:585 [inline] bucket_table_alloc+0x9a/0x4e0 lib/rhashtable.c:176 rhashtable_rehash_alloc+0x75/0x100 lib/rhashtable.c:353 rht_deferred_worker+0x278/0x1de0 lib/rhashtable.c:413 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:350 Freed by task 11381: 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 kvfree+0x61/0x70 mm/util.c:445 bucket_table_free+0xda/0x250 lib/rhashtable.c:108 rhashtable_free_and_destroy+0x152/0x900 lib/rhashtable.c:1163 inet_frags_exit_net+0x3d/0x50 net/ipv4/inet_fragment.c:96 ipv4_frags_exit_net+0x73/0x90 net/ipv4/ip_fragment.c:915 ops_exit_list.isra.5+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x555/0xb10 net/core/net_namespace.c:551 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:350 The buggy address belongs to the object at ffff880138041280 which belongs to the cache kmalloc-64k of size 65536 The buggy address is located 64 bytes inside of 65536-byte region [ffff880138041280, ffff880138051280) The buggy address belongs to the page: page:ffffea0004e01000 count:1 mapcount:0 mapping:ffff8801da802500 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea00064ea808 ffffea000667c808 ffff8801da802500 raw: 0000000000000000 ffff880138041280 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff880138041180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880138041200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff880138041280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880138041300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880138041380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================