Re: [PATCH RFC v3 11/13] sysctl: unrandomize struct ctl_table.procname
| Newsgroups | dev.linux.lists.mptcp,org.kernel.vger.bpf,org.kernel.vger.linux-s390 |
|---|---|
| Message-ID | <[email protected]> |
> The 'struct ctl_table.procname' field (sysctl filename) cannot be accessed > by scripts since it is defined in kernel headers (see "don't include kernel > headers into userspace" in file2alias.c) and its offset may be randomized. > > Unrandomize '.procname' as the first field so its offset is always zero and > match the 'struct ctl_table' symbol address, which can be found by scripts. > > Originally-by: Mauricio Faria de Oliveira <[email protected]> > Signed-off-by: Mauricio Faria de Oliveira <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=11