Re: The disappearing sys_call_table export.

Terje Malmedal (terje.malmedal@usit.uio.no)
Fri, 9 May 2003 10:56:10 +0200


[Alan Cox]
> On Iau, 2003-05-08 at 13:25, Terje Malmedal wrote:
>> How about a
>>
>> EXPORT_SYMBOL_GPL_AND_DONT_EVEN_THINK_ABOUT_SENDING_A_BUG_REPORT(sys_call_table);

> Its in read only space nowdays anyway

>> A server for an online internet game had several months of uptime and
>> I needed to rotate the log-files so I made a module which trapped
>> sys_write and closed and reopened the file with a new name before
>> continuing[1].

> man ptrace

Did not work on multi-threaded programs at the time(at least strace
didn't), nowadays I'd use gdb as I explained in the original mail.

The point is that I used to get a convenient mechanism for working
around or fixing bugs in the kernel and applications without any
downtime. This is are very useful capability to have even if it is
only needed rarely.

Is there any reasonable way to be able to do modify a running kernel
like this? I assume I can't count on the method from Phrack working
forever...

-- 
 - Terje
malmedal@usit.uio.no
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/