On Mon, Dec 04, 2023 at 02:57:53PM +0100, Uros Bizjak wrote: > On Mon, Dec 4, 2023 at 2:05 PM Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> wrote: > > __seg_gs qualified variables can be referenced anywhere in the code, e.g.: > > --cut here-- > __seg_gs int m; > > int foo (void) > { > return m + m; > } Yes, of course. But my point was not if they *can* be dereferenced but rather if *in the kernel, do want or not to use 'naked' __seg_gs qualified variable*. In other words, do we want to be warned if someone, somewhere try to dereference such qualified variable without using the accessor function? And I think the answer to this question should be 'yes'. -- Luc