FreeBSD Bugzilla – Attachment 165231 Details for
Bug 205938
[ext2fs][patch][panic] EXT4: reading mmaped file causes panic because struct buf leaks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix reading mmaped files from EXT4
patch-ext2-pr165127 (text/plain), 642 bytes, created by
Pedro F. Giffuni
on 2016-01-07 21:32:04 UTC
(
hide
)
Description:
Fix reading mmaped files from EXT4
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2016-01-07 21:32:04 UTC
Size:
642 bytes
patch
obsolete
>Index: sys/fs/ext2fs/ext2_bmap.c >=================================================================== >--- sys/fs/ext2fs/ext2_bmap.c (revision 293168) >+++ sys/fs/ext2fs/ext2_bmap.c (working copy) >@@ -114,12 +114,18 @@ > ep = path.ep_ext; > if (ep == NULL) > return (EIO); >+ else { >+ *bnp = fsbtodb(fs, lbn - ep->e_blk + >+ (ep->e_start_lo | (daddr_t)ep->e_start_hi << 32)); > >- *bnp = fsbtodb(fs, lbn - ep->e_blk + >- (ep->e_start_lo | (daddr_t)ep->e_start_hi << 32)); >+ if (*bnp == 0) >+ *bnp = -1; >+ } > >- if (*bnp == 0) >- *bnp = -1; >+ if (path.ep_bp != NULL) { >+ brelse(path.ep_bp); >+ path.ep_bp = NULL; >+ } > > return (0); > }
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 205938
:
165127
|
165231