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>] [day] [month] [year] [list]
Date:	Mon, 04 Aug 2014 09:47:08 +0800
From:	Qi Yong <qiyong@...cn.com>
To:	akpm@...ux-foundation.org, jwboyer@...hat.com
CC:	torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org
Subject: [patch] minix zmap block counts calculation fix

Hello,

The original Linus' minix zmap blocks calculation was correct, in the
formula of: sbi->s_nzones - sbi->s_firstdatazone + 1. It is (sp->s_zones
- (sp->s_firstdatazone - 1) in the minix3 source code.

But a later patch (fs/minix: Verify bitmap block counts before mounting)
has changed it unfortunately as:
  sbi->s_nzones - (sbi->s_firstdatazone + 1).
This would show free blocks one block less than the real when the total
data blocks are in "full zmap blocks plus one".

commit 016e8d44bc06dd3322f26712bdd3f3a6973592d0
Author: Josh Boyer <jwboyer@...hat.com>
Date:   Fri Aug 19 14:50:26 2011 -0400

This patch corrects that zmap blocks calculation and tidy a printk
message while at it.

Signed-off-by: Qi Yong <qiyong@...cn.com>

-- 
Qi Yong


View attachment "mfs-zmap_blocks-fix.patch" of type "text/plain" (1255 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ