From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Subject: Re: [PATCH] net: usb: asix: fill null-ptr-deref in asix_suspend Date: Mon, 06 Nov 2017 10:49:17 +0100 Message-ID: <1509961757.2024.21.camel@suse.com> References: <9e768a837391af216cf1d2c8ac08af41f28cb147.1509654127.git.andreyknvl@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Dmitry Vyukov , Kostya Serebryany To: Andrey Konovalov , allan , Colin Ian King , "David S . Miller" , Philippe Reynes , Greg Ungerer , Dean Jenkins , Peter Chen , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org Return-path: In-Reply-To: <9e768a837391af216cf1d2c8ac08af41f28cb147.1509654127.git.andreyknvl@google.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Am Donnerstag, den 02.11.2017, 21:26 +0100 schrieb Andrey Konovalov: > When asix_suspend() is called dev->driver_priv might not have been > assigned a value, so we need to check that it's not NULL. > > Found by syzkaller. Hi, 1. if that happens on suspend, it will also happen on resume 2. Will a device work after that? The appropriate fix may be to wait until the device is properly initialized. Regards Oliver