<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/bcachefs/bkey_methods.c, branch linux-6.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-06-19T22:27:23Z</updated>
<entry>
<title>bcachefs: Fix array-index-out-of-bounds</title>
<updated>2024-06-19T22:27:23Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-06-12T23:51:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d47df4f616d523b4ef832d03ec28b2e6d838067b'/>
<id>urn:sha1:d47df4f616d523b4ef832d03ec28b2e6d838067b</id>
<content type='text'>
We use 0 size arrays as markers, but ubsan doesn't know that - cast them
to a pointer to fix the splat.

Also, make sure this code gets tested a bit more.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: add no_invalid_checks flag</title>
<updated>2024-05-09T20:24:30Z</updated>
<author>
<name>Thomas Bertschinger</name>
</author>
<published>2024-05-09T18:37:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=07f9a27f1969764d11374942961d51fee0ab628f'/>
<id>urn:sha1:07f9a27f1969764d11374942961d51fee0ab628f</id>
<content type='text'>
Setting this flag on a filesystem results in validity checks being
skipped when writing bkeys. This flag will be used by tooling that
deliberately injects corruption into a filesystem in order to exercise
fsck. It shouldn't be set outside of testing/debugging code.

Signed-off-by: Thomas Bertschinger &lt;tahbertschinger@gmail.com&gt;
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: s/bkey_invalid_flags/bch_validate_flags</title>
<updated>2024-05-09T20:23:36Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-05-08T22:40:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65eaf4e24ab6b4809491248e1fed36b8d49c1ea9'/>
<id>urn:sha1:65eaf4e24ab6b4809491248e1fed36b8d49c1ea9</id>
<content type='text'>
We're about to start using bch_validate_flags for superblock section
validation - it's no longer bkey specific.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Guard against unknown k.k-&gt;type in __bkey_invalid()</title>
<updated>2024-05-06T14:58:17Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-05-06T02:33:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2bb9600d5d4735953c47dd1ee99382c68dd04caa'/>
<id>urn:sha1:2bb9600d5d4735953c47dd1ee99382c68dd04caa</id>
<content type='text'>
For forwards compatibility we have to allow unknown key types, and only
run the checks that make sense against them.

Fix a missing guard on k.k-&gt;type being known.

Reported-by: syzbot+ae4dc916da3ce51f284f@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Interior known are required to have known key types</title>
<updated>2024-04-14T22:01:12Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-04-14T03:59:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d789e9a7d5e2799f4d5425b0b620210d2fcad529'/>
<id>urn:sha1:d789e9a7d5e2799f4d5425b0b620210d2fcad529</id>
<content type='text'>
For forwards compatibilyt, we allow bkeys of unknown type in leaf nodes;
we can simply ignore metadata we don't understand. Pointers to btree
nodes must always be of known types, howwever.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: add missing bounds check in __bch2_bkey_val_invalid()</title>
<updated>2024-04-14T22:01:12Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-04-14T03:59:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bceb86be9e970bc6d77bfd1f8e5272d9a2007c16'/>
<id>urn:sha1:bceb86be9e970bc6d77bfd1f8e5272d9a2007c16</id>
<content type='text'>
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Add .val_to_text() for KEY_TYPE_cookie</title>
<updated>2024-01-21T18:27:09Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2024-01-15T19:15:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=741c1d3ec1a4a91d0bf18f200e2f0f8bed1ee7e9'/>
<id>urn:sha1:741c1d3ec1a4a91d0bf18f200e2f0f8bed1ee7e9</id>
<content type='text'>
Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: rebalance_work btree is not a snapshots btree</title>
<updated>2023-11-05T02:19:13Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-11-03T22:30:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d3c7727bb9269c7f7a2f17ef76b9e5c9b8cc8863'/>
<id>urn:sha1:d3c7727bb9269c7f7a2f17ef76b9e5c9b8cc8863</id>
<content type='text'>
rebalance_work entries may refer to entries in the extents btree, which
is a snapshots btree, or they may also refer to entries in the reflink
btree, which is not.

Hence rebalance_work keys may use the snapshot field but it's not
required to be nonzero - add a new btree flag to reflect this.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Enumerate fsck errors</title>
<updated>2023-11-02T01:11:08Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-10-25T00:44:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b65db750e2bb9252321fd54c284edd73c1595a09'/>
<id>urn:sha1:b65db750e2bb9252321fd54c284edd73c1595a09</id>
<content type='text'>
This patch adds a superblock error counter for every distinct fsck
error; this means that when analyzing filesystems out in the wild we'll
be able to see what sorts of inconsistencies are being found and repair,
and hence what bugs to look for.

Errors validating bkeys are not yet considered distinct fsck errors, but
this patch adds a new helper, bkey_fsck_err(), in order to add distinct
error types for them as well.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
<entry>
<title>bcachefs: Fix btree_node_type enum</title>
<updated>2023-10-31T16:18:37Z</updated>
<author>
<name>Kent Overstreet</name>
</author>
<published>2023-10-20T04:01:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=50a38ca1baace3dc66027ad41393917b05318b14'/>
<id>urn:sha1:50a38ca1baace3dc66027ad41393917b05318b14</id>
<content type='text'>
More forwards compatibility fixups: having BKEY_TYPE_btree at the end of
the enum conflicts with unnkown btree IDs, this shifts BKEY_TYPE_btree
to slot 0 and fixes things up accordingly.

Signed-off-by: Kent Overstreet &lt;kent.overstreet@linux.dev&gt;
</content>
</entry>
</feed>
