Re: [bug report] fio failed with --fixedbufs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, will test the patch and feedback result.

Ming Lei <ming.lei@xxxxxxxxxx> 于2024年11月11日周一 15:50写道:
>
> Hi Guangwu,
>
> On Mon, Nov 11, 2024 at 03:20:22PM +0800, Guangwu Zhang wrote:
> > Hi,
> >
> > Get the fio error like below, please have a look if something wrong  here,
> > can not reproduce it if remove "--fixedbufs".
> >
> > Kernel repo: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
> > Commit: 51b3526f50cf5526b73d06bd44a0f5e3f936fb01
> >
>
> The issue should be fixed by the following patch:
>
> diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c
> index e7723759cb23..401c861ebc8e 100644
> --- a/io_uring/uring_cmd.c
> +++ b/io_uring/uring_cmd.c
> @@ -221,6 +221,7 @@ int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
>                 struct io_ring_ctx *ctx = req->ctx;
>                 struct io_rsrc_node *node;
>
> +               req->buf_index = READ_ONCE(sqe->buf_index);
>                 node = io_rsrc_node_lookup(&ctx->buf_table, req->buf_index);
>                 if (unlikely(!node))
>                         return -EFAULT;
>
>
>
> Thanks,
> Ming
>


-- 
Guangwu Zhang
Thanks






[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux