public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] setrlimit/getrlimit
@ 1999-12-15  7:46 Thorsten Kukuk
  1999-12-15  8:04 ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Kukuk @ 1999-12-15  7:46 UTC (permalink / raw)
  To: libc-hacker

Hi,

Here are 2 patches for the setrlimit/getrlimit problem with both current
glibc snapshots: 2.2 and 2.1.3

I have moved the u_long RLIM_INFINITY stuff into the i386 directory, so
it is Intel specific. The default is now singed long for RLIM_INFINITY.
This is correct for ALPHA. Don't know about PPC or ARM, so I let it
the old value until there is a solution how to handle this. In the
moment there is no second syscall for binary compatibility on this
platforms.

Jakub, I changed the sparc/bits/resouces.h file as you suggested,
sparc32 uses signed long, sparc64 unsigned long. Could you please
look at the patch ?
I have one problem with this: What happens if somebody compiles
his sparc64 binaries with the new header files and runs for example
linux 2.2.5 ? This kernel doesn't reject negative rlimit values.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/       kukuk@suse.de
SuSE GmbH            Schanzaeckerstr. 10            90443 Nuernberg
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] setrlimit/getrlimit
  1999-12-15  7:46 [PATCH] setrlimit/getrlimit Thorsten Kukuk
@ 1999-12-15  8:04 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 1999-12-15  8:04 UTC (permalink / raw)
  To: Thorsten Kukuk; +Cc: libc-hacker

> Jakub, I changed the sparc/bits/resouces.h file as you suggested,
> sparc32 uses signed long, sparc64 unsigned long. Could you please
> look at the patch ?

I'll wait until we get to consensus with Davem and I do the kernel side.

> I have one problem with this: What happens if somebody compiles
> his sparc64 binaries with the new header files and runs for example
> linux 2.2.5 ? This kernel doesn't reject negative rlimit values.

No problem. He will not do it. sparc64 userland will be officially supported
with 2.3.latest and later. E.g. up to 2.3.18 or when was it any 64bit task
can set its page tables as it wants because it can access its VPTE area, so
enabling BINFMT_ELF on those kernels is a security issue. Also, several
other bugs have been fixed in 2.3, so 64bit userland would not be usable
anyway.

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.26 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-15  8:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-15  7:46 [PATCH] setrlimit/getrlimit Thorsten Kukuk
1999-12-15  8:04 ` Jakub Jelinek

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 read-only IMAP folder(s) and NNTP newsgroup(s).