From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: Naresh Kamboju <naresh.kamboju@linaro.org>,
Christoph Hellwig <hch@infradead.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>, linux-mm <linux-mm@kvack.org>,
linux-next <linux-next@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
Linux Regressions <regressions@lists.linux.dev>,
lkft-triage@lists.linaro.org,
Andrew Morton <akpm@linux-foundation.org>,
Ard Biesheuvel <ardb@kernel.org>,
Alexei Starovoitov <ast@kernel.org>,
Andrii Nakryiko <andrii@kernel.org>,
Dan Carpenter <dan.carpenter@linaro.org>
Subject: Re: arm64: WARNING: at mm/vmalloc.c:315 ioremap_page_range
Date: Fri, 8 Mar 2024 07:49:14 -0800 [thread overview]
Message-ID: <CAADnVQJLhKPA1MGtpqDwAnSDrCXBd1dxoCor2RwD22a-VLpiKA@mail.gmail.com> (raw)
In-Reply-To: <CA+G9fYvhxJ_Tokrc3zxgP4UNjrRXjhxjfqMtSbMOoURCF1GjmQ@mail.gmail.com>
On Fri, Mar 8, 2024 at 6:24 AM Naresh Kamboju <naresh.kamboju@linaro.org> wrote:
>
> On Fri, 8 Mar 2024 at 17:34, Arnd Bergmann <arnd@arndb.de> 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 address
> > > 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 <lkft@linaro.org>
>
> <trim>
>
> > 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=dxBb+RiMGXoaCEuRrbK387J6B+pfzWKF_F=aRgCPQ@mail.gmail.com/
but Christoph believes a different approach is necessary:
https://lore.kernel.org/bpf/Zeso7eNj1sBhH5zY@infradead.org/
prev parent reply other threads:[~2024-03-08 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-08 11:53 Naresh Kamboju
2024-03-08 12:04 ` Arnd Bergmann
2024-03-08 14:24 ` Naresh Kamboju
2024-03-08 15:49 ` Alexei Starovoitov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAADnVQJLhKPA1MGtpqDwAnSDrCXBd1dxoCor2RwD22a-VLpiKA@mail.gmail.com \
--to=alexei.starovoitov@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andrii@kernel.org \
--cc=ardb@kernel.org \
--cc=arnd@arndb.de \
--cc=ast@kernel.org \
--cc=dan.carpenter@linaro.org \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-next@vger.kernel.org \
--cc=lkft-triage@lists.linaro.org \
--cc=naresh.kamboju@linaro.org \
--cc=regressions@lists.linux.dev \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox