login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
30
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KOSAKI Motohiro
Subject:
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
Date: Monday, November 29, 2010 - 5:06 pm
> On 11/29, KOSAKI Motohiro wrote:
quoted text
> > > > > The patch is not complete, compat_copy_strings() needs changes. > > > But, shouldn't it use get_arg_page() too? Otherwise, where do > > > we check RLIMIT_STACK? > > > > Because NOMMU doesn't have variable length argv. Instead it is still > > using MAX_ARG_STRLEN as old MMU code. > > > > 32 pages hard coded argv limitation naturally prevent this nascent mm > > issue. > > Ah, I didn't mean NOMMU. I meant compat_execve()->compat_copy_strings(). > If a 32bit process execs we seem to miss the RLIMIT_STACK check, no?
Ah, yes. that's bug. You have found more serious issue ;)
quoted text
> > > The patch asks for the cleanups. In particular, I think exec_mmap() > > > should accept bprm, not mm. But I'd prefer to do this later. > > > > > > Oleg. > > > > General request. Please consider to keep Brad's reported-by tag. > > Yes, yes, sure. > > > > +static void acct_arg_size(struct linux_binprm *bprm, unsigned long pages) > > OK. > > > Please move this function into #ifdef CONFIG_MMU. nommu code doesn't use it. > > Well it does, to revert the MM_ANONPAGES counter. I'll add the empty > function for NOMMU. > > > > +{ > > > + struct mm_struct *mm = current->mm; > > > + long diff = pages - bprm->vma_pages; > > > > I prefer to cast signed before assignment. It's safer more. > > OK. > > > > @@ -1003,6 +1024,7 @@ int flush_old_exec(struct linux_binprm * > > > /* > > > * Release all of the old mmap stuff > > > */ > > > + acct_arg_size(bprm, 0); > > > > Why do we need this unacct here? I mean 1) if exec_mmap() is success, > > we don't need unaccount at all > > Yes, we already killed all sub-threads. But this doesn't mean nobody > else can use current->mm, think about CLONE_VM. The simplest example > is vfork().
Right you are.
quoted text
> > 2) if exec_mmap() is failure, an epilogue of > > do_execve() does unaccount thing. > > Yes. > > Thanks Kosaki! > > I'll resend v2 today. I am still not sure about compat_copy_strings()... > > Oleg. >
--
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:
[resend][PATCH 1/4] oom: remove totalpage normalization fr ...
, KOSAKI Motohiro
, (Sun Oct 24, 8:26 pm)
[resend][PATCH 2/4] Revert "oom: deprecate oom_adj tunable"
, KOSAKI Motohiro
, (Sun Oct 24, 8:27 pm)
[resend][PATCH 3/4] move cred_guard_mutex from task_struct ...
, KOSAKI Motohiro
, (Sun Oct 24, 8:28 pm)
[resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, KOSAKI Motohiro
, (Sun Oct 24, 8:29 pm)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, pageexec
, (Mon Oct 25, 4:28 am)
Re: [resend][PATCH 3/4] move cred_guard_mutex from task_st ...
, Roland McGrath
, (Mon Oct 25, 10:26 am)
Re: [resend][PATCH 3/4] move cred_guard_mutex from task_st ...
, Oleg Nesterov
, (Mon Oct 25, 10:42 am)
Re: [resend][PATCH 3/4] move cred_guard_mutex from task_st ...
, Roland McGrath
, (Mon Oct 25, 10:51 am)
Re: [resend][PATCH 1/4] oom: remove totalpage normalizatio ...
, David Rientjes
, (Mon Oct 25, 1:37 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Mon Oct 25, 1:40 pm)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, KOSAKI Motohiro
, (Tue Oct 26, 12:25 am)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Tue Oct 26, 6:01 am)
Re: [resend][PATCH 3/4] move cred_guard_mutex from task_st ...
, KOSAKI Motohiro
, (Tue Oct 26, 6:04 am)
Re: [resend][PATCH 3/4] move cred_guard_mutex from task_st ...
, Roland McGrath
, (Tue Oct 26, 6:18 am)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Tue Oct 26, 12:37 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Mon Nov 1, 12:06 am)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Mon Nov 1, 12:36 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Mon Nov 8, 7:26 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Mon Nov 8, 8:28 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Tue Nov 9, 4:33 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, Alan Cox
, (Tue Nov 9, 4:35 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Tue Nov 9, 4:48 pm)
[patch] oom: document obsolete oom_adj tunable
, David Rientjes
, (Tue Nov 9, 4:55 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Sat Nov 13, 10:07 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Sun Nov 14, 2:39 pm)
Re: [patch] oom: document obsolete oom_adj tunable
, KOSAKI Motohiro
, (Sun Nov 14, 5:22 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Sun Nov 14, 5:24 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Mon Nov 15, 2:59 am)
Re: [patch] oom: document obsolete oom_adj tunable
, David Rientjes
, (Mon Nov 15, 3:38 am)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Tue Nov 23, 12:16 am)
Re: [patch] oom: document obsolete oom_adj tunable
, KOSAKI Motohiro
, (Tue Nov 23, 12:16 am)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, Oleg Nesterov
, (Tue Nov 23, 7:34 am)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, KOSAKI Motohiro
, (Tue Nov 23, 5:24 pm)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, Oleg Nesterov
, (Wed Nov 24, 4:09 am)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, KOSAKI Motohiro
, (Thu Nov 25, 4:06 am)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, Oleg Nesterov
, (Thu Nov 25, 7:02 am)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, Oleg Nesterov
, (Thu Nov 25, 12:36 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Sat Nov 27, 6:41 pm)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, KOSAKI Motohiro
, (Sun Nov 28, 10:25 pm)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, Oleg Nesterov
, (Mon Nov 29, 4:33 am)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, Oleg Nesterov
, (Mon Nov 29, 11:23 am)
Re: [resend][PATCH 4/4] oom: don't ignore rss in nascent mm
, KOSAKI Motohiro
, (Mon Nov 29, 5:06 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, KOSAKI Motohiro
, (Tue Nov 30, 6:03 am)
[PATCH 0/2] exec: more excessive argument size fixes for 2 ...
, Oleg Nesterov
, (Tue Nov 30, 12:54 pm)
[PATCH 1/2] exec: make argv/envp memory visible to oom-killer
, Oleg Nesterov
, (Tue Nov 30, 12:55 pm)
[PATCH 2/2] exec: copy-and-paste the fixes into compat_do_ ...
, Oleg Nesterov
, (Tue Nov 30, 12:56 pm)
[PATCH 0/4] exec: unify compat/non-compat code
, Oleg Nesterov
, (Tue Nov 30, 1:00 pm)
[PATCH 1/4] exec: introduce get_arg_ptr() helper
, Oleg Nesterov
, (Tue Nov 30, 1:00 pm)
[PATCH 2/4] exec: introduce "bool compat" argument
, Oleg Nesterov
, (Tue Nov 30, 1:01 pm)
[PATCH 3/4] exec: unify compat_do_execve() code
, Oleg Nesterov
, (Tue Nov 30, 1:01 pm)
[PATCH 4/4] exec: unexport acct_arg_size() and get_arg_page()
, Oleg Nesterov
, (Tue Nov 30, 1:01 pm)
Re: [resend][PATCH 2/4] Revert "oom: deprecate oom_adj tun ...
, David Rientjes
, (Tue Nov 30, 1:07 pm)
Re: [PATCH 1/2] exec: make argv/envp memory visible to oom ...
, KOSAKI Motohiro
, (Tue Nov 30, 5:12 pm)
Re: [PATCH 2/2] exec: copy-and-paste the fixes into compat ...
, KOSAKI Motohiro
, (Tue Nov 30, 8:04 pm)
Re: [PATCH 0/4] exec: unify compat/non-compat code
, KOSAKI Motohiro
, (Tue Nov 30, 8:09 pm)
(No subject header)
, Milton Miller
, (Wed Dec 1, 10:37 am)
Re: [PATCH 1/2] exec: make argv/envp memory visible to oom ...
, Oleg Nesterov
, (Wed Dec 1, 11:07 am)
Re: (No subject header)
, Oleg Nesterov
, (Wed Dec 1, 11:27 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate