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: <20081105091921.GC21867@kernel.dk>
Date:	Wed, 5 Nov 2008 10:19:22 +0100
From:	Jens Axboe <jens.axboe@...cle.com>
To:	petkovbb@...il.com
Cc:	Tejun Heo <tj@...nel.org>, bzolnier@...il.com,
	linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: Subject: [PATCH] block: fix __blkdev_get() for removable devices

On Wed, Nov 05 2008, Borislav Petkov wrote:
> On Tue, Nov 04, 2008 at 01:16:07PM +0900, Tejun Heo wrote:
> > Commit 0762b8bde9729f10f8e6249809660ff2ec3ad735 moved disk_get_part()
> > in front of recursive get on the whole disk, which caused removable
> > devices to try disk_get_part() before rescanning after a new media is
> > inserted, which might fail legit open attempts or give the old
> > partition.
> > 
> > This patch fixes the problem by moving disk_get_part() after
> > __blkdev_get() on the whole disk.
> > 
> > This problem was spotted by Borislav Petkov.
> > 
> > Signed-off-by: Tejun Heo <tj@...nel.org>
> > Cc: <Borislav Petkov> petkovbb@...glemail.com
> > ---
> > Borislav, can you please verify this patch?  Thanks.
> 
> Yep, it works. Thanks.
> 
> Tested-by: Borislav Petkov <petkovbb@...il.com>

I merged it and added your tested-by.

-- 
Jens Axboe

--
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