================================================================== BUG: KASAN: slab-out-of-bounds in atomic_read include/asm-generic/atomic-instrumented.h:26 [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:254 [inline] BUG: KASAN: slab-out-of-bounds in rds_destroy_pending net/rds/rds.h:951 [inline] BUG: KASAN: slab-out-of-bounds in rds_cong_queue_updates+0x209/0x4d0 net/rds/cong.c:229 Read of size 4 at addr ffff8880907dc084 by task syz-executor.3/3129 IPVS: ftp: loaded support on port[0] = 21 CPU: 1 PID: 3129 Comm: syz-executor.3 Not tainted 5.0.0+ #9 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:26 [inline] refcount_read include/linux/refcount.h:43 [inline] check_net include/net/net_namespace.h:254 [inline] rds_destroy_pending net/rds/rds.h:951 [inline] rds_cong_queue_updates+0x209/0x4d0 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+0x29b4/0x3540 net/rds/send.c:1369 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:632 __sys_sendto+0x262/0x380 net/socket.c:1809 IPVS: ftp: loaded support on port[0] = 21 __do_sys_sendto net/socket.c:1821 [inline] __se_sys_sendto net/socket.c:1817 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1817 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457f29 Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f94cc3eac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000457f29 RDX: 0000000000000481 RSI: 0000000020000a00 RDI: 0000000000000009 RBP: 000000000073bf00 R08: 000000002069affb R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f94cc3eb6d4 R13: 00000000004c5651 R14: 00000000004d9588 R15: 00000000ffffffff Allocated by task 7137: 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 mempool_alloc_slab+0x47/0x60 mm/mempool.c:505 mempool_alloc+0x16b/0x380 mm/mempool.c:385 bvec_alloc+0xe0/0x2f0 block/bio.c:218 bio_alloc_bioset+0x470/0x680 block/bio.c:509 bio_alloc include/linux/bio.h:393 [inline] io_submit_init_bio fs/ext4/page-io.c:374 [inline] io_submit_add_bh fs/ext4/page-io.c:399 [inline] ext4_bio_write_page+0xbb9/0x136e fs/ext4/page-io.c:506 mpage_submit_page+0x15a/0x270 fs/ext4/inode.c:2237 mpage_map_and_submit_buffers+0x4d8/0x840 fs/ext4/inode.c:2434 mpage_map_and_submit_extent fs/ext4/inode.c:2572 [inline] ext4_writepages+0x1f1e/0x3540 fs/ext4/inode.c:2885 do_writepages+0xfc/0x2a0 mm/page-writeback.c:2335 __filemap_fdatawrite_range+0x26d/0x340 mm/filemap.c:411 file_write_and_wait_range+0x9a/0x100 mm/filemap.c:730 __generic_file_fsync+0x79/0x200 fs/libfs.c:977 ext4_sync_file+0x867/0x14d0 fs/ext4/fsync.c:120 vfs_fsync_range+0x144/0x230 fs/sync.c:197 generic_write_sync include/linux/fs.h:2793 [inline] ext4_file_write_iter+0x699/0x1160 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1869 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x613/0x8e0 fs/read_write.c:487 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3077: 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 mempool_free_slab+0x1e/0x30 mm/mempool.c:512 mempool_free+0xed/0x380 mm/mempool.c:494 bvec_free+0xa6/0xc0 block/bio.c:173 bio_free+0x236/0x430 block/bio.c:259 bio_put+0xda/0x110 block/bio.c:561 ext4_end_bio+0x198/0x6a0 fs/ext4/page-io.c:343 bio_endio+0x5f8/0xad0 block/bio.c:1793 req_bio_endio block/blk-core.c:196 [inline] blk_update_request+0x317/0xb50 block/blk-core.c:1458 scsi_end_request+0x82/0x8d0 drivers/scsi/scsi_lib.c:587 scsi_io_completion+0x259/0x1820 drivers/scsi/scsi_lib.c:994 scsi_finish_command+0x3ba/0x670 drivers/scsi/scsi.c:248 scsi_softirq_done+0x344/0x3e0 drivers/scsi/scsi_lib.c:1500 blk_done_softirq+0x304/0x4d0 block/blk-softirq.c:37 __do_softirq+0x266/0x95a kernel/softirq.c:293 The buggy address belongs to the object at ffff8880907dd2c0 which belongs to the cache biovec-max of size 8192 The buggy address is located 4668 bytes to the left of 8192-byte region [ffff8880907dd2c0, ffff8880907df2c0) The buggy address belongs to the page: page:ffffea000241f700 count:1 mapcount:0 mapping:ffff8880a9870840 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea000241f608 ffffea0001b70c08 ffff8880a9870840 raw: 0000000000000000 ffff8880907dd2c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880907dbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880907dc000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880907dc080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880907dc100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880907dc180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================