From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [PATCH net] sch_sfq: fix null pointer dereference at timer expiration Date: Tue, 28 Nov 2017 09:50:40 -0800 Message-ID: References: <3ae7106da7369ffc1f36c09bdd2778b52d1d488a.1511875582.git.pabeni@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Linux Kernel Network Developers , Jamal Hadi Salim , Jiri Pirko , "David S. Miller" , Kees Cook To: Paolo Abeni Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:34755 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164AbdK1RvC (ORCPT ); Tue, 28 Nov 2017 12:51:02 -0500 Received: by mail-pf0-f196.google.com with SMTP id a90so260224pfk.1 for ; Tue, 28 Nov 2017 09:51:01 -0800 (PST) In-Reply-To: <3ae7106da7369ffc1f36c09bdd2778b52d1d488a.1511875582.git.pabeni@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Nov 28, 2017 at 5:28 AM, Paolo Abeni wrote: > While converting sch_sfq to use timer_setup(), the commit cdeabbb88134 > ("net: sched: Convert timers to use timer_setup()") forgot to > initialize the 'sch' field. As a result, the timer callback tries to > dereference a NULL pointer, and the kernel does oops. > > Fix it initializing such field at qdisc creation time. > > Fixes: cdeabbb88134 ("net: sched: Convert timers to use timer_setup()") > Signed-off-by: Paolo Abeni Acked-by: Cong Wang