Khem Raj f5b8366ede lksctp-tools: fix sctp_connectx() and ptests on musl
Three func_tests failed on musl:

- test_1_to_1_sendmsg and test_1_to_1_recvmsg died with SIGSEGV. They
  pass (struct msghdr *)-1 and expect EFAULT, but on 64-bit musl the
  sendmsg()/recvmsg() wrappers copy the msghdr to clear its padding
  before making the syscall. Issue those two calls with syscall(2) so
  they test the kernel's handling of the bad pointer.

- test_connectx reported "Association id mismatch: connectx returned 3,
  notification returned:240". libsctp exports an unversioned
  sctp_connectx alias of the original API next to the VERS_1..VERS_3
  versions. musl's dynamic linker does not implement symbol versioning
  and binds that alias, so every sctp_connectx() call on musl ran the old
  API, which never returns the association id. The alias only serves
  binaries linked before libsctp was versioned, so only emit it on
  glibc; sctp_connectx@@VERS_3 is then the one musl resolves.

Tested with meta-networking-image-ptest-lksctp-tools on qemux86-64 with
yoe-musl-systemd-wayland: TOTAL: 1 FAIL: 0.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-28 06:57:40 -07:00
2026-06-23 00:45:59 -07:00
2026-09-28 06:57:40 -07:00
…

Collection of layers for the OE-core universe

Main layer maintainer: Khem Raj raj.khem@gmail.com

This repository is a collection of layers to supplement OE-Core with additional packages, Each layer have designated maintainer Please see the respective READMEs in the layer subdirectories

S
Description
No description provided
Readme
129 MiB
0 Stars 1 Watchers 0 Forks
Languages
BitBake 85.1%
Shell 5.6%
NASL 3.4%
C 2.6%
Roff 1.8%
Other 1.3%