lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9ab231e1-bb3f-9f18-ac17-9dc3b1a35135@gmail.com>
Date:   Tue, 15 Jun 2021 14:02:44 +0100
From:   Pavel Begunkov <asml.silence@...il.com>
To:     Fam Zheng <fam.zheng@...edance.com>, linux-kernel@...r.kernel.org
Cc:     Jens Axboe <axboe@...nel.dk>, io-uring@...r.kernel.org,
        fam@...hon.net
Subject: Re: [PATCH] io_uring: Fix comment of io_get_sqe

On 6/4/21 5:42 PM, Fam Zheng wrote:
> The sqe_ptr argument has been gone since 709b302faddf (io_uring:
> simplify io_get_sqring, 2020-04-08), made the return value of the
> function. Update the comment accordingly.

Reviewed-by: Pavel Begunkov <asml.silence@...il.com>

> 
> Signed-off-by: Fam Zheng <fam.zheng@...edance.com>
> ---
>  fs/io_uring.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/io_uring.c b/fs/io_uring.c
> index 903458afd56c..bb3685ba335d 100644
> --- a/fs/io_uring.c
> +++ b/fs/io_uring.c
> @@ -6670,7 +6670,7 @@ static void io_commit_sqring(struct io_ring_ctx *ctx)
>  }
>  
>  /*
> - * Fetch an sqe, if one is available. Note that sqe_ptr will point to memory
> + * Fetch an sqe, if one is available. Note this returns a pointer to memory
>   * that is mapped by userspace. This means that care needs to be taken to
>   * ensure that reads are stable, as we cannot rely on userspace always
>   * being a good citizen. If members of the sqe are validated and then later
> 

-- 
Pavel Begunkov

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ