home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!decwrl!sspiff!dje
- From: dje@sspiff.cygnus.com (Doug Evans)
- Subject: Checking code space writes with 0.98pl5
- Organization: Cygnus Support
- Date: Wed, 18 Nov 1992 08:11:17 GMT
- X-Newsreader: Tin 1.1 PL4
- Message-ID: <1992Nov18.081117.72@sspiff.cygnus.com>
- Lines: 28
-
- For those wanting to find those pesky (and buggy) programs, try this kernel
- patch (courtesy of Linus). The patch should be applied to mm/memory.c
-
- *** memory.c= Tue Nov 17 19:23:22 1992
- --- memory.c Wed Nov 18 08:08:39 1992
- ***************
- *** 467,473 ****
- if (tsk == current && tsk->executable && CODE_SPACE(address, current)) {
- /* don't send SIGSEGV when in kernel or v86 mode */
- if (user_esp)
- ! send_sig(SIGSEGV, tsk, 1);
- /* Note that we still do the copy-on-write: if the process catches
- * SIGSEGV we want things to work..
- */
- --- 467,473 ----
- if (tsk == current && tsk->executable && CODE_SPACE(address, current)) {
- /* don't send SIGSEGV when in kernel or v86 mode */
- if (user_esp)
- ! printk("%s writes to code space\n", tsk->comm);
- /* Note that we still do the copy-on-write: if the process catches
- * SIGSEGV we want things to work..
- */
-
- --
- Doug Evans | And Life, that sets all things in rhyme,
- dje@sspiff.cygnus.com | May make you poet, too, in time -
- | But there were days, O tender elf,
- | When you were Poetry itself! C. Morley
-