There are conflicting definitions in the kernel and userspace header files for AF_MAX and PF_MAX. It appears the kernel has a new AF_BUS taking the value of 40, with AF_MAX and PF_MAX being 41, see kernel header file "include/linux/socket.h". However, in the sysroot we find AF_MAX and PF_MAX being defined as 40, which is the old and now incorrect value. Looks like the issue is introduced with the following patch: 0001-net-bus-add-the-AF_BUS-socket-address-family.patch