From: Waiman Long <llong@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>,
Frederic Weisbecker <frederic@kernel.org>
Cc: syzbot <syzbot+4abde9163a953b8a0fd0@syzkaller.appspotmail.com>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
anna-maria@linutronix.de, linux-kernel@vger.kernel.org,
mingo@kernel.org, syzkaller-bugs@googlegroups.com,
tglx@linutronix.de
Subject: Re: [syzbot] [kernel?] WARNING in task_work_add
Date: Wed, 23 Oct 2024 19:46:47 -0400 [thread overview]
Message-ID: <93bfdda8-b0c7-469a-9cc7-a8061913cb45@redhat.com> (raw)
In-Reply-To: <d2a0e899-7fb8-40a9-a431-3ab9debf39c0@redhat.com>
On 10/23/24 2:47 PM, Waiman Long wrote:
>
>
> On 10/22/24 3:08 PM, Peter Zijlstra wrote:
>> On Tue, Oct 22, 2024 at 04:06:47PM +0200, Frederic Weisbecker wrote:
>>> Adding scheduler people in Cc.
>>>
>>> Thanks.
>>>
>>> Le Mon, Oct 21, 2024 at 09:54:38PM -0700, syzbot a écrit :
>>>> Hello,
>>>>
>>>> syzbot found the following issue on:
>>>>
>>>> HEAD commit: 9ec59cb3edc7 KVM: arm64: Shave a few bytes from the EL2 id..
>>>> git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
>>>> console output:https://syzkaller.appspot.com/x/log.txt?x=17061430580000
>>>> kernel config:https://syzkaller.appspot.com/x/.config?x=c154e2d4db830898
>>>> dashboard link:https://syzkaller.appspot.com/bug?extid=4abde9163a953b8a0fd0
>>>> compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
>>>> userspace arch: arm64
>>>>
>>>> Unfortunately, I don't have any reproducer for this issue yet.
>>>>
>>>> Downloadable assets:
>>>> disk image:https://storage.googleapis.com/syzbot-assets/fc9a7d36d46a/disk-9ec59cb3.raw.xz
>>>> vmlinux:https://storage.googleapis.com/syzbot-assets/30547ddd681e/vmlinux-9ec59cb3.xz
>>>> kernel image:https://storage.googleapis.com/syzbot-assets/5c4e02d0f97a/Image-9ec59cb3.gz.xz
>>>>
>>>> IMPORTANT: if you fix the issue, please add the following tag to the commit:
>>>> Reported-by:syzbot+4abde9163a953b8a0fd0@syzkaller.appspotmail.com
>>>>
>>>> ------------[ cut here ]------------
>>>> WARNING: CPU: 1 PID: 1 at arch/arm64/kernel/stacktrace.c:223 kunwind_next_frame_record_meta arch/arm64/kernel/stacktrace.c:216 [inline]
>>>> WARNING: CPU: 1 PID: 1 at arch/arm64/kernel/stacktrace.c:223 kunwind_next_frame_record arch/arm64/kernel/stacktrace.c:248 [inline]
>>>> WARNING: CPU: 1 PID: 1 at arch/arm64/kernel/stacktrace.c:223 kunwind_next arch/arm64/kernel/stacktrace.c:278 [inline]
>>>> WARNING: CPU: 1 PID: 1 at arch/arm64/kernel/stacktrace.c:223 do_kunwind arch/arm64/kernel/stacktrace.c:309 [inline]
>>>> WARNING: CPU: 1 PID: 1 at arch/arm64/kernel/stacktrace.c:223 kunwind_stack_walk arch/arm64/kernel/stacktrace.c:380 [inline]
>>>> WARNING: CPU: 1 PID: 1 at arch/arm64/kernel/stacktrace.c:223 arch_stack_walk+0x458/0x48c arch/arm64/kernel/stacktrace.c:404
>>>> Modules linked in:
>>>> CPU: 1 UID: 0 PID: 1 Comm: init Not tainted 6.12.0-rc3-syzkaller-g9ec59cb3edc7 #0
>>>> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
>>>> pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
>>>> pc : kunwind_next_frame_record_meta arch/arm64/kernel/stacktrace.c:216 [inline]
>>>> pc : kunwind_next_frame_record arch/arm64/kernel/stacktrace.c:248 [inline]
>>>> pc : kunwind_next arch/arm64/kernel/stacktrace.c:278 [inline]
>>>> pc : do_kunwind arch/arm64/kernel/stacktrace.c:309 [inline]
>>>> pc : kunwind_stack_walk arch/arm64/kernel/stacktrace.c:380 [inline]
>>>> pc : arch_stack_walk+0x458/0x48c arch/arm64/kernel/stacktrace.c:404
>>>> lr : 0x0
>>>> sp : ffff8000800176a0
>>>> x29: ffff800080017750 x28: 1ffff00010002f58 x27: 00000000ffff8d68
>>>> x26: dfff800000000000 x25: ffff0000c2c588c0 x24: dfff800000000000
>>>> x23: ffff700010002ef0 x22: ffff800080017850 x21: ffff8000800176b8
>>>> x20: ffff800080462114 x19: ffff8000800177a0 x18: dfff800000000000
>>>> x17: ffff800123f21000 x16: ffff80008b490b1c x15: 0000000000000001
>>>> x14: 1fffe000366c806a x13: ffff800097807ff0 x12: ffff800097808000
>>>> x11: 0000000000000000 x10: ffff0000c1978000 x9 : ffff800097807e9f
>>>> x8 : ffff800097807fd8 x7 : 0000000000000000 x6 : 000000000000003f
>>>> x5 : 0000000000000040 x4 : fffffffffffffff0 x3 : 0000000000000000
>>>> x2 : ffff0000c1978000 x1 : ffff800080029c40 x0 : 0000000000000001
>>>> Call trace:
>>>> kunwind_next_frame_record_meta arch/arm64/kernel/stacktrace.c:216 [inline] (P)
>>>> kunwind_next_frame_record arch/arm64/kernel/stacktrace.c:248 [inline] (P)
>>>> kunwind_next arch/arm64/kernel/stacktrace.c:278 [inline] (P)
>>>> do_kunwind arch/arm64/kernel/stacktrace.c:309 [inline] (P)
>>>> kunwind_stack_walk arch/arm64/kernel/stacktrace.c:380 [inline] (P)
>>>> arch_stack_walk+0x458/0x48c arch/arm64/kernel/stacktrace.c:404 (P)
>>>> 0x0 (L)
>>>> stack_trace_save+0xfc/0x1a0 kernel/stacktrace.c:122
>>>> kasan_save_stack+0x40/0x6c mm/kasan/common.c:47
>>>> __kasan_record_aux_stack+0xd0/0xec mm/kasan/generic.c:541
>>>> kasan_record_aux_stack+0x14/0x20 mm/kasan/generic.c:546
>>>> task_work_add+0xb8/0x464 kernel/task_work.c:66
>>>> task_tick_mm_cid kernel/sched/core.c:10468 [inline]
>>>> sched_tick+0x2a8/0x404 kernel/sched/core.c:5605
>> I'm guessing this is very close to what 73ab05aa46b0 ("sched/core:
>> Disable page allocation in task_tick_mm_cid()") does. Initial version of
>> that patch was more aggressive and killed off the whole KASAN thing
>> instead of just the page-alloc.
>
> The stack trace is a bit suspicious. Commit 73ab05aa46b0 modifies
> task_tick_mm_cid() and task_work_add() to make it call
> kasan_record_aux_stack_noalloc() not kasan_record_aux_stack() in this
> particular sequence. So I wonder if this commit is in this particular
> instance of the git tree at all.
>
This is a 6.12.0-rc3 kernel which doesn't have commit 73ab05aa46b0 yet.
Thanks, Longman
prev parent reply other threads:[~2024-10-23 23:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 4:54 [syzbot] [kernel?] WARNING in task_work_add syzbot
2024-10-22 14:06 ` Frederic Weisbecker
2024-10-22 19:08 ` Peter Zijlstra
[not found] ` <d2a0e899-7fb8-40a9-a431-3ab9debf39c0@redhat.com>
2024-10-23 23:46 ` Waiman Long [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=93bfdda8-b0c7-469a-9cc7-a8061913cb45@redhat.com \
--to=llong@redhat.com \
--cc=anna-maria@linutronix.de \
--cc=dietmar.eggemann@arm.com \
--cc=frederic@kernel.org \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=syzbot+4abde9163a953b8a0fd0@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tglx@linutronix.de \
--cc=vincent.guittot@linaro.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;
as well as URLs for NNTP newsgroup(s).