================================================================== BUG: KASAN: slab-out-of-bounds in atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] BUG: KASAN: slab-out-of-bounds in atomic_fetch_add_unless include/linux/atomic-fallback.h:1086 [inline] BUG: KASAN: slab-out-of-bounds in atomic_add_unless include/linux/atomic-fallback.h:1111 [inline] BUG: KASAN: slab-out-of-bounds in atomic_inc_not_zero include/linux/atomic-fallback.h:1127 [inline] BUG: KASAN: slab-out-of-bounds in dst_hold_safe include/net/dst.h:297 [inline] BUG: KASAN: slab-out-of-bounds in ip6_hold_safe+0xad/0x380 net/ipv6/route.c:1071 Read of size 4 at addr ffff88808936205d by task syz-executor.5/29340 CPU: 1 PID: 29340 Comm: syz-executor.5 Not tainted 5.2.0-rc3+ #24 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 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x123/0x190 mm/kasan/generic.c:191 kasan_check_read+0x11/0x20 mm/kasan/common.c:94 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] atomic_fetch_add_unless include/linux/atomic-fallback.h:1086 [inline] atomic_add_unless include/linux/atomic-fallback.h:1111 [inline] atomic_inc_not_zero include/linux/atomic-fallback.h:1127 [inline] dst_hold_safe include/net/dst.h:297 [inline] ip6_hold_safe+0xad/0x380 net/ipv6/route.c:1071 rt6_get_pcpu_route net/ipv6/route.c:1300 [inline] ip6_pol_route+0x2e9/0xf40 net/ipv6/route.c:2051 ip6_pol_route_output+0x54/0x70 net/ipv6/route.c:2227 fib6_rule_lookup+0x279/0x5a0 net/ipv6/fib6_rules.c:120 ip6_route_output_flags+0x2c4/0x350 net/ipv6/route.c:2256 ip6_route_output include/net/ip6_route.h:93 [inline] icmpv6_xrlim_allow+0x11e/0x440 net/ipv6/icmp.c:208 icmp6_send+0x10af/0x1de0 net/ipv6/icmp.c:536 icmpv6_send+0xec/0x230 net/ipv6/ip6_icmp.c:43 ip6_link_failure+0x2b/0x530 net/ipv6/route.c:2390 dst_link_failure include/net/dst.h:416 [inline] vti_xmit net/ipv4/ip_vti.c:243 [inline] vti_tunnel_xmit+0x7d9/0x17a0 net/ipv4/ip_vti.c:279 __netdev_start_xmit include/linux/netdevice.h:4406 [inline] netdev_start_xmit include/linux/netdevice.h:4420 [inline] xmit_one net/core/dev.c:3288 [inline] dev_hard_start_xmit+0x18a/0x950 net/core/dev.c:3304 __dev_queue_xmit+0x2a8e/0x36b0 net/core/dev.c:3877 dev_queue_xmit+0x18/0x20 net/core/dev.c:3910 neigh_direct_output+0x16/0x20 net/core/neighbour.c:1528 neigh_output include/net/neighbour.h:511 [inline] ip6_finish_output2+0x1034/0x2550 net/ipv6/ip6_output.c:116 __ip6_finish_output+0x444/0xaa0 net/ipv6/ip6_output.c:142 ip6_finish_output+0x38/0x1f0 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x235/0x7f0 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:433 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] rawv6_send_hdrinc net/ipv6/raw.c:687 [inline] rawv6_sendmsg+0x1edd/0x35d0 net/ipv6/raw.c:942 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:665 ___sys_sendmsg+0x803/0x920 net/socket.c:2286 __sys_sendmsg+0x105/0x1d0 net/socket.c:2324 __do_sys_sendmsg net/socket.c:2333 [inline] __se_sys_sendmsg net/socket.c:2331 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2331 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459279 Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f30b090ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459279 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f30b090f6d4 R13: 00000000004c6f0e R14: 00000000004dc030 R15: 00000000ffffffff Allocated by task 7792: 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 __do_kmalloc mm/slab.c:3660 [inline] __kmalloc+0x15c/0x740 mm/slab.c:3669 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:742 [inline] tomoyo_commit_ok+0x23/0x80 security/tomoyo/memory.c:76 tomoyo_update_domain+0x59b/0x810 security/tomoyo/domain.c:137 tomoyo_update_path_acl security/tomoyo/file.c:398 [inline] tomoyo_write_file+0x4e7/0x750 security/tomoyo/file.c:1022 tomoyo_write_domain2+0x111/0x1d0 security/tomoyo/common.c:1150 tomoyo_add_entry security/tomoyo/common.c:2040 [inline] tomoyo_supervisor+0xc0b/0xef0 security/tomoyo/common.c:2101 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:1179 vfs_getattr+0x25/0x70 fs/stat.c:115 vfs_statx+0x157/0x200 fs/stat.c:191 vfs_stat include/linux/fs.h:3193 [inline] __do_sys_newstat+0xa4/0x130 fs/stat.c:341 __se_sys_newstat fs/stat.c:337 [inline] __x64_sys_newstat+0x54/0x80 fs/stat.c:337 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff888089362000 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 29 bytes to the right of 64-byte region [ffff888089362000, ffff888089362040) The buggy address belongs to the page: page:ffffea000224d880 refcount:1 mapcount:0 mapping:ffff8880aa400340 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00024b3348 ffffea000290f848 ffff8880aa400340 raw: 0000000000000000 ffff888089362000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888089361f00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff888089361f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888089362000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888089362080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff888089362100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================