[PATCH RFC 35/38] proc: sysctl: don't hold the tables while readdir copies to userspace

Christian Brauner brauner at kernel.org
Wed Nov 4 01:20:07 PST 2026


On Tue, Nov 03, 2026 at 02:48:38PM +0000, sashiko-bot at kernel.org wrote:
> - [Medium] proc: sysctl: premature EOF and lost errors in proc_sys_readdir()

This is pre-existing. proc_sys_make_inode() refuses a table that is
being unregistered since ace0c791e6c3 ("proc/sysctl: Don't grab i_lock
under sysctl_lock."). The old proc_sys_readdir() stops at an entry the
same way.

We can fix this by skpping the entry.

> - [Low] proc: sysctl: unused mode field in struct sysctl_dirent

Dropped.

-- 



More information about the kexec mailing list