Re: __read_mostly

2022-03-24 Thread Theo de Raadt
Ingo Schwarze wrote: > Hi, > > >> A downside of this is that it becomes easier to guess the addresses > >> of the tagged variables. > > > No kidding. It partly undoes the effort of KARL. > > I don't feel qualified to comment on the patch, > but i can't resist mentioning that i still love >

Re: __read_mostly

2022-03-20 Thread Ingo Schwarze
Hi, >> A downside of this is that it becomes easier to guess the addresses >> of the tagged variables. > No kidding. It partly undoes the effort of KARL. I don't feel qualified to comment on the patch, but i can't resist mentioning that i still love tedu@'s classical dictum "attack mitigation

Re: __read_mostly

2022-03-20 Thread Theo de Raadt
> A downside of this is that it becomes easier to guess the addresses > of the tagged variables. No kidding. It partly undoes the effort of KARL.

__read_mostly

2022-03-19 Thread Visa Hankala
Linux uses pseudo-attribute __read_mostly to tag variables that are read frequently but written seldom. These variables are grouped together at link time. This improves cache usage by reducing false sharing. __read_mostly has been adopted by FreeBSD, DragonFly BSD and NetBSD. The former two also