device eql entered promiscuous mode ================================================================== BUG: KASAN: slab-out-of-bounds in cap_inode_getsecurity+0x621/0x7d0 security/commoncap.c:408 Read of size 4 at addr ffff8801d5d1c4c0 by task syz-executor6/10792 CPU: 0 PID: 10792 Comm: syz-executor6 Not tainted 4.15.0-rc6+ #245 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/0x257 lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x25b/0x340 mm/kasan/report.c:409 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:429 cap_inode_getsecurity+0x621/0x7d0 security/commoncap.c:408 security_inode_getsecurity+0xcd/0x110 security/security.c:809 xattr_getsecurity+0xd3/0x1f0 fs/xattr.c:244 vfs_getxattr+0xc8/0x110 fs/xattr.c:333 getxattr+0x116/0x2a0 fs/xattr.c:540 path_getxattr+0xed/0x170 fs/xattr.c:568 SYSC_getxattr fs/xattr.c:580 [inline] SyS_getxattr+0x33/0x40 fs/xattr.c:577 entry_SYSCALL_64_fastpath+0x23/0x9a RIP: 0033:0x452ac9 RSP: 002b:00007fb179f52c58 EFLAGS: 00000212 ORIG_RAX: 00000000000000bf RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452ac9 RDX: 0000000020227f74 RSI: 0000000020b29f57 RDI: 000000002072d000 RBP: 0000000000000059 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000008c R11: 0000000000000212 R12: 00000000006ee8f8 R13: 00000000ffffffff R14: 00007fb179f536d4 R15: 0000000000000000 Allocated by task 10792: 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:551 __do_kmalloc mm/slab.c:3708 [inline] __kmalloc_track_caller+0x15e/0x760 mm/slab.c:3723 __do_krealloc mm/slab_common.c:1407 [inline] krealloc+0x65/0xc0 mm/slab_common.c:1454 vfs_getxattr_alloc+0x177/0x270 fs/xattr.c:290 cap_inode_getsecurity+0xfa/0x7d0 security/commoncap.c:399 security_inode_getsecurity+0xcd/0x110 security/security.c:809 xattr_getsecurity+0xd3/0x1f0 fs/xattr.c:244 vfs_getxattr+0xc8/0x110 fs/xattr.c:333 getxattr+0x116/0x2a0 fs/xattr.c:540 path_getxattr+0xed/0x170 fs/xattr.c:568 SYSC_getxattr fs/xattr.c:580 [inline] SyS_getxattr+0x33/0x40 fs/xattr.c:577 entry_SYSCALL_64_fastpath+0x23/0x9a Freed by task 7740: save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3488 [inline] kfree+0xd6/0x260 mm/slab.c:3803 dccp_feat_val_destructor+0xd2/0xf0 net/dccp/feat.c:388 dccp_feat_entry_destructor.part.5+0x40/0x60 net/dccp/feat.c:417 dccp_feat_entry_destructor net/dccp/feat.c:416 [inline] dccp_feat_list_purge+0xc2/0x1e0 net/dccp/feat.c:549 dccp_destroy_sock+0x2f4/0x3f0 net/dccp/proto.c:236 dccp_v6_destroy_sock+0x15/0x20 net/dccp/ipv6.c:1017 inet_csk_destroy_sock+0x166/0x3f0 net/ipv4/inet_connection_sock.c:832 dccp_close+0x853/0xc20 net/dccp/proto.c:1079 inet_release+0xed/0x1c0 net/ipv4/af_inet.c:426 inet6_release+0x50/0x70 net/ipv6/af_inet6.c:432 sock_release+0x8d/0x1e0 net/socket.c:600 SYSC_socketpair net/socket.c:1401 [inline] SyS_socketpair+0x481/0x6f0 net/socket.c:1346 entry_SYSCALL_64_fastpath+0x23/0x9a The buggy address belongs to the object at ffff8801d5d1c4c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes inside of 32-byte region [ffff8801d5d1c4c0, ffff8801d5d1c4e0) The buggy address belongs to the page: page:00000000621dd969 count:1 mapcount:0 mapping:000000003124b32b index:0xffff8801d5d1cfc1 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801d5d1c000 ffff8801d5d1cfc1 000000010000003b raw: ffffea0007254720 ffffea0007578460 ffff8801dac001c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d5d1c380: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8801d5d1c400: 00 00 01 fc fc fc fc fc fb fb fb fb fc fc fc fc >ffff8801d5d1c480: fb fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc ^ ffff8801d5d1c500: 00 00 01 fc fc fc fc fc fb fb fb fb fc fc fc fc ffff8801d5d1c580: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================