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  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:   Sat, 10 Dec 2022 11:26:16 -0800
From:   Linus Torvalds <>
To:     Jens Axboe <>
Cc:     netdev <>,
        "" <>
Subject: Re: [GIT PULL] Add support for epoll min wait time

On Sat, Dec 10, 2022 at 10:51 AM Linus Torvalds
<> wrote:
> Now, maybe there is some reason why the tty like VMIN/VTIME just isn't
> relevant, but I do think that people have successfully used VMIN/VTIME
> for long enough that it should be at least given some thought.

Side note: another thing the tty layer model does is to make this be a
per-tty thing.

That's actually noticeable in regular 'poll()/select()' usage, so it
has interesting semantics: if VTIME is 0 (ie there is no inter-event
timeout), then poll/select will return "readable" only once you hit
VMIN characters.

Maybe this isn't relevant for the epoll() situation, but it might be
worth thinking about.

It's most definitely not obvious that any epoll() timeout should be
the same for different file descriptors.

Willy already mentioned "urgent file descriptors", and making these
things be per-fd would very naturally solve that whole situation too.

Again: I don't want to in any way force a "tty-like" solution. I'm
just saying that this kind of thing does have a long history, and I do
get the feeling that the tty solution is the more flexible one.

And while the tty model is "per tty" (it's obviously hidden in the
termios structure), any epoll equivalent would have to be different
(presumably per-event or something).

So I'm also not advocating some 1:1 equivalence, just bringing up the
whole "ttys do this similar thing but they seem to have a more
flexible model".


Powered by blists - more mailing lists