Commit 7fe6a42e authored by Kees Cook's avatar Kees Cook Committed by Linus Torvalds

reiserfs: use designated initializers

Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers.  These were identified
during allyesconfig builds of x86, arm, and arm64, with most initializer
fixes extracted from grsecurity.

Link: http://lkml.kernel.org/r/20170329210419.GA40066@beastSigned-off-by: default avatarKees Cook <keescook@chromium.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f6950a73
...@@ -724,18 +724,18 @@ static void errcatch_print_vi(struct virtual_item *vi) ...@@ -724,18 +724,18 @@ static void errcatch_print_vi(struct virtual_item *vi)
} }
static struct item_operations errcatch_ops = { static struct item_operations errcatch_ops = {
errcatch_bytes_number, .bytes_number = errcatch_bytes_number,
errcatch_decrement_key, .decrement_key = errcatch_decrement_key,
errcatch_is_left_mergeable, .is_left_mergeable = errcatch_is_left_mergeable,
errcatch_print_item, .print_item = errcatch_print_item,
errcatch_check_item, .check_item = errcatch_check_item,
errcatch_create_vi, .create_vi = errcatch_create_vi,
errcatch_check_left, .check_left = errcatch_check_left,
errcatch_check_right, .check_right = errcatch_check_right,
errcatch_part_size, .part_size = errcatch_part_size,
errcatch_unit_num, .unit_num = errcatch_unit_num,
errcatch_print_vi .print_vi = errcatch_print_vi
}; };
#if ! (TYPE_STAT_DATA == 0 && TYPE_INDIRECT == 1 && TYPE_DIRECT == 2 && TYPE_DIRENTRY == 3) #if ! (TYPE_STAT_DATA == 0 && TYPE_INDIRECT == 1 && TYPE_DIRECT == 2 && TYPE_DIRENTRY == 3)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment