<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/scsi, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/scsi?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/scsi?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-03-12T10:22:46Z</updated>
<entry>
<title>spelling</title>
<updated>2021-03-12T10:22:46Z</updated>
<author>
<name>jsg</name>
<email>jsg@openbsd.org</email>
</author>
<published>2021-03-12T10:22:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=84f3acfde2a7e7d22afae1b5e404e34b9403abc7'/>
<id>urn:sha1:84f3acfde2a7e7d22afae1b5e404e34b9403abc7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>TL;DR -- don't configure devices that return insufficient INQUIRY data.</title>
<updated>2020-11-19T13:45:15Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-11-19T13:45:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6b0aba5f6f8c52d02f186834af6799be60afacd0'/>
<id>urn:sha1:6b0aba5f6f8c52d02f186834af6799be60afacd0</id>
<content type='text'>
Treat INQUIRY data with fewer than SID_SCSI2_HDRLEN bytes as invalid.

Use only INQUIRY data returned by the device.

Get all available INQUIRY data (up to sizeof(struct scsi_inquiry_data))
even when SCSIDEBUG is not set.

Tweak returned INQUIRY data so additional_length field does not point
past end of returned data when available data is greater than
sizeof(struct scsi_inquiry_data).

Missing dmafree() spotted by gnezdo@. ok jmatthew@.
</content>
</entry>
<entry>
<title>Introduce scsi_copy_internal_data() to copy 'faked' data from a driver to a</title>
<updated>2020-10-14T23:40:33Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-10-14T23:40:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f31f903f6b76ce68f8d91daeaf607db9eb189363'/>
<id>urn:sha1:f31f903f6b76ce68f8d91daeaf607db9eb189363</id>
<content type='text'>
scsi_xfer. Will replace various equivalent functions/hand-rolled chunks, none of
which were setting xs-&gt;resid.
</content>
</entry>
<entry>
<title>Remove 'void *sc_sdhook' member of sd_softc.</title>
<updated>2020-09-23T15:24:16Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-09-23T15:24:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5c6e2d252746457f9911b0a3bd146b3a1dcd098a'/>
<id>urn:sha1:5c6e2d252746457f9911b0a3bd146b3a1dcd098a</id>
<content type='text'>
Unused since mpi@ removed sd_shutdown() in 2014.
</content>
</entry>
<entry>
<title>Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd'</title>
<updated>2020-09-22T19:32:51Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-09-22T19:32:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=664c6166bdf5ef0994a16bcce00610f942c9dc79'/>
<id>urn:sha1:664c6166bdf5ef0994a16bcce00610f942c9dc79</id>
<content type='text'>
member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic
cmdstore' member of the same instance. So nuke 'cmdstore' and remove the '*'
from cmd. Take the address of cmd as required by the various casts.

No intentional functional change.

luna88k test by aoyama@, sparc64 test by jmatthew@

Identification of 2009's last *cmd use and ok jmatthew@
</content>
</entry>
<entry>
<title>No need to check for SDEV_DYING as the first thing in both branches of an</title>
<updated>2020-09-14T18:44:54Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-09-14T18:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=37656c4c6e38ee947d26bac0388415512def7018'/>
<id>urn:sha1:37656c4c6e38ee947d26bac0388415512def7018</id>
<content type='text'>
if/else. Just do it once before the if.

Move the SC_DEBUG() documenting entry into sdopen() to before the various error
bailouts.
</content>
</entry>
<entry>
<title>Always use READ(16)/WRITE(16) commands for disks large enough to require</title>
<updated>2020-09-13T14:26:56Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-09-13T14:26:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3e16148d8fe176d83ff415f6c03a79618da4401e'/>
<id>urn:sha1:3e16148d8fe176d83ff415f6c03a79618da4401e</id>
<content type='text'>
READ(16)/WRITE(16) to access the last sectors

Fixes (at least) large 512E (a.k.a. emulated 512-byte sector) devices plugged
into overly helpful USB &lt;-&gt; ATA/ATAPI bridges. Which can tell you they are using
512-byte sector addresses but spontaneously/silently interpret
READ(10)/WRITE(10) commands as using 4K sector addresses/sizes.

Diagnosed and fix tested with James Cook. Thanks!
</content>
</entry>
<entry>
<title>Use SID_SCSI2_RESPONSE instead of '2' when checking INQUIRY data format.</title>
<updated>2020-09-12T17:03:51Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-09-12T17:03:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3da569d01dfebea5bd37a7d5d30af45eae246334'/>
<id>urn:sha1:3da569d01dfebea5bd37a7d5d30af45eae246334</id>
<content type='text'>
</content>
</entry>
<entry>
<title>No need to check inq for NULL when it always points at the inqdata inside a</title>
<updated>2020-09-12T16:51:04Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-09-12T16:51:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7be1499ae0de68c95a9ad9945e77fb75d3d9012f'/>
<id>urn:sha1:7be1499ae0de68c95a9ad9945e77fb75d3d9012f</id>
<content type='text'>
scsi_link.
</content>
</entry>
<entry>
<title>No need to ask for extra INQUIRY data, all available data is already cached in</title>
<updated>2020-09-12T15:54:51Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2020-09-12T15:54:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=96a16d09d83cbf0ea191848629d37c6118d40c6a'/>
<id>urn:sha1:96a16d09d83cbf0ea191848629d37c6118d40c6a</id>
<content type='text'>
scsi_link's inqdata.
</content>
</entry>
</feed>
