public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* re: sched, numa, mm: Implement constant, per task Working Set Sampling (WSS) rate
@ 2012-10-22 11:55 Dan Carpenter
  2012-10-22 12:43 ` Peter Zijlstra
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2012-10-22 11:55 UTC (permalink / raw)
  To: a.p.zijlstra; +Cc: linux-kernel

Hello Peter Zijlstra,

The patch 3d049f8a5398: "sched, numa, mm: Implement constant, per
task Working Set Sampling (WSS) rate" from Oct 14, 2012, leads to the
following warning:
kernel/sched/fair.c:954 task_numa_work()
	 error: we previously assumed 'vma' could be null (see line 948)

   943          if (!vma) {
   944                  ACCESS_ONCE(mm->numa_scan_seq)++;
   945                  offset = 0;
   946                  vma = mm->mmap;
   947          }
   948          while (vma && !vma_migratable(vma)) {
                       ^^^
If this is NULL,
   949                  vma = vma->vm_next;
   950                  if (!vma)
   951                          goto again;
   952          }
   953  
   954          offset = max(offset, vma->vm_start);
                                     ^^^^^^^^^^^^^
then it leads to a NULL dereference here.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-22 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 11:55 sched, numa, mm: Implement constant, per task Working Set Sampling (WSS) rate Dan Carpenter
2012-10-22 12:43 ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox