================================================================== BUG: KASAN: slab-out-of-bounds in atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] BUG: KASAN: slab-out-of-bounds in refcount_read include/linux/refcount.h:43 [inline] BUG: KASAN: slab-out-of-bounds in check_net include/net/net_namespace.h:250 [inline] BUG: KASAN: slab-out-of-bounds in rds_destroy_pending net/rds/rds.h:941 [inline] BUG: KASAN: slab-out-of-bounds in rds_cong_queue_updates+0x1ff/0x4c0 net/rds/cong.c:229 Read of size 4 at addr ffff88808676c244 by task syz-executor.2/29204 CPU: 0 PID: 29204 Comm: syz-executor.2 Not tainted 5.0.0-rc8 #88 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:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 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:100 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] refcount_read include/linux/refcount.h:43 [inline] check_net include/net/net_namespace.h:250 [inline] rds_destroy_pending net/rds/rds.h:941 [inline] rds_cong_queue_updates+0x1ff/0x4c0 net/rds/cong.c:229 rds_recv_rcvbuf_delta.part.0+0x34f/0x3f0 net/rds/recv.c:118 rds_recv_rcvbuf_delta net/rds/recv.c:379 [inline] rds_recv_incoming+0x789/0x11f0 net/rds/recv.c:379 rds_loop_xmit+0xf3/0x2a0 net/rds/loop.c:96 rds_send_xmit+0x1113/0x2560 net/rds/send.c:355 rds_sendmsg+0x280a/0x3450 net/rds/send.c:1368 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 __sys_sendto+0x262/0x380 net/socket.c:1786 __do_sys_sendto net/socket.c:1798 [inline] __se_sys_sendto net/socket.c:1794 [inline] __ia32_sys_sendto+0xdf/0x1a0 net/socket.c:1794 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fc2869 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:00000000f5dbe0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000171 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 0000000020000a00 RDX: 0000000000000481 RSI: 0000000000000000 RDI: 000000002069affb RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 29115: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:503 slab_post_alloc_hook mm/slab.h:440 [inline] slab_alloc mm/slab.c:3388 [inline] kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3548 getname_flags fs/namei.c:140 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:129 getname fs/namei.c:211 [inline] user_path_create fs/namei.c:3693 [inline] do_symlinkat+0xe1/0x290 fs/namei.c:4146 __do_sys_symlink fs/namei.c:4172 [inline] __se_sys_symlink fs/namei.c:4170 [inline] __ia32_sys_symlink+0x57/0x80 fs/namei.c:4170 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 29115: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:457 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 __cache_free mm/slab.c:3494 [inline] kmem_cache_free+0x86/0x260 mm/slab.c:3754 putname+0xef/0x130 fs/namei.c:261 filename_create+0x26f/0x4f0 fs/namei.c:3658 user_path_create fs/namei.c:3693 [inline] do_symlinkat+0xf3/0x290 fs/namei.c:4146 __do_sys_symlink fs/namei.c:4172 [inline] __se_sys_symlink fs/namei.c:4170 [inline] __ia32_sys_symlink+0x57/0x80 fs/namei.c:4170 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 The buggy address belongs to the object at ffff88808676c740 which belongs to the cache names_cache of size 4096 The buggy address is located 1276 bytes to the left of 4096-byte region [ffff88808676c740, ffff88808676d740) The buggy address belongs to the page: page:ffffea000219db00 count:1 mapcount:0 mapping:ffff88812c291180 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001e65a88 ffffea00013a1308 ffff88812c291180 raw: 0000000000000000 ffff88808676c740 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808676c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808676c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808676c200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808676c280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808676c300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================