--- 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);