Re: [PATCH 07/11] Memory compaction core

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrea Arcangeli
Date: Wednesday, March 24, 2010 - 3:06 pm

On Wed, Mar 24, 2010 at 03:54:23PM -0600, Jonathan Corbet wrote:

You're pointing the finger at lack of VM_BUG_ON but the finger should
be pointed in the code that shall enforce mmap_min_addr. That is the
exploitable bug. I can't imagine any other ways VM_BUG_ON could help
in preventing an exploit. Let's concentrate on mmap_min_addr and leave
the code fast.

If it's a small structure (<4096 bytes) we're talking about, I stand
that VM_BUG_ON() is just pure CPU overhead.

I do agree however for structures that may grow larger than 4096 bytes
VM_BUG_ON isn't bad idea, and furthermore I think it's wrong to keep
the min address at only 4096 bytes, it shall be like 100M or
something. Then all of them can go away. That is way more effective
than having to remember to add VM_BUG_ON(!null) when cpu can do it
zero cost.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 07/11] Memory compaction core, Mel Gorman, (Tue Mar 23, 5:25 am)
Re: [PATCH 07/11] Memory compaction core, Christoph Lameter, (Tue Mar 23, 10:56 am)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Tue Mar 23, 11:15 am)
Re: [PATCH 07/11] Memory compaction core, Christoph Lameter, (Tue Mar 23, 11:33 am)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Tue Mar 23, 11:58 am)
Re: [PATCH 07/11] Memory compaction core, Christoph Lameter, (Tue Mar 23, 12:20 pm)
Re: [PATCH 07/11] Memory compaction core, KAMEZAWA Hiroyuki, (Tue Mar 23, 6:03 pm)
Re: [PATCH 07/11] Memory compaction core, Minchan Kim, (Tue Mar 23, 6:47 pm)
Re: [PATCH 07/11] Memory compaction core, KAMEZAWA Hiroyuki, (Tue Mar 23, 6:53 pm)
Re: [PATCH 07/11] Memory compaction core, Minchan Kim, (Tue Mar 23, 7:10 pm)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Wed Mar 24, 3:57 am)
Re: [PATCH 07/11] Memory compaction core, Andrew Morton, (Wed Mar 24, 1:33 pm)
Re: [PATCH 07/11] Memory compaction core, Jonathan Corbet, (Wed Mar 24, 1:59 pm)
Re: [PATCH 07/11] Memory compaction core, Andrew Morton, (Wed Mar 24, 2:14 pm)
Re: [PATCH 07/11] Memory compaction core, Andrea Arcangeli, (Wed Mar 24, 2:19 pm)
Re: [PATCH 07/11] Memory compaction core, Christoph Lameter, (Wed Mar 24, 2:19 pm)
Re: [PATCH 07/11] Memory compaction core, Jonathan Corbet, (Wed Mar 24, 2:28 pm)
Re: [PATCH 07/11] Memory compaction core, Andrea Arcangeli, (Wed Mar 24, 2:47 pm)
Re: [PATCH 07/11] Memory compaction core, Jonathan Corbet, (Wed Mar 24, 2:54 pm)
Re: [PATCH 07/11] Memory compaction core, Andrea Arcangeli, (Wed Mar 24, 2:57 pm)
Re: [PATCH 07/11] Memory compaction core, Andrea Arcangeli, (Wed Mar 24, 3:06 pm)
Re: [PATCH 07/11] Memory compaction core, Mel Gorman, (Thu Mar 25, 2:13 am)