Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp644239lqc; Fri, 8 Mar 2024 07:49:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUsjoGVKlPMbfQW2ZMBBxVobTvQ5w444Hv+gOUm+fJIL1aqyjM0QR+ZneeYonOWyjErf1B2VDe3kry6m2FnZRH5juR8pphChNXmbftqlA== X-Google-Smtp-Source: AGHT+IEVRdWHRNzFcu9dwy7ty+RunLJeIbS9SIZY7SsjjvX3wbCsZwxNgPn3qHOypvX8Oe3joLVj X-Received: by 2002:a05:6a00:10ce:b0:6e6:6606:7265 with SMTP id d14-20020a056a0010ce00b006e666067265mr4551351pfu.4.1709912983318; Fri, 08 Mar 2024 07:49:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709912983; cv=pass; d=google.com; s=arc-20160816; b=W0l2y0ntEdDOrSazbtqJfE+AVZkz+YS2u9eoLWqdOjEU2r33k0RTZYKKDGSwe+NkdM cTZekk81X6kIXKLtqPDWgc/FHLPzPxG1g/ojAEYmzaAsPSuKqcXXOaZjPMNH41dGiCKr P17JEhoeQKjgK7gUQi13o0bdxWeeVCqtJTvTzgU+PSP6WDnUaRm0UrW/v8Z+mOiVrOuE i6tCeVN3RMvG896AdCg34a0SLshVjQ5fZWcZQkvRFg7UmhdC35X5b9UQbTes1A4hnz0t OTFYAKeTASpHzPPCU/h7yD1tlmxPzoS0J6kQhCb/eD3vC8XabA4JU5JFKFzz/vVond5N 4KUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Ld+4cFJiCUpIgeEmlpcazZFkXkoYjxiqrgcd7maZMKE=; fh=nX7/yqmNHGVZCrayBPZRf+aT0k+ez7SgP4YmkXluoEo=; b=lWVseg0ZdxaX2f9EJIpufcQKaKL/THh3IqMKimLhhxSIJJqaoT/KcbluuFPetwjZsq iHnwqEQHcraZBZkOTEY4vRuKORfxJShB6+3W6Zo+wfD1DihOyIkeVPNgv51RflCL/CvW Z+B5DHQO0CBfxndRhsutuzpP+SPF7byPeYzr9XhiIxxeWb/951dgOaSDvmrLAvv2fDtJ oklJyn/CieyT1qmP1NPCFvfyetvup4o4JHxFRwvUVwz85tzjO2Xz3vmuEgm7ADWvFZ9g 5emeJsgnSyCrMBEWbyS+wyWubgYQ8LzMLavKLXNykqUqO/qaASxuys3QwWVXT+9qQozL wkEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EgoSEAE9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q14-20020a056a00084e00b006e6726fba72si752286pfk.258.2024.03.08.07.49.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 07:49:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=EgoSEAE9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-97255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 47027B2264A for ; Fri, 8 Mar 2024 15:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05A4524205; Fri, 8 Mar 2024 15:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EgoSEAE9" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 7A854366; Fri, 8 Mar 2024 15:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709912970; cv=none; b=Fivub/gMSk8cT3a0Ey4JlcllYLZOsStzBwhdlOSeLzSdXeUTsOicn9YBcV59rycD6pxNUrFUD72s/UaIwJzc+VwXusokB0TPkPk3i0nrPj0I31eQOajiYnJpJ2X6V8YbGgj/H8jAv2KTblToG7LMXM2+CaZjKnvF74HcbGOv+hE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709912970; c=relaxed/simple; bh=91DpN+5jqCtFxdFAdJyx2F5lCUgsbaBUIGnQ7cQW6Vo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ugm6K51lnGuAVj/QuB3VESIxpYdW8qNFnVBugAnpCfhTBNRYGblALjCsaCLI50YIqiC+q/upoT7rOkCWTWkRi5i5Gtt8j17uxf9NbeXZQNNvoHDM2PyXJXjlLiur+s/vofrSQDm/gDw5bDUIq8kNGjnfAM1+bQQLl4TFwYLF9xc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EgoSEAE9; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-5134d7e16a8so2011381e87.3; Fri, 08 Mar 2024 07:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709912967; x=1710517767; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ld+4cFJiCUpIgeEmlpcazZFkXkoYjxiqrgcd7maZMKE=; b=EgoSEAE9Kc+Kl86M1QHBI+dh3gMT7xzuPaKchZ2ptb+McrNa2b+9LKdat87/kh4uhh B9URnxqCGr9CtBC+/EqgzbZqi0ekr9LjgOkAAMNL4TG1U84UnfXB8D9+ZnxgFjm9yRZi XnBXky1JQaf1RcrKFhxEeIMBSi17vJ5XGcRnbZVMWEImTYuhgWCeEFKHkhtrG9e5bTGC RcS51hmIZtE5AVZm6+MXJoUSSjF6NUeN9R5oKhmpN3sFqSEpNCkclkIGe+YxjV22O8dj Tc+FekWR4kvOlk3GCM+Khf8+RIIH4asWg8yy72r49rrI1Na4do+jdDCu+CojYgadDFrd 53NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709912967; x=1710517767; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ld+4cFJiCUpIgeEmlpcazZFkXkoYjxiqrgcd7maZMKE=; b=fS/xzeLfV6GTmOTJfuLVkZZTiVUj3dDIfjIFZefQpE/Zx0+gp0x42FDWJMAtQd9Zzw YseoAs+6n9sLlpM+iPow2HynDsSNxP1Y/mjPaNrI6raB2hTN1U9wV3u++JQvYecK0M3U SbwGaAg1aErD3YccDbjICErxEDZZKt53dYNvQ85OflycchRF2XnehyYRfQdkI5DcIbhW Nin7qj96zDIvZTQnM0RkhHZ9JiEya2EssmeFMcW24Vs9JPGF4/USjcbbCW3IiDCn6P5H t7NXw1NFdpZgriWR062403mElY1ABfFIYQzqBLz2z+MVRverPsEnuTV9Bp17s5mndNtS 5s9A== X-Forwarded-Encrypted: i=1; AJvYcCVUDjEsXsqSGO+TYVvp/kSWoY5yversnkZunvqiXBoeQ7duPwjOcTpsPF3O685TVOGECOnjgkRdsMlBSRUf4zr4ipkCD9zkugYpvTjBMDSQMpJDVFwdYfN1iEoNdOtNwVhRVd+ilp060w== X-Gm-Message-State: AOJu0YyhmykZGIDNtl6MdgnS9jqvbrPX5+tKE0NDDiymvunFl5i35V7I ffXMmclbG37ZRcWsKogfF2eEBljIfBxzomCjgMYJsuTKgeAVXib9ImW8RC6zMdf07tNNLm9qa6D emb+wkicZJSLTGy4Pku+EvRx0xzM= X-Received: by 2002:a05:6512:3d09:b0:513:3309:cc62 with SMTP id d9-20020a0565123d0900b005133309cc62mr4774260lfv.47.1709912966304; Fri, 08 Mar 2024 07:49:26 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <8f69d1f2-0ce3-4851-a784-c76b274dd9ff@app.fastmail.com> In-Reply-To: From: Alexei Starovoitov Date: Fri, 8 Mar 2024 07:49:14 -0800 Message-ID: Subject: Re: arm64: WARNING: at mm/vmalloc.c:315 ioremap_page_range To: Naresh Kamboju , Christoph Hellwig , Linus Torvalds Cc: Arnd Bergmann , linux-mm , linux-next , open list , Linux Regressions , lkft-triage@lists.linaro.org, Andrew Morton , Ard Biesheuvel , Alexei Starovoitov , Andrii Nakryiko , Dan Carpenter Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 8, 2024 at 6:24=E2=80=AFAM Naresh Kamboju wrote: > > On Fri, 8 Mar 2024 at 17:34, Arnd Bergmann wrote: > > > > On Fri, Mar 8, 2024, at 12:53, Naresh Kamboju wrote: > > > The following warning was noticed while boot arm and arm64 devices. > > > The below log is extracted from arm64 ROCK Pi 4B while booting and > > > another issue is kernel oops noticed while testing selftests: kvm: > > > memslot_perf_test. > > > > > > 1) WARNING: CPU: 1 PID: 201 at mm/vmalloc.c:315 ioremap_page_range > > > 2) Unable to handle kernel NULL pointer dereference at virtual addre= ss > > > Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP > > > Kernel panic - not syncing: Oops: Fatal exception in interrupt > > > > > > Please find steps to reproduce, logs and config file links below. > > > > > > Reported-by: Linux Kernel Functional Testing > > > > > The warning was added by commit 3e49a866c9dc ("mm: Enforce > > VM_IOREMAP flag and range in ioremap_page_range."). > > > > This indeed uses a special memory area at a fixed physical address, > > but I don't see where the vm_struct comes from. > > Thanks for your explanation. > > > No idea here, but it seems unrelated to the first one. > > I will reproduce this issue a few more times and get back to you. See the proposed fix: https://lore.kernel.org/bpf/CAADnVQLP=3DdxBb+RiMGXoaCEuRrbK387J6B+pfzWKF_F= =3DaRgCPQ@mail.gmail.com/ but Christoph believes a different approach is necessary: https://lore.kernel.org/bpf/Zeso7eNj1sBhH5zY@infradead.org/