Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id leA_JaQb7-RJ for ; Thu, 26 Jan 2012 16:50:42 +0100 (CET) Received: from nm28-vm0.bullet.mail.bf1.yahoo.com (nm28-vm0.bullet.mail.bf1.yahoo.com [98.139.213.149]) by mail.saout.de (Postfix) with SMTP for ; Thu, 26 Jan 2012 16:50:42 +0100 (CET) References: Message-ID: <1327593041.86910.YahooMailNeo@web161405.mail.bf1.yahoo.com> Date: Thu, 26 Jan 2012 07:50:41 -0800 (PST) From: FAN ZHANG In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1298779297-1799626168-1327593041=:86910" Subject: Re: [dm-crypt] dm-crypt Digest, Vol 31, Issue 24 Reply-To: FAN ZHANG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "dm-crypt@saout.de" --1298779297-1799626168-1327593041=:86910 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I am using dm-crypt to encrypt SD card in Android Gingerbread and got kerne= l panic after encrypting 700 MB (SD card is 2 GB).=0A=A0=0ABlow is kernel l= og when kernel panic happened. I need help to=A0figout what triggered kerne= l panic.=0A=A0=0A=A0=0AThanks=0A=A0=0AFan=A0=0A=A0=0A<6>[ 2184.049510] sec-= battery sec-battery: sec_bat_set_property: topoff intr=0A<6>[ 2184.049582] = max8997-charger max8997-charger: max8997_disable_charging: disable charging= =0A<6>[ 2184.050214] max8997-charger max8997-charger:=A0 Topoff IRQ occurre= d!=0A<1>[ 2184.050540] Unable to handle kernel NULL pointer dereference at = virtual address 00000000=0A<6>[ 2184.050709] max8997 5-0066: max8997_irq_th= read: irq:331, irq_src:0x0=0A<4>[ 2184.050769] max8997 5-0066: Unused inter= rupt source: 0x0=0A<1>[ 2184.050863] pgd =3D c0004000=0A<1>[ 2184.050901] [= 00000000] *pgd=3D00000000=0A<0>[ 2184.050966] Internal error: Oops: 17 [#1]= PREEMPT SMP=0A<0>[ 2184.051015] last sysfs file: /sys/devices/platform/s3c= 2410-i2c.5/i2c-5/5-0066/max8997-muic/usb_sel=0A<4>[ 2184.051081] Modules li= nked in: j4fs(P) Si4709_driver bthid vibrator=0A<4>[ 2184.051206] CPU: 0=A0= =A0=A0 Tainted: P=A0=A0=A0 B=A0=A0 W=A0=A0=A0 (2.6.35.7 #273)=0A<4>[ 2184.0= 51303] PC is at page_address+0x14/0xf0=0A<4>[ 2184.051366] LR is at blk_rq_= bio_prep+0x74/0xb0=0A<4>[ 2184.051428] pc : []=A0=A0=A0 lr : []=A0=A0=A0 psr: 20000013=0A<4>[ 2184.051460] sp : efef7d98=A0 ip : e= fef7dc0=A0 fp : efef7dbc=0A<4>[ 2184.051514] r10: c0b14680=A0 r9 : 0b300010= =A0 r8 : 00000000=0A<4>[ 2184.051567] r7 : c0b14f40=A0 r6 : 0000000c=A0 r5 = : f0e0f750=A0 r4 : e7571480=0A<4>[ 2184.051624] r3 : 00000000=A0 r2 : e7571= 4c8=A0 r1 : e7571480=A0 r0 : 00000000=0A<4>[ 2184.051688] Flags: nzCv=A0 IR= Qs on=A0 FIQs on=A0 Mode SVC_32=A0 ISA ARM=A0 Segment kernel=0A<4>[ 2184.05= 1753] Control: 10c53c7d=A0 Table: 70d8004a=A0 DAC: 00000017=0A<4>[ 2184.051= 803] =0A<4>[ 2184.051816] PC: 0xc040e1e8:=0A<4>[ 2184.051848] e1e8=A0 e5843= 008 e5836004 e5826000 e584200c e1a01000 e59f0044 eb1031bd e89dadf0=0A<4>[ 2= 184.052014] e208=A0 e2434008 e1a06004 e5b63008 f5d3f000 e1560005 1affffe1 e= 1a00008 eafffff5=0A<4>[ 2184.052178] e228=A0 e59f0014 e3001173 ebfd089f c0b= 136c0 9e370001 c0b68e20 c0b66e00 c092f8af=0A<4>[ 2184.052340] e248=A0 c0b69= e20 00100100 00200200 e1a0c00d e92ddbf0 e24cb004 e92d4000 e8bd4000=0A<4>[ 2= 184.052503] e268=A0 e5902000 e59f10c0 e1a04000 e7e13d52 e3a00e32 e0231390 e= 593130c e0613003=0A<4>[ 2184.052667] e288=A0 e1530000 1a00001c e59f80a0 e59= f70a0 e0080498 e1a08ca8 e0875288 e2856008=0A<4>[ 2184.052829] e2a8=A0 e1a00= 006 eb10323b e7973288 e1530005 12433008 e1a01000 1a000005 ea000009=0A<4>[ 2= 184.052992] e2c8=A0 e5932000 e1520004 05934004 0a000006 e2403008 e1a02003 e= 5b20008 f5d0f000=0A<4>[ 2184.053159] =0A<4>[ 2184.053173] LR: 0xc04feae0:= =0A<4>[ 2184.053206] eae0=A0 e3540000 1affffee e89dadf0 e1a0c00d e92dd8f0 e= 24cb004 e92d4000 e8bd4000=0A<4>[ 2184.053370] eb00=A0 e5923014 e1a04002 e35= 20000 e5912020 e2033001 e1a05001 e1823003 e5813020=0A<4>[ 2184.053533] eb20= =A0 0a000014 e5943038 e3530000 0a000011 e1a01004 ebfd59dd e1c507b0 e1d431b8= =0A<4>[ 2184.053696] eb40=A0 e3530000 0a00000a e1d431ba e3a0600c e5942038 e= 0030396 e7920003 ebfc3dbc=0A<4>[ 2184.053860] eb60=A0 e5943038 e1d421ba e02= 63296 e5963008 e0803003 e585307c e5943020 e5854044=0A<4>[ 2184.054022] eb80= =A0 e5854040 e5853030 e594300c e3530000 1593306c 15853068 e89da8f0 e1a0c00d= =0A<4>[ 2184.054185] eba0=A0 e92dd830 e24cb004 e92d4000 e8bd4000 e1a0c001 e= 5911030 e3a02001 e5802024=0A<4>[ 2184.054347] ebc0=A0 e1a03000 e5902020 e58= 0102c e59c1014 e3110010 0201100e 1382200e 01822001=0A<4>[ 2184.054514] =0A<= 4>[ 2184.054528] SP: 0xefef7d18:=0A<4>[ 2184.054560] 7d18=A0 ffffffff efef7= d84 0000000c c0b14f40 00000000 20000113 ffffffff efef7d84=0A<4>[ 2184.05472= 3] 7d38=A0 0000000c c0b14f40 efef7dbc efef7d50 c034bcec c034b4e0 00000000 e= 7571480=0A<4>[ 2184.054885] 7d58=A0 e75714c8 00000000 e7571480 f0e0f750 000= 0000c c0b14f40 00000000 0b300010=0A<4>[ 2184.055047] 7d78=A0 c0b14680 efef7= dbc efef7dc0 efef7d98 c04feb60 c040e268 20000013 ffffffff=0A<4>[ 2184.05521= 0] 7d98=A0 e7571480 f0e0f750 0000000c c0b14f40 00000000 0b300010 efef7ddc e= fef7dc0=0A<4>[ 2184.055372] 7db8=A0 c04feb60 c040e260 e7571d80 00000000 f17= 41760 c0b14f40 efef7df4 efef7de0=0A<4>[ 2184.055534] 7dd8=A0 c04fec70 c04fe= af8 f1741760 00000001 efef7e34 efef7df8 c0501e0c c04feba8=0A<4>[ 2184.05569= 6]=0A=A0=0A=A0=0A=A0=0A=0AFrom: "dm-crypt-request@saout.de" =0ATo: dm-crypt@saout.de =0ASent: Thursday, January 26, 2012 5:= 00 AM=0ASubject: dm-crypt Digest, Vol 31, Issue 24=0A=0ASend dm-crypt maili= ng list submissions to=0A=A0=A0=A0 dm-crypt@saout.de=0A=0ATo subscribe or u= nsubscribe via the World Wide Web, visit=0A=A0=A0=A0 http://www.saout.de/ma= ilman/listinfo/dm-crypt=0Aor, via email, send a message with subject or bod= y 'help' to=0A=A0=A0=A0 dm-crypt-request@saout.de=0A=0AYou can reach the pe= rson managing the list at=0A=A0=A0=A0 dm-crypt-owner@saout.de=0A=0AWhen rep= lying, please edit your Subject line so it is more specific=0Athan "Re: Con= tents of dm-crypt digest..."=0A=0A=0AToday's Topics:=0A=0A=A0 1. Re: Kernel= BUG (fs/bio.c:1499) when copying more files to an=0A=A0 =A0 =A0 encrypted = device (Mandeep Singh Baines)=0A=A0 2. Re: Kernel BUG (fs/bio.c:1499) when = copying more files to an=0A=A0 =A0 =A0 encrypted device (Mandeep Singh Bain= es)=0A=0A=0A---------------------------------------------------------------= -------=0A=0AMessage: 1=0ADate: Wed, 25 Jan 2012 10:20:27 -0800=0AFrom: Man= deep Singh Baines =0ATo: Luzipher McLeod =0ACc: dm-crypt@saout.de, Mandeep Singh Baines = =0ASubject: Re: [dm-crypt] Kernel BUG (fs/bio.c:1499) when copying more=0A= =A0=A0=A0 files to an encrypted device=0AMessage-ID: <20120125182027.GJ4656= @google.com>=0AContent-Type: text/plain; charset=3Diso-8859-1=0A=0ALuzipher= McLeod (luziphermcleod@yahoo.ie) wrote:=0A> Hi Mandeep,=0A> =0A> Thanks fp= r your quick answer. So, what can be done about this ? Should I try to appl= y that patch you linked to ? (but I guess a patch from 2007 won't apply cle= anly ...)=0A> =0A=0AHi Luzipher,=0A=0AI wouldn't apply the patch directly. = Just copy bio_multi_split (might=0Aneed to do some forward porting) and the= n modify linear_make_request to=0Ause bio_multi_split instead of bio_split.= =0A=0ABut I'm not really an expert on this particular code. I'm hoping some= one=0Aelse will confirm that this is in fact the bug and not a side effect = of=0Asomething else. Its seem reasonble that you could get a bio that is=0A= multi-page and falls on a boundary (spans two or more devices). So I=0Asusp= ect this is the bug.=0A=0ARegards,=0AMandeep=0A=0A> Regards,=0A> Luzipher= =0A> =0A> =0A> =0A> --- On Wed, 25/1/12, Mandeep Singh Baines wrote:=0A> =0A> > From: Mandeep Singh Baines =0A> >= Subject: Re: [dm-crypt] Kernel BUG (fs/bio.c:1499) when copying more files= to an encrypted device=0A> > To: "Luzipher McLeod" =0A> > Cc: dm-crypt@saout.de, "NeilBrown" =0A> > Date: Wed= nesday, 25 January, 2012, 2:14=0A> > Luzipher McLeod (luziphermcleod@yahoo.= ie)=0A> > wrote:=0A> > > Hi :-)=0A> > > =0A> > > A few days ago I encounter= ed a kernel bug while copying=0A> > files to an encrypted filesystem. The s= pecific stack for the=0A> > filesystem is: btrfs-on-crypt-on-mdraid. Vasts = amounts of=0A> > data copied without problems (about 6.3TB with 1.1 TB=0A> = > remaining), but when copying a certain directory, the kernel=0A> > bug su= rfaces. I repeatedly deleted the affected directory=0A> > and tried to re-c= opy it, but it always fails at the same=0A> > point (or close to that). Mor= e recent test showed that I=0A> > could copy a few more files to the filesy= stem to a different=0A> > directory, but it very quickly failed there as we= ll (a few=0A> > megabytes later).=0A> > > After talking to the btrfs devs o= n freenode (as btrfs=0A> > is the most experimental thing in the stack, the= y came to=0A> > the conclusion that it's most probably the crypto layer.=0A= > > > =0A> > > Some details:=0A> > > gentoo kernel 3.2.1 (custom config and= ubuntu config)=0A> > > mdraid: linear, 4 disks, each 2TB (total 8TB)=0A> >= > crypt: setup via cryptsetup -c aes-xts-plain64 -h plain=0A> > -s 512 -d = - create tempraid /dev/md/tempraid_lin=0A> > > =0A> > > I'd appreciate any = help with this and would be happy to=0A> > test patches or provide more deb= ug info.=0A> > > =0A> > > Thanks and Regards,=0A> > > Luzipher=0A> > > =0A>= > > =0A> > > =0A> > > =0A> > > The kernel bug output retrieved by netconso= le (also at=0A> > http://pastebin.com/sjJy7QE4 ):=0A> > >? ???[? 294.538422= ] netconsole:=0A> > local port 6666=0A> > >? ???[? 333.423583] SysRq :=0A> = > Changing Loglevel=0A> > >? ???[? 333.423609] Loglevel=0A> > set to 9=0A> = > >? ???[? 424.248405]=0A> > ------------[ cut here ]------------=0A> > >? = ???[? 424.248447] kernel BUG=0A> > at fs/bio.c:1499!=0A> > =0A> > Hi Luziph= er,=0A> > =0A> > Looks like the BUG is because bio_split only works on=0A> = > single-page iovecs.=0A> > =0A> > I see a relevant (old) patch from Neil B= rown here:=0A> > =0A> > https://lkml.org/lkml/2007/7/30/496=0A> > =0A> > Re= gards,=0A> > Mandeep=0A> > =0A> =0A=0A=0A------------------------------=0A= =0AMessage: 2=0ADate: Wed, 25 Jan 2012 15:46:12 -0800=0AFrom: Mandeep Singh= Baines =0ATo: Mandeep Singh Baines =0A= Cc: dm-crypt@saout.de, linux-raid@vger.kernel.org, Luzipher McLeod=0A=A0=A0= =A0 =0ASubject: Re: [dm-crypt] Kernel BUG (fs/bio.= c:1499) when copying more=0A=A0=A0=A0 files to an encrypted device=0AMessag= e-ID: <20120125234612.GM4656@google.com>=0AContent-Type: text/plain; charse= t=3Diso-8859-1=0A=0A+cc linux-raid=0A=0AMandeep Singh Baines (msb@chromium.= org) wrote:=0A> Luzipher McLeod (luziphermcleod@yahoo.ie) wrote:=0A> > Hi M= andeep,=0A> > =0A> > Thanks fpr your quick answer. So, what can be done abo= ut this ? Should I try to apply that patch you linked to ? (but I guess a p= atch from 2007 won't apply cleanly ...)=0A> > =0A> =0A> Hi Luzipher,=0A> = =0A> I wouldn't apply the patch directly. Just copy bio_multi_split (might= =0A> need to do some forward porting) and then modify linear_make_request t= o=0A> use bio_multi_split instead of bio_split.=0A> =0A> But I'm not really= an expert on this particular code. I'm hoping someone=0A> else will confir= m that this is in fact the bug and not a side effect of=0A> something else.= Its seem reasonble that you could get a bio that is=0A> multi-page and fal= ls on a boundary (spans two or more devices). So I=0A> suspect this is the = bug.=0A> =0A> Regards,=0A> Mandeep=0A> =0A> > Regards,=0A> > Luzipher=0A> >= =0A> > =0A> > =0A> > --- On Wed, 25/1/12, Mandeep Singh Baines wrote:=0A> > =0A> > > From: Mandeep Singh Baines = =0A> > > Subject: Re: [dm-crypt] Kernel BUG (fs/bio.c:1499) when copying mo= re files to an encrypted device=0A> > > To: "Luzipher McLeod" =0A> > > Cc: dm-crypt@saout.de, "NeilBrown" =0A>= > > Date: Wednesday, 25 January, 2012, 2:14=0A> > > Luzipher McLeod (luzip= hermcleod@yahoo.ie)=0A> > > wrote:=0A> > > > Hi :-)=0A> > > > =0A> > > > A = few days ago I encountered a kernel bug while copying=0A> > > files to an e= ncrypted filesystem. The specific stack for the=0A> > > filesystem is: btrf= s-on-crypt-on-mdraid. Vasts amounts of=0A> > > data copied without problems= (about 6.3TB with 1.1 TB=0A> > > remaining), but when copying a certain di= rectory, the kernel=0A> > > bug surfaces. I repeatedly deleted the affected= directory=0A> > > and tried to re-copy it, but it always fails at the same= =0A> > > point (or close to that). More recent test showed that I=0A> > > c= ould copy a few more files to the filesystem to a different=0A> > > directo= ry, but it very quickly failed there as well (a few=0A> > > megabytes later= ).=0A> > > > After talking to the btrfs devs on freenode (as btrfs=0A> > > = is the most experimental thing in the stack, they came to=0A> > > the concl= usion that it's most probably the crypto layer.=0A> > > > =0A> > > > Some d= etails:=0A> > > > gentoo kernel 3.2.1 (custom config and ubuntu config)=0A>= > > > mdraid: linear, 4 disks, each 2TB (total 8TB)=0A> > > > crypt: setup= via cryptsetup -c aes-xts-plain64 -h plain=0A> > > -s 512 -d - create temp= raid /dev/md/tempraid_lin=0A> > > > =0A> > > > I'd appreciate any help with= this and would be happy to=0A> > > test patches or provide more debug info= .=0A> > > > =0A> > > > Thanks and Regards,=0A> > > > Luzipher=0A> > > > =0A= > > > > =0A> > > > =0A> > > > =0A> > > > The kernel bug output retrieved by= netconsole (also at=0A> > > http://pastebin.com/sjJy7QE4 ):=0A> > > >? ???= [? 294.538422] netconsole:=0A> > > local port 6666=0A> > > >? ???[? 333.423= 583] SysRq :=0A> > > Changing Loglevel=0A> > > >? ???[? 333.423609] Logleve= l=0A> > > set to 9=0A> > > >? ???[? 424.248405]=0A> > > ------------[ cut h= ere ]------------=0A> > > >? ???[? 424.248447] kernel BUG=0A> > > at fs/bio= .c:1499!=0A> > > =0A> > > Hi Luzipher,=0A> > > =0A> > > Looks like the BUG = is because bio_split only works on=0A> > > single-page iovecs.=0A> > > =0A>= > > I see a relevant (old) patch from Neil Brown here:=0A> > > =0A> > > ht= tps://lkml.org/lkml/2007/7/30/496=0A> > > =0A> > > Regards,=0A> > > Mandeep= =0A> > > =0A> > =0A=0A=0A------------------------------=0A=0A______________= _________________________________=0Adm-crypt mailing list=0Adm-crypt@saout.= de=0Ahttp://www.saout.de/mailman/listinfo/dm-crypt=0A=0A=0AEnd of dm-crypt = Digest, Vol 31, Issue 24=0A**************************************** --1298779297-1799626168-1327593041=:86910 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I am using dm-crypt to encrypt SD card in= Android Gingerbread and got kernel panic after encr= ypting 700 MB (SD card is 2 GB).
 
Blow is kernel log w= hen kernel panic happened. I need help to figout what triggered kernel= panic.
 
 
Thanks
 
Fan 
 
<6>[ 2184.0495= 10] sec-battery sec-battery: sec_bat_set_property: topoff intr
<6>[ 2184.0495= 82] max8997-charger max8997-charger: max8997_disable_charging: disable char= ging
<6>[ 2184.0502= 14] max8997-charger max8997-charger:  Topoff IRQ occurred!
<1>[ 2184.0505= 40] Unable to handle kernel NULL pointer dereference at virtual address 000= 00000
<6>[ 2184.0507= 09] max8997 5-0066: max8997_irq_thread: irq:331, irq_src:0x0
<4>[ 2184.0507= 69] max8997 5-0066: Unused interrupt source: 0x0
<1>[ 2184.0508= 63] pgd =3D c0004000
<1>[ 2184.0509= 01] [00000000] *pgd=3D00000000
<0>[ 2184.0509= 66] Internal error: Oops: 17 [#1] PREEMPT SMP
<0>[ 2184.0510= 15] last sysfs file: /sys/devices/platform/s3c2410-i2c.5/i2c-5/5-0066/max89= 97-muic/usb_sel
<4>[ 2184.0510= 81] Modules linked in: j4fs(P) Si4709_driver bthid vibrator
<4>[ 2184.0512= 06] CPU: 0    Tainted: P    B   W&n= bsp;   (2.6.35.7 #273)
<4>[ 2184.0513= 03] PC is at page_address+0x14/0xf0
<4>[ 2184.0513= 66] LR is at blk_rq_bio_prep+0x74/0xb0
<4>[ 2184.0514= 28] pc : [<c040e268>]    lr : [<c04feb60>] =    psr: 20000013
<4>[ 2184.0514= 60] sp : efef7d98  ip : efef7dc0  fp : efef7dbc
<4>[ 2184.0515= 14] r10: c0b14680  r9 : 0b300010  r8 : 00000000
<4>[ 2184.0515= 67] r7 : c0b14f40  r6 : 0000000c  r5 : f0e0f750  r4 : e75714= 80
<4>[ 2184.0516= 24] r3 : 00000000  r2 : e75714c8  r1 : e7571480  r0 : 000000= 00
<4>[ 2184.0516= 88] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM=   Segment kernel
<4>[ 2184.0517= 53] Control: 10c53c7d  Table: 70d8004a  DAC: 00000017
<4>[ 2184.0518= 03]
<4>[ 2184.0518= 16] PC: 0xc040e1e8:
<4>[ 2184.0518= 48] e1e8  e5843008 e5836004 e5826000 e584200c e1a01000 e59f0044 eb1031= bd e89dadf0
<4>[ 2184.0520= 14] e208  e2434008 e1a06004 e5b63008 f5d3f000 e1560005 1affffe1 e1a000= 08 eafffff5
<4>[ 2184.0521= 78] e228  e59f0014 e3001173 ebfd089f c0b136c0 9e370001 c0b68e20 c0b66e= 00 c092f8af
<4>[ 2184.0523= 40] e248  c0b69e20 00100100 00200200 e1a0c00d e92ddbf0 e24cb004 e92d40= 00 e8bd4000
<4>[ 2184.0525= 03] e268  e5902000 e59f10c0 e1a04000 e7e13d52 e3a00e32 e0231390 e59313= 0c e0613003
<4>[ 2184.0526= 67] e288  e1530000 1a00001c e59f80a0 e59f70a0 e0080498 e1a08ca8 e08752= 88 e2856008
<4>[ 2184.0528= 29] e2a8  e1a00006 eb10323b e7973288 e1530005 12433008 e1a01000 1a0000= 05 ea000009
<4>[ 2184.0529= 92] e2c8  e5932000 e1520004 05934004 0a000006 e2403008 e1a02003 e5b200= 08 f5d0f000
<4>[ 2184.0531= 59]
<4>[ 2184.0531= 73] LR: 0xc04feae0:
<4>[ 2184.0532= 06] eae0  e3540000 1affffee e89dadf0 e1a0c00d e92dd8f0 e24cb004 e92d40= 00 e8bd4000
<4>[ 2184.0533= 70] eb00  e5923014 e1a04002 e3520000 e5912020 e2033001 e1a05001 e18230= 03 e5813020
<4>[ 2184.0535= 33] eb20  0a000014 e5943038 e3530000 0a000011 e1a01004 ebfd59dd e1c507= b0 e1d431b8
<4>[ 2184.0536= 96] eb40  e3530000 0a00000a e1d431ba e3a0600c e5942038 e0030396 e79200= 03 ebfc3dbc
<4>[ 2184.0538= 60] eb60  e5943038 e1d421ba e0263296 e5963008 e0803003 e585307c e59430= 20 e5854044
<4>[ 2184.0540= 22] eb80  e5854040 e5853030 e594300c e3530000 1593306c 15853068 e89da8= f0 e1a0c00d
<4>[ 2184.0541= 85] eba0  e92dd830 e24cb004 e92d4000 e8bd4000 e1a0c001 e5911030 e3a020= 01 e5802024
<4>[ 2184.0543= 47] ebc0  e1a03000 e5902020 e580102c e59c1014 e3110010 0201100e 138220= 0e 01822001
<4>[ 2184.0545= 14]
<4>[ 2184.0545= 28] SP: 0xefef7d18:
<4>[ 2184.0545= 60] 7d18  ffffffff efef7d84 0000000c c0b14f40 00000000 20000113 ffffff= ff efef7d84
<4>[ 2184.0547= 23] 7d38  0000000c c0b14f40 efef7dbc efef7d50 c034bcec c034b4e0 000000= 00 e7571480
<4>[ 2184.0548= 85] 7d58  e75714c8 00000000 e7571480 f0e0f750 0000000c c0b14f40 000000= 00 0b300010
<4>[ 2184.0550= 47] 7d78  c0b14680 efef7dbc efef7dc0 efef7d98 c04feb60 c040e268 200000= 13 ffffffff
<4>[ 2184.0552= 10] 7d98  e7571480 f0e0f750 0000000c c0b14f40 00000000 0b300010 efef7d= dc efef7dc0
<4>[ 2184.0553= 72] 7db8  c04feb60 c040e260 e7571d80 00000000 f1741760 c0b14f40 efef7d= f4 efef7de0
<4>[ 2184.0555= 34] 7dd8  c04fec70 c04feaf8 f1741760 00000001 efef7e34 efef7df8 c0501e= 0c c04feba8
<4>[ 2184.0556= 96]
 
 
 

From:= "dm-crypt-request@saout.de" <dm-crypt-request@saout.de>To: dm-crypt@saout.de Sent: Thursday, January 26= , 2012 5:00 AM
Subject: = dm-crypt Digest, Vol 31, Issue 24

Send dm-crypt mailing= list submissions to
    dm-crypt@saout.de

To s= ubscribe or unsubscribe via the World Wide Web, visit
    http://www.saout.de/mailman/listinfo/dm-crypt
or, via email, send a mes= sage with subject or body 'help' to
    dm= -crypt-request@saout.de

You can reach the person managing the li= st at
    dm-crypt-owner@saout.de

W= hen replying, please edit your Subject line so it is more specific
than = "Re: Contents of dm-crypt digest..."


Today's Topics:

&nbs= p; 1. Re: Kernel BUG (fs/bio.c:1499) when copying more files to an
 = ;     encrypted device (Mandeep Singh Baines)
  2. Re: Ke= rnel BUG (fs/bio.c:1499) when copying more files to an
    &nb= sp; encrypted device (Mandeep Singh Baines)


--------------------= --------------------------------------------------

Message: 1
Date: Wed, 25 Jan 2012 10:20:27 -0800
From: Mandeep Singh Baines &= lt;= msb@chromium.org>
To: Luzipher McLeod <luziphermcle= od@yahoo.ie>
Cc: dm-crypt@saout.de, Mandeep Singh Baines <<= A href=3D"mailto:msb@chromium.org" ymailto=3D"mailto:msb@chromium.org">msb@= chromium.org>
Subject: Re: [dm-crypt] Kernel BUG (fs/bio.c:1499) = when copying more
    files to an encrypted device
Mes= sage-ID: <20120125182027.GJ4656@google.com<= /A>>
Content-Type: text/plain; charset=3Diso-8859-1

Luzipher M= cLeod (
luziphermcleod@yahoo.ie) wr= ote:
> Hi Mandeep,
>
> Thanks fpr your quick answer. So,= what can be done about this ? Should I try to apply that patch you linked = to ? (but I guess a patch from 2007 won't apply cleanly ...)
>
Hi Luzipher,

I wouldn't apply the patch directly. Just copy bio_mu= lti_split (might
need to do some forward porting) and then modify linear= _make_request to
use bio_multi_split instead of bio_split.

But I'= m not really an expert on this particular code. I'm hoping someone
else = will confirm that this is in fact the bug and not a side effect of
somet= hing else. Its seem reasonble that you could get a bio that is
multi-pag= e and falls on a boundary (spans two or more devices). So I
suspect this= is the bug.

Regards,
Mandeep

> Regards,
> Luziph= er
>
>
>
> --- On Wed, 25/1/12, Mandeep Singh Baines <msb@chromium.org> wrote:
>
> > From: = Mandeep Singh Baines <msb@chromium.org>
> > Subject: Re: [d= m-crypt] Kernel BUG (fs/bio.c:1499) when copying more files to an encrypted= device
> > To: "Luzipher McLeod" <luziphermcleod@ya= hoo.ie>
> > Cc: dm-crypt@saout.de, "NeilBrown" <neilb@suse.de<= /A>>
> > Date: Wednesday, 25 January, 2012, 2:14
> > L= uzipher McLeod (
luziphermcleod@yahoo.ie)
> > wrote:=
> > > Hi :-)
> > >
> > > A few days ago I encounte= red a kernel bug while copying
> > files to an encrypted filesyste= m. The specific stack for the
> > filesystem is: btrfs-on-crypt-on= -mdraid. Vasts amounts of
> > data copied without problems (about = 6.3TB with 1.1 TB
> > remaining), but when copying a certain direc= tory, the kernel
> > bug surfaces. I repeatedly deleted the affect= ed directory
> > and tried to re-copy it, but it always fails at t= he same
> > point (or close to that). More recent test showed that= I
> > could copy a few more files to the filesystem to a differen= t
> > directory, but it very quickly failed there as well (a few> > megabytes later).
> > > After talking to the btrfs = devs on freenode (as btrfs
> > is the most experimental thing in t= he stack, they came to
> > the conclusion that it's most probably the crypto layer.
> > >
> > > Some detai= ls:
> > > gentoo kernel 3.2.1 (custom config and ubuntu config)=
> > > mdraid: linear, 4 disks, each 2TB (total 8TB)
> &g= t; > crypt: setup via cryptsetup -c aes-xts-plain64 -h plain
> >= ; -s 512 -d - create tempraid /dev/md/tempraid_lin
> > >
&g= t; > > I'd appreciate any help with this and would be happy to
>= ; > test patches or provide more debug info.
> > >
> = > > Thanks and Regards,
> > > Luzipher
> > > =
> > >
> > >
> > >
> > >= The kernel bug output retrieved by netconsole (also at
> > http:/= /pastebin.com/sjJy7QE4 ):
> > >? ???[? 294.538422] netconsole:<= BR>> > local port 6666
> > >? ???[? 333.423583] SysRq :> > Changing Loglevel
> > >? ???[? 333.423609] Loglevel
> > set to 9
> > >? ???[? 424.248405]
>= ; > ------------[ cut here ]------------
> > >? ???[? 424.24= 8447] kernel BUG
> > at fs/bio.c:1499!
> >
> > = Hi Luzipher,
> >
> > Looks like the BUG is because bio_s= plit only works on
> > single-page iovecs.
> >
> &= gt; I see a relevant (old) patch from Neil Brown here:
> >
>= ; > http= s://lkml.org/lkml/2007/7/30/496
> >
> > Regards,
= > > Mandeep
> >
>


-----------------------= -------

Message: 2
Date: Wed, 25 Jan 2012 15:46:12 -0800
From:= Mandeep Singh Baines <msb@chromium.org>
To: Mandeep Singh Baines= <msb@chromium.org>
Cc: dm-cryp= t@saout.de, linux-raid@vger.kernel.org, Luzipher M= cLeod
    <luziphermcleod@yahoo.ie><= BR>Subject: Re: [dm-crypt] Kernel BUG (fs/bio.c:1499) when copying more
=     files to an encrypted device
Message-ID: <20120125234612.GM4656@google.com>
Content-T= ype: text/plain; charset=3Diso-8859-1

+cc linux-raid

Mandeep = Singh Baines (msb@chromium.org) wrote:
> Luzipher McLeod (luziphermcleod@yahoo.ie) wrote:
> > Hi Mandeep,
&g= t; >
> > Thanks fpr your quick answer. So, what can be done ab= out this ? Should I try to apply that patch you linked to ? (but I guess a = patch from 2007 won't apply cleanly ...)
> >
>
> Hi = Luzipher,
>
> I wouldn't apply the patch directly. Just copy b= io_multi_split (might
> need to do some forward porting) and then mod= ify linear_make_request to
> use bio_multi_split instead of bio_split= .
>
> But I'm not really an expert on this particular code. I'= m hoping someone
> else will confirm that this is in fact the bug and= not a side effect of
> something else. Its seem reasonble that you c= ould get a bio that is
> multi-page and falls on a boundary (spans tw= o or more devices). So I
> suspect this is the bug.
>
> Regards,
> Mandeep
>
> > Regards,
> &= gt; Luzipher
> >
> >
> >
> > --- On = Wed, 25/1/12, Mandeep Singh Baines <msb@chromium.org> wrote:
>= >
> > > From: Mandeep Singh Baines <msb@chromium.org&g= t;
> > > Subject: Re: [dm-crypt] Kernel BUG (fs/bio.c:1499) whe= n copying more files to an encrypted device
> > > To: "Luzipher= McLeod" <luziphermcleod@yahoo.ie>
> > > C= c: dm-crypt@saout.de, "NeilBrown" <neilb@suse.de>
> > > Dat= e: Wednesday, 25 January, 2012, 2:14
> > > Luzipher McLeod (luzip= hermcleod@yahoo.ie)
> > > wrote:
> > > > Hi = :-)
> > > >
> > > > A few days ago I encount= ered a kernel bug while copying
> > > files to an encrypted fil= esystem. The specific stack for the
> > > filesystem is: btrfs-= on-crypt-on-mdraid. Vasts amounts of
> > > data copied without = problems (about 6.3TB with 1.1 TB
> > > remaining), but when co= pying a certain directory, the kernel
> > > bug surfaces. I rep= eatedly deleted the affected directory
> > > and tried to re-co= py it, but it always fails at the same
> > > point (or close to= that). More recent test showed that I
> > > could copy a few m= ore files to the filesystem to a different
> > > directory, but it very quickly failed there as well (a few
> > > megabyte= s later).
> > > > After talking to the btrfs devs on freenod= e (as btrfs
> > > is the most experimental thing in the stack, = they came to
> > > the conclusion that it's most probably the c= rypto layer.
> > > >
> > > > Some details:> > > > gentoo kernel 3.2.1 (custom config and ubuntu config)=
> > > > mdraid: linear, 4 disks, each 2TB (total 8TB)
&g= t; > > > crypt: setup via cryptsetup -c aes-xts-plain64 -h plain> > > -s 512 -d - create tempraid /dev/md/tempraid_lin
> &= gt; > >
> > > > I'd appreciate any help with this and= would be happy to
> > > test patches or provide more debug inf= o.
> > > >
> > > > Thanks and Regards,
&g= t; > > > Luzipher
> > > >
> > > >
> > > >
> > > >
> > > &g= t; The kernel bug output retrieved by netconsole (also at
> > >= http://pastebin.c= om/sjJy7QE4 ):
> > > >? ???[? 294.538422] netconsole:> > > local port 6666
> > > >? ???[? 333.423583] S= ysRq :
> > > Changing Loglevel
> > > >? ???[? 33= 3.423609] Loglevel
> > > set to 9
> > > >? ???[?= 424.248405]
> > > ------------[ cut here ]------------
>= > > >? ???[? 424.248447] kernel BUG
> > > at fs/bio.c= :1499!
> > >
> > > Hi Luzipher,
> > > =
> > > Looks like the BUG is because bio_split only works on> > > single-page iovecs.
> > >
> > > I = see a relevant (old) patch from Neil Brown here:
> > >
> > > https://lkml.org/lkml/2007/7/30/496
> > >
>= ; > > Regards,
> > > Mandeep
> > >
> &= gt;


------------------------------

_____________________= __________________________
dm-crypt mailing list
dm-crypt@saout.de=
http://www.saout.de/mailman/listinfo/dm-crypt


End of dm-c= rypt Digest, Vol 31, Issue 24
****************************************

--1298779297-1799626168-1327593041=:86910--