All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Yang Xiuwei <yangxiuwei@kylinos.cn>
Cc: Jens Axboe <axboe@kernel.dk>,
	"Martin K . Petersen" <mkp@kernel.org>,
	Christian Brauner <brauner@kernel.org>,
	Christoph Hellwig <hch@lst.de>,
	linux-block@vger.kernel.org
Subject: Re: [PATCH] block: reject polled dio with user integrity metadata
Date: Wed, 23 Sep 2026 16:39:37 +0200	[thread overview]
Message-ID: <20260923143937.GA28622@lst.de> (raw)
In-Reply-To: <20260923093732.1504291-1-yangxiuwei@kylinos.cn>

On Wed, Sep 23, 2026 at 05:37:32PM +0800, Yang Xiuwei wrote:
> IOCB_HAS_METADATA leaves iocb->private as a uio_meta, while
> iocb_bio_iopoll() expects a bio. Since 2729a60bbfb9, metadata I/O
> always uses __blkdev_direct_IO(), which never publishes the bio for
> polling, so IOPOLL calls bio_poll() on the uio_meta.
> 
> Reproducer: io_uring IOPOLL plus a PI attribute on an integrity device
> (scsi_debug dif=1 dix=1). KASAN reports:

Can you add a reproducer for this to blktests?


  parent reply	other threads:[~2026-09-23 14:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23  9:37 [PATCH] block: reject polled dio with user integrity metadata Yang Xiuwei
2026-09-23 11:20 ` Jens Axboe
2026-09-23 14:39 ` Christoph Hellwig [this message]
2026-09-24  0:35   ` Yang Xiuwei

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=20260923143937.GA28622@lst.de \
    --to=hch@lst.de \
    --cc=axboe@kernel.dk \
    --cc=brauner@kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=mkp@kernel.org \
    --cc=yangxiuwei@kylinos.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.