From: Clemens Fruhwirth Subject: Re: Bug#403426: kernel corrupts LUKS partition header on arm Date: Wed, 03 Jan 2007 20:32:38 +0100 Message-ID: <87fyar6h49.wl%clemens@endorphin.org> References: <20061217022906.2434.60658.reportbug@LKG8A754B.example.org> <20061220161529.GA10820@deprecation.cyrius.com> <87lkkrgej4.wl%clemens@endorphin.org> <20061229202434.GD23246@deprecation.cyrius.com> <87vejt64kc.wl%clemens@endorphin.org> <20061230131342.GF4981@deprecation.cyrius.com> <87odph5ppk.wl%clemens@endorphin.org> <20070102180440.GB4216@deprecation.cyrius.com> <87hcv859nm.wl%clemens@endorphin.org> <20070103191442.GA28165@deprecation.cyrius.com> Reply-To: device-mapper development Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20070103191442.GA28165@deprecation.cyrius.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Martin Michlmayr Cc: 403426@bugs.debian.org, dm-devel@redhat.com, Brian Brunswick List-Id: dm-devel.ids At Wed, 3 Jan 2007 20:14:42 +0100, Martin Michlmayr wrote: > > * Clemens Fruhwirth [2007-01-03 17:59]: > > After a bit of debugging on Gordon's slug, I found out that we have > > some kind of read race/read corruption when reading the encrypted > > master key from a key slot. > ... > > As far as I understand page caching comes after dm-crypt, so maybe we > > have some kind of cache corruption here? > > Do you think this is related to http://lkml.org/lkml/2006/12/21/157 I'm sorry, I have no idea. > I just applied the two patches from that thread and successfully ran > 'cryptsetup luksClose' on ARM. "cryptsetup luksClose" is just an alias for "cryptsetup remove". This should never fail. What's with luksOpen after the patches? > Would the lack of __flush_anon_page() on ARM explain the corruption > you've observed? Again, I'm not familiar with this. -- Fruhwirth Clemens - http://clemens.endorphin.org for robots: sp4mtrap@endorphin.org