Re:Google, Xiaomi, and Huawei affected by zero-day flaw that...
by jnurmine on Sunday October 06, 2019 @09:32AM
(#21171905)
Well, if the allocation is done with GFP_ACCOUNT bit set, i.e. kmemcg accounting enabled, isn't that the intended behaviour that the allocation can fail?
[ Parent
| on HN ]
Re:Google, Xiaomi, and Huawei affected by zero-day flaw that...
by jumpingmice on Sunday October 06, 2019 @12:13PM
(#21172891)
Yes that is the point. In the relatively rare case of failure this particular function uses a goto to return without releasing a held mutex. Error paths within the kernel are a rich vein of malfunction.