lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e6718888-3a18-45da-e091-577c3822d6ac@arm.com>
Date:   Tue, 7 Apr 2020 10:16:25 +0100
From:   Vincenzo Frascino <vincenzo.frascino@....com>
To:     mtk.manpages@...il.com, Andrei Vagin <avagin@...il.com>
Cc:     Dmitry Safonov via Containers 
        <containers@...ts.linux-foundation.org>,
        lkml <linux-kernel@...r.kernel.org>,
        "Eric W. Biederman" <ebiederm@...ssion.com>,
        Andrey Vagin <avagin@...nvz.org>,
        Dmitry Safonov <dima@...sta.com>,
        Linux API <linux-api@...r.kernel.org>,
        Dmitry Safonov <0x7f454c46@...il.com>, stable@...nel.org,
        Ingo Molnar <mingo@...hat.com>,
        Christian Brauner <christian.brauner@...ntu.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Adrian Reber <adrian@...as.de>
Subject: Re: [PATCH] kernel/time: Add max_time_namespaces ucount

On 4/7/20 9:22 AM, Michael Kerrisk (man-pages) wrote:
> On Tue, 7 Apr 2020 at 05:31, Andrei Vagin <avagin@...il.com> wrote:
>>
>> On Mon, Apr 06, 2020 at 06:13:42PM +0100, Dmitry Safonov via Containers wrote:
>>> Introduce missing time namespaces limit per-userns.
>>> Michael noticed that userns limit for number of time namespaces is
>>> missing.
>>>
>>> Furthermore, time namespace introduced UCOUNT_TIME_NAMESPACES, but
>>> didn't introduce an array member in user_table[]. It would make array's
>>> initialisation OOB write, but by luck the user_table array has
>>> an excessive empty member (all accesses to the array are limited with
>>> UCOUNT_COUNTS - so it silently reuses the last free member.
>>>
>>> Fixes user-visible regression: max_inotify_instances by reason of the
>>> missing UCOUNT_ENTRY() has limited max number of namespaces instead of
>>> the number of inotify instances.
>>>
>>> Fixes: 769071ac9f20 ("ns: Introduce Time Namespace")
>>> Cc: Adrian Reber <adrian@...as.de>
>>> Cc: Andrey Vagin <avagin@...nvz.org>
>>> Cc: Christian Brauner <christian.brauner@...ntu.com>
>>> Cc: Eric W. Biederman <ebiederm@...ssion.com>
>>> Cc: Ingo Molnar <mingo@...hat.com>
>>> Cc: Thomas Gleixner <tglx@...utronix.de>
>>> Cc: Vincenzo Frascino <vincenzo.frascino@....com>
>>> Cc: Containers <containers@...ts.linux-foundation.org>
>>> Cc: Linux API <linux-api@...r.kernel.org>
>>> Cc: stable@...nel.org # v5.6+
>>> Reported-by: Michael Kerrisk (man-pages) <mtk.manpages@...il.com>
>>
>> Acked-by: Andrei Vagin <avagin@...il.com>
> 
> Acked-by: Michael Kerrisk <mtk.manpages@...il.com>
> 
> 
> 

Acked-by: Vincenzo Frascino <vincenzo.frascino@....com>

-- 
Regards,
Vincenzo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ