public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Gabriel Krisman Bertazi <krisman@suse.de>
To: Wojciech Lukowicz <wlukowicz01@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>, io-uring@vger.kernel.org
Subject: Re: [PATCH liburing] test/buf-ring: add test for buf ring occupying exactly one page
Date: Mon, 20 Feb 2023 11:45:34 -0300	[thread overview]
Message-ID: <875ybwe6pd.fsf@suse.de> (raw)
In-Reply-To: <20230218184618.70966-1-wlukowicz01@gmail.com> (Wojciech Lukowicz's message of "Sat, 18 Feb 2023 18:46:18 +0000")

Wojciech Lukowicz <wlukowicz01@gmail.com> writes:

> This shows an issue with how the kernel calculates buffer ring sizes
> during their registration.
>
> Allocate two pages, register a buf ring fully occupying the first one,
> while protecting the second one to make sure it's not used. The
> registration should succeed.
>
> mmapping a single page would be a more practical example, but wouldn't
> guarantee the issue gets triggered in case the following page happens
> to be accessible.
>
> Signed-off-by: Wojciech Lukowicz <wlukowicz01@gmail.com>
> ---
> This is a failing test, needs the patch I sent earlier.


Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>


-- 
Gabriel Krisman Bertazi

  reply	other threads:[~2023-02-20 14:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-18 18:46 [PATCH liburing] test/buf-ring: add test for buf ring occupying exactly one page Wojciech Lukowicz
2023-02-20 14:45 ` Gabriel Krisman Bertazi [this message]
2023-02-22 16:54 ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875ybwe6pd.fsf@suse.de \
    --to=krisman@suse.de \
    --cc=axboe@kernel.dk \
    --cc=io-uring@vger.kernel.org \
    --cc=wlukowicz01@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox