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

From: Jan Kara
Date: Tue Apr 07 2020 - 11:39:59 EST


On Tue 07-04-20 16:09:39, Thomas Gleixner wrote:
> 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 ?

Sure, will do.

Honza
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR