Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5030206imu; Tue, 29 Jan 2019 11:32:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN4PESnZ9fd3zzJYV0zvEqOUDJFrCveOVyHMtkRdSbyh11A5eeIsa8aPfcJ9U5Ru91oyUGrM X-Received: by 2002:a62:3541:: with SMTP id c62mr27314068pfa.19.1548790357447; Tue, 29 Jan 2019 11:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548790357; cv=none; d=google.com; s=arc-20160816; b=gmVc0G29ahD3qlPjpAACwqD0reJkYY28kBjG6yxodIWM/4sq9Q/gmxv9RwqHiPt6+y x6dYRP3h5FrKXKWQeu7vJl4/YLlUzrjVe+RQERhVkkh7YZUbDRoAta6KM4Ilf13hE+on K9vd+XNS2ydhtADGFKGRxZFS4d782QpLKZ/kmSLYwxyPZkYRFraM/3L9bXyD953Xaj9T ojCQcjoR1IO8JR9fwggEeSPVWD2wKl86MjXx4i0Ew9FaerYWA1OxxMrL5sVb6fRub01L wQy22AbTjNeEg6UyyqUkvLmM74Ai89ve+YHYC5ZFhOa5PeYrww4tlVIedRzbx6cNu9n0 RSTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=EhKUDvRDzAYsPQz6/Z6QyeMSvWVJzvVZ7miS5rh0zQM=; b=grFKLjTIbULk5LSXcZTUNsvgukl/w0rFqzV2nnLs95lEFSiN+AELHym8y3VdJXh9Mo 9HSDQoST3pmmtISu81bV2DXjpl3eQ+oIiJBb6olGFnYI65q5/J17gVFocMqT4Jh3b2oO peJddpJ/28YMr29yxPSegiosOoCP/W7wTq9KS7FcmxEPbluyD1ygcscN+MPtf05kXfiB E8AYTXaFa6sBIOlOazAtJNHYhOq1F3yA+C4LDDNYPw0z2BbcFjmId6O4QOftVn562yZF S2NyVB0bdyLGzryai5Zn2Nlcf07tFmaUhFj83JXkbilIDARGrdZjHYBPtEHKQfCMeEF9 qKKA== ARC-Authentication-Results: i=1; mx.google.com; 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 w2si37263987pfg.78.2019.01.29.11.32.22; Tue, 29 Jan 2019 11:32:37 -0800 (PST) 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; 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 S1728971AbfA2Taz (ORCPT + 99 others); Tue, 29 Jan 2019 14:30:55 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:34796 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbfA2Taz (ORCPT ); Tue, 29 Jan 2019 14:30:55 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 6C5531411AC1B; Tue, 29 Jan 2019 11:30:54 -0800 (PST) Date: Tue, 29 Jan 2019 11:30:51 -0800 (PST) Message-Id: <20190129.113051.1765896152662794323.davem@davemloft.net> To: jelsasser@appneta.com Cc: josh@elsasser.ca, ecree@solarflare.com, ktkhai@virtuozzo.com, jiri@mellanox.com, petrm@mellanox.com, edumazet@google.com, amritha.nambiar@intel.com, alexander.h.duyck@intel.com, lirongqing@baidu.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: set default network namespace in init_dummy_netdev() From: David Miller In-Reply-To: <20190126223835.14613-1-jelsasser@appneta.com> References: <20190126223835.14613-1-jelsasser@appneta.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 29 Jan 2019 11:30:54 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Josh Elsasser Date: Sat, 26 Jan 2019 14:38:33 -0800 > Assign a default net namespace to netdevs created by init_dummy_netdev(). > Fixes a NULL pointer dereference caused by busy-polling a socket bound to > an iwlwifi wireless device, which bumps the per-net BUSYPOLLRXPACKETS stat > if napi_poll() received packets: > > BUG: unable to handle kernel NULL pointer dereference at 0000000000000190 > IP: napi_busy_loop+0xd6/0x200 > Call Trace: > sock_poll+0x5e/0x80 > do_sys_poll+0x324/0x5a0 > SyS_poll+0x6c/0xf0 > do_syscall_64+0x6b/0x1f0 > entry_SYSCALL_64_after_hwframe+0x3d/0xa2 > > Fixes: 7db6b048da3b ("net: Commonize busy polling code to focus on napi_id instead of socket") > Signed-off-by: Josh Elsasser Applied and queued up for -stable.