Skip to content

Change CIFS_FULL_KEY_DUMP ioctl to return variable size keys

Aurélien Aptel linux-cifs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cifs: set server->cipher_type to AES-128-CCM for SMB3.0fs/cifs/smb2pdu.c+7 -03 replies
2/2cifs: change format of CIFS_FULL_KEY_DUMP ioctlfs/cifs/cifs_ioctl.h fs/cifs/cifspdu.h fs/cifs/ioctl.c+126 -451 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPaulo Alcantara (SUSE)
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] Change CIFS_FULL_KEY_DUMP ioctl to return variable size keys

From: Aurelien Aptel <[email protected]>

This patchset changes the CIFS_FULL_KEY_DUMP ioctl to return variable size keys to userspace while keeping the same ioctl number.

This version of the ioctl should be future proof if we ever add more cipher types or bigger keys.

This also fixes the build error for ARM related to get_user() being undefined.

I have tested this for AES-128 and AES-256.

I have a separate patch for the smbinfo utility to make use of this new ioctl that I will send in a separate thread.

Aurelien Aptel (2):
cifs: set server->cipher_type to AES-128-CCM for SMB3.0
cifs: change format of CIFS_FULL_KEY_DUMP ioctl

 fs/cifs/cifs_ioctl.h |  25 ++++++--
 fs/cifs/cifspdu.h    |   3 +-
 fs/cifs/ioctl.c      | 143 +++++++++++++++++++++++++++++++------------
 fs/cifs/smb2pdu.c    |   7 +++
 4 files changed, 133 insertions(+), 45 deletions(-)
Signature · 1 line
2.31.1