login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
26
Re: [PATCH] [RFC] brk randomization: compute RLIMIT_DATA properly (was Re: x86: randomize brk() and RLIMIT_DATA)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jan Engelhardt
Subject:
Re: [PATCH] [RFC] brk randomization: compute RLIMIT_DATA properly (was Re: x86: randomize brk() and RLIMIT_DATA)
Date: Friday, October 26, 2007 - 5:33 am
On Oct 26 2007 13:30, Hugh Dickins wrote:
quoted text
>> @@ -251,7 +251,8 @@ asmlinkage unsigned long sys_brk(unsigned long brk) >> * not page aligned -Ram Gupta >> */ >> rlim = current->signal->rlim[RLIMIT_DATA].rlim_cur; >> - if (rlim < RLIM_INFINITY && brk - mm->start_data > rlim) >> + if (rlim < RLIM_INFINITY && (brk - mm->start_brk) + >> + (mm->end_data - mm->start_data) > rlim) >> goto out; >> >> newbrk = PAGE_ALIGN(brk);
Parentheses around (brk - mm->start_brk) + (mm->end_data - mm->start_data) not strictly necessary. -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
x86: randomize brk() and RLIMIT_DATA
, Sami Farin
, (Thu Oct 25, 6:41 am)
Re: x86: randomize brk() and RLIMIT_DATA
, Arjan van de Ven
, (Thu Oct 25, 7:13 am)
Re: x86: randomize brk() and RLIMIT_DATA
, Jiri Kosina
, (Thu Oct 25, 7:46 am)
Re: x86: randomize brk() and RLIMIT_DATA
, Sami Farin
, (Thu Oct 25, 10:19 am)
[PATCH] [RFC] brk randomization: compute RLIMIT_DATA prope ...
, Jiri Kosina
, (Fri Oct 26, 3:44 am)
Re: [PATCH] [RFC] brk randomization: compute RLIMIT_DATA p ...
, Hugh Dickins
, (Fri Oct 26, 5:02 am)
Re: [PATCH] [RFC] brk randomization: compute RLIMIT_DATA p ...
, Jiri Kosina
, (Fri Oct 26, 5:16 am)
Re: [PATCH] [RFC] brk randomization: compute RLIMIT_DATA p ...
, Hugh Dickins
, (Fri Oct 26, 5:30 am)
Re: [PATCH] [RFC] brk randomization: compute RLIMIT_DATA p ...
, Jan Engelhardt
, (Fri Oct 26, 5:33 am)
Re: [PATCH] [RFC] brk randomization: compute RLIMIT_DATA p ...
, Hugh Dickins
, (Fri Oct 26, 6:24 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-activists
:
Honoo Suzuki n-2423
Q:Disk doubler for linux?
H.J. Lu
Re: Problems w/ SLS and Ultrastor
Daniel Brahneborg
Re: Linux Screen Capture
Tushar D Chandra
ARCNET info wanted ...
Nicolai Langfeldt
***** README: How to find answers to your linux questions. *****
openfabrics-general
:
Or Gerlitz
[ofa-general] [PATCH] ib/ipoib: handle Gratuitous ARP & bonding failover race ...
Chris Worley
Re: [Scst-devel] [ofa-general] WinOF_2_0_5/SRP initiator: slow reads and eventual...
Chuck Hartley
[ofa-general] OFED 1.2.5.4 build fails for kernel 2.6.23
Vu Pham
Re: [Fwd: Re: [ofa-general] [NFS/RDMA] Can't mount NFS/RDMA partition]]
Celine Bourde
Re: [Fwd: Re: [ofa-general] [NFS/RDMA] Can't mount NFS/RDMA partition]]
freebsd-fs
:
Peter Schuller
kern.geom.debugflags=16 does NOT allow me to write to device
Danny Carroll
Re: Areca vs. ZFS performance testing.
Sam Fourman Jr.
Re: Locked up processes after upgrade to ZFS v15
Andrew Hill
ZFS lockup in "zfs" state
Jeremy Chadwick
Re: Areca vs. ZFS performance testing.
linux-usb-devel
:
Mike Nuss
Re: Kernel panic with PCI EHCI on AMCC Sequoia
Oliver Neukum
Re: [linux-pm] Re: The evilness of struct usb_device->auto_pm
Greg Kroah-Hartman
[PATCH 038/149] USB: use function attribute __maybe_unused
Joseph Kim
how to mount gadgetfs?? please help me..
Greg KH
Re: [PATCH] EHCI: fix bug in refcounting code
open-graphics
:
Dieter
[Open-graphics] Re: X-video-server
nico
Re: [Open-graphics] Looking towards the future: Graphics technology
Peter Stuge
Re: [Open-graphics] Re: Text mode notes
Timothy Normand Miller
[Open-graphics] Synthesizing oga1hq
Timothy Normand Miller
[Open-graphics] O'Reilly OSCON 2007
Colocation donated by:
Syndicate