<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/md, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-01-13T14:03:14Z</updated>
<entry>
<title>vm_object: remove the charge member</title>
<updated>2026-01-13T14:03:14Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-01-03T09:34:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d160447129fe060b28bcd6ba429d17afdf494ff2'/>
<id>urn:sha1:d160447129fe060b28bcd6ba429d17afdf494ff2</id>
<content type='text'>
State that the object charge is zero if object-&gt;cred == NULL, or equal
to the ptoa(object-&gt;size) otherwise.

Besides being much simpler, the transition to use object-&gt;size corrects
the architectural issue with the use of object-&gt;charge.  The split
operations effectively carve the holes in the charged regions, but
single counter cannot properly express it.  As result, coalescing
anonymous mappings cannot calculate correctly if the extended mapping
already backed by the existing object is already accounted or not [1].

To properly solve the issue, either we need to start tracking exact
charged regions in the anonymous objects, which has the significant
overhead and complications.  Or give up on the slight over-accounting
and charge the whole object unconditionally, as it is done in the patch.

Reported by:	mmel, pho [1]
Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D54572
</content>
</entry>
<entry>
<title>sys/dev/md: cleanup includes</title>
<updated>2025-10-28T18:52:06Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-10-28T17:03:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c6e12d38f167d4cea1e8bb8119f4677c1c008c6a'/>
<id>urn:sha1:c6e12d38f167d4cea1e8bb8119f4677c1c008c6a</id>
<content type='text'>
Remove twice included but unneeded explicit sys/param.h.  Sort.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
</content>
</entry>
<entry>
<title>biosboot: Detect memory disks from PXE</title>
<updated>2025-07-23T00:10:25Z</updated>
<author>
<name>Richard Russo</name>
<email>russor@ruka.org</email>
</author>
<published>2025-07-23T00:08:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=15925062e1ba75cb4908a68655b797870187ea57'/>
<id>urn:sha1:15925062e1ba75cb4908a68655b797870187ea57</id>
<content type='text'>
Walk through the disk driver entries chained off of INT13.

MEMDISK is part of the Syslinux project; it loads disk images into
memory, sets an int 13h hook and then does a BIOS boot from the image;
this can be used as part of a PXE boot environment to load installer
disks, however the disks are not accessible from inside the FreeBSD
kernel because it doesn't access disks through BIOS APIs.

This patch detects the disk images in the loader, and passes their
address and length as a driver hint. When the md driver sees the hint,
it maps the image, and presents it to the system.

(rebased and reworked from https://reviews.freebsd.org/D27349)

Feedback from: kib, bapt, olce
Differential Revision:	https://reviews.freebsd.org/D45404
</content>
</entry>
<entry>
<title>md(4): Stop symlinking vn.4 to md.4</title>
<updated>2025-07-16T14:23:41Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2025-07-16T11:44:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=56eb7566c41902a14d4392f8a01c045dbde6de7e'/>
<id>urn:sha1:56eb7566c41902a14d4392f8a01c045dbde6de7e</id>
<content type='text'>
We've done the same in the past to the vnconfig.8-&gt;mdconfig.8 link in:
    eb5f4569819 Remove ancient vnconfig symlink

Reviewed by:	bcr, markj, ziaee
Approved by:	markj (mentor)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D27122
</content>
</entry>
<entry>
<title>md: Restore guards in mddestroy()</title>
<updated>2025-07-03T15:10:41Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-07-03T13:10:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5ae9f8e9ac5e1307fed4f7f2549347576f01b3fa'/>
<id>urn:sha1:5ae9f8e9ac5e1307fed4f7f2549347576f01b3fa</id>
<content type='text'>
mddestroy() may be invoked on a partially constructed md device.
Restore the guards that handled this prior to commit e91022168101.

Reported by:	syzbot+a0ff73f664de8757cfaa@syzkaller.appspotmail.com
Reported by:	syzbot+7b4a4824bf81548283ab@syzkaller.appspotmail.com
Reviewed by:	kib
Fixes:		e91022168101 ("md(4): move type-specific data under union")
Differential Revision:	https://reviews.freebsd.org/D51145
</content>
</entry>
<entry>
<title>md(4): move type-specific data under union</title>
<updated>2025-07-02T15:32:58Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-07-02T13:08:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e91022168101867664e08b4de1f3f09ed4af231c'/>
<id>urn:sha1:e91022168101867664e08b4de1f3f09ed4af231c</id>
<content type='text'>
This way it is clear which type uses which members.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D51127
</content>
</entry>
<entry>
<title>md: Use a larger buffer for the ident string</title>
<updated>2025-06-25T21:20:45Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-06-25T21:12:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5286b96c56ff5aa3c1cee824ab8564f0ffffc381'/>
<id>urn:sha1:5286b96c56ff5aa3c1cee824ab8564f0ffffc381</id>
<content type='text'>
With the old size, the string could easily be truncated, resulting in
non-unique identifiers.

PR:		287679
Reported by:	Phil Krylov &lt;phil@krylov.eu&gt;
Reviewed by:	kib
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>md: Fix linking of embedded filesystem images on aarch64</title>
<updated>2024-11-21T18:36:37Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-11-21T18:36:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=59f8f51b118a64119492837ee8e4973381554277'/>
<id>urn:sha1:59f8f51b118a64119492837ee8e4973381554277</id>
<content type='text'>
embedfs.S needs the right aarch64 features for BTI and/or PAC.

Obtained from:	CheriBSD
Fixes:		c2e0d56f5e49 ("arm64: Support BTI checking in most of the kernel")
Sponsored by:	AFRL, DARPA
</content>
</entry>
<entry>
<title>md(4): always trim the last partial sector</title>
<updated>2024-10-14T08:08:21Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-10-13T21:28:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4bf34c597c44a2393ac5ec483e9cecac128d8202'/>
<id>urn:sha1:4bf34c597c44a2393ac5ec483e9cecac128d8202</id>
<content type='text'>
Do it also for the preloaded disk, in addition to the dynamically
configured device.  This is needed to avoid geom checking alignment and
panicing on read of the last sector, e.g. for partition schemes and
label tasting.

PR:	281978
Reported by:	bz
Reviewed by:	bz, markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D47102
</content>
</entry>
<entry>
<title>md: round-trip the MUSTDEALLOC and RESERVE options</title>
<updated>2024-06-01T18:40:19Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-06-01T18:00:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9d449caddd4f442ba4ebfd2edafa1aef4fcba4c8'/>
<id>urn:sha1:9d449caddd4f442ba4ebfd2edafa1aef4fcba4c8</id>
<content type='text'>
If those options are requested when the device is created, ensure that
they will be reported by MDIOCQUERY.

MFC after:	2 weeks
Reviewed by:	imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1270
</content>
</entry>
</feed>
