Calling getaddrinfo(3) in 32-bit binary on 64-bit host

Eugene Grosbein eugen at grosbein.net
Mon Jan 22 21:03:08 UTC 2018


23.01.2018 2:29, Konstantin Belousov пишет:
> On Tue, Jan 23, 2018 at 02:55:24AM +0800, Li-Wen Hsu wrote:
>> I'll try to find other uses of SA_SIZE() and see if they would be run in
>> compat32 mode and works or not.
> There are enough uses of SA_SIZE() by functions which are perhaps called
> both from a sysctl handler and for queuing the routing messages into routing
> socket queue.  In the later case, we cannot know ABI of the reader.  This
> is what I referenced when I noted that routing socket's ABI compat is
> impossible to implement correctly.

Can't we supply sysctl handler with some kind of back reference to original
userland caller of the syscall to find its ABI?




More information about the freebsd-hackers mailing list