History

nilfs2: Mark on-disk strings as nonstring

In preparation for memtostr*() checking that its source is marked as nonstring, annotate the device strings accordingly using the new UAPI alias for the "nonstring" attribute.

Kees Cook committed 1 year ago

Commit 4c2d8a61 parent 3407caa1 file · +2 −1Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/nilfs2_ondisk.h+2−1
@@ -188,7 +188,8 @@ struct nilfs_super_block { · 187 unmodified lines
188 __le16 s_segment_usage_size; /* Size of a segment usage */188 __le16 s_segment_usage_size; /* Size of a segment usage */
189 189
190/*98*/ __u8 s_uuid[16]; /* 128-bit uuid for volume */190/*98*/ __u8 s_uuid[16]; /* 128-bit uuid for volume */
191/*A8*/ char s_volume_name[80]; /* volume name */191/*A8*/ char s_volume_name[80] /* volume name */
192 __kernel_nonstring;
192 193
193/*F8*/ __le32 s_c_interval; /* Commit interval of segment */194/*F8*/ __le32 s_c_interval; /* Commit interval of segment */
194 __le32 s_c_block_max; /*195 __le32 s_c_block_max; /*