linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andries.Brouwer@cwi.nl
To: alan@lxorguk.ukuu.org.uk, torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] SAK broken since 2.4.3
Date: Mon, 2 Jul 2001 03:03:04 +0200 (MET DST)	[thread overview]
Message-ID: <UTC200107020103.DAA501507.aeb@vlet.cwi.nl> (raw)

I wanted to show someone how nice SAK works, pressed it twice,
and lo! it not only killed the processes on the console, but
also the kernel. Very effective.

The patch below (for a private, patched 2.4.3 - line numbers
may differ) diminish this effectiveness a little. My kernel
now survives.

Andries

[PS I intend to come with another SAK patch one of these days,
but it may be for 2.5.]

--- tty_io.c~	Sat Mar 31 09:52:44 2001
+++ tty_io.c	Mon Jul  2 02:45:59 2001
@@ -1867,6 +1867,8 @@
  */
 void do_SAK(struct tty_struct *tty)
 {
+	if (!tty)
+		return;
 	PREPARE_TQUEUE(&tty->SAK_tq, __do_SAK, tty);
 	schedule_task(&tty->SAK_tq);
 }

                 reply	other threads:[~2001-07-02  1:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=UTC200107020103.DAA501507.aeb@vlet.cwi.nl \
    --to=andries.brouwer@cwi.nl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).