From: Greg KH <gregkh@linuxfoundation.org>
To: Huacai Chen <chenhuacai@kernel.org>
Cc: Huacai Chen <chenhuacai@loongson.cn>,
loongarch@lists.linux.dev, Xuefeng Li <lixuefeng@loongson.cn>,
Guo Ren <guoren@kernel.org>, Xuerui Wang <kernel@xen0n.name>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn,
stable@vger.kernel.org
Subject: Re: [PATCH V2] LoongArch: Ensure FP/SIMD registers in the core dump file is up to date
Date: Sat, 26 Aug 2023 17:43:35 +0200 [thread overview]
Message-ID: <2023082609-coerce-capricorn-a69f@gregkh> (raw)
In-Reply-To: <CAAhV-H4aKT=O1Ly7Zw+oSuVDP73kcXf+boAJK5W=6n76Ftz=WA@mail.gmail.com>
On Sat, Aug 26, 2023 at 11:35:31PM +0800, Huacai Chen wrote:
> On Sat, Aug 26, 2023 at 11:22 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Sat, Aug 26, 2023 at 10:23:41PM +0800, Huacai Chen wrote:
> > > This is a port of commit 379eb01c21795edb4c ("riscv: Ensure the value
> > > of FP registers in the core dump file is up to date").
> > >
> > > The values of FP/SIMD registers in the core dump file come from the
> > > thread.fpu. However, kernel saves the FP/SIMD registers only before
> > > scheduling out the process. If no process switch happens during the
> > > exception handling, kernel will not have a chance to save the latest
> > > values of FP/SIMD registers. So it may cause their values in the core
> > > dump file incorrect. To solve this problem, force fpr_get()/simd_get()
> > > to save the FP/SIMD registers into the thread.fpu if the target task
> > > equals the current task.
> > >
> > > Cc: stable@vger.kernel.org
> > > Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> > > ---
> > > V2: Rename get_fpu_regs() to save_fpu_regs().
> >
> > What stable tree(s) is this for?
> For 5.19+, but before 6.4 we should remove the call site in simd_get()
> because that function doesn't exist.
But this commit is already in the following released kernels:
5.10.62 5.13.14 5.14
so how can it be backported?
totally confused,
greg k-h
next prev parent reply other threads:[~2023-08-26 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-26 14:23 [PATCH V2] LoongArch: Ensure FP/SIMD registers in the core dump file is up to date Huacai Chen
2023-08-26 15:22 ` Greg KH
2023-08-26 15:35 ` Huacai Chen
2023-08-26 15:43 ` Greg KH [this message]
2023-08-26 15:47 ` Huacai Chen
2023-08-26 15:52 ` Greg KH
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=2023082609-coerce-capricorn-a69f@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=guoren@kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=kernel@xen0n.name \
--cc=linux-kernel@vger.kernel.org \
--cc=lixuefeng@loongson.cn \
--cc=loongarch@lists.linux.dev \
--cc=loongson-kernel@lists.loongnix.cn \
--cc=stable@vger.kernel.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