netlink: 17 bytes leftover after parsing attributes in process `syz-executor6'. ================================================================== BUG: KASAN: slab-out-of-bounds in __ext4_check_dir_entry+0x2de/0x320 fs/ext4/dir.c:69 Read of size 2 at addr ffff88018f3fe002 by task syz-executor5/15081 CPU: 1 PID: 15081 Comm: syz-executor5 Not tainted 4.16.0-rc7+ #9 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23c/0x360 mm/kasan/report.c:412 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report.c:431 __ext4_check_dir_entry+0x2de/0x320 fs/ext4/dir.c:69 ext4_readdir+0xd00/0x3600 fs/ext4/dir.c:237 iterate_dir+0x1ca/0x530 fs/readdir.c:51 SYSC_getdents64 fs/readdir.c:314 [inline] SyS_getdents64+0x221/0x420 fs/readdir.c:295 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x454e79 RSP: 002b:00007f7fb067fc68 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f7fb06806d4 RCX: 0000000000454e79 RDX: 00000000200015fc RSI: 0000000020001540 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000000a9 R14: 00000000006f3078 R15: 0000000000000000 Allocated by task 13731: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:552 __do_kmalloc mm/slab.c:3706 [inline] __kmalloc+0x162/0x760 mm/slab.c:3715 kmalloc include/linux/slab.h:517 [inline] kzalloc include/linux/slab.h:701 [inline] __register_sysctl_table+0xca/0x10b0 fs/proc/proc_sysctl.c:1298 register_net_sysctl+0x29/0x30 net/sysctl_net.c:120 __devinet_sysctl_register+0x174/0x2b0 net/ipv4/devinet.c:2309 devinet_sysctl_register+0x135/0x1e0 net/ipv4/devinet.c:2349 inetdev_init+0x2b6/0x530 net/ipv4/devinet.c:263 inetdev_event+0xe9e/0x1270 net/ipv4/devinet.c:1456 notifier_call_chain+0x136/0x2c0 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x32/0x70 net/core/dev.c:1707 call_netdevice_notifiers net/core/dev.c:1725 [inline] register_netdevice+0xd40/0x1020 net/core/dev.c:7929 register_netdev+0x1a/0x30 net/core/dev.c:8014 ip6gre_init_net+0x3b1/0x640 net/ipv6/ip6_gre.c:1495 ops_init+0x10a/0x570 net/core/net_namespace.c:118 setup_net+0x351/0x760 net/core/net_namespace.c:302 copy_net_ns+0x238/0x580 net/core/net_namespace.c:426 create_new_namespaces+0x425/0x880 kernel/nsproxy.c:107 copy_namespaces+0x340/0x400 kernel/nsproxy.c:165 copy_process.part.38+0x2380/0x4bd0 kernel/fork.c:1796 copy_process kernel/fork.c:1606 [inline] _do_fork+0x1f7/0xf70 kernel/fork.c:2087 SYSC_clone kernel/fork.c:2194 [inline] SyS_clone+0x37/0x50 kernel/fork.c:2188 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 0: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:520 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:527 __cache_free mm/slab.c:3486 [inline] kfree+0xd9/0x260 mm/slab.c:3801 __rcu_reclaim kernel/rcu/rcu.h:167 [inline] rcu_do_batch kernel/rcu/tree.c:2674 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2933 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2900 [inline] rcu_process_callbacks+0xe94/0x17f0 kernel/rcu/tree.c:2917 __do_softirq+0x2d7/0xb85 kernel/softirq.c:285 The buggy address belongs to the object at ffff88018f3fe240 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 574 bytes to the left of 2048-byte region [ffff88018f3fe240, ffff88018f3fea40) The buggy address belongs to the page: page:ffffea00063cff80 count:1 mapcount:0 mapping:ffff88018f3fe240 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff88018f3fe240 0000000000000000 0000000100000003 raw: ffffea00063cd020 ffffea0006b75b20 ffff8801dac00c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88018f3fdf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88018f3fdf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88018f3fe000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88018f3fe080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88018f3fe100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================