mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andre Hedrick <andre@linux-ide.org>
To: Craig Ruff <cruff@ucar.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Microsoft ZERO Sector Virus, Result of Taskfile WAR
Date: Wed, 7 Mar 2001 13:15:46 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.10.10103071315180.19253-200000@master.linux-ide.org> (raw)
In-Reply-To: <20010307135811.A20146@bells.scd.ucar.edu>

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]


Then run this and see if you live.

On Wed, 7 Mar 2001, Craig Ruff wrote:

> On Wed, Mar 07, 2001 at 12:32:08PM -0800, Andre Hedrick wrote:
> > The SCSI low-level format glue performed by the HOST gets destroyed
> > If you write to LBA Zero.
> 
> This is simply not true.  I write to SCSI disk's block 0 all of the time
> and never loose data.  Obviously, you can lose the partition information
> if that is where it is kept.  I've also never had trouble with SCSI
> disks correctly writing multiple sectors starting at block zero.  This
> includes older Quantum drives.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

Andre Hedrick
Linux ATA Development
ASL Kernel Development
-----------------------------------------------------------------------------
ASL, Inc.                                     Toll free: 1-877-ASL-3535
1757 Houret Court                             Fax: 1-408-941-2071
Milpitas, CA 95035                            Web: www.aslab.com

[-- Attachment #2: Type: text/plain, Size: 668 bytes --]

/* scsikiller.c */
#include <sys/ioctl.h>
#include <sys/fcntl.h>
#include <scsi/scsi.h>

struct cdb6hdr{
	unsigned int inbufsize;
	unsigned int outbufsize;
	unsigned char cdb [6];
} __attribute__ ((packed));

int main (int argv, char **argc)
{
	int fd;
	unsigned char tBuf[526];
	struct cdb6hdr *ioctlhdr;

	if (argv != 2) exit(-1);
	
	fd = open (*(argc+1), O_RDWR );
	if (fd < 0) exit (-1);

	memset(&tBuf, 0, 526);
  
	ioctlhdr = (struct cdb6hdr *) &tBuf;
  
	ioctlhdr->inbufsize = 512;
	ioctlhdr->outbufsize = 0;
	ioctlhdr->cdb[0] = WRITE_6;
	ioctlhdr->cdb[4] = 1;
  
	return ioctl(fd, 1, &tBuf);
}

  reply	other threads:[~2001-03-07 21:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-06 20:10 Andre Hedrick
2001-03-06 20:44 ` Mike Dresser
2001-03-06 20:55   ` Andre Hedrick
2001-03-06 20:48 ` Jens Axboe
2001-03-06 20:59   ` Andre Hedrick
2001-03-06 21:23     ` James A. Sutherland
2001-03-06 21:26       ` Andre Hedrick
2001-03-06 21:31     ` Jens Axboe
2001-03-06 21:35       ` Andre Hedrick
2001-03-07  5:30   ` J. Dow
2001-03-07 12:21     ` Harvey Fishman
2001-03-07 20:32       ` Andre Hedrick
2001-03-07 20:58         ` Craig Ruff
2001-03-07 21:15           ` Andre Hedrick [this message]
2001-03-07 22:05             ` Craig Ruff
2001-03-07 22:35               ` Andre Hedrick
2001-03-07 22:41                 ` Craig Ruff
2001-03-07 21:17         ` Richard B. Johnson
2001-03-07 22:09 Andries.Brouwer

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=Pine.LNX.4.10.10103071315180.19253-200000@master.linux-ide.org \
    --to=andre@linux-ide.org \
    --cc=cruff@ucar.edu \
    --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

all inboxes | Powered by JetHome®