From: James Prestwood <prestwoj@gmail.com>
To: Denis Kenzior <denkenz@gmail.com>, iwd@lists.linux.dev
Subject: Re: [PATCH v2 4/9] ft: add FTE/RSNE building to ft_prepare_handshake
Date: Wed, 6 Dec 2023 09:59:01 -0800 [thread overview]
Message-ID: <d494b581-f4bc-4e62-9dda-3917b768317d@gmail.com> (raw)
In-Reply-To: <76d133cd-e0b1-4a8f-8ade-891af9331dda@gmail.com>
On 12/6/23 09:14, Denis Kenzior wrote:
> Hi James,
>
>>>> + handshake_state_set_fte(hs, fte);
>>>
>>> However, this is less clear to me. Looking at how FILS and FT uses
>>> this API, it seems that set_fte is meant for the authenticator FTE
>>> element? So I think rekeying after FT would be broken by this change.
>>
>> Good question. Rekeys do appear to work as-is but you are right,
>> FILS/FT uses set_fte() for the authenticators element, but eapol
>> seems to use hs->fte for
>
> I'm pretty sure the intent was for the FTE element to be from the
> authenticator.
>
>> building message 2/4, as well as checks that the handshakes FTE
>> matches what the
>
> I'll have to look at how ptk_2_of_4 uses it. Memory is fuzzy now.
> Need to open the spec.
All I could find quickly was:
12.7.6.3 4-way handshake message 2
"and that the FTE and MDE are the same as those provided in the AP’s
(Re)Association Response frame"
So it does appear for EAPoL its the authenticators FTE.
>
>> authenticator sends in 3/4. maybe this is actually a bug in eapol? I
>> think the reason everything "works" is because the FTE should be the
>> same between both peers.
>
> Yes, but also we have logic in: netdev_connect_event() that sets the
> FTE from the response IEs. So that's probably how things end up
> working in the end.
>
>>
>> We may want to refactor and do:
>>
>> handshake_state_set_authenticator_fte()
>>
>> handshake_state_set_supplicant_fte()
>
> Yeah, that seems reasonable.
>
> Regards,
> -Denis
next prev parent reply other threads:[~2023-12-06 17:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-06 15:06 [PATCH v2 0/9] Reassoc/FT roaming unification James Prestwood
2023-12-06 15:07 ` [PATCH v2 1/9] auto-t: add explicit stop() to IWD class James Prestwood
2023-12-06 15:07 ` [PATCH v2 2/9] auto-t: add association timeout test James Prestwood
2023-12-06 15:07 ` [PATCH v2 3/9] auto-t: only call set_value for changed values in default() James Prestwood
2023-12-06 15:07 ` [PATCH v2 4/9] ft: add FTE/RSNE building to ft_prepare_handshake James Prestwood
2023-12-06 16:36 ` Denis Kenzior
2023-12-06 17:08 ` James Prestwood
2023-12-06 17:14 ` Denis Kenzior
2023-12-06 17:59 ` James Prestwood [this message]
2023-12-06 15:07 ` [PATCH v2 5/9] ft: add ft_handshake_setup James Prestwood
2023-12-06 16:38 ` Denis Kenzior
2023-12-06 16:46 ` James Prestwood
2023-12-06 15:07 ` [PATCH v2 6/9] netdev: add netdev_ft_reassociate James Prestwood
2023-12-06 16:40 ` Denis Kenzior
2023-12-06 16:49 ` James Prestwood
2023-12-06 15:07 ` [PATCH v2 7/9] station: use netdev_ft_reassociate James Prestwood
2023-12-06 15:07 ` [PATCH v2 8/9] ft: remove ft_associate and helpers James Prestwood
2023-12-06 15:07 ` [PATCH v2 9/9] netdev: station: remove NETDEV_EVENT_FT_ROAMED James Prestwood
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-all 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=d494b581-f4bc-4e62-9dda-3917b768317d@gmail.com \
--to=prestwoj@gmail.com \
--cc=denkenz@gmail.com \
--cc=iwd@lists.linux.dev \
/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