From: Shuah Khan <skhan@linuxfoundation.org>
To: Kees Cook <keescook@chromium.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jessica Yu <jeyu@kernel.org>, kernel test robot <lkp@intel.com>,
Shuah Khan <shuah@kernel.org>,
Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [GIT PULL] kallsyms_show_value-fix updates for v5.9-rc1
Date: Fri, 7 Aug 2020 14:16:24 -0600 [thread overview]
Message-ID: <d625f256-0f99-05df-1fd2-94d3bd302bcd@linuxfoundation.org> (raw)
In-Reply-To: <202008071250.7DC8D5FF61@keescook>
On 8/7/20 1:55 PM, Kees Cook wrote:
> Hi Linus,
>
> Please pull this fix to my kallsyms_show_value() refactoring for
> v5.9-rc1. About a month after the original refactoring landed, 0day
> noticed that there was a path through the kernfs binattr read handlers
> that did not have PAGE_SIZEd buffers, and the module "sections" read
> handler made a bad assumption about this, resulting in it stomping on
> memory when reached through small-sized splice() calls. I've added a set
> of tests to find these kinds of regressions more quickly in the future
> as well.
>
Awesome. Thanks Kees.
>
> The following changes since commit bcf876870b95592b52519ed4aafcf9d95999bc9c:
>
> Linux 5.8 (2020-08-02 14:21:45 -0700)
>
> are available in the Git repository at:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/kallsyms_show_value-fix-v5.9-rc1
>
> for you to fetch changes up to 9af47666cb0f331bfcd76799ee368cdfcb00882c:
>
> selftests: splice: Check behavior of full and short splices (2020-08-07 10:50:11 -0700)
>
> ----------------------------------------------------------------
> Fix sysfs module section output overflow
>
> ----------------------------------------------------------------
> Kees Cook (2):
> module: Correctly truncate sysfs sections output
> selftests: splice: Check behavior of full and short splices
>
> kernel/module.c | 22 +++++++--
> tools/testing/selftests/splice/.gitignore | 1 +
> tools/testing/selftests/splice/Makefile | 4 +-
> tools/testing/selftests/splice/config | 1 +
> tools/testing/selftests/splice/settings | 1 +
> .../testing/selftests/splice/short_splice_read.sh | 56 +++++++++++++++++++++
> tools/testing/selftests/splice/splice_read.c | 57 ++++++++++++++++++++++
> 7 files changed, 137 insertions(+), 5 deletions(-)
> create mode 100644 tools/testing/selftests/splice/config
> create mode 100644 tools/testing/selftests/splice/settings
> create mode 100755 tools/testing/selftests/splice/short_splice_read.sh
> create mode 100644 tools/testing/selftests/splice/splice_read.c
>
For selftests part.
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
thanks,
-- Shuah
next prev parent reply other threads:[~2020-08-07 20:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-07 19:55 [GIT PULL] kallsyms_show_value-fix updates for v5.9-rc1 Kees Cook
2020-08-07 20:16 ` Shuah Khan [this message]
2020-08-07 20:40 ` pr-tracker-bot
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=d625f256-0f99-05df-1fd2-94d3bd302bcd@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=jeyu@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=shuah@kernel.org \
--cc=torvalds@linux-foundation.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