ext4: buffer underrun in ext4_ext_split()?
If depth' is less or equal to at', a buffer underrun occurs
Signed-off-by Roel Kluin <[email protected]>
---
I am not sure whether this is possible.
fs/ext4/extents.c +1 -1
@@ -822,7 +822,7 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode, }/* initialize new leaf */ - newblock = ablocks[--a]; + newblock = a ? ablocks[--a] :0 ;BUG_ON (newblock ==0 ); bh =sb_getblk (inode->i_sb, newblock);if (!bh) {
Op 07-08-09 20:19, Roel Kluin schreef:
Quoted 1 line
If
depth' is less or equal toat', a buffer underrun occurs
s/underrun/overflow/g
Theodore Tso
maintainerQuoted 5 lines · Roel Kluin
If
depth' is less or equal toat', a buffer underrun occursSigned-off-by Roel Kluin <[email protected]>---
I am not sure whether this is possible.
I'm pretty sure this could never happen. ext4_ext_split is only called from one place, and only when the leaf node is full.
- Ted