Commit 4a805e863d6b9466baf7084e1d6fdbe6e0628d8e

Authored by David S. Miller
1 parent 1619cca292

[COMPAT]: Fixup compat_do_execve()

Missing acct_update_integrals() and update_mem_hiwater() calls
compared to it's native counterpart.

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -44,6 +44,8 @@
44 44 #include <linux/nfsd/syscall.h>
45 45 #include <linux/personality.h>
46 46 #include <linux/rwsem.h>
  47 +#include <linux/acct.h>
  48 +#include <linux/mm.h>
47 49  
48 50 #include <net/sock.h> /* siocdevprivate_ioctl */
49 51  
... ... @@ -1487,6 +1489,8 @@
1487 1489  
1488 1490 /* execve success */
1489 1491 security_bprm_free(bprm);
  1492 + acct_update_integrals(current);
  1493 + update_mem_hiwater(current);
1490 1494 kfree(bprm);
1491 1495 return retval;
1492 1496 }