Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp112906imj; Wed, 13 Feb 2019 05:36:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IbeW5e9jTc3E0O0tRFnrjKI/BAuej3v4CEH55oZUtA3XEEIrqciyWHJBUtJN69wWdjc9LiQ X-Received: by 2002:a63:125a:: with SMTP id 26mr537456pgs.314.1550065002410; Wed, 13 Feb 2019 05:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550065002; cv=none; d=google.com; s=arc-20160816; b=Lj4kCqUieC8KYEGpAna1kSfYWNRZghkpGTbZTjshFMVtaWzlrDfwtBoi9u0osq6Bhy 9fZjeHP3g+VrbpYZlijAXgN2kRGdUzt5T8LSzdrOQ2RqAik1wQYIEw64g43nyB3GMB4l OVogplQcvOGSw2tdOr2CFAD/Flx4zQITBhjxWS0wxzn/6+dpiMPgscFh9tgfnepRuotX NECIg7eSl0zSNOv/9ZbtvJcGl9ji33LX3liKygyRwIF2Lx2LEepA0vz56LynBsY752dR miSzuud9U0QEZb+lhtA8/AA5Vbjv97cX2907FW13rt2pmJPRDuMUsw5hBiN50SsV99dy eomA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dmarc-filter:dkim-signature :dkim-signature; bh=riCSVMPsnvdFnWVGfWkfPB1JBUB7mR3kxbiYU6inJYs=; b=ggfC8F1lMxwTmOdDZw6lC4m6Rdls8zLB3PpZvNFLUUKeWzOyM0TSNGolRtCLDyd+XF 4Au2F6yzVK696P56q3KXPGMJziiWulHXWHs3y9PGre4/qcub2UP/NyFFxcSR8/NNKcmJ RrHteNKURdINu8/uxIoDMwpi9Vuz5kaH5JbZpm226X/TVRgbpxxvmxUcy2ubIXPaGmj6 8XSlVPEp4ZDnW2uAESYPte68gw45AYz7tSNk9lp+ywSEr3XkOobSjhqRRztRkeUrf79b 5qA3InjN3lAMwR29eKvokvvZbX4P1sdLkfaJR2P2LorJUkNnSYO4MRfR01pkOY2N87h0 0pzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=DbeJkqB8; dkim=pass header.i=@codeaurora.org header.s=default header.b=Lk0Cf7eE; 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 b10si14507075pgw.388.2019.02.13.05.36.23; Wed, 13 Feb 2019 05:36:42 -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=@codeaurora.org header.s=default header.b=DbeJkqB8; dkim=pass header.i=@codeaurora.org header.s=default header.b=Lk0Cf7eE; 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 S2387437AbfBMJvn (ORCPT + 99 others); Wed, 13 Feb 2019 04:51:43 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:37586 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbfBMJvn (ORCPT ); Wed, 13 Feb 2019 04:51:43 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 008616087F; Wed, 13 Feb 2019 09:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550051501; bh=Vs+50u4QSysEwvPfccTmoCqeFX05ffDTaj3MJz0B670=; h=Subject:To:References:From:Date:In-Reply-To:From; b=DbeJkqB8CWvtXbT/uiWeOO2OGvim56PFn/yFWnQdTg3pLYMEID8CSPEhOBaM+/Qod PakfJVzDlrbOdz40za6Ai4tAUnchk/DdSZEq0yUpO3i0U/cqIkJGHLlTdKqdStxmuR 4ZivRsfCMaIm89/d5aDYo4DoMCZmC8hagJfd1aAk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.128.39] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9CDC26087F; Wed, 13 Feb 2019 09:51:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550051498; bh=Vs+50u4QSysEwvPfccTmoCqeFX05ffDTaj3MJz0B670=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Lk0Cf7eE02GVh2/hv2jM4yg7+BAET8jRgyBDoHlgNTzh/153Uc7pmhY5uRJ0Q9mvu FKuFpUYBecuDyepAqDygn+goftI6OKmxRfjqcqMl07dJlyxem1PeGoZpbFMlTC2IHx KRvs0sqn9+Bw679Hz1JK4nqAFFpOXRbgP0J6AGGE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9CDC26087F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=saiprakash.ranjan@codeaurora.org Subject: Re: BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:65 To: Pintu Agarwal , open list , linux-arm-kernel@lists.infradead.org, linux-rt-users@vger.kernel.org, linux-mm@kvack.org, Jorge Ramirez , "Xenomai@xenomai.org" References: From: Sai Prakash Ranjan Message-ID: <6183c865-2e90-5fb9-9e10-1339ae491b71@codeaurora.org> Date: Wed, 13 Feb 2019 15:21:32 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pintu, On 2/13/2019 2:04 PM, Pintu Agarwal wrote: > > This is the complete logs at the time of crash: > > [ 21.681020] VFS: Mounted root (ext4 filesystem) readonly on device 8:6. > [ 21.690441] devtmpfs: mounted > [ 21.702517] Freeing unused kernel memory: 6528K > [ 21.766665] BUG: sleeping function called from invalid context at > kernel/locking/rwsem.c:65 > [ 21.775108] in_atomic(): 0, irqs_disabled(): 128, pid: 1, name: init > [ 21.781532] ------------[ cut here ]------------ > [ 21.786209] kernel BUG at kernel/sched/core.c:8490! > [ 21.791157] ------------[ cut here ]------------ > [ 21.795831] kernel BUG at kernel/sched/core.c:8490! > [ 21.800763] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP > [ 21.806319] Modules linked in: > [ 21.809474] CPU: 0 PID: 1 Comm: init Not tainted 4.9.103+ #115 > [ 21.815375] Hardware name: Qualcomm Technologies, Inc. MSM XXXX > [ 21.822584] task: ffffffe330440080 task.stack: ffffffe330448000 > [ 21.828584] PC is at ___might_sleep+0x140/0x188 > [ 21.833175] LR is at ___might_sleep+0x128/0x188 > [ 21.837759] pc : [] lr : [] > pstate: 604001c5 > 0000000000000000 ffffffe33044b8d0 > [ 22.135279] bac0: 0000000000000462 0000000000000006 > [ 22.140224] [] ___might_sleep+0x140/0x188 > [ 22.145862] [] __might_sleep+0x58/0x90 > [ 22.151249] [] down_write_killable+0x2c/0x80 > [ 22.157155] [] setup_arg_pages+0xb8/0x208 > [ 22.162792] [] load_elf_binary+0x434/0x1298 > [ 22.168600] [] search_binary_handler+0xac/0x1f0 > [ 22.174763] [] do_execveat_common.isra.15+0x504/0x6c8 > [ 22.181452] [] do_execve+0x44/0x58 > [ 22.186481] [] run_init_process+0x38/0x48 > [ 22.192122] [] kernel_init+0x8c/0x108 > [ 22.197411] [] ret_from_fork+0x10/0x50 > [ 22.202790] Code: b9453800 0b000020 6b00027f 540000c1 (d4210000) > [ 22.208965] ---[ end trace d775a851176a61ec ]--- > [ 22.220051] Kernel panic - not syncing: Attempted to kill init! > exitcode=0x0000000b > This might be the work of CONFIG_PANIC_ON_SCHED_BUG which is extra debug option enabled in *sdm845_defconfig*. You can disable it or better I would suggest to use *sdm845-perf_defconfig* instead of sdm845_defconfig since there are a lot of debug options enabled in the latter which may be not compatible when IPIPE patches are applied. Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation