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]
Date: Wed, 24 Apr 2024 13:59:29 -0400
From: Benjamin Poirier <benjamin.poirier@...il.com>
To: Simon Horman <horms@...nel.org>
Cc: Aaron Conole <aconole@...hat.com>, Jakub Kicinski <kuba@...nel.org>,
	dev@...nvswitch.org, netdev@...r.kernel.org,
	linux-kselftest@...r.kernel.org, Jiri Pirko <jiri@...nulli.us>
Subject: Re: [ovs-dev] selftests: openvswitch: Questions about possible
 enhancements

On 2024-04-24 18:37 +0100, Simon Horman wrote:
> On Wed, Apr 24, 2024 at 05:44:05PM +0100, Simon Horman wrote:
> > Hi Aaron, Jakub, all,
> > 
> > I have recently been exercising the Open vSwitch kernel selftests,
> > using vng, something like this:
> > 
> > 	TESTDIR="tools/testing/selftests/net/openvswitch"
> > 
> >         vng -v --run . --user root --cpus 2 \
> >                 --overlay-rwdir "$PWD" -- \
> >                 "modprobe openvswitch && \
> > 		 echo \"timeout=90\" >> \"${TESTDIR}/settings\" && \
> >                  make -C \"$TESTDIR\" run_tests"
> > 
> > And I have some observations that I'd like to ask about.
> > 
> > 1. Building the kernel using the following command does not
> >    build the openvswitch kernel module.
> > 
> > 	vng -v --build \
> > 		--config tools/testing/selftests/net/config
> > 
> >    All that seems to be missing is CONFIG_OPENVSWITCH=m
> >    and I am wondering what the best way of resolving this is.
> > 
> >    Perhaps I am doing something wrong.
> >    Or perhaps tools/testing/selftests/net/openvswitch/config
> >    should be created? If so, should it include (most of?) what is in
> >    tools/testing/selftests/net/config, or just CONFIG_OPENVSWITCH=m?

I noticed something similar when testing Jiri's virtio_net selftests
patchset [1].

drivers/net/virtio_net/config includes virtio options but the
test also needs at least CONFIG_NET_VRF=y which is part of net/config.

Whatever the answer to your question, all config files should be
coherent on this matter.

[1] https://lore.kernel.org/netdev/20240424104049.3935572-1-jiri@resnulli.us/

[...]
> 
>   5. openvswitch.sh starts with "#!/bin/sh".
>      But substitutions such as "${ns:0:1}0"  fail if /bin/sh is dash.
>      Perhaps we should change openvswitch.sh to use bash?

I think so. A similar change was done in
c2518da8e6b0 selftests: bonding: Change script interpreter (v6.8-rc1)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ