All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Loic Poulain <loic.poulain@linaro.org>
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH] block: Deny writable memory mapping if block is read-only
Date: Fri, 19 May 2023 20:17:20 -0600	[thread overview]
Message-ID: <168454904056.390379.11320556325676488044.b4-ty@kernel.dk> (raw)
In-Reply-To: <20230510074223.991297-1-loic.poulain@linaro.org>


On Wed, 10 May 2023 09:42:23 +0200, Loic Poulain wrote:
> User should not be able to write block device if it is read-only at
> block level (e.g force_ro attribute). This is ensured in the regular
> fops write operation (blkdev_write_iter) but not when writing via
> user mapping (mmap), allowing user to actually write a read-only
> block device via a PROT_WRITE mapping.
> 
> Example: This can lead to integrity issue of eMMC boot partition
> (e.g mmcblk0boot0) which is read-only by default.
> 
> [...]

Applied, thanks!

[1/1] block: Deny writable memory mapping if block is read-only
      commit: 69baa3a623fd2e58624f24f2f23d46f87b817c93

Best regards,
-- 
Jens Axboe




      parent reply	other threads:[~2023-05-20  2:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-10  7:42 [PATCH] block: Deny writable memory mapping if block is read-only Loic Poulain
2023-05-10 13:27 ` Christoph Hellwig
2023-05-10 14:17   ` Loic Poulain
2023-05-15  9:26     ` Christoph Hellwig
2023-05-15  9:30 ` Christoph Hellwig
2023-05-20  2:17 ` Jens Axboe [this message]

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=168454904056.390379.11320556325676488044.b4-ty@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=loic.poulain@linaro.org \
    /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.