bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESUBMIT bpf-next 0/2] Fix copy_from_user_nofault()
@ 2023-03-29 19:39 Florian Lehner
  2023-03-29 19:39 ` [RESUBMIT bpf-next 1/2] mm: " Florian Lehner
  2023-03-29 19:39 ` [RESUBMIT bpf-next 2/2] perf: Fix arch_perf_out_copy_user() Florian Lehner
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Lehner @ 2023-03-29 19:39 UTC (permalink / raw)
  To: bpf
  Cc: x86, davem, daniel, andrii, peterz, keescook, tglx, hsinweih,
	rostedt, vegard.nossum, gregkh, alan.maguire, dylany, riel,
	kernel-team, Florian Lehner

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-05  3:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29 19:39 [RESUBMIT bpf-next 0/2] Fix copy_from_user_nofault() Florian Lehner
2023-03-29 19:39 ` [RESUBMIT bpf-next 1/2] mm: " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).