Re: [Trivial Patch] Bad tgid and tid lookup for /proc

From: Rusty Russell
Date: Thu Mar 11 2004 - 19:56:29 EST


In message <20040209135110.H17768@xxxxxxxxxx> you write:
> All,
>
> On 2.6.2, one can do the following, which is clearly wrong:
>
> gen2 02:49:45 ~: cat /proc/1/task/$$/stat
> 1669 (bash) S 1668 1669 1669 34816 1730 256 1480 6479 12 4 8 5 5 17 15 0 1 0
8065 3252224 451 4294967295 134512640 134955932 3221225104 3221222840 429496014
4 0 65536 3686404 1266761467 3222442959 0 0 17 0 0 0
> gen2 02:50:44 ~: ls /proc/1/task
> 1

Patch was mangled, and IMHO wasn't exactly trivial. As I understand
it, you could access any task under /proc/xxx/task. Your patch seems to
make it that you can access any task under /proc/xxx/task if xxx is a
thread group leader.

A little confused,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/