Description of problem: If `device_write' method is called via "dlm-control", file->private_data is NULL. (See ctl_device_open() in user.c. ) Through proc->flags is read. This causes a kernel oops. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
fixed in upstream commit: From f1605096f1fde64403edcb9e18605174a64e1c55 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO <yamato> Date: Wed, 28 May 2008 14:45:10 +0900 Subject: [PATCH] dlm: check for null in device_write If `device_write' method is called via "dlm-control", file->private_data is NULL. (See ctl_device_open() in user.c. ) Through proc->flags is read. Signed-off-by: Masatake YAMATO <yamato> Signed-off-by: David Teigland <teigland>
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
The commit referenced in comment 1 is from linux-next, pending the merge window for 2.6.27, so the commit id is not permanent.
patch posted to rhkernel-list http://post-office.corp.redhat.com/archives/rhkernel-list/2008-June/msg00090.html
in kernel-2.6.18-97.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5
confirmed fix is in the -125 kernel.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2009-0225.html