Re: [hatari-devel] Disk driver memory access checks

[ Thread Index | Date Index | More Archives ]

Also consider this: If I try to read data from IDE/ACSI/SCSI, where the device
is mapped to a device file /dev/sd*, to a ROM area, a real Atari will crash. At
least I assume so, because I'm not aware of any hard disk driver that would
prevent this and just abort the transfer.

Now assume that the same device file is accessed not via /dev/sd* but by
nf_scsidrv. In this case the actual device is the same, but the device file
is /dev/sg*. For the caller of the SCSI Driver (or the hard disk/CD-ROM
etc. driver) this is transparent, i.e. the caller does not know how the
device is mapped. Would you expect the same to happen in both cases when
trying to load data into ROM, or would you expect a different behavior?

> Hi,
> > * should not be able to read ROM file from disk and overwrite ROM memory
> >    area (as that's not writable on real device).
> Sure, but on a real system, it's not the device layer preventing that.
> If on a real Atari I read data from floppy or hard disk and provide a
> ROM address, the device layer will not prevent me from doing this. The
> system will crash instead, for instance, during the transfer.
> That's why I'm wondering what the most compatible approach is.
> Best regards
> Uwe

Mail converted by MHonArc 2.6.19+