Linux block layer
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	Paolo Valente <paolo.valente@linaro.org>
Subject: Re: [GIT PULL for-6.3] Block updates for 6.3
Date: Tue, 21 Feb 2023 17:03:49 -0700	[thread overview]
Message-ID: <9a048f21-1938-084d-b328-8a345bd20263@kernel.dk> (raw)
In-Reply-To: <CAHk-=wiLu7VRyPUpthiV6qMJp1eN3n_wD+vAroDsnDZq05QsLA@mail.gmail.com>

On 2/20/23 3:52 PM, Linus Torvalds wrote:
> On Thu, Feb 16, 2023 at 6:54 PM Jens Axboe <axboe@kernel.dk> wrote:
>>
>> I've pushed a merged branch here:
>>
>> https://git.kernel.dk/cgit/linux-block/log/?h=for-6.3/block-merged
> 
> Hmm. I do verify against suggested merges after doing my own (even
> when your suggested merge was then made stale by another later
> addition), and I think your merge was wrong wrt bfq_sync_bfqq_move(),
> which in your version does the bfq_release_process_ref() before doing
> the bic_set_bfqq().
> 
> IOW, I think your merge essentially dropped one of the fixes in commit
> b600de2d7d3a ("block, bfq: fix uaf for bfqq in bic_set_bfqq()").
> 
> Maybe there were reasons why that ordering wasn't required any more,
> but it looks funky (and you appear to have correctly merged the other
> case in bfq_check_ioprio_change()).
> 
> Anyway, this is just a nit-picky email saying that I'm pretty sure
> I've done the merge right, but since it doesn't match what you did, I
> thought I'd mention it.
> 
> Worth double-checking this, in other words. I realize you're mostly
> afk this week, so whenever you're back.

I'll double check it. The merge doesn't end up touching any of
bfq_sync_bfqq_move(), just conflicting with:

bfq_check_ioprio_change(), where the release ordering should be upheld,
and

__bfq_bic_change_cgroup(), where it's still done after assigning the
async_bfqq.

I'll double check tomorrow...

-- 
Jens Axboe



  parent reply	other threads:[~2023-02-22  0:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17  2:54 [GIT PULL for-6.3] Block updates for 6.3 Jens Axboe
2023-02-17 19:23 ` Jens Axboe
2023-02-20 23:00   ` pr-tracker-bot
2023-02-20 22:52 ` Linus Torvalds
2023-02-21  6:39   ` Yu Kuai
2023-02-21  8:29     ` [PATCH] block, bfq: free 'sync_bfqq' after bic_set_bfqq() in bfq_sync_bfqq_move() Yu Kuai
2023-02-21  9:14       ` Damien Le Moal
2023-02-21  9:35         ` Yu Kuai
2023-02-22  0:04       ` Jens Axboe
2023-02-22  0:03   ` Jens Axboe [this message]
2023-02-22  1:07     ` [GIT PULL for-6.3] Block updates for 6.3 Linus Torvalds
2023-02-22  3:48       ` Jens Axboe
2023-02-20 23:00 ` pr-tracker-bot

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=9a048f21-1938-084d-b328-8a345bd20263@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=paolo.valente@linaro.org \
    --cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox