Re: [PATCH] Add build time guard to detect off_t mismatch

Jan Kiszka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
On 07.05.26 16:10, Richard Weinberger wrote:
> ----- Ursprüngliche Mail -----
>> Von: "Jan Kiszka" <[email protected]>
>>> Ah, sorry for not being clear.
>>> Your fix is in next and not part of a release, and the application in
>>> question uses Xenomai 3.2.6...
>>
>> But 3.2.x is not affected by the mmap off_t issue?! Still confused.
> 
> Well, the issue I'm talking about was a build issue.
> Xenomai was configured without _FILE_OFFSET_BITS=64, but the application was with.
> Not Xenomai's fault, of course.
> 
> But when the application started to use mmap() the off_t used in the application
> had 8 bytes, but Xenomai expected 4. So, the mmap() offset parameter was wrong.

OK, given that Xenomai intercepts the mmap path, we could argue that
this is also stable relevant.

Can you confirm that this issue is truly gone in next, whatever mode you
choose on both sides?

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.