Skip to content

strict user copy checks on x86_64

Stephen Boyd alsa-devel linux-bluetooth linux-parisc linux-s390 linux-scsi linux-wireless lkml netdev 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 15 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9iwlegacy: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningdrivers/net/wireless/iwlegacy/iwl-4965-rs.c+1 -12 replies
2/9iwlwifi: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningdrivers/net/wireless/iwlwifi/iwl-agn-rs.c+1 -11 reply
3/9lpfc: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningdrivers/scsi/lpfc/lpfc_debugfs.c+2 -11 reply
4/9debugfs: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningfs/debugfs/file.c+1 -11 reply
5/9kprobes: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningkernel/kprobes.c+1 -11 reply
6/9Bluetooth: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningnet/bluetooth/rfcomm/sock.c+2 -11 reply
7/9ASoC: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warningsound/soc/soc-core.c+1 -12 replies
8/9x86: Implement strict user copy checks for x86_64arch/x86/include/asm/uaccess_64.h arch/x86/lib/usercopy_64.c+15 -31 reply
9/9Consolidate CONFIG_DEBUG_STRICT_USER_COPY_CHECKSarch/parisc/Kconfig arch/parisc/Kconfig.debug arch/s390/Kconfig +15 more+37 -883 replies

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMasami HiramatsuChris MetcalfIngo MolnarArnd BergmannLiam GirdwoodJames SmartH. Peter Anvin
SeriesA-b
1/9
2/9
3/9A-b
4/9
5/9A-b
6/9
7/9A-b
8/9A-b
9/9A-b A-b R-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 7 reviewers.

Read the v1 thread

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

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.

The final patch consolidates the config option as its duplicated across mutliple arches. I don't know what tree this series should go through so I tried to send the individual driver patches to the respective maintainers.

Stephen Boyd (9):
iwlegacy: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
iwlwifi: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning [SCSI] lpfc: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
debugfs: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
kprobes: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
Bluetooth: Silence DEBUG_STRICT_USER_COPY_CHECKS=y warning
ASoC: 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/net/wireless/iwlegacy/iwl-4965-rs.c |    2 +-
 drivers/net/wireless/iwlwifi/iwl-agn-rs.c   |    2 +-
 drivers/scsi/lpfc/lpfc_debugfs.c            |    3 ++-
 fs/debugfs/file.c                           |    2 +-
 kernel/kprobes.c                            |    2 +-
 lib/Kconfig.debug                           |   18 ++++++++++++++++++
 lib/Makefile                                |    1 +
 lib/usercopy.c                              |    8 ++++++++
 net/bluetooth/rfcomm/sock.c                 |    3 ++-
 sound/soc/soc-core.c                        |    2 +-
 25 files changed, 55 insertions(+), 92 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.