Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5370121imm; Tue, 16 Oct 2018 09:12:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60XJGZLWskimvKJwZa6rRNgKFegilE+x+1Ak+LU3OX96Pb4N/ib1BnqcuIVsvbqxUJNQeMj X-Received: by 2002:a17:902:3181:: with SMTP id x1-v6mr21687402plb.71.1539706333150; Tue, 16 Oct 2018 09:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539706333; cv=none; d=google.com; s=arc-20160816; b=TnMN/cL5ZcDge16cXSyMDHcIPSa73AWolMjgRZiDuQ8dgQ1d8sGaME9V7HV7RqSE0O yIUNOmeg8zl857cnKz/5wv3lcZr8bVASqh2ZH7byK2gp6668ItNGjtW6rUp8qVnIeKhz wnddXaiiULe2JVM62t2skDCEa/uRzmjlphLQ7wKnEMF2mGZJ2yIaNkMr2xt8LZrym/I8 rg6Xft/U10jgATM1Lo3kqhgbx/Tcph/f1720guD43K9cIelG6CZItt8wt1UL8YcSs8BT E5J5ONCdJJt/GkB+Omu0A3DBbZyJHrjXxanj20535GaOktqRgUNGom/BL/oWYdFByeRL Safw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5Mm/MJOn5XJiBLVSm5ubAX8tJMt4cH9IfZKbIPWylcI=; b=sYLj5yk2+Nk9wraZQHO9kECaMaocW4iVUFoyelhlce9bo9w4Pg5mq7nmO4FIyoIuO6 V+TCbvC8GI3vCDaD1BtPbgS9f5DQ0KpcJ0j+PoKxJJcXJHoai4dyo+6HQZzp7Ay3/r3K hKH6RJ1gYOT+pF+wAQ6WW8XnwvBXs5YYhX/VGN7u9gHebBiiZC3eDFPH+UupRGqf2fxY I0mGKWFRQTuQLSG5kkOOPcYAMvPdokuQ/Byxxp/POBALH4WwGd3Kc2DSVxPNUXferoO3 Ka6CbbdYdiFnE3VgxQ/ssHHsVM+ZdSOPbCbuGwOYpsc82JZMFbtIHnYMbrEDm+GXchgu 5huQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Q7Jta/Or"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5-v6si14209813pgf.565.2018.10.16.09.11.57; Tue, 16 Oct 2018 09:12:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Q7Jta/Or"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727182AbeJQACk (ORCPT + 99 others); Tue, 16 Oct 2018 20:02:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:35928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbeJQACk (ORCPT ); Tue, 16 Oct 2018 20:02:40 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 51F8B2098A; Tue, 16 Oct 2018 16:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539706291; bh=QzdrCts8yfcaSecW20siOOETay6cRIHLj4hGUToh5LM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q7Jta/OrTIBFRSTD8epenzteNoaETBUJg1+fMH5J840AoBFkNW0rCV9AiXLBM/Xra d/E0nhd+a7/O9/eOzn3BC2KgiERCZDhX6rHHYOgP4dFHpbvJ7pzQ2bdxjvN+iGRP7w kqYewOvqoX31jDkbzVUQyqxhBYq2ovOgFloF5HPQ= Date: Tue, 16 Oct 2018 18:11:29 +0200 From: Greg KH To: "Joel Fernandes (Google)" Cc: stable@vger.kernel.org, Alexandre Torgue , Dan Williams , dmaengine@vger.kernel.org, "moderated list:ARM/STM32 ARCHITECTURE" , linux-kernel@vger.kernel.org, Maxime Coquelin , Vinod Koul Subject: Re: [PATCH 0/7] NULL pointer deref fix for stm32-dma Message-ID: <20181016161129.GB17066@kroah.com> References: <20181009054752.145978-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181009054752.145978-1-joel@joelfernandes.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 08, 2018 at 10:47:45PM -0700, Joel Fernandes (Google) wrote: > Hi Greg, > > While looking at android-4.14, I found a NULL pointer deref with > stm32-dma driver using Coccicheck errors. I found that upstream had a > bunch of patches on stm32-dma that have fixed this and other issues, I > applied these patches cleanly onto Android 4.14. I believe these should > goto stable and flow into Android 4.14 from there, but I haven't tested > this since I have no hardware to do so. > > Atleast I can say that the coccicheck error below goes away when running: > make coccicheck MODE=report > ./drivers/dma/stm32-dma.c:567:18-24: ERROR: chan -> desc is NULL but dereferenced. > > Anyway, please consider this series for 4.14 stable, I have CC'd the > author and others, thanks. > > Pierre Yves MORDRET (7): > dmaengine: stm32-dma: threshold manages with bitfield feature > dmaengine: stm32-dma: fix incomplete configuration in cyclic mode > dmaengine: stm32-dma: fix typo and reported checkpatch warnings > dmaengine: stm32-dma: Improve memory burst management > dmaengine: stm32-dma: fix DMA IRQ status handling > dmaengine: stm32-dma: fix max items per transfer > dmaengine: stm32-dma: properly mask irq bits > > drivers/dma/stm32-dma.c | 287 +++++++++++++++++++++++++++++++++------- > 1 file changed, 240 insertions(+), 47 deletions(-) I need git commit ids for all of these for what the patch in mainline is. Can you fix that up and resend them? thanks, greg k-h