[lkml]   [2008]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] msr: Fix NULL pointer deref due to msr_open on nonexistent CPUs
On Thu, 14 Aug 2008 15:43:33 -0700
"Darrick J. Wong" <> wrote:

> msr_open tests for someone trying to open a device for a nonexistent
> CPU. However, the function always returns 0, not ret like it should,
> hence userspace can BUG the kernel trivially. This bug was
> introduced by the cdev lock_kernel pushdown patch last May.

> - return 0;
> + return ret;

Oops, that was pretty silly. Apologies for the screwup.


 \ /
  Last update: 2008-08-15 16:59    [W:0.308 / U:1.288 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site