Skip to contentSkip to conversation

misc/check-installed-headers-c failing due to upstream kernel change

DISCUSSION Vineet Gupta 2 participants 2 messages Jan 23, 2019 3 messages not in the archive Synopsys ARC architecture

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 18 lines · Carlos O'Donell
Quoted 17 lines · Ben Hutchings
Quoted 15 lines · Vineet Gupta

Hi,

It seems a recent upstream kernel change (went in 5.0-rcX) 81c9d43f9487 ("kernel/sysctl: add panic_print into sysctl") trips one of the glibc tests.

FAIL: misc/check-installed-headers-c

Quoted 5 lines

:: sys/sysctl.h
::::
*** Obsolete types detected:
~/install/compilers/arc-linux-gnu/sysroot/usr/include/linux /sysctl.h:
KERN_PANIC_PRINT=78, /* ulong: bitmask to print system info on panic */

It doesn't seem to like ulong (inside a comment). I don't have enough foo to fix it, but wanted to bring it to notice anyways.

Quoted 8 lines
Quoted 3 lines

This additions looks like a mistake, anyway - Linux's binary sysctl interface is only there for ancient compatibility and no new sysctls should be added to this enumeration.

Just to be clear, this glibc test failure is a false positive [1], and we're working to correct this [2]. However, if this is also not needed on the kernel side, then that's also OK with us :-)

[1] https://www.sourceware.org/ml/libc-alpha/2019-01/msg00413.html
[2] https://www.sourceware.org/ml/libc-alpha/2019-01/msg00513.html

Great, I didn't skim thru the mailing list before posting this. So this is already known and being worked on !

Does it make sense to add the minimal fix for 2.29 ? It is likely in near future, people using the released glibc with newer kernel will run into this, unless kernel folks zap this quickly, within the current release.

-Vineet

#4 lore raw
Quoted 31 lines · Vineet Gupta
Quoted 18 lines · Carlos O'Donell
Quoted 17 lines · Ben Hutchings
Quoted 15 lines · Vineet Gupta

Hi,

It seems a recent upstream kernel change (went in 5.0-rcX) 81c9d43f9487 ("kernel/sysctl: add panic_print into sysctl") trips one of the glibc tests.

FAIL: misc/check-installed-headers-c

Quoted 5 lines

:: sys/sysctl.h
::::
*** Obsolete types detected:
~/install/compilers/arc-linux-gnu/sysroot/usr/include/linux /sysctl.h:
KERN_PANIC_PRINT=78, /* ulong: bitmask to print system info on panic */

It doesn't seem to like ulong (inside a comment). I don't have enough foo to fix it, but wanted to bring it to notice anyways.

Quoted 8 lines
Quoted 3 lines

This additions looks like a mistake, anyway - Linux's binary sysctl interface is only there for ancient compatibility and no new sysctls should be added to this enumeration.

Just to be clear, this glibc test failure is a false positive [1], and we're working to correct this [2]. However, if this is also not needed on the kernel side, then that's also OK with us :-)

[1] https://www.sourceware.org/ml/libc-alpha/2019-01/msg00413.html
[2] https://www.sourceware.org/ml/libc-alpha/2019-01/msg00513.html

Quoted 6 lines

Great, I didn't skim thru the mailing list before posting this. So this is already known and being worked on !

Does it make sense to add the minimal fix for 2.29 ? It is likely in near future, people using the released glibc with newer kernel will run into this, unless kernel folks zap this quickly, within the current release.

I don't think there is any rush. Review [2] and give Zack any feedback on correctness? We commit to master, and backport to the release branch for 2.29 when ready. Developers should be using the release branches. Distributions already use the release branches to get continued security fixes and bug fixes.

Signature · 2 lines
Cheers,
Carlos.