From: Miles Chen <miles.chen@mediatek.com>
To: <xiaobing.shi@mediatek.com>
Cc: <bjorn.andersson@linaro.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
<linux-mediatek@lists.infradead.org>,
<linux-remoteproc@vger.kernel.org>, <mathieu.poirier@linaro.org>,
<matthias.bgg@gmail.com>
Subject: Re: [PATCH] remoteproc: avoid array index out of bounds in debugfs file
Date: Tue, 29 Mar 2022 10:46:14 +0800 [thread overview]
Message-ID: <20220329024614.9783-1-miles.chen@mediatek.com> (raw)
In-Reply-To: <20220328123413.18169-1-xiaobing.shi@mediatek.com>
Hi Xiaobing,
> There is a negative offset of an on-stack array that causes an out of
> bounds issue when someone called with a zero 'count' argument to
> syswrite().
>
> buf[count - 1]
>
> We should add an extra check in rproc_coredump_write() to prevent the
> access.
>
> Signed-off-by: Xiaobing shi <xiaobing.shi@mediatek.com>
Thanks for the patch.
However, Alistair has fixed this issue:
https://lore.kernel.org/all/20220119232139.1125908-1-adelva@google.com/
Thanks,
Miles
prev parent reply other threads:[~2022-03-29 2:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-28 12:34 Xiaobing shi
2022-03-29 2:46 ` Miles Chen [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=20220329024614.9783-1-miles.chen@mediatek.com \
--to=miles.chen@mediatek.com \
--cc=bjorn.andersson@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=matthias.bgg@gmail.com \
--cc=xiaobing.shi@mediatek.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
all inboxes | Powered by JetHome®