lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 07 Jul 2009 15:02:19 -0600
From:	Zan Lynx <zlynx@....org>
To:	David Newall <davidn@...idnewall.com>
CC:	Changli Gao <xiaosuo@...il.com>,
	Denys Vlasenko <vda.linux@...glemail.com>,
	Albert ARIBAUD <albert.aribaud@...e.fr>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Amerigo Wang <xiyou.wangcong@...il.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: PROPOSAL: extend pipe() to support NULL argument.

David Newall wrote:
> Changli Gao wrote:
>>  mkfifo(name);
>>  open(name, O_RDWR);
>>  unlink(name);
>>
>> Is it a trick?
> 
> This does beg the question, why is it necessary to "extend" pipe() in
> this way?

Well, to me it sounds like the goal of the proposal is for very high 
load, high performance socket servers so efficiency matters.

The above is more than 3 times as expensive as one pipe(). Each syscall 
is thousands of machine cycles in overhead. In addition to that all 
three are VFS operations which as I recall are even more expensive than 
other syscalls.

But perhaps mkfifo(NULL) should be the syscall chosen to extend since 
its parameters are much like open() already, and it seems to work in the 
above sequence to create a one-FD FIFO already.

Or instead of, or in addition to a NULL name argument, its mode argument 
could be used as a flags argument to specify an anonymous fifo creation 
with FD return.
-- 
Zan Lynx
zlynx@....org

"Knowledge is Power.  Power Corrupts.  Study Hard.  Be Evil."
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ