Linux block layer
 help / color / mirror / Atom feed
From: Paolo Valente <paolo.valente@linaro.org>
To: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Cc: linux-block <linux-block@vger.kernel.org>,
	Jens Axboe <axboe@kernel.dk>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block: bfq: swap puts in bfqg_and_blkg_put
Date: Thu, 6 Sep 2018 19:30:47 +0200	[thread overview]
Message-ID: <7EF3FD34-C48D-4612-BAEE-18E6EAEED1CE@linaro.org> (raw)
In-Reply-To: <153622114435.533797.15694137158197822778.stgit@buzz>



> Il giorno 06 set 2018, alle ore 10:05, Konstantin Khlebnikov =
<khlebnikov@yandex-team.ru> ha scritto:
>=20
> Fix trivial use-after-free. This could be last reference to bfqg.
>=20

Acked-by: Paolo Valente <paolo.valente@linaro.org>

> Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
> Fixes: 8f9bebc33dd7 ("block, bfq: access and cache blkg data only when =
safe")
> ---
> block/bfq-cgroup.c |    4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c
> index 58c6efa9f9a9..9fe5952d117d 100644
> --- a/block/bfq-cgroup.c
> +++ b/block/bfq-cgroup.c
> @@ -275,9 +275,9 @@ static void bfqg_and_blkg_get(struct bfq_group =
*bfqg)
>=20
> void bfqg_and_blkg_put(struct bfq_group *bfqg)
> {
> -	bfqg_put(bfqg);
> -
> 	blkg_put(bfqg_to_blkg(bfqg));
> +
> +	bfqg_put(bfqg);
> }
>=20
> /* @stats =3D 0 */
>=20

  reply	other threads:[~2018-09-06 17:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-06  8:05 [PATCH] block: bfq: swap puts in bfqg_and_blkg_put Konstantin Khlebnikov
2018-09-06 17:30 ` Paolo Valente [this message]
2018-09-06 17:33 ` 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=7EF3FD34-C48D-4612-BAEE-18E6EAEED1CE@linaro.org \
    --to=paolo.valente@linaro.org \
    --cc=axboe@kernel.dk \
    --cc=khlebnikov@yandex-team.ru \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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