grsecurity-2.2.1-2.6.36.2-201012092111.patch error: decremen
Posted: Fri Dec 10, 2010 4:02 am
With 2.6.36.2 and grsecurity-2.2.1-2.6.36.2-201012092111.patch I'm getting:
linux-2.6.36/fs/proc/base.c:77:0:
linux-2.6.36/include/linux/cpuset.h: In function 'put_mems_allowed':
linux-2.6.36/include/linux/cpuset.h:121:2: error: decrement of read-only location '*(const volatile int *)&get_current()->mems_allowed_change_disable'
120 smp_mb();
121 --ACCESS_ONCE(current->mems_allowed_change_disable);
122 }
123
124 static inline void set_mems_allowed(nodemask_t nodemask)
Reverting const change for ACCESS_ONCE fixes the problem.
linux-2.6.36/fs/proc/base.c:77:0:
linux-2.6.36/include/linux/cpuset.h: In function 'put_mems_allowed':
linux-2.6.36/include/linux/cpuset.h:121:2: error: decrement of read-only location '*(const volatile int *)&get_current()->mems_allowed_change_disable'
120 smp_mb();
121 --ACCESS_ONCE(current->mems_allowed_change_disable);
122 }
123
124 static inline void set_mems_allowed(nodemask_t nodemask)
Reverting const change for ACCESS_ONCE fixes the problem.