Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp451230ybz; Fri, 24 Apr 2020 03:21:07 -0700 (PDT) X-Google-Smtp-Source: APiQypJMeoAX6svAcv/GuRjg9WoER62Oel44gZp4OL7eV+X66w/l3DzfoEPCTCKfpoE9frdyDI3m X-Received: by 2002:a17:906:3296:: with SMTP id 22mr6686823ejw.195.1587723667785; Fri, 24 Apr 2020 03:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587723667; cv=none; d=google.com; s=arc-20160816; b=UlcNeo9y7CIuMtP9R4brQzDwSoup1cjiIFJ7OAWb6IE7PAbm3zAGS0I4AaualDEV02 RLvwcamFr8YcPOpayo2UQNUCV2HA39e1YQHEjExLDHjnk59tHM4PUOdHgjNlsyprUPaN BtXYwtXCOKAHYmQBdOa/lmy1bRrN3LBglJfhb1uMn728XJXWpx3uSFLKxiLpGyNJceLM 7pe3YES0Kce/N1NYg8UD/OGHGHqLDtg4qlG+Sv7FXEwWn/Otq5FMnNYdT32NqWxFD98x 0tkNRczUlGNfZ8r7FOrBu9+WxarevBAb0W/gLsTwB7rIWe4tSJr9W3Xb8P/xBmVu25SS B60Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AMaGseUX/EsUmGOuxPc+ZdAoJnRzm/6h84FXB563P1k=; b=qhAcRRiWMw7tNBzJ5J0zM3Pu18eNcAlxzFdyhG9Y1tVsRI/VMznUSO/DjxTy5Sz8jv zgEpIP+zU7L7UV5zUyKo+zJHSJB+DPxNgvUFj73EbLkMhwOIJsnM1I5vB9ZUkfqDv/pe s7NbJPoT4TEJEOqDaREyZOD3FO4Cjgrv8rukZ3sIFOWd9Wd0Tye2Osc6PferfWLOaAFI MSV1jd+JE7nZIdbbAEFd/Qp/dZXmT1aLaVX/agAnqE6Ij1so/euHA00zyy0a1WRmeltL y2Y81C3Qd0aSfMuKfZFuUDiqZlulnEojHbn+WbeET+dogB9nysHiilIds3SkWhFvMPW0 gmhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ljw/PhL3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si2859232edk.296.2020.04.24.03.20.23; Fri, 24 Apr 2020 03:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ljw/PhL3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726958AbgDXKQh (ORCPT + 99 others); Fri, 24 Apr 2020 06:16:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:43580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbgDXKQh (ORCPT ); Fri, 24 Apr 2020 06:16:37 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CAD9920728; Fri, 24 Apr 2020 10:16:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587723396; bh=vZNKJUin/JtOZ/kk42GlXa+eYTXUflytn8PWZgxt+uw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ljw/PhL3FZ3c855PrmjOFMaodxTFs6r8UU6j0wl9eOHzwKGGD507R1lZ2g5eTZcgS kuNdWJAHP2IqbIPYI4O9epJUPLTWdDCit/wkOf/8WKQAp0iIKWASeYI2dWVJLkjFOF tiGL+dHYa8IlXcAcFgxtieE8ntrlRXBD3AvRjp2g= Date: Fri, 24 Apr 2020 12:16:34 +0200 From: Greg KH To: Christian.Gromm@microchip.com Cc: lkp@intel.com, devel@driverdev.osuosl.org, lkp@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: b276527539 ("staging: most: move core files out of the staging .."): [ 12.247349] BUG: kernel NULL pointer dereference, address: 00000000 Message-ID: <20200424101634.GB390100@kroah.com> References: <20200329133917.GE11705@shao2-debian> <1e725f60c598cd8a5f167fd63ade6ee173960f01.camel@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1e725f60c598cd8a5f167fd63ade6ee173960f01.camel@microchip.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 09:41:36AM +0000, Christian.Gromm@microchip.com wrote: > On Sun, 2020-03-29 at 21:39 +0800, kernel test robot wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you > > know the content is safe > > > > Greetings, > > > > 0day kernel testing robot got the below dmesg and the first bad > > commit is > > > > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > > staging-next > > > > commit b276527539188f1f61c082ebef27803db93e536d > > Author: Christian Gromm > > AuthorDate: Tue Mar 10 14:02:40 2020 +0100 > > Commit: Greg Kroah-Hartman > > CommitDate: Tue Mar 24 13:42:44 2020 +0100 > > > > staging: most: move core files out of the staging area > > > > This patch moves the core module to the /drivers/most directory > > and makes all necessary changes in order to not break the build. > > > > Signed-off-by: Christian Gromm > > Link: > > https://lore.kernel.org/r/1583845362-26707-2-git-send-email-christian.gromm@microchip.com > > Signed-off-by: Greg Kroah-Hartman > > > > 22dd4acc80 Staging: speakup: Add identifier name to function > > declaration arguments. > > b276527539 staging: most: move core files out of the staging area > > e681bb287f staging: vt6656: Use DIV_ROUND_UP macro instead of > > specific code > > +-------------------------------------------------------+---------- > > --+------------+------------+ > > > | 22dd4acc80 > > > | b276527539 | e681bb287f | > > +-------------------------------------------------------+---------- > > --+------------+------------+ > > > boot_successes | > > > 26 | 0 | 0 | > > > boot_failures | > > > 8 | 11 | 11 | > > > WARNING:possible_circular_locking_dependency_detected | > > > 8 | | | > > > BUG:kernel_NULL_pointer_dereference,address | > > > 0 | 11 | 11 | > > > Oops:#[##] | > > > 0 | 11 | 11 | > > > EIP:__list_add_valid | > > > 0 | 11 | 11 | > > > Kernel_panic-not_syncing:Fatal_exception | > > > 0 | 11 | 11 | > > +-------------------------------------------------------+---------- > > --+------------+------------+ > > > > If you fix the issue, kindly add following tag > > Reported-by: kernel test robot > > > > [ 12.242090] no options. > > [ 12.245364] FPGA DOWNLOAD ---> > > [ 12.245723] FPGA image file name: xlinx_fpga_firmware.bit > > [ 12.246548] GPIO INIT FAIL!! > > [ 12.246995] most_sound: init() > > [ 12.247349] BUG: kernel NULL pointer dereference, address: > > > The init order of the modules is wrong in case the driver is > being built in-tree. > > The init function of module most_sound is called before the > core itself is being initialized. > > [ 5.179189] most_sound: init() > [ 5.180205] mostcore: __init() > > Hence the list used in the core to store and track the > registered components has not been initialized with > INIT_LIST_HEAD(&comp_list) by the time the sound module > tries to register itself with the core. > > The Kconfig of most_sound, however, has a dependency to > MOST. How can the build system be forced to initialize the > core module first? Linker order is the thing here. You can mess with the init levels here, and use subsys_initcall() for mostcore, will that fix it? thanks, greg k-h