Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160713

Re: [PATCH 3/8] cfq-iosched: fix oom cfq_queue ref leak in cfq_set_request()

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Jeff Moyer <jmoyer@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 3/8] cfq-iosched: fix oom cfq_queue ref leak in cfq_set_request()
Date Mon, 08 Jun 2015 21:00:02 +0200
Message-ID <pzar8-7tD-9@gated-at.bofh.it> (permalink)
References <pz14t-1Vl-9@gated-at.bofh.it> <pz1ea-2mm-31@gated-at.bofh.it>
X-Original-To Tejun Heo <tj@kernel.org>
X-PGP-Keyid 1F78E1B4
X-PGP-Certkey F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4
X-Pcloadletter What the f**k does that mean?
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version 1.0
Content-Type text/plain
X-Scanned-By MIMEDefang 2.68 on 10.5.11.22
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 21
Organization linux.* mail to news gateway
X-Original-Cc axboe@kernel.dk, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, vgoyal@redhat.com, avanzini.arianna@gmail.com
X-Original-Date Mon, 08 Jun 2015 14:51:39 -0400
X-Original-Message-ID <x49mw0ahw3o.fsf@segfault.boston.devel.redhat.com>
X-Original-References <1433753973-23684-1-git-send-email-tj@kernel.org> <1433753973-23684-4-git-send-email-tj@kernel.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1160713

Show key headers only | View raw


Tejun Heo <tj@kernel.org> writes:

> If the cfq_queue cached in cfq_io_cq is the oom one, cfq_set_request()
> replaces it by invoking cfq_get_queue() again without putting the oom
> queue leaking the reference it was holding.  While oom queues are not
> released through reference counting, they're still reference counted
> and this can theoretically lead to the reference count overflowing and
> incorrectly invoke the usual release path on it.
>
> Fix it by making cfq_set_request() put the ref it was holding.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Cc: Arianna Avanzini <avanzini.arianna@gmail.com>

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 3/8] cfq-iosched: fix oom cfq_queue ref leak in cfq_set_request() Jeff Moyer <jmoyer@redhat.com> - 2015-06-08 21:00 +0200

csiph-web