================================================================== BUG: KASAN: slab-out-of-bounds in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: slab-out-of-bounds in atomic_fetch_add_unless include/linux/atomic.h:575 [inline] BUG: KASAN: slab-out-of-bounds in atomic_add_unless include/linux/atomic.h:597 [inline] BUG: KASAN: slab-out-of-bounds in dst_hold_safe include/net/dst.h:308 [inline] BUG: KASAN: slab-out-of-bounds in ip6_hold_safe+0xca/0x620 net/ipv6/route.c:1021 Read of size 4 at addr ffff88809fc85a44 by task syz-executor0/31488 CPU: 0 PID: 31488 Comm: syz-executor0 Not tainted 4.20.0+ #3 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+0x1db/0x2d0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256 IPVS: ftp: loaded support on port[0] = 21 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x123/0x190 mm/kasan/kasan.c:267 kasan_check_read+0x11/0x20 mm/kasan/kasan.c:272 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] atomic_fetch_add_unless include/linux/atomic.h:575 [inline] atomic_add_unless include/linux/atomic.h:597 [inline] dst_hold_safe include/net/dst.h:308 [inline] ip6_hold_safe+0xca/0x620 net/ipv6/route.c:1021 netlink: 60 bytes leftover after parsing attributes in process `syz-executor2'. rt6_get_pcpu_route net/ipv6/route.c:1241 [inline] ip6_pol_route+0x3a3/0x1490 net/ipv6/route.c:1890 ip6_pol_route_output+0x54/0x70 net/ipv6/route.c:2066 fib6_rule_lookup+0x12f/0x870 net/ipv6/fib6_rules.c:118 ip6_route_output_flags+0x2c4/0x350 net/ipv6/route.c:2095 ip6_route_output include/net/ip6_route.h:88 [inline] ip6_dst_lookup_tail+0xe18/0x1d50 net/ipv6/ip6_output.c:958 ip6_dst_lookup_flow+0xca/0x270 net/ipv6/ip6_output.c:1086 ip6_sk_dst_lookup_flow net/ipv6/ip6_output.c:1124 [inline] ip6_sk_dst_lookup_flow+0x5d6/0xbf0 net/ipv6/ip6_output.c:1114 udpv6_sendmsg+0x20d7/0x3550 net/ipv6/udp.c:1441 inet_sendmsg+0x1af/0x740 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 ___sys_sendmsg+0x7ec/0x910 net/socket.c:2116 __sys_sendmsg+0x112/0x270 net/socket.c:2154 __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457ec9 Code: 6d 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 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007faea4280c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9 RDX: 0000000000000000 RSI: 0000000020002b80 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007faea42816d4 R13: 00000000004c52f9 R14: 00000000004d8d58 R15: 00000000ffffffff Allocated by task 9010: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x700 mm/slab.c:3554 shmem_alloc_inode+0x1c/0x50 mm/shmem.c:3542 alloc_inode+0x66/0x190 fs/inode.c:210 new_inode_pseudo+0x71/0x1b0 fs/inode.c:906 new_inode+0x1f/0x40 fs/inode.c:935 shmem_get_inode+0xe1/0x8d0 mm/shmem.c:2146 shmem_symlink+0xfd/0x920 mm/shmem.c:3000 vfs_symlink fs/namei.c:4126 [inline] vfs_symlink+0x378/0x5d0 fs/namei.c:4112 do_symlinkat+0x239/0x2c0 fs/namei.c:4153 __do_sys_symlink fs/namei.c:4172 [inline] __se_sys_symlink fs/namei.c:4170 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4170 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 31000: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x260 mm/slab.c:3760 shmem_destroy_callback+0x6e/0xc0 mm/shmem.c:3553 __rcu_reclaim kernel/rcu/rcu.h:240 [inline] rcu_do_batch kernel/rcu/tree.c:2452 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2773 [inline] rcu_process_callbacks+0xc4a/0x1680 kernel/rcu/tree.c:2754 __do_softirq+0x30b/0xb11 kernel/softirq.c:292 The buggy address belongs to the object at ffff88809fc85560 which belongs to the cache shmem_inode_cache of size 1184 The buggy address is located 68 bytes to the right of 1184-byte region [ffff88809fc85560, ffff88809fc85a00) The buggy address belongs to the page: page:ffffea00027f2140 count:1 mapcount:0 mapping:ffff88821b67b980 index:0xffff88809fc85ffd flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002422288 ffffea000237b1c8 ffff88821b67b980 raw: ffff88809fc85ffd ffff88809fc85040 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809fc85900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88809fc85980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88809fc85a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809fc85a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809fc85b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================