lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 23 Jan 2019 21:14:07 +0800
From:   yangerkun <yangerkun@...wei.com>
To:     <jack@...e.cz>
CC:     <miaoxie@...wei.com>, <yi.zhang@...wei.com>, <houtao1@...wei.com>,
        <yangerkun@...wei.com>, <linux-ext4@...r.kernel.org>
Subject: [PATCH 0/2] fix a bug in ext2_max_size

When mkfs.ext2 with '-b 65536' and mount(arm 64KB page size),
function mount_fs will trigger WARNNING since ext2_max_size will
return value less than 0. Also, we cannot write any file in this
fs since the sb->maxbytes is less than 0.

Fix it by get the exact max file size.

yangerkun (2):
  ext2: remove static of ext2_block_to_path
  ext2: get the exact max filesize in ext2_max_size

 fs/ext2/ext2.h  |   1 +
 fs/ext2/inode.c |  16 ++++----
 fs/ext2/super.c | 115 ++++++++++++++++++++++++++++++++++++++++++++------------
 3 files changed, 101 insertions(+), 31 deletions(-)

-- 
2.9.5

Powered by blists - more mailing lists