From: Matt Mackall <mpm@selenic.com>
To: devzero@web.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: System reboot triggered by just reading a device file....!?
Date: Tue, 20 Nov 2007 17:51:38 -0600 [thread overview]
Message-ID: <20071120235138.GE17536@waste.org> (raw)
In-Reply-To: <2097505946@web.de>
On Wed, Nov 21, 2007 at 12:06:57AM +0100, devzero@web.de wrote:
> - be root
That's your first mistake.
> - cat /dev/watchdog or dd if=/dev/watchdog of=/dev/zero bs=1 count=1 or .....
> - wait one minute........
>
> *reboot*!
And that's the defined behavior of /dev/watchdog, yes. Many years too
late to change it.
> i have heard 2 opinions for now (contacted the author and also discussed on wine-devel ) that this should be expected behaviour.
>
> being sysadmin quite a while, i cannot believe that (accidentally) reading a device file (being root or not - what does that matter) triggers a system reboot.
If /dev/watchdog can be opened by non-root, that's an installation
error.
--
Mathematics is the supreme nostalgia of our time.
next prev parent reply other threads:[~2007-11-20 23:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-20 23:06 System reboot triggered by just reading a device file....!? devzero
2007-11-20 23:51 ` Matt Mackall [this message]
[not found] <fa.NKMd2cOUI5zSAFh0xiVy3hZdy3s@ifi.uio.no>
2007-11-20 23:34 ` Robert Hancock
-- strict thread matches above, loose matches on Subject: below --
2007-11-21 0:01 devzero
2007-11-21 12:29 ` Simon Arlott
2007-11-22 19:54 devzero
2007-11-22 20:42 ` Clemens Koller
2007-11-22 21:22 devzero
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=20071120235138.GE17536@waste.org \
--to=mpm@selenic.com \
--cc=devzero@web.de \
--cc=linux-kernel@vger.kernel.org \
/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