Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonymous shared memory

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Howells
Date: Friday, February 16, 2007 - 8:05 am

Kawai, Hidehiro <hidehiro.kawai.ez@hitachi.com> wrote:


Why are you passing it as an extra argument when you could just use
mm->coredump_omit_anon_shared here:


And here:


Actually, I think I would just pass the mm pointer you have into maydump() and
let that dereference it here:


which would then be:

		if (mm->coredump_omit_anon_shared) {

Then the calls to maydump() would be:

		if (!maydump(vma, mm))

and:

		phdr.p_filesz = maydump(vma, current->mm) ? sz : 0;

I wouldn't worry, were I you, about the setting changing whilst it's being
used.  If you are worried about that, you can probably do some locking against
that.

David
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] coredump: core dump masking support v3, Kawai, Hidehiro, (Fri Feb 16, 6:34 am)
[PATCH 4/4] coredump: documentation for proc entry, Kawai, Hidehiro, (Fri Feb 16, 6:42 am)
Re: [PATCH 3/4] coredump: ELF-FDPIC: enable to omit anonym ..., David Howells, (Fri Feb 16, 8:05 am)
Re: [PATCH 0/4] coredump: core dump masking support v3 , David Howells, (Fri Feb 16, 8:08 am)
Re: [PATCH 0/4] coredump: core dump masking support v3, Kawai, Hidehiro, (Tue Feb 20, 2:48 am)
Re: [PATCH 0/4] coredump: core dump masking support v3, Markus Gutschke, (Fri Feb 23, 8:32 pm)
Re: [PATCH 0/4] coredump: core dump masking support v3 , David Howells, (Sat Feb 24, 3:02 am)
Re: [PATCH 0/4] coredump: core dump masking support v3, Pavel Machek, (Sat Feb 24, 4:39 am)
Re: [PATCH 0/4] coredump: core dump masking support v3, Markus Gutschke, (Sat Feb 24, 1:01 pm)
Re: [PATCH 0/4] coredump: core dump masking support v3 , David Howells, (Mon Feb 26, 4:49 am)
Re: [PATCH 0/4] coredump: core dump masking support v3, Pavel Machek, (Mon Feb 26, 5:01 am)
Re: [PATCH 0/4] coredump: core dump masking support v3 , David Howells, (Mon Feb 26, 5:42 am)
Re: [PATCH 0/4] coredump: core dump masking support v3, Kawai, Hidehiro, (Thu Mar 1, 5:35 am)
Re: [PATCH 0/4] coredump: core dump masking support v3, Markus Gutschke, (Thu Mar 1, 11:16 am)
[PATCH] NOMMU: Hide vm_mm in NOMMU mode, David Howells, (Sat Mar 3, 7:25 am)
Move to unshared VMAs in NOMMU mode?, David Howells, (Fri Mar 9, 7:12 am)
Re: Move to unshared VMAs in NOMMU mode?, Robin Getz, (Mon Mar 12, 1:50 pm)
Re: Move to unshared VMAs in NOMMU mode? , David Howells, (Tue Mar 13, 3:14 am)
Re: Move to unshared VMAs in NOMMU mode?, Hugh Dickins, (Thu Mar 15, 2:20 pm)
Re: Move to unshared VMAs in NOMMU mode? , David Howells, (Thu Mar 15, 3:47 pm)
Re: Move to unshared VMAs in NOMMU mode?, Eric W. Biederman, (Mon Mar 19, 12:23 pm)
Re: Move to unshared VMAs in NOMMU mode? , David Howells, (Tue Mar 20, 4:06 am)
Re: Move to unshared VMAs in NOMMU mode?, Eric W. Biederman, (Tue Mar 20, 9:48 am)
Re: Move to unshared VMAs in NOMMU mode? , David Howells, (Tue Mar 20, 12:12 pm)
Re: Move to unshared VMAs in NOMMU mode? , David Howells, (Tue Mar 20, 12:51 pm)
Re: Move to unshared VMAs in NOMMU mode? , David Howells, (Wed Mar 21, 9:11 am)