Crash by update of shared libraries

From: Florent Fourcot
Date: Tue Feb 18 2014 - 15:00:34 EST


Hello,

my system crash by libraries update. Some steps to reproduce the
bug (without crash of the all system):


$ export LD_PRELOAD=./libfake.so.1
$ cp libfake.so.1 /tmp/
$ cp /tmp/libfake.so.1 .
=> Bus error

The cp crash, since the file of the loaded library changed (and the copy
failed of course, the new file is now empty).
All software with a library loaded (with ld) will crash as well (for
example by system updating of the libc: the pid 1 will crash).

Tested on a Linux kernel 3.14.0-rc3.

Regards,

--
Florent.
--
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/