From: Gu Bowen <gubowen5@huawei.com>
To: Helge Deller <deller@gmx.de>
Cc: <linux-fbdev@vger.kernel.org>, <dri-devel@lists.freedesktop.org>,
Lu Jialin <lujialin4@huawei.com>
Subject: Re: [PATCH stable] fbdev: Fix out-of-bounds issue in sys_fillrect()
Date: Wed, 3 Dec 2025 10:11:19 +0800 [thread overview]
Message-ID: <dcea10d8-880f-44d7-ba45-78a89133a824@huawei.com> (raw)
In-Reply-To: <aef7d5fd-2926-4c58-b720-4af58aa380d3@gmx.de>
On 12/3/2025 4:05 AM, Helge Deller wrote:
> Backporting commit eabb03293087 to 6.6 seems unrealistic.
> So, maybe adding your patch to stable might make sense.
>
> + if (dst_offset < 0 || dst_offset >= p->fix.smem_len) {
> + pr_err("dst offset out of bound: dst_offset(%ld)", dst_offset);
> + return;
>
> I don't like the pr_err() in here. I do understand that you want to print
> that something wrong happened, but we are inside the console printing code.
> I think we should just return in this case.
>
Oh, you are right, I should not add pr_err() in here. Maybe we can use
pr_info_once() instead if you don't mind.
I will send a new patch until I receive your feedback. Thanks!
BR,
Guber
prev parent reply other threads:[~2025-12-03 2:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-12 7:32 [PATCH stable] fbdev: Fix out-of-bounds issue in sys_fillrect() Gu Bowen
2025-11-14 19:21 ` Helge Deller
2025-12-01 9:25 ` Gu Bowen
2025-12-02 20:05 ` Helge Deller
2025-12-03 2:11 ` Gu Bowen [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=dcea10d8-880f-44d7-ba45-78a89133a824@huawei.com \
--to=gubowen5@huawei.com \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=lujialin4@huawei.com \
/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