[lkml]   [1998]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Anybody out there? (ETXTBSY)
In article <6s56qg$fo$>, (Linus Torvalds) writes:
> In article <>,
> Richard Henderson <> wrote:
>> On Wed, Aug 26, 1998 at 02:26:28PM -0500, pacman wrote:
>>> Is nobody interested on getting ETXTBSY to work for shared libs? Come on,
>>> take a break from the EFAULT wars and walk down the street to 26 Errno Lane
>>> and tell me what you think.
>> ETXTBSY is explicitly not set on shared libraries. If you turn
>> it on, it is impossible to upgrade

> No, the reason ETXTBSY is dangerous is mainly because it's a great
> denial-of-service thing. As such, the MAP_EXECUTABLE thing that Linux
> uses internally is not exported to user level, and as such the loader
> can't use it even if it wished.

> The reason MAP_EXECUTABLE isn't exported is programs like this:

> fd = open("/var/spool/utmp");
> mmap( ... fd ... MAP_EXECUTABLE ...);
> sleep(forever); /* nobody is able to log in */

> which used to actually happen.

How about only allowing MAP_EXECUTABLE on files that have the x bit set?
This would prevent this attack, and ETXTBSY could be properly implemented.

Or do I miss something here?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:44    [W:0.099 / U:3.844 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site