Page 1 of 1

Incorrect patch of btrfs_ioctl_space_info

PostPosted: Wed Mar 25, 2015 12:11 pm
by eswierk
The changes to btrfs_ioctl_space_info() (fs/btrfs/ioctl.c) in grsecurity-3.1-3.14.36-201503182218.patch are incorrect and should be removed.

According to https://lkml.org/lkml/2011/2/9/172, slot_count should be decremented and checked within the for loop, not outside it.

Re: Incorrect patch of btrfs_ioctl_space_info

PostPosted: Wed Mar 25, 2015 5:01 pm
by spender
Thanks for spotting this! It will be fixed in the next patches.

-Brad