Skip to contentSkip to conversation

syscall.tbl refactoring seems to have dropped definition of __NR_newfstatat on arm64 and riscv (64-bit) at least

DISCUSSION Florian Weimer 3 participants 3 messages Aug 1, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

It's been repported that __NR_newfstatat has gone missing from the UAPI headers.

[sanitizer] __NR_newfstatat not defined in linux kernel headers in aarch64
<https://github.com/llvm/llvm-project/issues/100098>

__NR_newfstatat no longer defined on aarch64
<https://bugzilla.redhat.com/show_bug.cgi?id=2301919>

I suspect that's related to the syscall.tbl refactoring around these commits:

commit e632bca07c8eef1de9dc50f4e4066c56e9d68b07

Author: Arnd Bergmann <[email protected]>
Date:   Thu Jul 4 14:33:34 2024 +0200

arm64: generate 64-bit syscall.tbl

commit 3db80c999debbadd5d627fb30f8b06fee331ffb6

Author: Arnd Bergmann <[email protected]>
Date:   Wed Apr 24 09:14:39 2024 +0200

riscv: convert to generic syscall table

Thanks,
Florian

#1 lore raw
Quoted 2 lines · Florian Weimer

It's been repported that __NR_newfstatat has gone missing from the UAPI headers.

It has actually been wrongly renamed to __NR_fstatat.

Signature · 3 lines
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
#2 lore raw
Quoted 6 lines · Andreas Schwab
Quoted 2 lines · Florian Weimer

It's been repported that __NR_newfstatat has gone missing from the UAPI headers.

It has actually been wrongly renamed to __NR_fstatat.

Ah, I see what happened now, this was part of a semi-automated conversion from the old format and I incorrectly split up the entries between 32-bit and 64-bit.

There is another bug in the same entry, since in the meantime, we have also decided to make newfstat/newfstatat unconditional again for all 64-bit architectures, and this hasn't made it into the new syscall.tbl format. This one is only important for loongarch64.

I'll fix up both ASAP, thanks a lot for the report!

Arnd