FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 08-13-2008, 01:26 AM
Stefan Bader
 
Default UBUNTU: mm: Fix zero length segment loop

Bug: #249340

The CVE update commit 65e5414318c0af67e05d84664d5de3d9685c16be
(CVE-2008-0598) mm: trim more holes
to mm/filemap.c accidentally dropped the special handling for zero length
segments as those changes where reverted before the CVE fix was done. Add
the check for zero bytes copied again to go for the next segment in this
case.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
mm/filemap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/filemap.c b/mm/filemap.c
index d511980..802a6bd 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2167,7 +2167,7 @@ zero_length_segment:
if (unlikely(status > 0)) /* filesystem did partial write */
copied = status;

- if (likely(copied > 0)) {
+ if (likely(copied >= 0)) {
written += copied;
count -= copied;
pos += copied;
--
1.5.4.3


--------------080402010300010105040500
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team

--------------080402010300010105040500--
 

Thread Tools




All times are GMT. The time now is 08:29 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org