From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: guoweibin <guoweibin@inspur.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb: musb: Fix musb_gadget.c rxstate overflow bug
Date: Mon, 5 Sep 2022 09:13:43 +0200 [thread overview]
Message-ID: <YxWhp/QSKUU/utBd@kroah.com> (raw)
In-Reply-To: <20220905090212.f0118580ec37bf0aababb53d@inspur.com>
On Mon, Sep 05, 2022 at 09:02:12AM +0800, guoweibin wrote:
> From: guoweibin <guoweibin@inspur.com>
> Date: Mon, 25 Jul 2022 19:27:49 +0800
> Subject: [PATCH] usb: musb: Fix musb_gadget.c rxstate overflow bug
Odd, this shouldn't be in the body of the email if you use 'git
send-email', how did you send it?
>
> when the rxstate function executes the 'goto buffer_aint_mapped' code
> branch, it will always copy the fifocnt bytes data to request->buf,
> which may cause request->buf out of bounds..
>
> Fix it by add the length check :
> fifocnt = min_t(unsigned, request->length - request->actual, fifocnt);
>
> Signed-off-by: guoweibin <guoweibin@inspur.com>
I need a "full" name, not just an email alias as a name for a
signed-off-by: Please fix that up and resend a v2.
And what commit does this fix?
thanks,
greg k-h
prev parent reply other threads:[~2022-09-05 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-05 1:02 guoweibin
2022-09-05 7:13 ` gregkh [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=YxWhp/QSKUU/utBd@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=guoweibin@inspur.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@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
all inboxes | Powered by JetHome®