net-build failed in ubuntu_kernel_selftests with 6.1 kernel

Bug #1995511 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
linux-oem-6.1 (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

Issue found with J-oem-6.0.0-1007.7

This is not a regression, issue exists before this kernel.

make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net'
gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -isystem /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/usr/include reuseport_bpf.c -o /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/reuseport_bpf
gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -isystem /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/usr/include reuseport_bpf_cpu.c -o /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/reuseport_bpf_cpu
gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -isystem /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/usr/include reuseport_bpf_numa.c -lnuma -o /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/reuseport_bpf_numa
gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -isystem /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/usr/include reuseport_dualstack.c -o /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/reuseport_dualstack
gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -isystem /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/usr/include reuseaddr_conflict.c -o /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/reuseaddr_conflict
gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -isystem /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/usr/include tls.c -o /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/tls
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net'
make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
stderr:
tls.c:32:50: error: field ‘sm4gcm’ has incomplete type
   32 | struct tls12_crypto_info_sm4_gcm sm4gcm;
      | ^~~~~~
tls.c:33:50: error: field ‘sm4ccm’ has incomplete type
   33 | struct tls12_crypto_info_sm4_ccm sm4ccm;
      | ^~~~~~
tls.c: In function ‘tls_crypto_info_init’:
tls.c:56:14: error: ‘TLS_CIPHER_SM4_GCM’ undeclared (first use in this function); did you mean ‘TLS_CIPHER_AES_GCM_256’?
   56 | case TLS_CIPHER_SM4_GCM:
      | ^~~~~~~~~~~~~~~~~~
      | TLS_CIPHER_AES_GCM_256
tls.c:56:14: note: each undeclared identifier is reported only once for each function it appears in
tls.c:57:37: error: invalid application of ‘sizeof’ to incomplete type ‘struct tls12_crypto_info_sm4_gcm’
   57 | tls12->len = sizeof(struct tls12_crypto_info_sm4_gcm);
      | ^~~~~~
tls.c:61:14: error: ‘TLS_CIPHER_SM4_CCM’ undeclared (first use in this function); did you mean ‘TLS_CIPHER_AES_CCM_128’?
   61 | case TLS_CIPHER_SM4_CCM:
      | ^~~~~~~~~~~~~~~~~~
      | TLS_CIPHER_AES_CCM_128
tls.c:62:37: error: invalid application of ‘sizeof’ to incomplete type ‘struct tls12_crypto_info_sm4_ccm’
   62 | tls12->len = sizeof(struct tls12_crypto_info_sm4_ccm);
      | ^~~~~~
tls.c: At top level:
tls.c:268:24: error: ‘TLS_CIPHER_SM4_GCM’ undeclared here (not in a function); did you mean ‘TLS_CIPHER_AES_GCM_256’?
  268 | .cipher_type = TLS_CIPHER_SM4_GCM,
      | ^~~~~~~~~~~~~~~~~~
      | TLS_CIPHER_AES_GCM_256
tls.c:274:24: error: ‘TLS_CIPHER_SM4_CCM’ undeclared here (not in a function); did you mean ‘TLS_CIPHER_AES_CCM_128’?
  274 | .cipher_type = TLS_CIPHER_SM4_CCM,
      | ^~~~~~~~~~~~~~~~~~
      | TLS_CIPHER_AES_CCM_128
tls.c: In function ‘tls_setup’:
tls.c:329:54: error: ‘TLS_RX_EXPECT_NO_PAD’ undeclared (first use in this function)
  329 | ret = setsockopt(self->cfd, SOL_TLS, TLS_RX_EXPECT_NO_PAD,
      | ^~~~~~~~~~~~~~~~~~~~
tls.c: In function ‘no_pad’:
tls.c:1681:40: error: ‘TLS_RX_EXPECT_NO_PAD’ undeclared (first use in this function)
 1681 | ret = setsockopt(cfd, SOL_TLS, TLS_RX_EXPECT_NO_PAD,
      | ^~~~~~~~~~~~~~~~~~~~
make[1]: *** [../lib.mk:140: /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net/tls] Error 1
make: *** [Makefile:158: all] Error 2

Po-Hsu Lin (cypressyew)
tags: added: 6.0 oem ubuntu-kernel-selftests
removed: ubuntu-kernel
Timo Aaltonen (tjaalton)
Changed in linux-oem-6.0 (Ubuntu):
status: New → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is affecting J-oem-6.1 as well.

tags: added: 6.1 sru-20221114
Po-Hsu Lin (cypressyew)
tags: added: sru-20230130
Timo Aaltonen (tjaalton)
affects: linux-oem-6.0 (Ubuntu) → linux-oem-6.1 (Ubuntu)
summary: - net-build failed in ubuntu_kernel_selftests with 6.0 kernel
+ net-build failed in ubuntu_kernel_selftests with 6.1 kernel
Timo Aaltonen (tjaalton)
Changed in linux-oem-6.1 (Ubuntu Jammy):
status: New → Confirmed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is affecting j-6.2 as well.

tags: added: 6.2
removed: sru-20230130
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue does not exist in j-hwe-6.2 anymore, we should check if this is still visible in other kernels.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue does not exist in J-aws-6.2, J-azure-6.2, J-azure-fde-6.2, J-gcp-6.2, J-lowlatency-hwe-6.2

Still visible in J-oem-6.0, J-oem-6.1

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This issue has gone in J-oem-6.1 6.1.0-1023.23

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

We don't support J-oem-6.0 anymore, this bug can be closed.

Changed in ubuntu-kernel-tests:
status: New → Fix Released
Changed in linux-oem-6.1 (Ubuntu Jammy):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.