All of lore.kernel.org
 help / color / mirror / Atom feed
* blocking shutdown?
       [not found] <CAMJ=ptCSGPwF+QWLw27XePB9kbJ-PxjtOtvJ3UbmzAqaZsYrGQ@mail.gmail.com>
@ 2012-05-17  8:50 ` George Pang
  2012-05-18  9:59   ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: George Pang @ 2012-05-17  8:50 UTC (permalink / raw)
  To: fio

I've been configuring a server for a colocation recently using ubuntu
12.04 desktop (the server dist dislikes my only keyboard) and I
noticed that if I am running an fio test and I initiate a shutdown the
shutdown kills off everything as usual, but fio appears to keep
running and block shutdown. (from either the desktop ui or with
"shutdown now")

Thus on a remote server any user with privileges to run fio could
accidentally, or maliciously prevent system shutdown from completing,
effectively taking a server out of service until physical access was
achieved.

George

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: blocking shutdown?
  2012-05-17  8:50 ` blocking shutdown? George Pang
@ 2012-05-18  9:59   ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2012-05-18  9:59 UTC (permalink / raw)
  To: George Pang; +Cc: fio

On 05/17/2012 10:50 AM, George Pang wrote:
> I've been configuring a server for a colocation recently using ubuntu
> 12.04 desktop (the server dist dislikes my only keyboard) and I
> noticed that if I am running an fio test and I initiate a shutdown the
> shutdown kills off everything as usual, but fio appears to keep
> running and block shutdown. (from either the desktop ui or with
> "shutdown now")
> 
> Thus on a remote server any user with privileges to run fio could
> accidentally, or maliciously prevent system shutdown from completing,
> effectively taking a server out of service until physical access was
> achieved.

Sounds like the distro is buggy, then. Fio is nothing special. It'll
terminate on a signal, if sent TERM for instance. The only way that fio
would feasibly not die on shutdown would be if it's stuck
uninterruptibly in the kernel, due to an oops/crash or a bug.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-18 10:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAMJ=ptCSGPwF+QWLw27XePB9kbJ-PxjtOtvJ3UbmzAqaZsYrGQ@mail.gmail.com>
2012-05-17  8:50 ` blocking shutdown? George Pang
2012-05-18  9:59   ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.