From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756248AbYAVX7g (ORCPT ); Tue, 22 Jan 2008 18:59:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752403AbYAVX70 (ORCPT ); Tue, 22 Jan 2008 18:59:26 -0500 Received: from waste.org ([66.93.16.53]:45451 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751949AbYAVX7Z (ORCPT ); Tue, 22 Jan 2008 18:59:25 -0500 Subject: Re: [PATCH rc8-mm1] hotfix libata-scsi corruption From: Matt Mackall To: Hugh Dickins Cc: James Bottomley , Andrew Morton , Jeff Garzik , Alan Stern , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi In-Reply-To: References: <1201022985.3210.24.camel@localhost.localdomain> <1201031028.3210.61.camel@localhost.localdomain> <1201039931.3210.96.camel@localhost.localdomain> Content-Type: text/plain Date: Tue, 22 Jan 2008 17:58:54 -0600 Message-Id: <1201046335.14436.92.camel@cinder.waste.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2008-01-22 at 22:59 +0000, Hugh Dickins wrote: > On Tue, 22 Jan 2008, James Bottomley wrote: > > > > libsas looks to be OK because it specifically kmallocs a 512 byte buffer > > which should (for off slab data) be 512 byte aligned. > > I don't remember the various SLAB and SLOB and SLUB rules offhand: > I'm not sure it's safe to rely on such alignment on all of them .... It doesn't work that way with SLOB kmalloc (nor did it in pre-slabified kmalloc). One shouldn't be surprised if a SLAB/SLUB debugging feature breaks that alignment either. -- Mathematics is the supreme nostalgia of our time.