Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314042 Details for
Bug 458756
kernel: dlm: check for null in device_write [mrg-1]
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Upstream patch for this issue
0001-dlm-check-for-null-in-device_write.patch (text/plain), 1.03 KB, created by
Eugene Teo (Security Response)
on 2008-08-12 04:13:55 UTC
(
hide
)
Description:
Upstream patch for this issue
Filename:
MIME Type:
Creator:
Eugene Teo (Security Response)
Created:
2008-08-12 04:13:55 UTC
Size:
1.03 KB
patch
obsolete
>From 254ae43ab8d7877c980fca3636624e0777a70fa4 Mon Sep 17 00:00:00 2001 >From: Masatake YAMATO <yamato@redhat.com> >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@redhat.com> >Signed-off-by: David Teigland <teigland@redhat.com> >--- > fs/dlm/user.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/fs/dlm/user.c b/fs/dlm/user.c >index ebbcf38..1aa76b3 100644 >--- a/fs/dlm/user.c >+++ b/fs/dlm/user.c >@@ -538,7 +538,7 @@ static ssize_t device_write(struct file *file, const char __user *buf, > > /* do we really need this? can a write happen after a close? */ > if ((kbuf->cmd == DLM_USER_LOCK || kbuf->cmd == DLM_USER_UNLOCK) && >- test_bit(DLM_PROC_FLAGS_CLOSING, &proc->flags)) >+ (proc && test_bit(DLM_PROC_FLAGS_CLOSING, &proc->flags))) > return -EINVAL; > > sigfillset(&allsigs); >-- >1.5.5.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 458756
: 314042