================================================================== 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:42 [inline] BUG: KASAN: slab-out-of-bounds in check_net include/net/net_namespace.h:236 [inline] BUG: KASAN: slab-out-of-bounds in rds_destroy_pending net/rds/rds.h:897 [inline] BUG: KASAN: slab-out-of-bounds in rds_cong_queue_updates+0x255/0x590 net/rds/cong.c:226 Read of size 4 at addr ffff8801b6d58144 by task syz-executor1/30736 CPU: 1 PID: 30736 Comm: syz-executor1 Not tainted 4.17.0+ #84 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+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 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] refcount_read include/linux/refcount.h:42 [inline] check_net include/net/net_namespace.h:236 [inline] rds_destroy_pending net/rds/rds.h:897 [inline] rds_cong_queue_updates+0x255/0x590 net/rds/cong.c:226 rds_recv_rcvbuf_delta.part.3+0x2b9/0x350 net/rds/recv.c:118 rds_recv_rcvbuf_delta net/rds/recv.c:377 [inline] rds_recv_incoming+0x83f/0x1300 net/rds/recv.c:377 rds_loop_xmit+0x16a/0x340 net/rds/loop.c:82 rds_send_xmit+0x131b/0x2990 net/rds/send.c:355 rds_sendmsg+0x228d/0x2a30 net/rds/send.c:1243 sock_sendmsg_nosec net/socket.c:645 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:655 __sys_sendto+0x3d7/0x670 net/socket.c:1833 __do_sys_sendto net/socket.c:1845 [inline] __se_sys_sendto net/socket.c:1841 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1841 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455b29 Code: 1d ba 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f0b892cfc68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f0b892d06d4 RCX: 0000000000455b29 RDX: 0000000000000481 RSI: 0000000020f7db7f RDI: 0000000000000013 RBP: 000000000072bea0 R08: 000000002069affb R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c0eac R14: 00000000004d0c28 R15: 0000000000000000 Allocated by task 17248: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3554 mempool_alloc_slab+0x44/0x60 mm/mempool.c:504 mempool_alloc+0x18b/0x490 mm/mempool.c:384 bvec_alloc+0x12a/0x2d0 block/bio.c:216 bio_alloc_bioset+0x455/0x6d0 block/bio.c:507 bio_alloc include/linux/bio.h:438 [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+0xb09/0x1565 fs/ext4/page-io.c:506 mpage_submit_page+0x15d/0x270 fs/ext4/inode.c:2209 mpage_process_page_bufs+0x50c/0x600 fs/ext4/inode.c:2320 mpage_prepare_extent_to_map+0x8fb/0x1100 fs/ext4/inode.c:2682 ext4_writepages+0x13ff/0x4030 fs/ext4/inode.c:2809 do_writepages+0x9a/0x1a0 mm/page-writeback.c:2341 __writeback_single_inode+0x1e4/0x15c0 fs/fs-writeback.c:1323 writeback_sb_inodes+0x6f0/0x11a0 fs/fs-writeback.c:1587 __writeback_inodes_wb+0x1b0/0x320 fs/fs-writeback.c:1656 wb_writeback+0x9e4/0xf50 fs/fs-writeback.c:1765 wb_check_old_data_flush fs/fs-writeback.c:1867 [inline] wb_do_writeback fs/fs-writeback.c:1920 [inline] wb_workfn+0xf93/0x1740 fs/fs-writeback.c:1949 process_one_work+0xc64/0x1b70 kernel/workqueue.c:2153 worker_thread+0x181/0x13a0 kernel/workqueue.c:2296 kthread+0x345/0x410 kernel/kthread.c:240 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 Freed by task 2224: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 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/0x2d0 mm/slab.c:3756 mempool_free_slab+0x1d/0x30 mm/mempool.c:511 mempool_free+0xed/0x370 mm/mempool.c:493 bvec_free+0xa8/0xd0 block/bio.c:171 bio_free+0xbb/0x150 block/bio.c:257 bio_put+0x17d/0x1f0 block/bio.c:559 ext4_end_bio+0x197/0x6d0 fs/ext4/page-io.c:343 bio_endio+0x51c/0x9c0 block/bio.c:1836 req_bio_endio block/blk-core.c:281 [inline] blk_update_request+0x3aa/0xcb0 block/blk-core.c:3091 scsi_end_request+0xd3/0x870 drivers/scsi/scsi_lib.c:672 scsi_io_completion+0xcb2/0x1db0 drivers/scsi/scsi_lib.c:898 scsi_finish_command+0x542/0x8d0 drivers/scsi/scsi.c:248 scsi_softirq_done+0x3e2/0x4c0 drivers/scsi/scsi_lib.c:1687 __blk_mq_complete_request block/blk-mq.c:583 [inline] blk_mq_complete_request+0x355/0x630 block/blk-mq.c:620 scsi_mq_done+0xe2/0x430 drivers/scsi/scsi_lib.c:1998 virtscsi_complete_cmd+0x573/0x740 drivers/scsi/virtio_scsi.c:207 virtscsi_vq_done+0xc3/0x170 drivers/scsi/virtio_scsi.c:223 virtscsi_req_done+0xa7/0xd0 drivers/scsi/virtio_scsi.c:238 vring_interrupt+0x128/0x170 drivers/virtio/virtio_ring.c:950 __handle_irq_event_percpu+0x1c0/0xad0 kernel/irq/handle.c:149 handle_irq_event_percpu+0x98/0x1c0 kernel/irq/handle.c:189 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 The buggy address belongs to the object at ffff8801b6d59640 which belongs to the cache biovec-max of size 8192 The buggy address is located 5372 bytes to the left of 8192-byte region [ffff8801b6d59640, ffff8801b6d5b640) The buggy address belongs to the page: page:ffffea0006db5600 count:1 mapcount:0 mapping:ffff8801d7f96940 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea000667a308 ffffea00070d0a08 ffff8801d7f96940 raw: 0000000000000000 ffff8801b6d59640 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801b6d58000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801b6d58080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801b6d58100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801b6d58180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801b6d58200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================