e2fsprogs/lib/ext2fs
Darrick J. Wong 5f0164b3a4 libext2fs: fix tdb.c mmap leak
When undoing an expansion of an mmap'd database while cancelling a
transaction, the tdb code prematurely decreases the variable that
tracks the file size, which leads to a region leak during the
subsequent unmap.  Fix this by maintaining a separate counter for the
region size.

(This is probably unnecessary since e2undo was the only user of tdb
transactions, but I suppose we could be proactive.)

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2015-01-27 13:10:39 -05:00
..
tdb Update to latest samba tdb library before LGPLv3 change 2008-02-17 17:35:54 -05:00
Makefile.in misc: fix compiler warnings and minor build errors 2014-11-07 21:23:41 -05:00
Makefile.pq libext2fs: handle inline data in dir iterator function 2014-03-04 08:46:08 -05:00
alloc.c libext2fs: find inode goal when allocating blocks 2014-12-13 20:07:13 -05:00
alloc_sb.c libext2fs: no need to clear BLOCK_UNINIT during ext2fs_reserve_super_and_bgd 2014-01-11 14:15:51 -05:00
alloc_stats.c Merge branch 'maint' into next 2014-12-02 22:15:25 -05:00
alloc_tables.c Merge branch 'maint' into next 2014-08-08 17:02:34 -04:00
badblocks.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
bb_compat.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
bb_inode.c libext2fs: provide a function to set inode size 2014-07-26 14:34:56 -04:00
bitmaps.c libext2fs: add default_bitmap_type to the ext2_filsys structure 2011-12-18 00:28:43 -05:00
bitops.c libext2fs: fix gcc -Wall warnings 2013-05-19 18:50:10 -04:00
bitops.h define bitwise types and annotate conversion routines 2014-11-04 11:24:44 -05:00
blkmap64_ba.c Merge branch 'maint' into next 2014-01-30 19:05:16 -05:00
blkmap64_rb.c ext2fs: fix integer overflow in rb_get_bmap_range 2014-12-11 17:57:35 -05:00
blknum.c Merge branch 'maint' into next 2014-07-26 15:57:42 -04:00
block.c libext2fs: handle inline_data in block iterator by returning an error code 2013-10-13 21:43:41 -04:00
bmap.c libext2fs: find inode goal when allocating blocks 2014-12-13 20:07:13 -05:00
bmap64.h Merge branch 'maint' into next 2014-01-30 19:05:16 -05:00
bmove.c libext2fs: ext2fs_[set_]file_acl_block needs to check for 64-bit feature flag 2011-10-16 20:46:49 -04:00
brel.h e2fsprogs: fix inode and block relocation functions to use blk64_t 2013-10-07 09:57:43 -04:00
brel_ma.c e2fsprogs: fix inode and block relocation functions to use blk64_t 2013-10-07 09:57:43 -04:00
check_desc.c e2fsck: verify s_desc_size is power-of-two value 2013-12-23 16:03:46 -05:00
closefs.c Merge branch 'maint' into next 2014-08-10 19:33:31 -04:00
crc16.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
crc16.h Fix compiling under diet libc 2008-09-12 09:10:39 -04:00
crc32c.c libext2fs: fix gcc -Wall nits 2013-05-19 22:12:36 -04:00
crc32c_defs.h libext2fs: optimize the CRC32c implementation 2012-08-02 20:47:46 -04:00
csum.c libext2fs: set BLOCK_UNINIT for non-last blockgroups if all blocks are free 2014-11-17 17:46:13 -05:00
dblist.c Merge branch 'maint' into next 2013-12-26 00:30:56 -05:00
dblist_dir.c libext2fs: repair side effects when iterating dirents in inline dirs 2014-03-14 09:30:20 -04:00
dir_iterate.c Merge branch 'maint' into next 2014-11-04 11:46:55 -05:00
dirblock.c libext2fs: add checksums to the end of directory leaf nodes 2012-08-02 17:27:43 -04:00
dirhash.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
dosio.c libext2fs: use C99 initializers for the io_manager structure 2014-07-26 00:49:14 -04:00
dosio.h libe2p, libext2fs: Update file copyright permission states to match COPYING 2010-05-17 23:04:39 -04:00
dupfs.c libext2fs: ext2fs_dup_handle should not alias MMP buffers 2013-09-09 10:39:33 -04:00
e2image.h e2image: only skip writing zero blocks when writing to a new file 2013-12-26 00:21:08 -05:00
expanddir.c libext2fs: find inode goal when allocating blocks 2014-12-13 20:07:13 -05:00
ext2_err.et.in debugfs: create journal handling routines 2014-09-11 16:44:10 -04:00
ext2_ext_attr.h libext2fs: change ext4 on-disk layout to support metadata checksumming 2012-07-30 17:44:15 -04:00
ext2_fs.h Reserve the codepoints for the new INCOMPAT feature ENCRYPT 2015-01-26 10:27:41 -05:00
ext2_io.h ext2fs: add readahead method to improve scanning 2014-09-19 12:16:08 -04:00
ext2_types.h.in libext2fs: fix endian checking bits 2014-11-05 11:08:32 -05:00
ext2fs.h Reserve the codepoints for the new INCOMPAT feature ENCRYPT 2015-01-26 10:27:41 -05:00
ext2fs.pc.in Change pkg-config files so that both <et/com_err.h> and <com_err.h> work 2012-05-14 12:45:54 -04:00
ext2fsP.h misc: cppcheck cleanups 2014-03-14 09:34:11 -04:00
ext3_extents.h libext2fs: add a way to check the theoretical maximum extent tree depth 2014-12-13 21:13:40 -05:00
ext_attr.c libext2fs: strengthen i_extra_isize checks when reading/writing xattrs 2015-01-27 13:10:21 -05:00
extent.c libext2fs: speed up the max extent depth api call 2014-12-15 12:26:57 -05:00
fiemap.h e2fsprogs/filefrag: print shared extent flag 2014-05-04 23:15:48 -04:00
fileio.c libext2fs: file IO routines should handle uninit blocks 2014-12-02 22:57:14 -05:00
finddev.c libext2fs: enforce a max nested link count in ext2fs_find_block_device() 2011-11-19 23:11:20 -05:00
flushb.c libext2fs: check return values 2013-12-12 13:14:52 -05:00
freefs.c libext2fs/e2fsck: refactor everyone who writes zero blocks to disk 2014-10-13 04:31:17 -04:00
gen_bitmap.c libext2fs: add ext2fs_find_first_set_{block,inode}_bitmap2() 2014-01-13 14:02:06 -05:00
gen_bitmap64.c Merge branch 'maint' into next 2014-04-20 08:31:24 -04:00
gen_crc32ctable.c libext2fs: optimize the CRC32c implementation 2012-08-02 20:47:46 -04:00
get_num_dirs.c libext2fs: move ext2fs_get_num_dirs to its own file 2012-07-30 17:19:15 -04:00
get_pathname.c libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
getsectsize.c libext2fs: refactor Direct I/O alignment requirement calculations 2012-05-07 13:25:44 -04:00
getsize.c blkid: remove unnecessary header and comment 2014-07-04 23:59:45 -04:00
i_block.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
icount.c misc: fix header complaints and resource leaks in e2fsprogs 2014-03-14 09:53:19 -04:00
imager.c Fix 32/64-bit overflow when multiplying by blocks/clusters per group 2014-07-26 07:40:36 -04:00
ind_block.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
initialize.c Merge branch 'maint' into next 2014-08-08 17:02:34 -04:00
inline.c tests: don't consider "make check" a compiler error 2012-12-29 17:13:24 -05:00
inline_data.c libext2fs: refactor extent head creation 2014-12-02 22:55:04 -05:00
inode.c Merge branch 'maint' into next 2014-12-25 23:43:10 -05:00
inode_io.c libext2fs: use C99 initializers for the io_manager structure 2014-07-26 00:49:14 -04:00
io_manager.c ext2fs: add readahead method to improve scanning 2014-09-19 12:16:08 -04:00
irel.h e2fsprogs: fix inode and block relocation functions to use blk64_t 2013-10-07 09:57:43 -04:00
irel_ma.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
ismounted.c mke2fs: disallow creating FS on a loop mounted file with no option 2013-12-16 00:48:54 -05:00
jfs_compat.h e2fsck: resync jbd2 revoke code from Linux 3.16 2014-08-26 23:43:20 -04:00
jfs_dat.h Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
kernel-jbd.h endian-annotate most on-disk structures 2014-11-04 11:24:56 -05:00
kernel-list.h ext2fs,blkid: delete unused LIST_HEAD() macro 2013-12-15 23:26:39 -05:00
link.c Merge branch 'maint' into next 2013-10-23 20:17:35 -04:00
llseek.c Use sys/syscall.h instead of syscall.h 2014-07-10 15:54:42 -04:00
lookup.c libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
mkdir.c libext2fs: find inode goal when allocating blocks 2014-12-13 20:07:13 -05:00
mkjournal.c libext2fs: use a dynamically sized block zeroing buffer 2014-12-12 19:28:35 -05:00
mmp.c Merge branch 'maint' into next 2013-12-26 00:30:56 -05:00
namei.c libext2fs: make symlinks safe for 64bit blocks and extents 2013-12-12 12:48:39 -05:00
native.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
newdir.c misc: fix gcc warnings 2014-08-24 12:22:11 -04:00
nt_io.c libext2fs: use C99 initializers for the io_manager structure 2014-07-26 00:49:14 -04:00
openfs.c libext2fs: report bad magic over bad sb checksum 2014-09-11 12:40:54 -04:00
progress.c Merge branch 'maint' into next 2012-09-22 21:35:46 -04:00
punch.c Misc coverity fixes 2014-05-27 13:02:19 -04:00
qcow2.c libext2fs: fix potential memory leak in qcow2_write_raw_image() 2014-01-05 22:58:16 -05:00
qcow2.h e2image: Add support for qcow2 format 2011-05-18 11:51:06 -04:00
rbtree.c libext2fs: fix gcc -Wall warnings 2013-05-19 18:50:10 -04:00
rbtree.h libext2fs: fix gcc -Wall warnings 2013-05-19 18:50:10 -04:00
read_bb.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
read_bb_file.c libext2fs: reject 64bit badblocks numbers 2013-10-23 19:56:21 -04:00
res_gdt.c libext2fs: provide a function to set inode size 2014-07-26 14:34:56 -04:00
rw_bitmaps.c Merge branch 'maint' into next 2014-07-26 09:46:50 -04:00
swapfs.c libext2fs: fix problems with LE<->BE conversions on BE platforms 2014-08-24 22:01:36 -04:00
symlink.c Merge branch 'maint' into next 2015-01-19 16:37:04 -05:00
tdb.c libext2fs: fix tdb.c mmap leak 2015-01-27 13:10:39 -05:00
tdb.h libext2fs: don't leak tdb_null out of the shared library namespace 2011-11-05 14:55:30 -04:00
tdbtool.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
test_io.c ext2fs: add readahead method to improve scanning 2014-09-19 12:16:08 -04:00
tst_badblocks.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
tst_bitmaps.c e2fsprogs: introduce ext2fs_close_free() helper 2014-07-05 21:06:48 -04:00
tst_bitmaps_cmd.ct libext2fs: add ext2fs_find_first_set_{block,inode}_bitmap2() 2014-01-13 14:02:06 -05:00
tst_bitmaps_cmds libext2fs: add ext2fs_find_first_set_{block,inode}_bitmap2() 2014-01-13 14:02:06 -05:00
tst_bitmaps_exp libext2fs: add ext2fs_find_first_set_{block,inode}_bitmap2() 2014-01-13 14:02:06 -05:00
tst_bitops.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
tst_byteswap.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
tst_cmds.ct tst_libext2fs: add new debug program which used for libext2fs unit tests 2014-05-27 12:14:27 -04:00
tst_fs_struct.c tst_fs_struct: add program to help check ABI compatibility of ext2fs_filsys 2011-11-25 21:16:38 -05:00
tst_getsectsize.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
tst_getsize.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
tst_inode_size.c Allow e2fsprogs to be built using the clang (LLVM) frontend 2012-09-09 21:35:39 -04:00
tst_iscan.c libext2fs: fix printf conversion spec in tst_iscan.c 2013-12-02 23:37:08 -05:00
tst_libext2fs.c misc: quiet minor build warnings, ignore generated files 2014-07-04 16:39:44 -04:00
tst_super_size.c Reserve the codepoints for the new INCOMPAT feature ENCRYPT 2015-01-26 10:27:41 -05:00
tst_types.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
undo_io.c libext2fs: use C99 initializers for the io_manager structure 2014-07-26 00:49:14 -04:00
unix_io.c Merge branch 'maint' into next 2014-11-04 11:46:55 -05:00
unlink.c libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
valid_blk.c libext2fs: handle inline_data in block iterator function 2014-03-04 08:46:13 -05:00
version.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
write_bb_file.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00