Nov. 30, 2019
9:11 a.m.
On Sat, 30 Nov 2019 09:13:35 +0100, Bj�rn Mork said:
include/linux/errno.h is kernel internal only. The UAPI header is uapi/linux/errno.h, which is an alias for uapi/asm/errno.h. There is no 524 in include/uapi/asm-generic/errno.h or include/uapi/asm-generic/errno-base.h
The codes in include/linux/errno.h should be translated for userspace. This does look like a bug in the kernel tls code.
Hmm... git grep ENOTSUPP has 1,516 hits. I haven't checked if it gets translated in one place, or if it gets done in a kazillion places.