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] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 21 Jan 2011 17:26:58 +0000
From:	Russell King <rmk@....linux.org.uk>
To:	Arnd Bergmann <arnd@...db.de>
Cc:	Stuart Swales <stuart.swales.croftnuisk@...il.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] adfs: add hexadecimal filetype suffix option

On Fri, Jan 21, 2011 at 05:47:17PM +0100, Arnd Bergmann wrote:
> On Friday 21 January 2011 15:34:12 Stuart Swales wrote:
> > 
> > [PATCH] adfs: add hexadecimal filetype suffix option
> > 
> > ADFS (FileCore) storage complies with the RISC OS filetype specification
> > (12 bits of file type information is stored in the file load address, rather
> > than using a file extension).  The existing driver largely ignores this
> > information and does not present it to the end user.
> > 
> > It is desirable that stored filetypes be made visible to the end user to
> > facilitate a precise copy of data and metadata from a hard disc (or image
> > thereof) into a RISC OS emulator (such as RPCEmu) or to a network share which
> > can be accessed by real Acorn systems.
> > 
> > This patch implements a per-mount filetype suffix option (use -o ftsuffix=1)
> > to present any filetype as a ,xyz hexadecimal suffix on each file.  This type
> > suffix is compatible with that used by RISC OS systems that access network
> > servers using NFS client software and by RPCemu's host filing system.
> > 
> > Signed-off-by: Stuart Swales <stuart.swales.croftnuisk@...il.com>
> 
> The patch looks fine to me, but it tells me that you have some knowledge
> and interest in this file system. Adfs is currently one of only a handful
> of modules in the kernel that still uses the big kernel lock, because
> nobody so far had enough motivation to fix this.
> 
> Would you be able to take a look at this? The straightforward approach
> would be to add a mutex to adfs_sb_info and use that in place of
> lock_kernel. It's mostly a matter of testing to make sure that no
> deadlocks get introduced in the process.

Note that write support is very limited.  From memory, the only writing it
supports is changing directory entries and writing data into existing files
(but not extending or truncating them.)

The only thing that's supported is updating of existing directory entries,
for which it has a read/write lock to protect against multiple callers.
I think I assumed at the time that I wouldn't rely on the BKL, so it
should be safe to kill it.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
--
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