ACK: [X][B][D][SRU][PATCH 0/1] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled
Stefan Bader
stefan.bader at canonical.com
Wed May 13 11:38:36 UTC 2020
On 27.04.20 10:55, Po-Hsu Lin wrote:
> == SRU Justification ==
> The psock_tpacket test will need to access /proc/kallsyms, this would
> require the kernel config CONFIG_KALLSYMS to be enabled first.
>
> It causes the test to fail with the following error on our KVM kernels:
> test: TPACKET_V1 with PACKET_RX_RING open: No such file or directory
>
> Apart from adding CONFIG_KALLSYMS to the net/config file here, check the
> file existence to determine if we can run this test will be helpful to
> avoid a false-positive test result when testing it directly with the
> following commad against a kernel that have CONFIG_KALLSYMS disabled:
> make -C tools/testing/selftests TARGETS=net run_tests
>
> == Fix ==
> * ff95bf28c234 ("selftests/net: skip psock_tpacket test if KALLSYMS was
> not enabled")
>
> This patch can be cherry-picked into Disco, but needs to be backported
> for X/B as they don't have an up-to-date config list.
>
> == Test ==
> Tested on KVM kernels and this patch works as expected.
>
> == Regression Potential ==
> Low, changes limited to the testing tool.
>
> Po-Hsu Lin (1):
> selftests/net: skip psock_tpacket test if KALLSYMS was not enabled
>
> tools/testing/selftests/net/config | 1 +
> tools/testing/selftests/net/run_afpackettests | 14 +++++++++-----
> 2 files changed, 10 insertions(+), 5 deletions(-)
>
Acked-by: Stefan Bader <stefan.bader at canonical.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20200513/037544cd/attachment.sig>
More information about the kernel-team
mailing list