<feed xmlns='http://www.w3.org/2005/Atom'>
<title>netbsd/sys/dev/raidframe, branch trunk</title>
<subtitle>NetBSD fork for lockdoc analysis</subtitle>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/'/>
<entry>
<title>Undo unlock/relock for VOP_IOCTL().</title>
<updated>2023-06-15T09:15:54+00:00</updated>
<author>
<name>hannken</name>
<email>hannken@NetBSD.org</email>
</author>
<published>2023-06-15T09:15:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=4a15e8270168a0d5340b01b85bce94cc781592ea'/>
<id>4a15e8270168a0d5340b01b85bce94cc781592ea</id>
<content type='text'>
PR kern/57450 (unplugging hung USB disk triggers panic via _vstate_assert)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR kern/57450 (unplugging hung USB disk triggers panic via _vstate_assert)</pre>
</div>
</content>
</entry>
<entry>
<title>fix word endings toin -&gt; tion in comments.</title>
<updated>2023-05-27T21:38:06+00:00</updated>
<author>
<name>andvar</name>
<email>andvar@NetBSD.org</email>
</author>
<published>2023-05-27T21:38:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=34215fc3d445909309e89da0f2b5ca6b0503a2e5'/>
<id>34215fc3d445909309e89da0f2b5ca6b0503a2e5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>raidframe: Nix unused parameter to raidwrite_component_area.</title>
<updated>2023-03-30T11:02:15+00:00</updated>
<author>
<name>riastradh</name>
<email>riastradh@NetBSD.org</email>
</author>
<published>2023-03-30T11:02:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=ef8ef90ed47ec8a8dacea9f7c8a188ef0e4c06ca'/>
<id>ef8ef90ed47ec8a8dacea9f7c8a188ef0e4c06ca</id>
<content type='text'>
All calls use the same value.  Prune dead branches using it.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All calls use the same value.  Prune dead branches using it.</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify the check for what ioctls can be done in raidioctl() without</title>
<updated>2022-08-28T00:37:41+00:00</updated>
<author>
<name>oster</name>
<email>oster@NetBSD.org</email>
</author>
<published>2022-08-28T00:37:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=69d8b3b72c765de1a063512f42dbbf469410b602'/>
<id>69d8b3b72c765de1a063512f42dbbf469410b602</id>
<content type='text'>
the device being initialized.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the device being initialized.</pre>
</div>
</content>
</entry>
<entry>
<title>RAIDframe must be initialized for the RAIDFRAME_SET_LAST_UNIT</title>
<updated>2022-08-28T00:26:04+00:00</updated>
<author>
<name>oster</name>
<email>oster@NetBSD.org</email>
</author>
<published>2022-08-28T00:26:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=e3bae91b3a9c5b81c099b8518e074f99e42e2004'/>
<id>e3bae91b3a9c5b81c099b8518e074f99e42e2004</id>
<content type='text'>
and RAIDFRAME_SHUTDOWN ioctls.

XXX Pullup-9

Reported-by: syzbot+1c20fcbe34d72cd7fbda@syzkaller.appspotmail.com</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and RAIDFRAME_SHUTDOWN ioctls.

XXX Pullup-9

Reported-by: syzbot+1c20fcbe34d72cd7fbda@syzkaller.appspotmail.com</pre>
</div>
</content>
</entry>
<entry>
<title>raidframe: reject invalid values for numCol and numSpares</title>
<updated>2022-08-10T01:16:38+00:00</updated>
<author>
<name>mrg</name>
<email>mrg@NetBSD.org</email>
</author>
<published>2022-08-10T01:16:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=99225d721c88a4f2993ace6adc7a9f2492c16111'/>
<id>99225d721c88a4f2993ace6adc7a9f2492c16111</id>
<content type='text'>
numCol and numSpares are "int" so they can be "-1" internally,
which means negative values need to be rejected, as well as
values higher than RF_MAXCOL/RF_MAXSPARES.

explicitly nul-terminate all strings coming from userland.

some minor CSE that avoids signed arith.

this fixes issues in the RAIDFRAME_ADD_HOT_SPARE,
RAIDFRAME_CONFIGURE, RAIDFRAME_DELETE_COMPONENT,
RAIDFRAME_INCORPORATE_HOT_SPARE, and RAIDFRAME_REBUILD_IN_PLACE
ioctl commands.

Reported-by: syzbot+b584943ad1f8ab9d4fe0@syzkaller.appspotmail.com

https://syzkaller.appspot.com/bug?id=61e07e418261f8eec8a37a9226725fe31820edd0
https://syzkaller.appspot.com/bug?id=ca0c997b40de81c0f0b44790217731f142003149
https://syzkaller.appspot.com/bug?id=6fc452d228453494655a85264591dd9054cc0b08
https://syzkaller.appspot.com/bug?id=873f0271682713a27adc9a49dd7109c70b35fda3


XXX: pullup-8, pullup-9.

ok oster@ riastradh@</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
numCol and numSpares are "int" so they can be "-1" internally,
which means negative values need to be rejected, as well as
values higher than RF_MAXCOL/RF_MAXSPARES.

explicitly nul-terminate all strings coming from userland.

some minor CSE that avoids signed arith.

this fixes issues in the RAIDFRAME_ADD_HOT_SPARE,
RAIDFRAME_CONFIGURE, RAIDFRAME_DELETE_COMPONENT,
RAIDFRAME_INCORPORATE_HOT_SPARE, and RAIDFRAME_REBUILD_IN_PLACE
ioctl commands.

Reported-by: syzbot+b584943ad1f8ab9d4fe0@syzkaller.appspotmail.com

https://syzkaller.appspot.com/bug?id=61e07e418261f8eec8a37a9226725fe31820edd0
https://syzkaller.appspot.com/bug?id=ca0c997b40de81c0f0b44790217731f142003149
https://syzkaller.appspot.com/bug?id=6fc452d228453494655a85264591dd9054cc0b08
https://syzkaller.appspot.com/bug?id=873f0271682713a27adc9a49dd7109c70b35fda3


XXX: pullup-8, pullup-9.

ok oster@ riastradh@</pre>
</div>
</content>
</entry>
<entry>
<title>RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl.</title>
<updated>2022-06-28T03:13:27+00:00</updated>
<author>
<name>oster</name>
<email>oster@NetBSD.org</email>
</author>
<published>2022-06-28T03:13:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=6e31bf7e569b533ac7048361a99b901fe68e21f9'/>
<id>6e31bf7e569b533ac7048361a99b901fe68e21f9</id>
<content type='text'>
Reported-by: syzbot+048387fcc9a1a3682638@syzkaller.appspotmail.com
Reported-by: syzbot+037d1813186571cb2d38@syzkaller.appspotmail.com</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: syzbot+048387fcc9a1a3682638@syzkaller.appspotmail.com
Reported-by: syzbot+037d1813186571cb2d38@syzkaller.appspotmail.com</pre>
</div>
</content>
</entry>
<entry>
<title>Fix mistake in error branch locking caused by previous changes.</title>
<updated>2022-04-16T16:40:54+00:00</updated>
<author>
<name>andvar</name>
<email>andvar@NetBSD.org</email>
</author>
<published>2022-04-16T16:40:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=fba7f3f9c8fd4ef9e9a97d8f2c3aa06f5426edb8'/>
<id>fba7f3f9c8fd4ef9e9a97d8f2c3aa06f5426edb8</id>
<content type='text'>
vput(vp) also unlocks vp, thus unlocking happens twice in error flow
causing kernel to panic with failed assertion lktype != LK_NONE
in vfs_vnode.c#778. Thanks riastradh with finding the issue.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
vput(vp) also unlocks vp, thus unlocking happens twice in error flow
causing kernel to panic with failed assertion lktype != LK_NONE
in vfs_vnode.c#778. Thanks riastradh with finding the issue.</pre>
</div>
</content>
</entry>
<entry>
<title>Unlock vnode for VOP_IOCTL().</title>
<updated>2022-04-16T07:56:45+00:00</updated>
<author>
<name>hannken</name>
<email>hannken@NetBSD.org</email>
</author>
<published>2022-04-16T07:56:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=7e86e8d8305dfc45996089be8073feb313827e6a'/>
<id>7e86e8d8305dfc45996089be8073feb313827e6a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>s/postion/position/</title>
<updated>2022-04-08T10:27:04+00:00</updated>
<author>
<name>andvar</name>
<email>andvar@NetBSD.org</email>
</author>
<published>2022-04-08T10:27:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.infra.scholz.ruhr/netbsd/commit/?id=cdf42b1af951810f881e5df966f9df5945ded988'/>
<id>cdf42b1af951810f881e5df966f9df5945ded988</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
