Re: [PATCH v4] linux-user: fix getgroups/setgroups allocations

2023-05-05 Thread Laurent Vivier
Le 09/04/2023 à 12:53, Michael Tokarev a écrit : linux-user getgroups(), setgroups(), getgroups32() and setgroups32() used alloca() to allocate grouplist arrays, with unchecked gidsetsize coming from the "guest". With NGROUPS_MAX being 65536 (linux, and it is common for an application to allocat

Re: [PATCH v4] linux-user: fix getgroups/setgroups allocations

2023-05-04 Thread Michael Tokarev
09.04.2023 13:53, Michael Tokarev wrote: linux-user getgroups(), setgroups(), getgroups32() and setgroups32() used alloca() to allocate grouplist arrays, with unchecked gidsetsize coming from the "guest". With NGROUPS_MAX being 65536 (linux, and it is common for an application to allocate NGROUP

[PATCH v4] linux-user: fix getgroups/setgroups allocations

2023-04-09 Thread Michael Tokarev
linux-user getgroups(), setgroups(), getgroups32() and setgroups32() used alloca() to allocate grouplist arrays, with unchecked gidsetsize coming from the "guest". With NGROUPS_MAX being 65536 (linux, and it is common for an application to allocate NGROUPS_MAX for getgroups()), this means a typica