mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + acct-use-dedicated-helper-to-access-rlimit-values.patch added to -mm tree
@ 2021-07-28 19:34 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-07-28 19:34 UTC (permalink / raw)
  To: mm-commits, zealci, sh_def, rdunlap, yang.yang29


The patch titled
     Subject: kernel/acct.c: use dedicated helper to access rlimit values
has been added to the -mm tree.  Its filename is
     acct-use-dedicated-helper-to-access-rlimit-values.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/acct-use-dedicated-helper-to-access-rlimit-values.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/acct-use-dedicated-helper-to-access-rlimit-values.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Yang Yang <yang.yang29@zte.com.cn>
Subject: kernel/acct.c: use dedicated helper to access rlimit values

Use rlimit() helper instead of manually writing whole chain from
task to rlimit value. See patch "posix-cpu-timers: Use dedicated
helper to access rlimit values".

Link: https://lkml.kernel.org/r/20210728030822.524789-1-yang.yang29@zte.com.cn
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: sh_def@163.com <sh_def@163.com>
Cc: Yang Yang <yang.yang29@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/acct.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/kernel/acct.c~acct-use-dedicated-helper-to-access-rlimit-values
+++ a/kernel/acct.c
@@ -478,7 +478,7 @@ static void do_acct_process(struct bsd_a
 	/*
 	 * Accounting records are not subject to resource limits.
 	 */
-	flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur;
+	flim = rlimit(RLIMIT_FSIZE);
 	current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY;
 	/* Perform file operations on behalf of whoever enabled accounting */
 	orig_cred = override_creds(file->f_cred);
_

Patches currently in -mm which might be from yang.yang29@zte.com.cn are

acct-use-dedicated-helper-to-access-rlimit-values.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-28 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28 19:34 + acct-use-dedicated-helper-to-access-rlimit-values.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).