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 - 2:47 pm

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

As far as I can tell, VM_BUG_ON would make _zero_ differences there.

I think you mistaken a VM_BUG_ON for a:

  if (could_be_null->something) {
     WARN_ON(1);
     return -ESOMETHING;
  }

adding a VM_BUG_ON(inode->something) would _still_ be as exploitable
as the null pointer deference, because it's a DoS. It's not really a
big deal of an exploit but it _sure_ need fixing.

The whole point is that VM_BUG_ON(!something) before something->else
won't move the needle as far as your null pointer deference exploits
are concerned.


Being worried is good idea, as we don't want DoS bugs ;). It's just
that VM_BUG_ON isn't a solution to the problem (and the really
important thing, it's not improving its detectability either), fixing
the actual bug is the solution.
--
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)