Bug 410301 - New kernel syscall sys_rlimit64 for resource limits
Summary: New kernel syscall sys_rlimit64 for resource limits
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Larry Woodman
QA Contact: Martin Jenner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-04 13:06 UTC by Adam Stokes
Modified: 2018-10-19 21:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-07 05:47:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Adam Stokes 2007-12-04 13:06:16 UTC
Description of problem:
In this particular case users of ppc64 are unable to set things like memlock
higher than 4G

Version-Release number of selected component (if applicable):
2.6.9

How reproducible:
Everytime

Steps to Reproduce:
Set memlock higher than 4G in /etc/security/limits.conf

This simple application shows its effect :
#include <sys/resource.h>
#include <stdio.h>
#include <stdlib.h>

int main ()
{
  struct rlimit rlim;
  
  rlim.rlim_max = 5961560;
  rlim.rlim_cur = rlim.rlim_max;

  if ( setrlimit(8, &rlim) < 0) {
    fprintf(stderr,"Failed to set memlock max\n");
    exit(1);
  }
  fprintf(stderr,"rlim_cur: %ld\n",rlim.rlim_cur);
  return 1;
}
  
Actual results:
Fails to set memlock higher than 4G.

Expected results:
Allow for higher threshold

Additional info:


Note You need to log in before you can comment on or make changes to this bug.