Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1167411
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | David Rientjes <rientjes@google.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH 3/5] mm/dmapool: allow NULL `pool' pointer in dma_pool_destroy() |
| Date | Thu, 18 Jun 2015 01:30:04 +0200 |
| Message-ID | <pCuWo-7JA-41@gated-at.bofh.it> (permalink) |
| References | <pzqvT-682-7@gated-at.bofh.it> <pzqvT-682-5@gated-at.bofh.it> |
| X-Original-To | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=kYmRg1Ty2OnjKSFmlewrJGVUz42890dtiWuZ9JCmynY=; b=BBewGG5BtGyzJ2ZCAhCxBD6ServqmMHL/6zVbx+t34wvXvghtbTHQ8TUYe1wsjEVBw sCf2e+iEp0RJ947oPEkQ7lqvq0tsAU5l5WYVsSCQhMBBCbHyYEyH1FVWcs/ozF9eewmW xyJpDSBF8HlRj2GSxPf9pK2sZwU2lf2ztMlLB1XSmz7TjbAwcwWifL5KQoo2bvd9hCC3 ewpuivMeS5ueBtnotvBYET0kDqv+c4Kn17wdXSVdzNADNjyD/J9zFlpADG54zhpMD35E Y9q8iMOyI+TsFsPoGr3ZC26eB2CmxydJNQABLtoRy5sCBtwrCeoLhBJSG1iHp48EsklM mf3A== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=kYmRg1Ty2OnjKSFmlewrJGVUz42890dtiWuZ9JCmynY=; b=VXxWjRo3osOaJ4mQxOi/5aBY006DaJLSvoZVaPKTF1PJfhzug8/x44QDgeXgZ755wm V4CFoQXgFDQkt5ZI0P0zLtb8thpYzmCIE/WYPeMIHpqh88HZdsXhb2fXmuKIYp/kPHbD 2HqkVvOViJgFuMmddNtaHur44FfhsMNXsNY+BYMT4wkjAIYxy/yZ0jcsgW2Gz9vRbFRS KH/aQAz3r6tYhK2Id6DLdCTz5VDwTEp0Epf61JtyAaO+MrNPel5Jkeio7L99H7g57lpN OHVYRWZzFlo7OhSoy16+17neXqnexZqGmGxUzi5cV006Eg7essN2y4lJh2ODRlXMc/XR ih2A== |
| X-Gm-Message-State | ALoCoQl1EPaAgvuC2bvpHUlN1HW4Gwfwj6w6LL7kmhnY1mI/ik7+cC7lERXxmEkg8LD4FJGSSdh2 |
| X-Received | by 10.50.66.234 with SMTP id i10mr14571213igt.22.1434583368157; Wed, 17 Jun 2015 16:22:48 -0700 (PDT) |
| X-X-Sender | rientjes@chino.kir.corp.google.com |
| User-Agent | Alpine 2.10 (DEB 1266 2009-07-14) |
| MIME-Version | 1.0 |
| Content-Type | TEXT/PLAIN; charset=US-ASCII |
| 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 | 26 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andrew Morton <akpm@linux-foundation.org>, Minchan Kim <minchan@kernel.org>, Christoph Lameter <cl@linux.com>, Pekka Enberg <penberg@kernel.org>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Michal Hocko <mhocko@suse.cz>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, sergey.senozhatsky.work@gmail.com |
| X-Original-Date | Wed, 17 Jun 2015 16:22:46 -0700 (PDT) |
| X-Original-Message-ID | <alpine.DEB.2.10.1506171621400.8203@chino.kir.corp.google.com> |
| X-Original-References | <1433851493-23685-1-git-send-email-sergey.senozhatsky@gmail.com> <1433851493-23685-4-git-send-email-sergey.senozhatsky@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1167411 |
Show key headers only | View raw
On Tue, 9 Jun 2015, Sergey Senozhatsky wrote: > dma_pool_destroy() does not tolerate a NULL dma_pool pointer > argument and performs a NULL-pointer dereference. This requires > additional attention and effort from developers/reviewers and > forces all dma_pool_destroy() callers to do a NULL check > > if (pool) > dma_pool_destroy(pool); > > Or, otherwise, be invalid dma_pool_destroy() users. > > Tweak dma_pool_destroy() and NULL-check the pointer there. > > Proposed by Andrew Morton. > > Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> > Reported-by: Andrew Morton <akpm@linux-foundation.org> > LKML-reference: https://lkml.org/lkml/2015/6/8/583 Acked-by: David Rientjes <rientjes@google.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
Re: [RFC][PATCH 3/5] mm/dmapool: allow NULL `pool' pointer in dma_pool_destroy() David Rientjes <rientjes@google.com> - 2015-06-18 01:30 +0200
csiph-web