diff options
author | Jan Kara <jack@suse.cz> | 2020-04-07 17:46:43 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-04-07 21:51:27 +0200 |
commit | 0f538e3e712a517bd351607de50cd298102c7c08 (patch) | |
tree | de1caf1fe11058ab0f429502bd3c54bcc7727031 /drivers/block/xen-blkfront.c | |
parent | time/namespace: Add max_time_namespaces ucount (diff) | |
download | linux-0f538e3e712a517bd351607de50cd298102c7c08.tar.xz linux-0f538e3e712a517bd351607de50cd298102c7c08.zip |
ucount: Make sure ucounts in /proc/sys/user don't regress again
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(). This problem got fixed in commit
eeec26d5da82 "time/namespace: Add max_time_namespaces ucount".
Add BUILD_BUG_ON to catch a similar problem in the future.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andrei Vagin <avagin@gmail.com>
Link: https://lkml.kernel.org/r/20200407154643.10102-1-jack@suse.cz
Diffstat (limited to 'drivers/block/xen-blkfront.c')
0 files changed, 0 insertions, 0 deletions