summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2021-03-01 10:52:53 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2021-03-19 20:15:27 +0100
commitcd5297b0855f17c8b4e3ef1d20c6a3656209c7b3 (patch)
treeb06fb1ba811f436e71dcecad7258c77e9108c602 /tools/perf/scripts/python/bin/stackcollapse-report
parent6909115442759efef3d4bc5d9c54d7943f1afc14 (diff)
downloadkernel-cd5297b0855f17c8b4e3ef1d20c6a3656209c7b3.tar.gz
drm/etnaviv: Use FOLL_FORCE for userptr
Nothing checks userptr.ro except this call to pup_fast, which means there's nothing actually preventing userspace from writing to this. Which means you can just read-only mmap any file you want, userptr it and then write to it with the gpu. Not good. The right way to handle this is FOLL_WRITE | FOLL_FORCE, which will break any COW mappings and update tracking for MAY_WRITE mappings so there's no exploit and the vm isn't confused about what's going on. For any legit use case there's no difference from what userspace can observe and do. Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Cc: stable@vger.kernel.org Cc: John Hubbard <jhubbard@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Russell King <linux+etnaviv@armlinux.org.uk> Cc: Christian Gmeiner <christian.gmeiner@gmail.com> Cc: etnaviv@lists.freedesktop.org Link: https://patchwork.freedesktop.org/patch/msgid/20210301095254.1946084-1-daniel.vetter@ffwll.ch
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
2022-04-07x86/boot: Port I/O: Add decompression-time support for TDXKirill A. Shutemov 2022-04-07x86/tdx: Detect TDX at early kernel decompression timeKuppuswamy Sathyanarayanan 2022-04-06x86/compressed/acpi: Move EFI detection to helperMichael Roth 2022-01-19Merge tag 'kbuild-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds 2022-01-14kbuild: rename cmd_{bzip2,lzma,lzo,lz4,xzkern,zstd22}Masahiro Yamada 2021-12-23x86/boot/compressed: Move CLANG_FLAGS to beginning of KBUILD_CFLAGSNathan Chancellor 2021-05-12x86/boot/compressed: Enable -WundefNick Desaulniers 2021-05-10x86/sev-es: Rename sev-es.{ch} to sev.{ch}Brijesh Singh 2021-03-26x86/boot: Add $(CLANG_FLAGS) to compressed KBUILD_CFLAGSNathan Chancellor 2020-12-24Merge tag 'efi_updates_for_v5.11' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2020-12-01kbuild: Hoist '--orphan-handling' into KconfigNathan Chancellor 2020-11-04efi: generalize efi_get_securebootChester Lin 2020-10-14Merge tag 'x86_seves_for_v5.10' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds 2020-10-12Merge tag 'core-build-2020-10-12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds 2020-09-14x86/boot/compressed: Disable relocation relaxationArvind Sankar 2020-09-07x86/boot/compressed/64: Setup a GHCB-based VC Exception handlerJoerg Roedel 2020-09-07x86/boot/compressed/64: Add stage1 #VC handlerJoerg Roedel 2020-09-07x86/boot/compressed/64: Rename kaslr_64.c to ident_map_64.cJoerg Roedel 2020-09-07x86/boot/compressed/64: Add IDT InfrastructureJoerg Roedel 2020-09-07x86/boot/compressed/64: Disable red-zone usageJoerg Roedel 2020-09-03x86/boot/compressed: Warn on orphan section placementKees Cook 2020-09-01x86/boot/compressed: Remove, discard, or assert for unwanted sectionsKees Cook 2020-08-14x86/boot: Check that there are no run-time relocationsArvind Sankar 2020-08-14x86/boot: Remove run-time relocations from head_{32,64}.SArvind Sankar 2020-08-14x86/boot/compressed: Force hidden visibility for all symbol referencesArd Biesheuvel 2020-08-09Merge tag 'kbuild-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/masa...Linus Torvalds 2020-07-31x86: Add support for ZSTD compressed kernelNick Terrell 2020-07-19x86/boot: Don't add the EFI stub to targetsArvind Sankar 2020-07-07kbuild: remove cc-option test of -ffreestandingMasahiro Yamada 2020-07-07kbuild: remove cc-option test of -fno-stack-protectorMasahiro Yamada 2020-04-13Merge tag 'v5.7-rc1' into locking/kcsan, to resolve conflicts and refreshIngo Molnar 2020-03-31Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds