Re: [PATCH] ucount: Fix wrong inotify ucounts in /proc/sys/user

From: Thomas Gleixner
Date: Tue Apr 07 2020 - 10:09:44 EST


Jan Kara <jack@xxxxxxx> writes:
> Commit 769071ac9f20 "ns: Introduce Time Namespace" broke reporting of
> inotify ucounts (max_inotify_instances, max_inotify_watches) in
> /proc/sys/user because it has added UCOUNT_TIME_NAMESPACES into enum
> ucount_type but didn't properly update reporting in
> kernel/ucount.c:setup_userns_sysctls(). Update the reporting to fix the
> issue and also add BUILD_BUG_ON to catch a similar problem in the
> future.

Just merged that:

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=timers/urgent&id=eeec26d5da8248ea4e240b8795bb4364213d3247

Could you please send a patch with just the build bug on ?

Thanks,

tglx