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-prev] [day] [month] [year] [list]
Message-Id: <201404170122.20996.marex@denx.de>
Date:	Thu, 17 Apr 2014 01:22:20 +0200
From:	Marek Vasut <marex@...x.de>
To:	Austin Boyle <boyle.austin@...il.com>
Cc:	Brian Norris <computersforpeace@...il.com>,
	Gerlando Falauto <gerlando.falauto@...mile.com>,
	linux-mtd@...ts.infradead.org,
	David Woodhouse <dwmw2@...radead.org>,
	linux-kernel@...r.kernel.org,
	Artem Bityutskiy <artem.bityutskiy@...ux.intel.com>,
	Angus Clark <angus.clark@...com>
Subject: Re: [PATCH v3] mtd: m25p80: Calculate flash block protect bits based on number of sectors

On Wednesday, April 16, 2014 at 02:37:13 PM, Austin Boyle wrote:
> This patch generalises the calculation of block protect bits based on the
> number of sectors and implements the _is_locked function.
> 
> Existing calculation of block protect bits only works for devices with 64
> sectors or more. This new logic is applicable to the STmicro devices:
> m25p10, p20, p40, p80, p16, pe16, p32, p64, p128.
> Note devices with >64 sectors only allow the protected region to be
> specified to a resolution of 1/64th of the total size (such as m25p64).
> 
> New return codes for ioctl(MEMISLOCKED) have been added to
> uapi/mtd/mtd-abi.h because the _is_locked function can query a region
> which is partially unlocked.
> 
> Added flag to m25p_ids table to indicate if flash protection is supported.
> 
> Added n_sectors and sector_size to m25p flash structure so it can be used
> in block protect bit calculation.
> 
> From: Austin Boyle <boyle.austin@...il.com>
> Signed-off-by: Austin Boyle <boyle.austin@...il.com>

Acked-by: Marek Vasut <marex@...x.de>

Thanks!

Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ