Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 56386 Details for
Bug 88740
Kernel: sysfs_write_file() integer overflow (CAN-2005-0867)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
88740.patch (text/plain), 742 bytes, created by
Tim Yamin (RETIRED)
on 2005-04-15 15:00:14 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Tim Yamin (RETIRED)
Created:
2005-04-15 15:00:14 UTC
Size:
742 bytes
patch
obsolete
>--- 1.22/fs/sysfs/file.c 2005-04-15 14:58:44 -07:00 >+++ 1.23/fs/sysfs/file.c 2005-04-15 14:58:44 -07:00 >@@ -231,15 +231,16 @@ > sysfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) > { > struct sysfs_buffer * buffer = file->private_data; >+ ssize_t len; > > down(&buffer->sem); >- count = fill_write_buffer(buffer,buf,count); >- if (count > 0) >- count = flush_write_buffer(file->f_dentry,buffer,count); >- if (count > 0) >- *ppos += count; >+ len = fill_write_buffer(buffer, buf, count); >+ if (len > 0) >+ len = flush_write_buffer(file->f_dentry, buffer, len); >+ if (len > 0) >+ *ppos += len; > up(&buffer->sem); >- return count; >+ return len; > } > > static int check_perm(struct inode * inode, struct file * file)
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 88740
: 56386