Dan Williams wrote:
On 10/17/07, BERTRAND Joël <joel.bertrand@xxxxxxxxxxx> wrote:BERTRAND Joël wrote:Hello, I run 2.6.23 linux kernel on two T1000 (sparc64) servers. Each server has a partitionable raid5 array (/dev/md/d0) and I have to synchronize both raid5 volumes by raid1. Thus, I have tried to build a raid1 volume between /dev/md/d0p1 and /dev/sdi1 (exported by iscsi from the second server) and I obtain a BUG : Root gershwin:[/usr/scripts] > mdadm -C /dev/md7 -l1 -n2 /dev/md/d0p1 /dev/sdi1 ...Hello, I have fixed iscsi-target, and I have tested it. It works now without any trouble. Patches were posted on iscsi-target mailing list. When I use iSCSI to access to foreign raid5 volume, it works fine. I can format foreign volume, copy large files on it... But when I tried to create a new raid1 volume with a local raid5 volume and a foreign raid5 volume, I receive my well known Oops. You can find my dmesg after Oops :
Your patch does not work for me. It was applied, new kernel was built, and I obtain the same Oops.
Can you send your .config and your bootup dmesg?
Yes, of course ;-) Both files are attached. My new Oops is : kernel BUG at drivers/md/raid5.c:380! \|/ ____ \|/ "@'/ .. \`@" /_| \__/ |_\ \__U_/ md7_resync(4258): Kernel bad sw trap 5 [#1]TSTATE: 0000000080001606 TPC: 00000000005ed50c TNPC: 00000000005ed510 Y: 00000000 Not tainted
TPC: <get_stripe_work+0x1f4/0x200>(exactly the same than the old one ;-) ). I have patched iscsi-target to avoid alignement bug on sparc64. Do you think a bug in ietd can produced this kind of bug ? Patch I have written for iscsi-target (against SVN) is attached too.
Regards, JKB
PROMLIB: Sun IEEE Boot Prom 'OBP 4.23.4 2006/08/04 20:45' PROMLIB: Root node compatible: sun4v Linux version 2.6.23 (root@gershwin) (gcc version 4.1.3 20070831 (prerelease) (Debian 4.1.2-16)) #7 SMP Wed Oct 17 17:52:22 CEST 2007 ARCH: SUN4V Ethernet address: 00:14:4f:6f:59:fe OF stdout device is: /virtual-devices@100/console@1 PROM: Built device tree with 74930 bytes of memory. MDESC: Size is 32560 bytes. PLATFORM: banner-name [Sun Fire(TM) T1000] PLATFORM: name [SUNW,Sun-Fire-T1000] PLATFORM: hostid [846f59fe] PLATFORM: serial# [00ab4130] PLATFORM: stick-frequency [3b9aca00] PLATFORM: mac-address [144f6f59fe] PLATFORM: watchdog-resolution [1000 ms] PLATFORM: watchdog-max-timeout [31536000000 ms] On node 0 totalpages: 522246 Normal zone: 3583 pages used for memmap Normal zone: 0 pages reserved Normal zone: 518663 pages, LIFO batch:15 Movable zone: 0 pages used for memmap Built 1 zonelists in Zone order. Total pages: 518663 Kernel command line: root=/dev/md0 ro md=0,/dev/sda4,/dev/sdb4 raid=noautodetect md: Will configure md0 (super-block) from /dev/sda4,/dev/sdb4, below. PID hash table entries: 4096 (order: 12, 32768 bytes) clocksource: mult[10000] shift[16] clockevent: mult[80000000] shift[31] Console: colour dummy device 80x25 console [tty0] enabled Dentry cache hash table entries: 524288 (order: 9, 4194304 bytes) Inode-cache hash table entries: 262144 (order: 8, 2097152 bytes) Memory: 4138072k available (2608k kernel code, 960k data, 144k init) [fffff80000000000,00000000fffc8000] SLUB: Genslabs=23, HWalign=32, Order=0-2, MinObjects=8, CPUs=32, Nodes=1 Calibrating delay using timer specific routine.. 1995.16 BogoMIPS (lpj=3990330) Mount-cache hash table entries: 512 Brought up 24 CPUs xor: automatically using best checksumming function: Niagara Niagara : 240.000 MB/sec xor: using function: Niagara (240.000 MB/sec) NET: Registered protocol family 16 PCI: Probing for controllers. SUN4V_PCI: Registered hvapi major[1] minor[0] /pci@780: SUN4V PCI Bus Module /pci@780: PCI IO[e810000000] MEM[ea00000000] /pci@7c0: SUN4V PCI Bus Module /pci@7c0: PCI IO[f010000000] MEM[f200000000] PCI: Scanning PBM /pci@7c0 PCI: Scanning PBM /pci@780 ebus: No EBus's found. SCSI subsystem initialized NET: Registered protocol family 2 Time: stick clocksource has been installed. Switched to high resolution mode on CPU 0 Switched to high resolution mode on CPU 20 Switched to high resolution mode on CPU 8 Switched to high resolution mode on CPU 21 Switched to high resolution mode on CPU 9 Switched to high resolution mode on CPU 22 Switched to high resolution mode on CPU 10 Switched to high resolution mode on CPU 23 Switched to high resolution mode on CPU 11 Switched to high resolution mode on CPU 12 Switched to high resolution mode on CPU 13 Switched to high resolution mode on CPU 1 Switched to high resolution mode on CPU 14 Switched to high resolution mode on CPU 2 Switched to high resolution mode on CPU 15 Switched to high resolution mode on CPU 3 Switched to high resolution mode on CPU 16 Switched to high resolution mode on CPU 4 Switched to high resolution mode on CPU 17 Switched to high resolution mode on CPU 5 Switched to high resolution mode on CPU 18 Switched to high resolution mode on CPU 6 Switched to high resolution mode on CPU 19 Switched to high resolution mode on CPU 7 IP route cache hash table entries: 131072 (order: 7, 1048576 bytes) TCP established hash table entries: 262144 (order: 9, 6291456 bytes) TCP bind hash table entries: 65536 (order: 7, 1048576 bytes) TCP: Hash tables configured (established 262144 bind 65536) TCP reno registered Mini RTC Driver VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 8192 bytes) async_tx: api initialized (async) io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) f026e2b0: ttyS0 at I/O 0x0 (irq = 1) is a SUN4V HCONS console [ttyHV0] enabled tg3.c:v3.81 (September 5, 2007) PCI: Enabling device: (0001:03:04.0), cmd 2 eth0: Tigon3 [partno(BCM95714) rev 9001 PHY(5714)] (PCIX:133MHz:64-bit) 10/100/1000Base-T Ethernet 00:14:4f:6f:59:fe eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1] eth0: dma_rwctrl[76148000] dma_mask[32-bit] PCI: Enabling device: (0001:03:04.1), cmd 2 eth1: Tigon3 [partno(BCM95714) rev 9001 PHY(5714)] (PCIX:133MHz:64-bit) 10/100/1000Base-T Ethernet 00:14:4f:6f:59:ff eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1] eth1: dma_rwctrl[76148000] dma_mask[32-bit] PCI: Enabling device: (0001:04:01.0), cmd 2 eth2: Tigon3 [partno(BCM95704) rev 2100 PHY(5704)] (PCIX:100MHz:64-bit) 10/100/1000Base-T Ethernet 00:14:4f:6f:5a:00 eth2: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1] eth2: dma_rwctrl[769f8000] dma_mask[32-bit] PCI: Enabling device: (0001:04:01.1), cmd 2 eth3: Tigon3 [partno(BCM95704) rev 2100 PHY(5704)] (PCIX:100MHz:64-bit) 10/100/1000Base-T Ethernet 00:14:4f:6f:5a:01 eth3: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1] eth3: dma_rwctrl[769f8000] dma_mask[32-bit] Fusion MPT base driver 3.04.05 Copyright (c) 1999-2007 LSI Logic Corporation Fusion MPT SAS Host driver 3.04.05 PCI: Enabling device: (0001:04:02.0), cmd 17 mptbase: Initiating ioc0 bringup ioc0: LSISAS1064 A3: Capabilities={Initiator} scsi0 : ioc0: LSISAS1064 A3, FwRev=010a0000h, Ports=1, MaxQ=511, IRQ=22 scsi 0:0:0:0: Direct-Access FUJITSU MAY2073RCSUN72G 0501 PQ: 0 ANSI: 4 sd 0:0:0:0: [sda] 143374738 512-byte hardware sectors (73408 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: d3 00 00 08 sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 143374738 512-byte hardware sectors (73408 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: d3 00 00 08 sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sd 0:0:0:0: [sda] Attached SCSI disk scsi 0:0:1:0: Direct-Access FUJITSU MAY2073RCSUN72G 0501 PQ: 0 ANSI: 4 sd 0:0:1:0: [sdb] 143374738 512-byte hardware sectors (73408 MB) sd 0:0:1:0: [sdb] Write Protect is off sd 0:0:1:0: [sdb] Mode Sense: d3 00 00 08 sd 0:0:1:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:1:0: [sdb] 143374738 512-byte hardware sectors (73408 MB) sd 0:0:1:0: [sdb] Write Protect is off sd 0:0:1:0: [sdb] Mode Sense: d3 00 00 08 sd 0:0:1:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6 sdb7 sdb8 sd 0:0:1:0: [sdb] Attached SCSI disk Fusion MPT misc device (ioctl) driver 3.04.05 mptctl: Registered with Fusion MPT base driver mptctl: /dev/mptctl @ (major,minor=10,220) mice: PS/2 mouse device common for all mice Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0) md: raid1 personality registered for level 1 raid6: int64x1 185 MB/s raid6: int64x2 266 MB/s raid6: int64x4 261 MB/s raid6: int64x8 125 MB/s raid6: using algorithm int64x2 (266 MB/s) md: raid6 personality registered for level 6 md: raid5 personality registered for level 5 md: raid4 personality registered for level 4 NET: Registered protocol family 1 NET: Registered protocol family 17 md: Skipping autodetection of RAID arrays. (raid=noautodetect) md: Loading md0: /dev/sda4 md: bind<sda4> md: bind<sdb4> raid1: raid set md0 active with 2 out of 2 mirrors kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem) readonly. Fusion MPT SPI Host driver 3.04.05 PCI: Enabling device: (0000:03:08.0), cmd 3 mptbase: Initiating ioc1 bringup ioc1: LSI53C1030 C0: Capabilities={Initiator,Target} scsi1 : ioc1: LSI53C1030 C0, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=14 PCI: Enabling device: (0000:03:08.1), cmd 3 mptbase: Initiating ioc2 bringup ioc2: LSI53C1030 C0: Capabilities={Initiator,Target} scsi2 : ioc2: LSI53C1030 C0, FwRev=01032700h, Ports=1, MaxQ=255, IRQ=15 scsi 2:0:8:0: Direct-Access FUJITSU MAW3300NC 0104 PQ: 0 ANSI: 3 target2:0:8: Beginning Domain Validation target2:0:8: Ending Domain Validation target2:0:8: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS RTI WRFLOW PCOMP (6.25 ns, offset 127) sd 2:0:8:0: [sdc] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:8:0: [sdc] Write Protect is off sd 2:0:8:0: [sdc] Mode Sense: b3 00 00 08 sd 2:0:8:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 2:0:8:0: [sdc] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:8:0: [sdc] Write Protect is off sd 2:0:8:0: [sdc] Mode Sense: b3 00 00 08 sd 2:0:8:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdc: sdc1 sd 2:0:8:0: [sdc] Attached SCSI disk scsi 2:0:9:0: Direct-Access FUJITSU MAW3300NC 0104 PQ: 0 ANSI: 3 target2:0:9: Beginning Domain Validation target2:0:9: Ending Domain Validation target2:0:9: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS RTI WRFLOW PCOMP (6.25 ns, offset 127) sd 2:0:9:0: [sdd] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:9:0: [sdd] Write Protect is off sd 2:0:9:0: [sdd] Mode Sense: b3 00 00 08 sd 2:0:9:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 2:0:9:0: [sdd] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:9:0: [sdd] Write Protect is off sd 2:0:9:0: [sdd] Mode Sense: b3 00 00 08 sd 2:0:9:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdd: sdd1 sd 2:0:9:0: [sdd] Attached SCSI disk scsi 2:0:10:0: Direct-Access FUJITSU MAW3300NC 0104 PQ: 0 ANSI: 3 target2:0:10: Beginning Domain Validation target2:0:10: Ending Domain Validation target2:0:10: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS RTI WRFLOW PCOMP (6.25 ns, offset 127) sd 2:0:10:0: [sde] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:10:0: [sde] Write Protect is off sd 2:0:10:0: [sde] Mode Sense: b3 00 00 08 sd 2:0:10:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 2:0:10:0: [sde] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:10:0: [sde] Write Protect is off sd 2:0:10:0: [sde] Mode Sense: b3 00 00 08 sd 2:0:10:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sde: sde1 sd 2:0:10:0: [sde] Attached SCSI disk scsi 2:0:11:0: Direct-Access FUJITSU MAW3300NC 0104 PQ: 0 ANSI: 3 target2:0:11: Beginning Domain Validation target2:0:11: Ending Domain Validation target2:0:11: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS RTI WRFLOW PCOMP (6.25 ns, offset 127) sd 2:0:11:0: [sdf] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:11:0: [sdf] Write Protect is off sd 2:0:11:0: [sdf] Mode Sense: b3 00 00 08 sd 2:0:11:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 2:0:11:0: [sdf] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:11:0: [sdf] Write Protect is off sd 2:0:11:0: [sdf] Mode Sense: b3 00 00 08 sd 2:0:11:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdf: sdf1 sd 2:0:11:0: [sdf] Attached SCSI disk scsi 2:0:12:0: Direct-Access FUJITSU MAW3300NC 0104 PQ: 0 ANSI: 3 target2:0:12: Beginning Domain Validation target2:0:12: Ending Domain Validation target2:0:12: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS RTI WRFLOW PCOMP (6.25 ns, offset 127) sd 2:0:12:0: [sdg] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:12:0: [sdg] Write Protect is off sd 2:0:12:0: [sdg] Mode Sense: b3 00 00 08 sd 2:0:12:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 2:0:12:0: [sdg] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:12:0: [sdg] Write Protect is off sd 2:0:12:0: [sdg] Mode Sense: b3 00 00 08 sd 2:0:12:0: [sdg] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdg: sdg1 sd 2:0:12:0: [sdg] Attached SCSI disk scsi 2:0:13:0: Direct-Access FUJITSU MAW3300NC 0104 PQ: 0 ANSI: 3 target2:0:13: Beginning Domain Validation target2:0:13: Ending Domain Validation target2:0:13: FAST-160 WIDE SCSI 320.0 MB/s DT IU QAS RTI WRFLOW PCOMP (6.25 ns, offset 127) sd 2:0:13:0: [sdh] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:13:0: [sdh] Write Protect is off sd 2:0:13:0: [sdh] Mode Sense: b3 00 00 08 sd 2:0:13:0: [sdh] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 2:0:13:0: [sdh] 585937500 512-byte hardware sectors (300000 MB) sd 2:0:13:0: [sdh] Write Protect is off sd 2:0:13:0: [sdh] Mode Sense: b3 00 00 08 sd 2:0:13:0: [sdh] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdh: sdh1 sd 2:0:13:0: [sdh] Attached SCSI disk EXT3 FS on md0, internal journal loop: module loaded Netfilter messages via NETLINK v0.30. nf_conntrack version 0.5.0 (16384 buckets, 65536 max) device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@xxxxxxxxxx md: md1 stopped. md: bind<sdb2> md: bind<sda2> raid1: raid set md1 active with 2 out of 2 mirrors md: md2 stopped. md: bind<sdb5> md: bind<sda5> raid1: raid set md2 active with 2 out of 2 mirrors md: md3 stopped. md: bind<sdb6> md: bind<sda6> raid1: raid set md3 active with 2 out of 2 mirrors md: md4 stopped. md: bind<sdb7> md: bind<sda7> raid1: raid set md4 active with 2 out of 2 mirrors md: md5 stopped. md: bind<sdb8> md: bind<sda8> raid1: raid set md5 active with 2 out of 2 mirrors md: md6 stopped. md: bind<sdb1> md: bind<sda1> raid1: raid set md6 active with 2 out of 2 mirrors kjournald starting. Commit interval 5 seconds EXT3 FS on md1, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on md5, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on md4, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on md2, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on md3, internal journal EXT3-fs: mounted filesystem with ordered data mode. Adding 7815536k swap on /dev/md6. Priority:-1 extents:1 across:7815536k tg3: eth1: Link is up at 1000 Mbps, full duplex. tg3: eth1: Flow control is on for TX and on for RX. u32 classifier Performance counters on input device check on Actions configured Installing knfsd (copyright (C) 1996 okir@xxxxxxxxxxxx). Loading iSCSI transport class v2.0-724. iscsi: registered transport (tcp) ip_tables: (C) 2000-2006 Netfilter Core Team md: md_d0 stopped. md: bind<sdd1> md: bind<sde1> md: bind<sdf1> md: bind<sdg1> md: bind<sdh1> md: bind<sdc1> raid5: device sdc1 operational as raid disk 0 raid5: device sdh1 operational as raid disk 5 raid5: device sdg1 operational as raid disk 4 raid5: device sdf1 operational as raid disk 3 raid5: device sde1 operational as raid disk 2 raid5: device sdd1 operational as raid disk 1 raid5: allocated 12518kB for md_d0 raid5: raid level 5 set md_d0 active with 6 out of 6 devices, algorithm 2 RAID5 conf printout: --- rd:6 wd:6 disk 0, o:1, dev:sdc1 disk 1, o:1, dev:sdd1 disk 2, o:1, dev:sde1 disk 3, o:1, dev:sdf1 disk 4, o:1, dev:sdg1 disk 5, o:1, dev:sdh1 md_d0: p1 scsi3 : iSCSI Initiator over TCP/IP scsi 3:0:0:0: Direct-Access IET VIRTUAL-DISK 0 PQ: 0 ANSI: 4 sd 3:0:0:0: [sdi] 2929451520 512-byte hardware sectors (1499879 MB) sd 3:0:0:0: [sdi] Write Protect is off sd 3:0:0:0: [sdi] Mode Sense: 77 00 00 08 sd 3:0:0:0: [sdi] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sd 3:0:0:0: [sdi] 2929451520 512-byte hardware sectors (1499879 MB) sd 3:0:0:0: [sdi] Write Protect is off sd 3:0:0:0: [sdi] Mode Sense: 77 00 00 08 sd 3:0:0:0: [sdi] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA sdi: sdi1 sd 3:0:0:0: [sdi] Attached SCSI disk md: bind<md_d0p1> md: bind<sdi1> md: md7: raid array is not clean -- starting background reconstruction raid1: raid set md7 active with 2 out of 2 mirrors md: resync of RAID array md7 md: minimum _guaranteed_ speed: 1000 KB/sec/disk. md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync. md: using 256k window, over a total of 1464725632 blocks. kernel BUG at drivers/md/raid5.c:380! \|/ ____ \|/ "@'/ .. \`@" /_| \__/ |_\ \__U_/ md7_resync(4258): Kernel bad sw trap 5 [#1] TSTATE: 0000000080001606 TPC: 00000000005ed50c TNPC: 00000000005ed510 Y: 00000000 Not tainted TPC: <get_stripe_work+0x1f4/0x200> g0: 0000000000000005 g1: 00000000007c0400 g2: 0000000000000001 g3: 0000000000748400 g4: fffff800f904db00 g5: fffff80002088000 g6: fffff800ea784000 g7: 0000000000748528 o0: 0000000000000029 o1: 0000000000715798 o2: 000000000000017c o3: 0000000000000005 o4: 0000000000000006 o5: fffff800e9e6a990 sp: fffff800ea786d81 ret_pc: 00000000005ed504 RPC: <get_stripe_work+0x1ec/0x200> l0: 0000000000000002 l1: ffffffffffffffff l2: fffff800e9e6aa78 l3: fffff800e9e6a918 l4: fffff800e9e6a9b8 l5: fffffffffffffff8 l6: 0000000000000005 l7: fffff800fde02800 i0: fffff800e9e6a958 i1: 0000000000000000 i2: 0000000000000004 i3: fffff800ea787720 i4: 0000000000000080 i5: 0000000000000080 i6: fffff800ea786e51 i7: 00000000005f0274 I7: <handle_stripe5+0x4fc/0x1340> Caller[00000000005f0274]: handle_stripe5+0x4fc/0x1340 Caller[00000000005f211c]: handle_stripe+0x24/0x13e0 Caller[00000000005f4450]: make_request+0x358/0x600 Caller[0000000000542890]: generic_make_request+0x198/0x220 Caller[00000000005eb240]: sync_request+0x608/0x640 Caller[00000000005fef7c]: md_do_sync+0x384/0x920 Caller[00000000005ff8f0]: md_thread+0x38/0x140 Caller[0000000000478b40]: kthread+0x48/0x80 Caller[00000000004273d0]: kernel_thread+0x38/0x60 Caller[0000000000478de0]: kthreadd+0x148/0x1c0 Instruction DUMP: 9210217c 7ff8f57f 90122398 <91d02005> 30680004 01000000 01000000 01000000 9de3bf00
Attachment:
config.gz
Description: application/gzip
--- kernel/iscsi.old.c 2007-10-17 12:44:09.000000000 +0200 +++ kernel/iscsi.c 2007-10-17 11:19:14.000000000 +0200 @@ -726,13 +726,26 @@ case READ_10: case WRITE_10: case WRITE_VERIFY: - *off = be32_to_cpu(*(u32 *)&cmd[2]); + *off = be32_to_cpu((((u32) cmd[2]) << 24) | + (((u32) cmd[3]) << 16) | + (((u32) cmd[4]) << 8) | + cmd[5]); *len = (cmd[7] << 8) + cmd[8]; break; case READ_16: case WRITE_16: - *off = be64_to_cpu(*(u64 *)&cmd[2]); - *len = be32_to_cpu(*(u32 *)&cmd[10]); + *off = be32_to_cpu((((u64) cmd[2]) << 56) | + (((u64) cmd[3]) << 48) | + (((u64) cmd[4]) << 40) | + (((u64) cmd[5]) << 32) | + (((u64) cmd[6]) << 24) | + (((u64) cmd[7]) << 16) | + (((u64) cmd[8]) << 8) | + cmd[9]); + *len = be32_to_cpu((((u32) cmd[10]) << 24) | + (((u32) cmd[11]) << 16) | + (((u32) cmd[12]) << 8) | + cmd[13]); break; default: BUG(); --- kernel/target_disk.old.c 2007-10-17 11:10:19.000000000 +0200 +++ kernel/target_disk.c 2007-10-17 16:04:06.000000000 +0200 @@ -66,13 +66,15 @@ unsigned char geo_m_pg[] = {0x04, 0x16, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x98, 0x00, 0x00}; - u32 ncyl, *p; + u32 ncyl; + u32 n; /* assume 0xff heads, 15krpm. */ memcpy(ptr, geo_m_pg, sizeof(geo_m_pg)); ncyl = sec >> 14; /* 256 * 64 */ - p = (u32 *)(ptr + 1); - *p = *p | cpu_to_be32(ncyl); + memcpy(&n,ptr+1,sizeof(u32)); + n = n | cpu_to_be32(ncyl); + memcpy(ptr+1, &n, sizeof(u32)); return sizeof(geo_m_pg); } @@ -249,7 +251,10 @@ struct iet_volume *lun; int rest, idx = 0; - size = be32_to_cpu(*(u32 *)&req->scb[6]); + size = be32_to_cpu((((u32) req->scb[6]) << 24) | + (((u32) req->scb[7]) << 16) | + (((u32) req->scb[8]) << 8) | + req->scb[9]); if (size < 16) return -1;