Received: by 10.223.164.202 with SMTP id h10csp1593706wrb; Wed, 8 Nov 2017 06:43:41 -0800 (PST) X-Google-Smtp-Source: ABhQp+TvDOsvpGxy3Zq5o7fhUBQP1vEWCK+Cs8Ck5pC9szlVnQPFrojfcAocSPRih8w00NzfL6P/ X-Received: by 10.84.200.39 with SMTP id s36mr671093pld.9.1510152221740; Wed, 08 Nov 2017 06:43:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510152221; cv=none; d=google.com; s=arc-20160816; b=bVREC3otUMSPXfPA0pUzUpvA5kfKFSgZcH5LClzHeatvJvXuUBkfLsqH5Be6Lesz5Z OhA12FujaVeYA6VARD71p8sm6x7VgTKgnjU0OSPi2aiItizwWMf6E9knP8qlikHSyOeJ AJDPgLX3oqmMU64k5CvHa4gFaU0QO6oUGEN/NCYNRpiyJRFicQfphsTsACBufpovemYC Zr7eE4i0kma3XyeywmcGiWeiKQGtidDBALAK5PZ4ohR60zkExlXS6Smx/q1VDD9p+tq5 FJg2ii2Jf8+mPpSWTKOVmJbG7aM6/raFfIY+M1GeYLcZEH9gLss8sSU02FSdIQCc8JHU jOKQ== 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:arc-authentication-results; bh=lqJpSTIIfw1FbUj8Qf0e/lAa2XuiiCsmj2Z2CXmJBsw=; b=wa3bKbx2tL0+d0vLa2u88yuJbb6JihbEXb4cgqGxGf+lxCbL4GL6bVLd4e8ZWS9wxv KXZX8mnMrl3NvHs7wLQQ9amCTJ+WJR30mXsJxGXR6zIWQa1RbpUmDOmHnu6P1soGvBpN ld+Z06DkTFJ768ZGhukPCZLZ7BPQtvu4dEjYX1mGwl/yMK0YOpw5uE4q6ruFcY5DwT4E oAYXNCxM76BIvR4fJvf7RyMVonr7AbXGmHxXpHaTOCrUDZlMHQ8T73lHOo+iMFgp0TN0 3cw0kJkEdpFCoQzcyzhXIu9gt7uiwRiDap8otx776huT90E1tjrf+nTWLxW63sRL7LDX tF+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kk4nUYb8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21si4022022pge.375.2017.11.08.06.43.29; Wed, 08 Nov 2017 06:43:41 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kk4nUYb8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752648AbdKHOle (ORCPT + 82 others); Wed, 8 Nov 2017 09:41:34 -0500 Received: from mail-yw0-f194.google.com ([209.85.161.194]:56898 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750818AbdKHOld (ORCPT ); Wed, 8 Nov 2017 09:41:33 -0500 Received: by mail-yw0-f194.google.com with SMTP id l32so2436799ywh.13 for ; Wed, 08 Nov 2017 06:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lqJpSTIIfw1FbUj8Qf0e/lAa2XuiiCsmj2Z2CXmJBsw=; b=kk4nUYb869Q3/ZSRRnLSZL/W0X1WDJGYntzNmkvt57bzUdH5u7/nAqc6cOtmg1WN59 LNOe6pWTQJFgVnPrGVqdLHhksYtsNCBUo4fEgeoCMlUGnmQDI+f1FqTQoGFOy+5rAjz5 7ZIveOvm9CaVl0FAAXFDeFbx0k9vHScSP2XoaJIFA5cbbuulMNZBaeHUQB9fgoXG17uv S9wmr6eXh/bQTumr8AECR1yqt34cXrD6KXn3WAIJefg/O/Y41zvbth3uJOCbLIap7AtP zEGAcbExBQGcFl7hRsBbdZrQ3ruG5FdqOVxy3hMRQM2uO3BbtcTIVr0YbGtZsa4tr6nO DEQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lqJpSTIIfw1FbUj8Qf0e/lAa2XuiiCsmj2Z2CXmJBsw=; b=rEAHETCOxmPFPNk9raMcXZvUsh7VIUk7djk9J8TXXo/0DgdjaSpIHJCA6RF51d2V7k oC4CZkwRticX0sk7JQJcTLBip284Wz8JFgMJyjYXmzeP4+Jy3iuoM3MWyRuAKWvmgpKJ FGaxQBaR0nji5XHxYb+nc2agGwaMR20LAp3cIBnEWLep1dg+sgGoaOM63H4j42mTaDPu 23W/EIuGSEe7Ho235TZBsNn8av3g9Cf9StkvgFXWM93Zzf36vSFiLfjsJ027oE4UDAuY AbjT+Np+7x/U7SVNYhhMPHOxhPA1WXvdwK9Jj3UMem2fU0f1SeElMjAdVcbvPjMIXx1I n97w== X-Gm-Message-State: AJaThX6tA0+5rGNC+L5oxLPykOC3xQ9ljsRkVcT0OgJfk9HxVlWtubnU Pd1s20HTSU62hP5iaOaepAg= X-Received: by 10.37.172.11 with SMTP id w11mr501575ybi.254.1510152092507; Wed, 08 Nov 2017 06:41:32 -0800 (PST) Received: from sophia ([72.188.97.40]) by smtp.gmail.com with ESMTPSA id s187sm2126287yws.62.2017.11.08.06.41.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 06:41:31 -0800 (PST) Date: Wed, 8 Nov 2017 09:41:25 -0500 From: William Breathitt Gray To: Linus Torvalds Cc: Fengguang Wu , Greg Kroah-Hartman , Linux Kernel Mailing List Subject: Re: [isa_bus_shutdown] ALSA es1688_lib.c:113 ess_reset at 0x220: failed!!! Message-ID: <20171108144125.GA14032@sophia> References: <20171107102522.gr4hptim4toyezfd@wfg-t540p.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 07, 2017 at 09:03:48AM -0800, Linus Torvalds wrote: >On Tue, Nov 7, 2017 at 2:25 AM, Fengguang Wu wrote: >> >> FYI this happens in v4.14-rc8 -- it's not necessarily a new bug. > >Yeah, no it is not new. > >It also likely doesn't matter (I suspect it happens if you try to >force-load crazy modules that don't exist, and ISA doesn't have proper >probing). > >But the code disassembles to > > 0: 8b 50 7c mov 0x7c(%eax),%edx > 3: 83 05 38 86 21 44 01 addl $0x1,X > a:* 8b 4a 0c mov 0xc(%edx),%ecx <-- trapping instruction > d: 83 15 3c 86 21 44 00 adcl $0x0,X+4 > 14: 85 c9 test %ecx,%ecx > >and while I have no idea what that odd addl/adcl is (other than the >obvious "it's a 64-bit increment" - probably some random statistics >due to your config), it looks like the oops is due to > > struct isa_driver *isa_driver = dev->platform_data; > > if (isa_driver->shutdown) > >with isa_driver being NULL (EDX: 00000000). > >So dev->platform_data is NULL, but why that actually happens I don't >know. Some bad ISA device registration that _should_ have failed but >instead got into some half-alive state, I'm sure. > >I'm not sure if anybody cares, but maybe adding a NULL check just to >make the 0day robot not report this is a good idea. > > Linus I suspect platform_data is being set to NULL when a device match fails (via the snd_es1688_match callback) in the isa_bus_match function. The NULL pointer dereference then subsequently occurs in isa_bus_shutdown since the platform_data member has been reset to indicate an unsupported device. The most straight-forward solution is as mentioned: perform a NULL check to ensure we're actually working with a valid ISA device before blindly poking it. I'll submit a simple patch then that should placate this error. William Breathitt Gray From 1583460644781440295@xxx Wed Nov 08 01:49:07 +0000 2017 X-GM-THRID: 1583410056848297381 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread