netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 5.18 breaks Android net test PFKEY AddSA test case
@ 2022-05-28  8:54 Maciej Żenczykowski
  2022-05-30  7:02 ` Steffen Klassert
  0 siblings, 1 reply; 3+ messages in thread
From: Maciej Żenczykowski @ 2022-05-28  8:54 UTC (permalink / raw)
  To: Steffen Klassert; +Cc: Linux NetDev, Benedict Wong, Yan Yan

I've not gotten to the bottom of the root cause, since I'm hoping
someone will know off the top of their head,
why this might now be broken...

##### ./pf_key_test.py (13/25)

E
======================================================================
ERROR: testAddDelSa (__main__.PfKeyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./pf_key_test.py", line 42, in testAddDelSa
    pf_key.SADB_X_AALG_SHA2_256HMAC, ENCRYPTION_KEY)
  File "/aosp-tests/net/test/pf_key.py", line 254, in AddSa
    self.SendAndRecv(msg, self.PackPfKeyExtensions(extlist))
  File "/aosp-tests/net/test/pf_key.py", line 218, in SendAndRecv
    return self.Recv()
  File "/aosp-tests/net/test/pf_key.py", line 208, in Recv
    raise OSError(msg.errno, os.strerror(msg.errno))
OSError: [Errno 3] No such process

The failure is at
  https://cs.android.com/android/platform/superproject/+/master:kernel/tests/net/test/pf_key_test.py;l=42
ie.

ENCRYPTION_KEY =
("308146eb3bd84b044573d60f5a5fd15957c7d4fe567a2120f35bae0f9869ec22".decode("hex"))

src4 = csocket.Sockaddr(("192.0.2.1", 0))
dst4 = csocket.Sockaddr(("192.0.2.2", 1))
self.pf_key.AddSa(src4, dst4, 0xdeadbeef, pf_key.SADB_TYPE_ESP,
pf_key.IPSEC_MODE_TRANSPORT, 54321,
pf_key.SADB_X_EALG_AESCBC, ENCRYPTION_KEY,
pf_key.SADB_X_AALG_SHA2_256HMAC, ENCRYPTION_KEY)

Thanks,
Maciej

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 5.18 breaks Android net test PFKEY AddSA test case
  2022-05-28  8:54 5.18 breaks Android net test PFKEY AddSA test case Maciej Żenczykowski
@ 2022-05-30  7:02 ` Steffen Klassert
  2022-05-30  8:09   ` Maciej Żenczykowski
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Klassert @ 2022-05-30  7:02 UTC (permalink / raw)
  To: Maciej Żenczykowski; +Cc: Linux NetDev, Benedict Wong, Yan Yan

On Sat, May 28, 2022 at 01:54:25AM -0700, Maciej Żenczykowski wrote:
> I've not gotten to the bottom of the root cause, since I'm hoping
> someone will know off the top of their head,
> why this might now be broken...
> 
> ##### ./pf_key_test.py (13/25)
> 
> E
> ======================================================================
> ERROR: testAddDelSa (__main__.PfKeyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./pf_key_test.py", line 42, in testAddDelSa
>     pf_key.SADB_X_AALG_SHA2_256HMAC, ENCRYPTION_KEY)
>   File "/aosp-tests/net/test/pf_key.py", line 254, in AddSa
>     self.SendAndRecv(msg, self.PackPfKeyExtensions(extlist))
>   File "/aosp-tests/net/test/pf_key.py", line 218, in SendAndRecv
>     return self.Recv()
>   File "/aosp-tests/net/test/pf_key.py", line 208, in Recv
>     raise OSError(msg.errno, os.strerror(msg.errno))
> OSError: [Errno 3] No such process
> 
> The failure is at
>   https://cs.android.com/android/platform/superproject/+/master:kernel/tests/net/test/pf_key_test.py;l=42
> ie.
> 
> ENCRYPTION_KEY =
> ("308146eb3bd84b044573d60f5a5fd15957c7d4fe567a2120f35bae0f9869ec22".decode("hex"))
> 
> src4 = csocket.Sockaddr(("192.0.2.1", 0))
> dst4 = csocket.Sockaddr(("192.0.2.2", 1))
> self.pf_key.AddSa(src4, dst4, 0xdeadbeef, pf_key.SADB_TYPE_ESP,
> pf_key.IPSEC_MODE_TRANSPORT, 54321,
> pf_key.SADB_X_EALG_AESCBC, ENCRYPTION_KEY,
> pf_key.SADB_X_AALG_SHA2_256HMAC, ENCRYPTION_KEY)

I guess that is because of

commit 4dc2a5a8f6754492180741facf2a8787f2c415d7
net: af_key: add check for pfkey_broadcast in function pfkey_process

This is already reverted in the ipsec tree and will go upstream
this week.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 5.18 breaks Android net test PFKEY AddSA test case
  2022-05-30  7:02 ` Steffen Klassert
@ 2022-05-30  8:09   ` Maciej Żenczykowski
  0 siblings, 0 replies; 3+ messages in thread
From: Maciej Żenczykowski @ 2022-05-30  8:09 UTC (permalink / raw)
  To: Steffen Klassert; +Cc: Linux NetDev, Benedict Wong, Yan Yan

On Mon, May 30, 2022 at 12:03 AM Steffen Klassert
<steffen.klassert@secunet.com> wrote:
> On Sat, May 28, 2022 at 01:54:25AM -0700, Maciej Żenczykowski wrote:
> > I've not gotten to the bottom of the root cause, since I'm hoping
> > someone will know off the top of their head,
> > why this might now be broken...
> I guess that is because of
>
> commit 4dc2a5a8f6754492180741facf2a8787f2c415d7
> net: af_key: add check for pfkey_broadcast in function pfkey_process
>
> This is already reverted in the ipsec tree and will go upstream
> this week.

Yes, reverting that does indeed appear to fix things.
Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-30  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28  8:54 5.18 breaks Android net test PFKEY AddSA test case Maciej Żenczykowski
2022-05-30  7:02 ` Steffen Klassert
2022-05-30  8:09   ` Maciej Żenczykowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).