Skip to content

strict user copy checks on x86_64

Stephen Boyd linux-parisc linux-s390 linux-scsi lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4lpfc: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningdrivers/scsi/lpfc/lpfc_debugfs.c+2 -10 replies
2/4kprobes: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningkernel/kprobes.c+1 -10 replies
3/4x86: Implement strict user copy checks for x86_64arch/x86/include/asm/uaccess_64.h arch/x86/lib/usercopy_64.c+15 -36 replies
4/4Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKSarch/parisc/Kconfig arch/parisc/Kconfig.debug arch/s390/Kconfig +15 more+37 -880 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJames SmartArnd BergmannIngo MolnarH. Peter AnvinChris MetcalfMasami Hiramatsu
1/4A-b
2/4A-b
3/4A-b A-b
4/4R-b A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] strict user copy checks on x86_64

Andrew,

I'm sending this to you because these weren't picked up last round and the final patch is cross architecture.

Backstory
---------
It turns out that strict user copy checks (also known as CONFIG_DEBUG_STRICT_USER_COPY_CHECKS) isn't actually implemented on x86_64 and thus we aren't catching potential security holes at compile time.

This series adds support for strict user copy checks on x86_64 and silences all the benign warnings in the x86_64 allyesconfig for linux-next 20110531.

The final patch consolidates the config option as its duplicated across mutliple arches.

Stephen Boyd (4):
lpfc: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
kprobes: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
x86: Implement strict user copy checks for x86_64 Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

 arch/parisc/Kconfig               |    1 +
 arch/parisc/Kconfig.debug         |   14 --------------
 arch/s390/Kconfig                 |    1 +
 arch/s390/Kconfig.debug           |   14 --------------
 arch/s390/lib/Makefile            |    1 -
 arch/s390/lib/usercopy.c          |    8 --------
 arch/sparc/lib/Makefile           |    1 -
 arch/sparc/lib/usercopy.c         |    8 --------
 arch/tile/Kconfig                 |    8 +-------
 arch/tile/include/asm/uaccess.h   |    7 ++++++-
 arch/tile/lib/uaccess.c           |    8 --------
 arch/x86/Kconfig                  |    1 +
 arch/x86/Kconfig.debug            |   14 --------------
 arch/x86/include/asm/uaccess_64.h |   12 +++++++++---
 arch/x86/lib/usercopy_32.c        |    6 ------
 drivers/scsi/lpfc/lpfc_debugfs.c  |    3 ++-
 kernel/kprobes.c                  |    2 +-
 lib/Kconfig.debug                 |   18 ++++++++++++++++++
 lib/Makefile                      |    1 +
 lib/usercopy.c                    |    8 ++++++++
 20 files changed, 49 insertions(+), 87 deletions(-)
 delete mode 100644 arch/s390/lib/usercopy.c
 delete mode 100644 arch/sparc/lib/usercopy.c
 create mode 100644 lib/usercopy.c
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.