Re: Procfs race condition bug

2014-07-09 Thread Eric W. Biederman
Alexey Dobriyan writes: > [broken email] > > On Wed, Jul 9, 2014 at 3:17 PM, Alexey Dobriyan wrote: >>> I originally posted this two years ago (*) but received no response. >>> I just had a look and the problem still exists on the 3.14 kernel >>> I am currently running. >>> >>> I *think* I've un

Re: Procfs race condition bug

2014-07-09 Thread Alexey Dobriyan
[broken email] On Wed, Jul 9, 2014 at 3:17 PM, Alexey Dobriyan wrote: >> I originally posted this two years ago (*) but received no response. >> I just had a look and the problem still exists on the 3.14 kernel >> I am currently running. >> >> I *think* I've uncovered a race condition bug in proc

Re: Procfs race condition bug

2014-07-09 Thread Alexey Dobriyan
> I originally posted this two years ago (*) but received no response. > I just had a look and the problem still exists on the 3.14 kernel > I am currently running. > > I *think* I've uncovered a race condition bug in procfs. > If I attempt to open a file in /proc/net, eg "/proc/net/tcp" > it works

/proc/net/ symlink interacts badly with threads (Re: Procfs race condition bug)

2014-07-07 Thread One Thousand Gnomes
On Fri, 4 Jul 2014 11:13:11 +0100 Mike Cardwell wrote: > I originally posted this two years ago (*) but received no response. I > just had a look and the problem still exists on the 3.14 kernel I am > currently running. > > I *think* I've uncovered a race condition bug in procfs. If I attempt to

Procfs race condition bug

2014-07-04 Thread Mike Cardwell
I originally posted this two years ago (*) but received no response. I just had a look and the problem still exists on the 3.14 kernel I am currently running. I *think* I've uncovered a race condition bug in procfs. If I attempt to open a file in /proc/net, eg "/proc/net/tcp" it works fine, but if

Procfs race condition bug

2012-07-20 Thread Mike Cardwell
I *think* I've uncovered a race condition bug in procfs. If I attempt to open a file in /proc/net, eg "/proc/net/tcp" it works fine, but if I spawn a POSIX thread and attempt to do it from there, it *usually* fails with a "No such file or directory", but some times succeeds. If I do a system call i