================================================================== BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x3ba2/0x5490 kernel/locking/lockdep.c:3664 Read of size 8 at addr ffff888093eaa440 by task syz-executor.3/3585 CPU: 1 PID: 3585 Comm: syz-executor.3 Not tainted 5.2.0-rc1+ #1 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:188 __kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 kasan_report+0x12/0x20 mm/kasan/common.c:614 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 __lock_acquire+0x3ba2/0x5490 kernel/locking/lockdep.c:3664 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:4302 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] rhashtable_walk_enter+0xf9/0x390 lib/rhashtable.c:669 __tipc_dump_start+0x1fa/0x3c0 net/tipc/socket.c:3414 tipc_dump_start+0x70/0x90 net/tipc/socket.c:3396 __netlink_dump_start+0x4f8/0x7d0 net/netlink/af_netlink.c:2351 netlink_dump_start include/linux/netlink.h:226 [inline] tipc_sock_diag_handler_dump+0x1d9/0x270 net/tipc/diag.c:91 __sock_diag_cmd net/core/sock_diag.c:232 [inline] sock_diag_rcv_msg+0x319/0x410 net/core/sock_diag.c:263 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2486 sock_diag_rcv+0x2b/0x40 net/core/sock_diag.c:274 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1926 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:671 ___sys_sendmsg+0x803/0x920 net/socket.c:2292 __sys_sendmsg+0x105/0x1d0 net/socket.c:2330 __compat_sys_sendmsg net/compat.c:640 [inline] __do_compat_sys_sendmsg net/compat.c:647 [inline] __se_compat_sys_sendmsg net/compat.c:644 [inline] __ia32_compat_sys_sendmsg+0x7a/0xb0 net/compat.c:644 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x27b/0xd7d arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7feb849 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5de70cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000040 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 8954: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc mm/kasan/common.c:489 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:462 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:503 kmem_cache_alloc_trace+0x151/0x750 mm/slab.c:3555 kmalloc include/linux/slab.h:547 [inline] kzalloc include/linux/slab.h:742 [inline] ipv6_add_addr+0x49d/0x1c10 net/ipv6/addrconf.c:1084 add_addr+0xe9/0x280 net/ipv6/addrconf.c:3084 sit_add_v4_addrs net/ipv6/addrconf.c:3145 [inline] addrconf_sit_config net/ipv6/addrconf.c:3388 [inline] addrconf_notify+0x1554/0x2270 net/ipv6/addrconf.c:3583 notifier_call_chain+0xc2/0x230 kernel/notifier.c:94 __raw_notifier_call_chain kernel/notifier.c:395 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:402 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1753 call_netdevice_notifiers_extack net/core/dev.c:1765 [inline] call_netdevice_notifiers net/core/dev.c:1779 [inline] __dev_notify_flags+0x121/0x2c0 net/core/dev.c:7626 dev_change_flags+0x10d/0x170 net/core/dev.c:7664 do_setlink+0x1615/0x34e0 net/core/rtnetlink.c:2492 __rtnl_newlink+0xbd8/0x16c0 net/core/rtnetlink.c:3124 rtnl_newlink+0x69/0xa0 net/core/rtnetlink.c:3249 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5218 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2486 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5236 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1926 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:671 __sys_sendto+0x262/0x380 net/socket.c:1964 __do_compat_sys_socketcall net/compat.c:769 [inline] __se_compat_sys_socketcall net/compat.c:717 [inline] __ia32_compat_sys_socketcall+0x530/0x710 net/compat.c:717 do_syscall_32_irqs_on arch/x86/entry/common.c:337 [inline] do_fast_syscall_32+0x27b/0xd7d arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 8831: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:451 kasan_slab_free+0xe/0x10 mm/kasan/common.c:459 __cache_free mm/slab.c:3432 [inline] kfree+0xcf/0x220 mm/slab.c:3755 tomoyo_supervisor+0x360/0xef0 security/tomoyo/common.c:2147 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x263/0x360 security/tomoyo/file.c:573 tomoyo_path_perm+0x31d/0x430 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x1d/0x30 security/tomoyo/tomoyo.c:129 security_inode_getattr+0xf2/0x150 security/security.c:1183 vfs_getattr+0x25/0x70 fs/stat.c:115 vfs_statx_fd+0x71/0xc0 fs/stat.c:145 vfs_fstat include/linux/fs.h:3209 [inline] __do_sys_newfstat+0x9b/0x120 fs/stat.c:378 __se_sys_newfstat fs/stat.c:375 [inline] __x64_sys_newfstat+0x54/0x80 fs/stat.c:375 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888093eaa280 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 448 bytes inside of 512-byte region [ffff888093eaa280, ffff888093eaa480) The buggy address belongs to the page: page:ffffea00024faa80 refcount:1 mapcount:0 mapping:ffff8880aa400940 index:0xffff888093eaac80 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00026b2c08 ffffea000197c688 ffff8880aa400940 raw: ffff888093eaac80 ffff888093eaa000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888093eaa300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888093eaa380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888093eaa400: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888093eaa480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888093eaa500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================