lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJnrk1a68UtQs7gsAGPk5NfGcXPKonHZCscrvjsFOBz5g6+cBg@mail.gmail.com>
Date:   Thu, 14 Jul 2022 12:49:33 -0700
From:   Joanne Koong <joannelkoong@...il.com>
To:     Paolo Abeni <pabeni@...hat.com>
Cc:     netdev <netdev@...r.kernel.org>,
        Eric Dumazet <edumazet@...gle.com>,
        Martin KaFai Lau <kafai@...com>,
        Jakub Kicinski <kuba@...nel.org>,
        David Miller <davem@...emloft.net>
Subject: Re: [PATCH net-next v2 3/3] selftests/net: Add sk_bind_sendto_listen test

On Thu, Jul 14, 2022 at 2:19 AM Paolo Abeni <pabeni@...hat.com> wrote:
>
> On Tue, 2022-07-12 at 16:53 -0700, Joanne Koong wrote:
> > This patch adds a new test called sk_bind_sendto_listen.
> >
> > This test exercises the path where a socket's rcv saddr changes after it
> > has been added to the binding tables, and then a listen() on the socket
> > is invoked. The listen() should succeed.
> >
> > This test is copied over from one of syzbot's tests:
> > https://syzkaller.appspot.com/x/repro.c?x=1673a38df00000
> >
> > Signed-off-by: Joanne Koong <joannelkoong@...il.com>
> > ---
> >  tools/testing/selftests/net/.gitignore        |  1 +
> >  tools/testing/selftests/net/Makefile          |  1 +
> >  .../selftests/net/sk_bind_sendto_listen.c     | 80 +++++++++++++++++++
> >  3 files changed, 82 insertions(+)
> >  create mode 100644 tools/testing/selftests/net/sk_bind_sendto_listen.c
> >
> > diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftests/net/.gitignore
> > index 5b1adf6e29ae..5fd74a1162cc 100644
> > --- a/tools/testing/selftests/net/.gitignore
> > +++ b/tools/testing/selftests/net/.gitignore
> > @@ -39,3 +39,4 @@ toeplitz
> >  cmsg_sender
> >  unix_connect
> >  bind_bhash
> > +sk_bind_sendto_listen
> > diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile
> > index e678fc3030a2..ffcc472d50d5 100644
> > --- a/tools/testing/selftests/net/Makefile
> > +++ b/tools/testing/selftests/net/Makefile
> > @@ -61,6 +61,7 @@ TEST_GEN_FILES += cmsg_sender
> >  TEST_GEN_FILES += stress_reuseport_listen
> >  TEST_PROGS += test_vxlan_vnifiltering.sh
> >  TEST_GEN_FILES += bind_bhash
> > +TEST_GEN_FILES += sk_bind_sendto_listen
>
> It looks like this is never invoked by the self-tests ?!? you should
> likely update bind_bhash.sh to run the new program.

Oh, I see. I didn't realize the net selftests should get invoked
automatically. Sorry about that.
I will add a "TEST_GEN_PROGS += sk_bind_sendto_listen" line to the
Makefile instead of adding it to bind_bhash.sh since the bhash setup
is not required for running ./sk_bind_sendto_listen. Thanks!

>
> Thanks!
>
> Paolo
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ