Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -1
+2 -1
include/uapi/linux/nilfs2_ondisk.h
··· 188 188 __le16 s_segment_usage_size; /* Size of a segment usage */ 189 189 190 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 194 /*F8*/ __le32 s_c_interval; /* Commit interval of segment */ 194 195 __le32 s_c_block_max; /*