login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
September
»
16
Re: [PATCH] move cred_guard_mutex from task_struct to signal_struct
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: KOSAKI Motohiro
Subject:
Re: [PATCH] move cred_guard_mutex from task_struct to signal_struct
Date: Wednesday, September 15, 2010 - 10:51 pm
> On 09/10, KOSAKI Motohiro wrote:
quoted text
> > > > 1) moving cread_guard_mutex itself > > - no increase execve overhead > > -> very good > > - it also prevent parallel ptrace > > No, it doesn't. Only PTRACE_ATTACH needs this mutex, and as Roland > pointed out it also needs write_lock(tasklist) which is worse. So > this change doesn't make any practical harm for ptrace.
I see, thanks.
quoted text
> > > 2) move in_exec_mm to signal_struct too > > -> very hard. oom-killer can use very few lock because it's called > > from various place. now both ->mm and ->in_exec_mm are protected > > task_lock() and it help to avoid messy. > > Yes. But, if ->in_exec_mm is only used by oom_badness(), then I think > you can use task_lock(tsk->group_leader). oom_badness() needs tasklist > anyway, this means it can't race with de_thread() changing the leader. > But up to you.
Good idea. will fix.
quoted text
> > Another very minor nit (but again, up to you). Perhaps exec_mmap() > could clear ->in_exec_mm (in task_struct or signal_struct, this doesnt > matter), it takes task_lock(current) anyway (and at this point current > is always the group leader).
Thanks. will fix.
quoted text
> > > Let's move ->cred_guard_mutex from task_struct to signal_struct. It > > naturally prevent multiple-threads-inside-exec. > > Reviewed-by: Oleg Nesterov <oleg@redhat.com> > > > This is very minor, but perhaps you can also fix a couple of comments > which mention task->cred_guard_mutex, > > fs/exec.c:1109 the caller must hold current->cred_guard_mutex > kernel/cred.c:328 The caller must hold current->cred_guard_mutex > include/linux/tracehook.h:153 @task->cred_guard_mutex
Will fix, of cource. --
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:
[PATCH] exec argument expansion can inappropriately trigge ...
, Kees Cook
, (Fri Aug 27, 3:02 pm)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, KOSAKI Motohiro
, (Sun Aug 29, 5:19 pm)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Roland McGrath
, (Sun Aug 29, 5:56 pm)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Solar Designer
, (Sun Aug 29, 8:23 pm)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Roland McGrath
, (Mon Aug 30, 3:06 am)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Solar Designer
, (Mon Aug 30, 10:49 am)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Solar Designer
, (Mon Aug 30, 12:48 pm)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Brad Spengler
, (Mon Aug 30, 3:08 pm)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Roland McGrath
, (Mon Aug 30, 5:40 pm)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Solar Designer
, (Tue Aug 31, 4:53 am)
Re: [PATCH] exec argument expansion can inappropriately tr ...
, Tetsuo Handa
, (Tue Aug 31, 4:56 am)
[PATCH 0/3] execve argument-copying fixes
, Roland McGrath
, (Tue Sep 7, 7:34 pm)
[PATCH 1/3] setup_arg_pages: diagnose excessive argument size
, Roland McGrath
, (Tue Sep 7, 7:35 pm)
[PATCH 2/3] execve: improve interactivity with large arguments
, Roland McGrath
, (Tue Sep 7, 7:36 pm)
[PATCH 3/3] execve: make responsive to SIGKILL with large ...
, Roland McGrath
, (Tue Sep 7, 7:37 pm)
Re: [PATCH 0/3] execve argument-copying fixes
, KOSAKI Motohiro
, (Tue Sep 7, 8:00 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, pageexec
, (Wed Sep 8, 1:29 am)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, Brad Spengler
, (Wed Sep 8, 4:57 am)
[PATCH 0/2] execve memory exhaust of argument-copying fixes
, KOSAKI Motohiro
, (Wed Sep 8, 10:01 pm)
[PATCH 1/2] oom: don't ignore rss in nascent mm
, KOSAKI Motohiro
, (Wed Sep 8, 10:03 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, KOSAKI Motohiro
, (Wed Sep 8, 10:31 pm)
Re: [PATCH 1/2] oom: don't ignore rss in nascent mm
, Oleg Nesterov
, (Thu Sep 9, 3:05 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, Roland McGrath
, (Fri Sep 10, 1:59 am)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, Roland McGrath
, (Fri Sep 10, 2:18 am)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, Roland McGrath
, (Fri Sep 10, 2:25 am)
Re: [PATCH 1/2] oom: don't ignore rss in nascent mm
, Roland McGrath
, (Fri Sep 10, 2:39 am)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, KOSAKI Motohiro
, (Fri Sep 10, 2:43 am)
[PATCH] move cred_guard_mutex from task_struct to signal_s ...
, KOSAKI Motohiro
, (Fri Sep 10, 2:57 am)
Re: [PATCH 2/2] execve: check the VM has enough memory at ...
, Linus Torvalds
, (Fri Sep 10, 8:06 am)
Re: [PATCH] move cred_guard_mutex from task_struct to sign ...
, Oleg Nesterov
, (Fri Sep 10, 10:24 am)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, pageexec
, (Sat Sep 11, 6:30 am)
Re: [PATCH 2/2] execve: check the VM has enough memory at ...
, KOSAKI Motohiro
, (Mon Sep 13, 6:52 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, Roland McGrath
, (Tue Sep 14, 11:51 am)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, Roland McGrath
, (Tue Sep 14, 12:33 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, pageexec
, (Tue Sep 14, 1:28 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, Roland McGrath
, (Tue Sep 14, 2:16 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, pageexec
, (Tue Sep 14, 3:27 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, pageexec
, (Tue Sep 14, 3:35 pm)
Re: [PATCH 1/3] setup_arg_pages: diagnose excessive argume ...
, pageexec
, (Wed Sep 15, 2:27 am)
Re: [PATCH] move cred_guard_mutex from task_struct to sign ...
, KOSAKI Motohiro
, (Wed Sep 15, 10:51 pm)
Re: [PATCH 2/2] execve: check the VM has enough memory at ...
, KOSAKI Motohiro
, (Wed Sep 15, 10:51 pm)
Re: [PATCH 2/2] execve: check the VM has enough memory at ...
, Linus Torvalds
, (Thu Sep 16, 8:01 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate