mailing list of musl libc
 help / color / mirror / code / Atom feed
* Using direct socket syscalls on x86_32 where available?
@ 2015-07-25 17:54 Andy Lutomirski
  2015-07-25 18:35 ` Szabolcs Nagy
  2015-07-26 16:59 ` Rich Felker
  0 siblings, 2 replies; 19+ messages in thread
From: Andy Lutomirski @ 2015-07-25 17:54 UTC (permalink / raw)
  To: musl

On x86_32, the only way to call socket(2), etc is using socketcall.
This is slated to change in Linux 4.3:

https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?h=x86/asm&id=9dea5dc921b5f4045a18c63eb92e84dc274d17eb

If userspace adapts by preferring the direct syscalls when available,
it'll make it easier for seccomp to filter new userspace programs
(and, ideally, eventually disallow socketcall for sandbox-aware code).

Would musl be willing to detect these syscalls and use them if available?

(Code to do this probably shouldn't be committed until that change
lands in Linus' tree, just in case the syscall numbers change in the
mean time.)

--Andy


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-08-01 11:24 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-25 17:54 Using direct socket syscalls on x86_32 where available? Andy Lutomirski
2015-07-25 18:35 ` Szabolcs Nagy
2015-07-26 16:33   ` Justin Cormack
2015-07-26 16:59 ` Rich Felker
2015-07-27 23:56   ` Andy Lutomirski
2015-07-28  0:45     ` Rich Felker
2015-07-28  1:04       ` Andy Lutomirski
2015-07-28  1:21         ` Rich Felker
2015-07-28  1:38           ` Andy Lutomirski
2015-07-28 12:05             ` Szabolcs Nagy
2015-07-28  7:44     ` Alexander Larsson
2015-07-29 12:51       ` Justin Cormack
2015-07-29 18:32         ` Andy Lutomirski
2015-07-29 23:14           ` Justin Cormack
2015-07-31 23:13             ` Brad Conroy
2015-08-01  0:02               ` Rich Felker
2015-08-01  3:32                 ` Brad Conroy
2015-08-01  3:47                   ` Rich Felker
2015-08-01 11:24                     ` u-wsnj

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).