From: Greg KH <gregkh@linuxfoundation.org>
To: guocai.he.cn@windriver.com
Cc: stable@vger.kernel.org, peili.dev@gmail.com, dave.kleikamp@oracle.com
Subject: Re: [PATCH 5.15] jfs: Fix shift-out-of-bounds in dbDiscardAG
Date: Fri, 13 Dec 2024 12:15:11 +0100 [thread overview]
Message-ID: <2024121304-shortwave-upbeat-658e@gregkh> (raw)
In-Reply-To: <20241213054350.3113655-1-guocai.he.cn@windriver.com>
On Fri, Dec 13, 2024 at 01:43:50PM +0800, guocai.he.cn@windriver.com wrote:
> From: Pei Li <peili.dev@gmail.com>
>
> [ Upstream commit 7063b80268e2593e58bee8a8d709c2f3ff93e2f2 ]
>
> When searching for the next smaller log2 block, BLKSTOL2() returned 0,
> causing shift exponent -1 to be negative.
>
> This patch fixes the issue by exiting the loop directly when negative
> shift is found.
>
> Reported-by: syzbot+61be3359d2ee3467e7e4@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=61be3359d2ee3467e7e4
> Signed-off-by: Pei Li <peili.dev@gmail.com>
> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
> Signed-off-by: Guocai He <guocai.he.cn@windriver.com>
> ---
> fs/jfs/jfs_dmap.c | 2 ++
> 1 file changed, 2 insertions(+)
Now deleted, please see:
https://lore.kernel.org/r/2024121322-conjuror-gap-b542@gregkh
for what you all need to do, TOGETHER, to get this fixed and so that I
can accept patches from your company in the future.
thanks,
greg k-h
next prev parent reply other threads:[~2024-12-13 11:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 5:43 [PATCH 5.15] jfs: Fix shift-out-of-bounds in dbDiscardAG guocai.he.cn
2024-12-13 11:15 ` Greg KH [this message]
2024-12-13 15:13 ` Sasha Levin
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=2024121304-shortwave-upbeat-658e@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=dave.kleikamp@oracle.com \
--cc=guocai.he.cn@windriver.com \
--cc=peili.dev@gmail.com \
--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