Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp464179lqg; Thu, 11 Apr 2024 08:06:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTsUfmSzQpQxoW/UZ/h+ygEBznuTe2QKSiEjkwRuHpiMgNF5ijq9AWNfHZfIWgXol9Uad+tXRnB013ClHYPuVdJ9yegq+MFubYNnhtdA== X-Google-Smtp-Source: AGHT+IFGG6K02WBhxHA74aN/SANsjB/0lCOoWygvRRRvzCcTHXdB4q0P9Aqgh7Y4fnQxxokSjxwK X-Received: by 2002:a17:90b:2315:b0:2a5:5334:e223 with SMTP id mt21-20020a17090b231500b002a55334e223mr5218258pjb.24.1712847993298; Thu, 11 Apr 2024 08:06:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712847993; cv=pass; d=google.com; s=arc-20160816; b=HNUeBjoW6Q7xFIu6FqAQU0l7Bk4lJtw9P7cL6Bg+YTKpHL+r20jrntc8GhSpn1VHHa /7fi53/PNNK7VbCrjo0dyILfz/yiu6jJMu5S6BD8WwHtalUaaIm7hEj8NPOYA22618zl nEFOPFYuAcfrbgzPqyaIQOwRw8HuQSf/k1lsRcqVkr2g+kDThR80bU+HZgEeJNXDL7rA ROJJAtLk4LJT9sUtj6eF0Ot6uTJd0q1kJ4hwKu89AWode9qDAKBv2S0OxNLGPL3+vjJ4 9zkO3D3+Pd9TnboMsiPa1dl373KAdbz/0ZuZ9NZEmjDqfvpr62SyWQJAPm4qlG+tGPcG Ossw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=s/zr/QOGV8WG6iD30xr5AmhWrZhKjTiULTZdWbAs9kE=; fh=FwFL1Hp9IBoBhUjcAAvAZMf7qveOr0wm8mZyxYU11XM=; b=hfziamAvelM0odkJXMpjE2WZ108eiwjp6RcTqVxA0jQdB5Za6ES1OOt45aku8iekG8 Tdp7DZbP8zIXK1Pn/GdySPVNdnr2pOpnwA/yMlF9YDmgNQR1uxe5Mt8loMWrcms87EKI YIFLH+8act++sIU1SJmXUUvAWSnP92f9AmSgZWHwWZ1mFwjD8luNzAvlM4V0rpk/UGqO M/o1fAMF2unjkfHVV6X0rFe6II/TanEvhciUoEt4ORIxbkK9HBghlCOxLlqvJAqHwFgu JSI3NnI9W3cB29RNoRLZ4UFiiIAA3o4fukx7Nfccjf15WcjSW6ijf40sKmHwdHJirAci NCqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ox36SUOR; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-140713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140713-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id rj11-20020a17090b3e8b00b002a09812eb37si3719749pjb.118.2024.04.11.08.06.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:06:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ox36SUOR; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-140713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140713-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E77E42857FB for ; Thu, 11 Apr 2024 15:05:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30D12134BF; Thu, 11 Apr 2024 15:05:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ox36SUOR" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03A1ABE7F for ; Thu, 11 Apr 2024 15:05:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712847946; cv=none; b=JILdZAFHge2gLLyqg8vP1ZVz5AGx+Krxg8/RcVRtYd/28M/gjl9TlxgAwNp4PAA3uivGGRNS+lTO9VIRZv2rv0LESzPYvalcxLEIwGdY1zITY7nO4+WQhqygBS4PimUH2Xjr51V6yAMOkn+2hfTUFf/RDrq5DzUZqI80tzibye0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712847946; c=relaxed/simple; bh=lAlok4zEqiaQwBAnt2rrlpAmjwc9vUB1DK10nldsJhM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gegPjmmvJqVDLJzwRciMOLF7bdJdx/FlQdz06BdM5V+1LXRBYgoqy8C+OJOzDdMl11Zbn3vAaQRqWyZqUQ/RTFfC+xiiq6Z3+ukG5HARmnJmRBwP+uEn3JegwgQPJFIPtgi3QmJdYrBHfdXadZgAID3Pn07i9u1H6WJk/Zby30s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ox36SUOR; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1e3e84a302eso35499965ad.0 for ; Thu, 11 Apr 2024 08:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712847942; x=1713452742; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=s/zr/QOGV8WG6iD30xr5AmhWrZhKjTiULTZdWbAs9kE=; b=Ox36SUORAk8nV/oF85yE+kZ62yjqEhgIQmfGv+9WNbA26Dh2336GN//RjgLPoiem6w vYNkbof+7ZlZr1dLf/U/rA98TY4fLTnqJUg22SN6lbYoc7eIYZft2u3YAK1a61y01fnb W3ItQLCzCw7Vgera4sunQpTE5pDdFOVUGKCwOOEGxNA/hOmWVK4lW3QgEUet1DmkUXBD CT9SKG2fKW0hBtp0grGVL0kMlshDnLuQuEthMz7ESHERyQ6X5YSmhHmz1KeUEzoaITqO HT8afaMzUrO/o0IDDdWTcguHioOmBLw0sivVpni9D2pCQjsFPI0Egm412t2H8a1LXB3I uTDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712847942; x=1713452742; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s/zr/QOGV8WG6iD30xr5AmhWrZhKjTiULTZdWbAs9kE=; b=hCwBCeHzY63ECRda1BbL5GJF/m/ZqVtOP+6i1DiuAdyPRDTBKzFhiGNRp+uVEl0QaT tIMNzWjxkfeCKMQTCexDDsuTp6eWNGLe0LVLSUuU+2KOub9VcTx/Amdeh3kI84IEUYeI jhS0Qb6CmPcRTf0+hN2JfKTvNQxHWEl1naQxEjedTrt0Aebjy7su10ogXwGBpGqMQUSd ndwoyrDOPbwdFuQv33A+1GwsCuLA2+avYqECmsttH1UMM4bVEXv5iLnXXOElJ6wfUPLo Wh2zUPKUOqadndGvxZUScmmh0srerxCs6AxwVkPbc2xsEfKq+nB4vRDRs5A8zu9HShvS fcaA== X-Forwarded-Encrypted: i=1; AJvYcCUe50qU/ty2z0LSDgfe/zeyaCoaRSPwlaOGKqI0GtFaOE1lYDRjHQyNPfs3JLQLXkW1unawxMd7VRlf/qvz0Xo6i2CHq+7Fo2DlnKv2 X-Gm-Message-State: AOJu0YyZtJmbjRTqegjl7wvpKZVj0kD2k2e729xx13X7k0EZl7yvYBgF WkEDX601w3y2v2fY3s4wVeuJU0oQFVjYRrsfXACdHY2AkrgnnR06 X-Received: by 2002:a17:902:7008:b0:1e4:3ad5:b6d6 with SMTP id y8-20020a170902700800b001e43ad5b6d6mr5511831plk.37.1712847942148; Thu, 11 Apr 2024 08:05:42 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id y8-20020a17090264c800b001e47972a2casm1298551pli.96.2024.04.11.08.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 08:05:41 -0700 (PDT) Sender: Guenter Roeck Date: Thu, 11 Apr 2024 08:05:39 -0700 From: Guenter Roeck To: Dan Carpenter Cc: Naresh Kamboju , David Gow , Will Deacon , mic@digikod.net, keescook@chromium.org, rmoar@google.com, lkft-triage@lists.linaro.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, longman@redhat.com, boqun.feng@gmail.com, anders.roxell@linaro.org, arnd@arndb.de, Linux Kernel Functional Testing Subject: Re: BUG: KASAN: null-ptr-deref in _raw_spin_lock_irq next-20240410 Message-ID: References: <20240410102710.35911-1-naresh.kamboju@linaro.org> <20240410152307.GA25111@willie-the-truck> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Apr 11, 2024 at 06:00:25PM +0300, Dan Carpenter wrote: > On Thu, Apr 11, 2024 at 08:20:55PM +0530, Naresh Kamboju wrote: > > > > I use to notice kernel panic while running kunit tests > > now I have noticed this > > > > Unable to handle kernel paging request at virtual address > > KASAN: null-ptr-deref in range > > pc : kunit_test_null_dereference (lib/kunit/kunit-test.c:119) > > lr : kunit_generic_run_threadfn_adapter (lib/kunit/try-catch.c:31) > > > > The kunit tests run to completion and the system is stable. > > Kernel did not panic. > > > > [ Snip ] > > > <0>[ 76.808597] Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP > > <4>[ 76.809876] Modules linked in: > > <4>[ 76.812055] CPU: 1 PID: 567 Comm: kunit_try_catch Tainted: G > > B N 6.9.0-rc3-next-20240410 #1 > > <4>[ 76.812987] Hardware name: linux,dummy-virt (DT) > > <4>[ 76.814123] pstate: 12400009 (nzcV daif +PAN -UAO +TCO -DIT > > -SSBS BTYPE=--) > > <4>[ 76.814947] pc : kunit_test_null_dereference (lib/kunit/kunit-test.c:119) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^ > This is a new intentional NULL dereferencer that was added yesterday. > > Maybe these should have a big printk, "Intentional NULL dereference > coming up!\n". > Can the backtrace be suppressed, similar to the warnings suppression I am working on ? Thanks, Guenter