Re: [PATCH 3/6] tools/pygrub: Restrict depriv operation with RLIMIT_AS

2023-11-23 Thread Alejandro Vallejo
On 22/11/2023 20:16, Andrew Cooper wrote: On 06/11/2023 3:05 pm, Alejandro Vallejo wrote: diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 327cf51774..b96bdfd849 100755 --- a/tools/pygrub/src/pygrub +++ b/tools/pygrub/src/pygrub @@ -75,6 +80,11 @@ def downgrade_rlimits():

Re: [PATCH 3/6] tools/pygrub: Restrict depriv operation with RLIMIT_AS

2023-11-22 Thread Andrew Cooper
On 06/11/2023 3:05 pm, Alejandro Vallejo wrote: > diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub > index 327cf51774..b96bdfd849 100755 > --- a/tools/pygrub/src/pygrub > +++ b/tools/pygrub/src/pygrub > @@ -75,6 +80,11 @@ def downgrade_rlimits(): > resource.setrlimit(resource.RLI

[PATCH 3/6] tools/pygrub: Restrict depriv operation with RLIMIT_AS

2023-11-06 Thread Alejandro Vallejo
Prevents the depriv pygrub from consuming more than a fixed amount of memory. Signed-off-by: Alejandro Vallejo --- tools/pygrub/src/pygrub | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 327cf51774..b96bdfd849 100755 --- a/t