On Fri, 8 Jun 2007, Linus Torvalds wrote: > On Fri, 8 Jun 2007, Ulrich Drepper wrote: > > > > We are talking about file descriptors here. If you're using file > > descriptors as anything other than tokens you'll find out soon enough > > that your code is broken. The new type of file descriptors cannot be > > used as indeces and the randomization makes sure that no program by some > > fluke happens to work. > > No, Uli. > > You need things to be *repeatable* for debugging. No ifs, buts, or maybes > about it. It all depends on how you use the file descriptor. If you see a file descriptor as an opaque handle (like it should be, really), that is simply passed to the OS to use services exposed by the handle, you will be fine independently from the values handed out by the OS. It was for the exactly this guarantee that created the problems, with ppl relying on it for indexing table, closing all files < NR_FILE and so on. - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Linus Torvalds <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- References:
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Eric Dumazet <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Ulrich Drepper <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Davide Libenzi <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Ulrich Drepper <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Davide Libenzi <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Theodore Tso <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Alan Cox <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Davide Libenzi <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Alan Cox <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Ulrich Drepper <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Al Viro <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Ulrich Drepper <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- From: Linus Torvalds <[email protected]>
- Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Prev by Date: Re: [Bug 8473] New: Oops: 0010 [1] SMP
- Next by Date: Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Previous by thread: Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Next by thread: Re: [patch 7/8] fdmap v2 - implement sys_socket2
- Index(es):