home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17099 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.4 KB  |  39 lines

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