From: Florian Lehner <dev@der-flo.net>
To: bpf@vger.kernel.org
Cc: x86@kernel.org, davem@davemloft.net, daniel@iogearbox.net,
andrii@kernel.org, peterz@infradead.org, keescook@chromium.org,
tglx@linutronix.de, hsinweih@uci.edu, rostedt@goodmis.org,
vegard.nossum@oracle.com, gregkh@linuxfoundation.org,
alan.maguire@oracle.com, dylany@meta.com, riel@surriel.com,
kernel-team@fb.com, Florian Lehner <dev@der-flo.net>
Subject: [RESUBMIT bpf-next 0/2] Fix copy_from_user_nofault()
Date: Wed, 29 Mar 2023 21:39:30 +0200 [thread overview]
Message-ID: <20230329193931.320642-1-dev@der-flo.net> (raw)
The original patch got submitted by Alexei Starovoitov with [0] and
fixes issues that got also reported in [1].
This resubmission adds !pagefault_disabled() to the check in
check_heap_object().
[0] https://lore.kernel.org/all/20230118051443.78988-1-alexei.starovoitov@gmail.com/
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033398
Alexei Starovoitov (2):
mm: Fix copy_from_user_nofault().
perf: Fix arch_perf_out_copy_user().
arch/x86/include/asm/perf_event.h | 2 --
arch/x86/lib/Makefile | 2 +-
arch/x86/lib/usercopy.c | 55 -------------------------------
kernel/events/internal.h | 16 +--------
mm/maccess.c | 54 +++++++++++++++++++++++++-----
mm/usercopy.c | 2 +-
6 files changed, 49 insertions(+), 82 deletions(-)
delete mode 100644 arch/x86/lib/usercopy.c
--
2.39.2
next reply other threads:[~2023-03-29 19:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 19:39 Florian Lehner [this message]
2023-03-29 19:39 ` [RESUBMIT bpf-next 1/2] mm: Fix copy_from_user_nofault() Florian Lehner
2023-03-29 19:39 ` [RESUBMIT bpf-next 2/2] perf: Fix arch_perf_out_copy_user() Florian Lehner
2023-04-05 3:08 ` Alexei Starovoitov
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=20230329193931.320642-1-dev@der-flo.net \
--to=dev@der-flo.net \
--cc=alan.maguire@oracle.com \
--cc=andrii@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=dylany@meta.com \
--cc=gregkh@linuxfoundation.org \
--cc=hsinweih@uci.edu \
--cc=keescook@chromium.org \
--cc=kernel-team@fb.com \
--cc=peterz@infradead.org \
--cc=riel@surriel.com \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=vegard.nossum@oracle.com \
--cc=x86@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