public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: edk2-devel-groups-io <devel@edk2.groups.io>
Cc: "Jiaxin Wu" <jiaxin.wu@intel.com>,
	"Maciej Rabeda" <maciej.rabeda@linux.intel.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Siyuan Fu" <siyuan.fu@intel.com>
Subject: [PATCH 0/6] NetworkPkg/IScsiDxe: support SHA256 in CHAP
Date: Tue,  8 Jun 2021 15:06:46 +0200	[thread overview]
Message-ID: <20210608130652.2434-1-lersek@redhat.com> (raw)

Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=3355
Repo:     https://pagure.io/lersek/edk2.git
Branch:   iscsi_sha256_bz3355

Please find the Feature Request described in comment#0 of the BZ.

The patch series depends on:

  [edk2-devel] [PUBLIC edk2 PATCH v2 00/10]
  NetworkPkg/IScsiDxe: fix IScsiHexToBin() security and functionality bugs

  https://bugzilla.tianocore.org/show_bug.cgi?id=3356
  Message-Id: <20210608121259.32451-1-lersek@redhat.com>
  https://listman.redhat.com/archives/edk2-devel-archive/2021-June/msg00316.html
  https://edk2.groups.io/g/devel/message/76198

Please find the test matrix *template* in comment#2 of the BZ.

Actual test results, with this series applied:

  Tests with no authentication  Results
  ----------------------------  -------------------------
                                login result  test result
                                ------------  -----------
                                ok            PASS


  Tests with mutual authentication    Results
  ----------------------------------  --------------------------------------
                       secret of ...
                       matches        CHAP_A
  target    initiator  -------------  -------------------
  supports  supports                  offered   picked     login      test
  SHA256    MD5        target  init.  by init.  by target  result     result
  --------  ---------  ------  -----  --------  ---------  ---------  ------
  no        no         n/a     n/a    7         n/a        targ abrt  PASS
  no        yes        no      n/a    7,5       5          targ abrt  PASS
  no        yes        yes     no     7,5       5          init abrt  PASS
  no        yes        yes     yes    7,5       5          ok         PASS
  yes       no         no      n/a    7         7          targ abrt  PASS
  yes       no         yes     no     7         7          init abrt  PASS
  yes       no         yes     yes    7         7          ok         PASS
  yes       yes        no      n/a    7,5       7          targ abrt  PASS
  yes       yes        yes     no     7,5       7          init abrt  PASS
  yes       yes        yes     yes    7,5       7          ok         PASS

Notes:

- iSCSI communication was monitored with wireshark.

- RHEL-7.6 was used as the target without SHA256 support. RHEL-7.9 was
  used as the target with SHA256 support.

- The expression "initiator doesn't support MD5" means building the
  series with "-D NETWORK_ISCSI_MD5_ENABLE=FALSE".

- SHA256 support is always present in the initiator (simply by virtue of
  the series being applied). MD5 support is always present in the
  target.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>

Thanks,
Laszlo

Laszlo Ersek (6):
  NetworkPkg/IScsiDxe: re-set session-level authentication state before
    login
  NetworkPkg/IScsiDxe: add horizontal whitespace to IScsiCHAP files
  NetworkPkg/IScsiDxe: distinguish "maximum" and "selected" CHAP digest
    sizes
  NetworkPkg/IScsiDxe: support multiple hash algorithms for CHAP
  NetworkPkg/IScsiDxe: support SHA256 in CHAP
  NetworkPkg: introduce the NETWORK_ISCSI_MD5_ENABLE feature test macro

 NetworkPkg/IScsiDxe/IScsiCHAP.c        | 192 ++++++++++++++++----
 NetworkPkg/IScsiDxe/IScsiCHAP.h        |  95 ++++++++--
 NetworkPkg/IScsiDxe/IScsiDriver.c      |   2 +
 NetworkPkg/IScsiDxe/IScsiProto.c       |  21 +++
 NetworkPkg/NetworkBuildOptions.dsc.inc |   2 +-
 NetworkPkg/NetworkDefines.dsc.inc      |  20 ++
 6 files changed, 281 insertions(+), 51 deletions(-)

-- 
2.19.1.3.g30247aa5d201


             reply	other threads:[~2021-06-08 13:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-08 13:06 Laszlo Ersek [this message]
2021-06-08 13:06 ` [PATCH 1/6] NetworkPkg/IScsiDxe: re-set session-level authentication state before login Laszlo Ersek
2021-06-11 11:30   ` Maciej Rabeda
2021-06-18  9:45   ` Philippe Mathieu-Daudé
2021-06-08 13:06 ` [PATCH 2/6] NetworkPkg/IScsiDxe: add horizontal whitespace to IScsiCHAP files Laszlo Ersek
2021-06-09 10:35   ` Philippe Mathieu-Daudé
2021-06-11 11:32   ` Maciej Rabeda
2021-06-08 13:06 ` [PATCH 3/6] NetworkPkg/IScsiDxe: distinguish "maximum" and "selected" CHAP digest sizes Laszlo Ersek
2021-06-09 10:43   ` Philippe Mathieu-Daudé
2021-06-09 13:46     ` Laszlo Ersek
2021-06-11 11:38       ` Maciej Rabeda
2021-06-08 13:06 ` [PATCH 4/6] NetworkPkg/IScsiDxe: support multiple hash algorithms for CHAP Laszlo Ersek
2021-06-11 11:54   ` Maciej Rabeda
2021-06-22 15:57     ` Laszlo Ersek
2021-06-25 14:56       ` [edk2-devel] " Maciej Rabeda
2021-06-28 14:44         ` Laszlo Ersek
2021-06-08 13:06 ` [PATCH 5/6] NetworkPkg/IScsiDxe: support SHA256 in CHAP Laszlo Ersek
2021-06-09 10:37   ` Philippe Mathieu-Daudé
2021-06-11 11:54   ` Maciej Rabeda
2021-06-08 13:06 ` [PATCH 6/6] NetworkPkg: introduce the NETWORK_ISCSI_MD5_ENABLE feature test macro Laszlo Ersek
2021-06-11 11:55   ` Maciej Rabeda
2021-06-17 15:51   ` Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210608130652.2434-1-lersek@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox