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 859769 Details for
Bug 1050964
GDB testsuite: BUG: unable to handle kernel paging request
[?]
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]
Patch to fix prepend_name() with *buflen < 0
0001-fs-fix-d_path-with-zero-length-input-buffer.patch (text/plain), 1.39 KB, created by
Denys Vlasenko
on 2014-02-05 17:39:25 UTC
(
hide
)
Description:
Patch to fix prepend_name() with *buflen < 0
Filename:
MIME Type:
Creator:
Denys Vlasenko
Created:
2014-02-05 17:39:25 UTC
Size:
1.39 KB
patch
obsolete
>From fc3ba1453a0292aceefacd0df11d89f45598f38b Mon Sep 17 00:00:00 2001 >From: Denys Vlasenko <dvlasenk@redhat.com> >To: linux-kernel@vger.kernel.org >Date: Wed, 5 Feb 2014 18:29:22 +0100 >Subject: [PATCH] fs: fix d_path() with zero-length input buffer > >In prepend_name(), *buflen < dlen + 1 comparison is buggy >because dlen has unsigned data type, and we can reach this location >with *buflen == -1. > >The fix casts dlen to int. > >Bug reports: >https://bugzilla.redhat.com/show_bug.cgi?id=1050964 >https://bugzilla.redhat.com/show_bug.cgi?id=1060384 > >Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> >Cc: Al Viro <viro@zeniv.linux.org.uk> >Cc: Oleg Nesterov <oleg@redhat.com> >Cc: Jan Kratochvil <jan.kratochvil@redhat.com> >Cc: Amerigo Wang <amwang@redhat.com> >Cc: "Jonathan M. Foote" <jmfoote@cert.org> >Cc: Roland McGrath <roland@hack.frob.com> >Cc: Pedro Alves <palves@redhat.com> >Cc: Fengguang Wu <fengguang.wu@intel.com> >Cc: Stephen Rothwell <sfr@canb.auug.org.au> >--- > fs/dcache.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/fs/dcache.c b/fs/dcache.c >index 265e0ce..40ded0c 100644 >--- a/fs/dcache.c >+++ b/fs/dcache.c >@@ -2833,7 +2833,7 @@ static int prepend_name(char **buffer, int *buflen, struct qstr *name) > u32 dlen = ACCESS_ONCE(name->len); > char *p; > >- if (*buflen < dlen + 1) >+ if (*buflen < (int)dlen + 1) > return -ENAMETOOLONG; > *buflen -= dlen + 1; > p = *buffer -= dlen + 1; >-- >1.8.1.4 >
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 1050964
:
851700
|
852718
|
853096
|
859160
| 859769