-
jperkin
jzu: just to close the loop on the samba thing, I backported the latest 4.17.x to 2022Q4 and manually applied the memset_s fix as it's not available in that branch
-
danmcd
sjorge: lemme look...
-
danmcd
Maybe this? setsockopt(4, SOL_IPV6, IPV6_RECVHOPLIMIT, [1], 4) = 0
-
danmcd
I'll double-check.
-
danmcd
Nope.
-
danmcd
Lemme try again.
-
danmcd
IPV6_RECVERR
-
danmcd
Yeah... we don't support that in illumos, therefore:
-
danmcd
usr/src/uts/common/brand/lx/syscall/lx_socket.c: { OPTNOTSUP, 0 }, /* IPV6_RECVERR */
-
danmcd
We'd need it and its IPv4 equivalent before plumbing them both down to LX.
-
danmcd
usr/src/uts/common/brand/lx/sys/lx_socket.h:#define LX_IP_RECVERR 11
-
danmcd
usr/src/uts/common/brand/lx/sys/lx_socket.h:#define LX_IPV6_RECVERR 25
-
danmcd
Even FreeBSD's stock TCP/IP stack doesn't support this. It's very much a Linux-ism, and from my cursory reading of the man page... quite annoying to build.
-
danmcd
Analysis in the OmniOS ticket.
-
sjorge
Is it an option to lie somehow so that ipv6 name resolution works, It's kind of a pain. Then again I'm not sure what IP(V6)_RECVERR is supose to do.
-
sjorge
-
sjorge
"When the user receives an error from a socket operation, the errors can be received by calling recvmsg(2) with the MSG_ERRQUEUE flag set."
-
sjorge
That doesn't mention they SHOULD be, so I'd be tempted to lie that we will and never do ^.^
-
sjorge
Then again I'm also a bit evil at times
-
sjorge
Seems a lot of work to properly plumb up though as you mentioned
-
sjorge
I vaguely remember us lying un LX at another place too ?
-
sjorge
I wonder if freebsd hits the same issue then with there linux layer
-
danmcd
See my analysis for stock FreeBSD.
-
danmcd
I will point out they ahve a global to enable lying in some cases. Paste in a sec...
-
danmcd
-
sjorge
Aha specifically for DNS too
-
sjorge
Would it be acceptable for us to do so too?
-
sjorge
I don't have high hopes that I can make the change, but after having done the viona one, I'm willing to give that a go if I know it will likely be accepted
-
sjorge
Well I guess, thats more of a danmcd + andyf specific question I guess
-
sjorge
As it's not upstream :D
-
danmcd
FreeBSD feels it should lie about it ONLY if a global is whacked. I wonder if we can be more subtle about it, perhaps as an LX zone property?
-
danmcd
There's design work to be done here.
-
sjorge
Heck I'd be happy with a tunable :D
-
sjorge
I know how that works now code wise *smirks*
-
sjorge
Yes, I will now use this hammer for all nails, but also all screws I think I can hit with it
-
sjorge
The freebsd one seems to be for IPv4 though? Or do they have one for IPv6 too?
-
sjorge
Because for me at least it seems opnly IPv6 name resolution is busted
-
sjorge
How much context does LX have about whatever it's emulating, can it detect, this is glibc's dns resolver code path ?
-
sjorge
Of interest, when using static /etc/hosts entries ping complains about IPV6_RECVERR too
-
sjorge
ping: IPV6_RECVERR: Protocol not available
-
sjorge
Why does linux do X, comes up to often for me -_-
-
sjorge
Followed by, why can't people just write software that argets posix
-
sjorge
*targets
-
jbk
unfortunately a lot of developers just don't pay attention
-
jbk
and I think illumos and solaris are the only ones that have been really strict about 'if you want POSIX and only POSIX, here you go'
-
jbk
(for better or for worse)
-
sjorge
Oh great
-
sjorge
-
danmcd
Yep...
-
danmcd
"Interface stability... we've heard of it!"
-
sjorge
It should somehow be delt with somehow though under lx
-
sjorge
Be it by lying in some cases or just supporting it
-
bahamat
I'm not sure they have heard of it.
-
sjorge
Interface stability, posix, or both? :p
-
sjorge
I'm not imediatly finding any of the other BSD's having it either
-
copec
How do you debug ` Invalid JSON payload: Unexpected token ` so you can see where it stumbles?
-
copec
^ vmadm create
-
bahamat
copec: json -f <file>
-
bahamat
That should show you exactly where the parsing error is.
-
copec
ty
-
copec
jperkin, You should add dos2unix to the smartos gz tools pkgin
-
nbjoerg
copec: what's wrong with tr?
-
copec
I dunno, it didn't work, probably because it was a spliced up file, so I just ran dos2unix in joyent brand zone that had it in pkgin and it converted it fine
-
nbjoerg
"tr -d '\r' " is essentially all that dos2unix is doing
-
copec
It has fixed stuff in the past for me, I think they have some logic in there for trailing spaces
-
jperkin
yeh tr should fix it but I can add it anyway