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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <412e6f7f0907030040v6133badat7058186a01d78f44@mail.gmail.com>
Date:	Fri, 3 Jul 2009 15:40:34 +0800
From:	Changli Gao <xiaosuo@...il.com>
To:	Amerigo Wang <xiyou.wangcong@...il.com>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: PROPOSAL: extend pipe() to support NULL argument.

On Fri, Jul 3, 2009 at 3:15 PM, Amerigo Wang<xiyou.wangcong@...il.com> wrote:
>
> If saving one fd really helps here, probably you want to
> save more, you will need a syscall like:
>
>  int splice_without_new_fd(int infd, int outfd);
Do you know sendfile()? Its current implementation is buggy, and will
be blocked on outfd. Anyway, the above code is just a use case, there
are other cases sendfile can't cover.

>
> But splice(2) is designed to be as it is. You need to increase
> your fd limit, instead of saving one by pipe().
>
I don't agree with you. We should save resource as much as we can, and
not work around it.


-- 
Regards,
Changli Gao(xiaosuo@...il.com)
--
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