================================================================== BUG: KASAN: slab-out-of-bounds in __in_dev_get_rtnl include/linux/inetdevice.h:236 [inline] BUG: KASAN: slab-out-of-bounds in inet_gifconf+0x47e/0x490 net/ipv4/devinet.c:1243 Read of size 8 at addr ffff88804e1e6318 by task syz-executor.4/20519 CPU: 1 PID: 20519 Comm: syz-executor.4 Not tainted 5.6.0-rc1-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_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __in_dev_get_rtnl include/linux/inetdevice.h:236 [inline] inet_gifconf+0x47e/0x490 net/ipv4/devinet.c:1243 dev_ifconf+0xd0/0x230 net/core/dev_ioctl.c:80 sock_do_ioctl+0x260/0x2f0 net/socket.c:1067 sock_ioctl+0x3ed/0x790 net/socket.c:1204 vfs_ioctl fs/ioctl.c:47 [inline] ksys_ioctl+0x123/0x180 fs/ioctl.c:763 __do_sys_ioctl fs/ioctl.c:772 [inline] __se_sys_ioctl fs/ioctl.c:770 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:770 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c6c9 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:00007f94ab6a4c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f94ab6a56d4 RCX: 000000000045c6c9 RDX: 0000000020000040 RSI: 0000001000008912 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000001fe R14: 00000000004c4090 R15: 000000000076bf2c Allocated by task 17035: 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_slab_alloc+0xf/0x20 mm/kasan/common.c:523 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x121/0x710 mm/slab.c:3484 getname_flags fs/namei.c:138 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:128 getname fs/namei.c:209 [inline] user_path_create fs/namei.c:3766 [inline] do_symlinkat+0xe1/0x290 fs/namei.c:4221 __do_sys_symlink fs/namei.c:4247 [inline] __se_sys_symlink fs/namei.c:4245 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4245 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 17035: 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] kmem_cache_free+0x86/0x320 mm/slab.c:3694 putname+0xef/0x130 fs/namei.c:259 filename_create+0x26f/0x4f0 fs/namei.c:3731 user_path_create fs/namei.c:3766 [inline] do_symlinkat+0xf3/0x290 fs/namei.c:4221 __do_sys_symlink fs/namei.c:4247 [inline] __se_sys_symlink fs/namei.c:4245 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4245 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88804e1e6580 which belongs to the cache names_cache of size 4096 The buggy address is located 616 bytes to the left of 4096-byte region [ffff88804e1e6580, ffff88804e1e7580) The buggy address belongs to the page: page:ffffea0001387980 refcount:1 mapcount:0 mapping:ffff8880aa5f8a80 index:0x0 compound_mapcount: 0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0002453208 ffffea000134e908 ffff8880aa5f8a80 raw: 0000000000000000 ffff88804e1e6580 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804e1e6200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804e1e6280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88804e1e6300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88804e1e6380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804e1e6400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================