Re: [syzbot] [bcachefs?] kernel BUG in vfs_get_tree

From: Edward Adam Davis
Date: Tue Sep 24 2024 - 20:32:07 EST


Add EPERM support

#syz test

diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h
index 60b7875adada..4119ef5e1fa1 100644
--- a/fs/bcachefs/errcode.h
+++ b/fs/bcachefs/errcode.h
@@ -102,6 +102,7 @@
x(ENOSPC, ENOSPC_sb_downgrade) \
x(ENOSPC, ENOSPC_btree_slot) \
x(ENOSPC, ENOSPC_snapshot_tree) \
+ x(EPERM, EPERM_fc_root) \
x(ENOENT, ENOENT_bkey_type_mismatch) \
x(ENOENT, ENOENT_str_hash_lookup) \
x(ENOENT, ENOENT_str_hash_set_must_replace) \