From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966897AbcCPPhD (ORCPT ); Wed, 16 Mar 2016 11:37:03 -0400 Received: from www.linutronix.de ([62.245.132.108]:55949 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966831AbcCPPhB (ORCPT ); Wed, 16 Mar 2016 11:37:01 -0400 Date: Wed, 16 Mar 2016 16:35:34 +0100 (CET) From: Thomas Gleixner To: Baozeng Ding cc: linux-kernel@vger.kernel.org, Red Hat Product Security Subject: Re: kernel/irq: Null-ptr deref on handle_irq_event_percpu function In-Reply-To: <56e974ff.878b420a.91092.ffffda23@mx.google.com> Message-ID: References: <56cdb3b9.8d45620a.4e20d.ffffb6ef@mx.google.com> <56e974ff.878b420a.91092.ffffda23@mx.google.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Mar 2016, Baozeng Ding wrote: > +linux-kernel and irq maitainer. > > On Thu, Feb 25, 2016 at 04:16:10AM -0500, Red Hat Product Security wrote: > > > > > > I cannot produce the bug, but by taking a look at the > > > code(irq/handle.c line176), it may > > > casue a null pointer deref: > > > > > > http://lxr.free-electrons.com/source/kernel/irq/handle.c#L176 That's the upstream code which is different from what you are pasting. > > > 174 retval |= res; > > > 175 action = action->next; > > > 176 } while (action); //when action is null, it will > > > //cause a null pointer deref. That lacks upstream commit 570540d507 or stable 4.4.y commit 827685a637 Thanks, tglx