Skip to content

Commit 4c2d8a6

Browse files
committed
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. Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 3407caa commit 4c2d8a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/uapi/linux/nilfs2_ondisk.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ struct nilfs_super_block {
188188
__le16 s_segment_usage_size; /* Size of a segment usage */
189189

190190
/*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;
192193

193194
/*F8*/ __le32 s_c_interval; /* Commit interval of segment */
194195
__le32 s_c_block_max; /*

0 commit comments

Comments
 (0)