[Xen-devel] ARM64 DOM0 crashing after commit 578270b "block: fix segment split"

2015-11-30 Thread Julien Grall
Hello,

I've been trying the Linux 4.4-rc3 on mustang (ARM64) with Xen.
DOM0 is crashing as soon as a guest is started when QDISK is
used for the disk:

[ cut here ]
WARNING: at /home/julien/works/linux/block/blk-merge.c:435
Modules linked in:

CPU: 6 PID: 0 Comm: swapper/6 Not tainted 4.4.0-rc3 #276
Hardware name: APM X-Gene Mustang board (DT)
task: ffc1f6d13700 ti: ffc1f6d2c000 task.ti: ffc1f6d2c000
PC is at blk_rq_map_sg+0x3dc/0x4a4
LR is at blk_rq_map_sg+0x454/0x4a4
pc : [] lr : [] pstate: 21c5
sp : ffc1f6d2f8a0
x29: ffc1f6d2f8a0 x28: 0020 
x27: ffc1f5ccc000 x26: ffc1f6166740 
x25: 000b x24: ffc0fa11e000 
x23: ffc1f6166740 x22: ffc1f5ccc1f0 
x21:  x20:  
x19:  x18: 0007 
x17: 000e x16: 0001 
x15: 0019 x14: 0033 
x13: 004c x12: 0068 
x11: ffc1f6d2fbd0 x10: ffc1f62e 
x9 :  x8 : ffc1f6166740 
x7 :  x6 :  
x5 : 1000 x4 : 1000 
x3 : 1000 x2 : 0042f2e4c000 
x1 :  x0 : 000a 

---[ end trace 247f3acfda1a2560 ]---
Call trace:
[] blk_rq_map_sg+0x3dc/0x4a4
[] scsi_init_sgtable+0x70/0xd8
[] scsi_init_io+0x38/0x108
[] sd_init_command+0x44/0x9c4
[] scsi_setup_cmnd+0xc8/0x11c
[] scsi_prep_fn+0xb8/0x138
[] blk_peek_request+0x150/0x204
[] scsi_request_fn+0x4c/0x5ac
[] __blk_run_queue+0x34/0x4c
[] blk_run_queue+0x24/0x3c
[] scsi_run_queue+0x204/0x290
[] scsi_end_request+0x128/0x188
[] scsi_io_completion+0x98/0x514
[] scsi_finish_command+0xc4/0x110
[] scsi_softirq_done+0x130/0x160
[] blk_done_softirq+0x7c/0x94
[] __do_softirq+0xfc/0x200
[] irq_exit+0x84/0xd8
[] handle_IPI+0x104/0x19c
[] gic_handle_irq+0x84/0x9c
Exception stack(0xffc1f6d2fe00 to 0xffc1f6d2ff20)
fe00: ffc000966000 ffc000966a68 ffc1f6d2ff50 ffc867f0
fe20: 6145 000a489e3200  
fe40: 0001 ffc00096a000 0001 ffc1fff9a048
fe60: ffc1f6fbef08 ffc1fff9a188 0594 ffc1f6d2fec0
fe80: 0740 ffc1f6276370 0018 0003e800
fea0:  000a9e23fc00 ffc0001a34d4 007f8a8d2820
fec0: 007f89432760 ffc000966000 ffc000966a68 ffc000946ac0
fee0: ffc1f6d2ff70 ffc00094a1e8 ffc000677978 ffc000966000
ff00: ffc1f6d2c000   ffc1f6d2ff50
[] el1_irq+0x68/0xd8
[] default_idle_call+0x1c/0x30
[] cpu_startup_entry+0x1c8/0x218
[] secondary_start_kernel+0x11c/0x140
[<0041000827ec>] 0x41000827ec
[ cut here ]
kernel BUG at /home/julien/works/linux/drivers/scsi/scsi_lib.c:1096!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 6 PID: 0 Comm: swapper/6 Tainted: GW   4.4.0-rc3 #276
Hardware name: APM X-Gene Mustang board (DT)
task: ffc1f6d13700 ti: ffc1f6d2c000 task.ti: ffc1f6d2c000
PC is at scsi_init_sgtable+0xc0/0xd8
LR is at scsi_init_sgtable+0x70/0xd8
pc : [] lr : [] pstate: 21c5
sp : ffc1f6d2f950
x29: ffc1f6d2f950 x28: ffc000848aa8 
x27: ffc000808270 x26: ffc1f5cd8000 
x25: ffc1f6e68830 x24: 00034000 
x23: ffc1f6e68800 x22:  
x21:  x20: ffc0fa11e000 
x19: ffc0fa25b2c0 x18: 0007 
x17: 000e x16: 0001 
x15: 0019 x14: 0033 
x13: 004c x12: 0068 
x11: ffc1f6d2fbd0 x10: ffc1f62e 
x9 :  x8 : ffc1f6166740 
x7 :  x6 :  
x5 : 1000 x4 : 1000 
x3 : 1000 x2 : 0042f2e4c000 
x1 : 000a x0 : 000b 

Process swapper/6 (pid: 0, stack limit = 0xffc1f6d2c020)
Stack: (0xffc1f6d2f950 to 0xffc1f6d3)
f940:   ffc1f6d2f980 ffc000473bd4
f960: ffc0fa11e000 ffc0fa11e000 ffc0fa25b200 ffc000483838
f980: ffc1f6d2f9c0 ffc00047c858 ffc0fa11e000 ffc1f6e68800
f9a0: ffc1f62e 0acdc310 ffc1f5cd9400 ffc0faa64800
f9c0: ffc1f6d2fa30 ffc000473d6c ffc0fa25b200 ffc1f6e68968
f9e0: ffc1f62e ffc1f6e68800 ffc1f62e ffc1f6ff6d70
fa00: ffc1f6e68830 ffc1f6e68800 ffc1f6d2fa20 ffc00046d408
fa20: ffc1f6d2fa60 ffc000473ee8 ffc1f6d2fa60 ffc000473e78
fa40: ffc0fa11e000 ffc1f6e68800 ffc1f62e ffc1f6ff6d70
fa60: ffc1f6d2fa90 ffc00035739c ffc1f62e ffc0fa11e000
fa80: ffc0fa8d9100 0080 ffc1f6d2fac0 ffc000474850
faa0: ffc1f6e68800 ffc0faa64800 ffc0fab6ed80 ffc1f6e68850
fac0: ffc1f6d2fb30 ffc000353978 ffc1f62e ffc1f5cd8028

Re: [Xen-devel] ARM64 DOM0 crashing after commit 578270b "block: fix segment split"

2015-11-30 Thread Jens Axboe

On 11/30/2015 11:22 AM, Julien Grall wrote:

Hello,

I've been trying the Linux 4.4-rc3 on mustang (ARM64) with Xen.
DOM0 is crashing as soon as a guest is started when QDISK is
used for the disk:

[ cut here ]
WARNING: at /home/julien/works/linux/block/blk-merge.c:435
Modules linked in:

CPU: 6 PID: 0 Comm: swapper/6 Not tainted 4.4.0-rc3 #276
Hardware name: APM X-Gene Mustang board (DT)
task: ffc1f6d13700 ti: ffc1f6d2c000 task.ti: ffc1f6d2c000
PC is at blk_rq_map_sg+0x3dc/0x4a4
LR is at blk_rq_map_sg+0x454/0x4a4
pc : [] lr : [] pstate: 21c5
sp : ffc1f6d2f8a0
x29: ffc1f6d2f8a0 x28: 0020
x27: ffc1f5ccc000 x26: ffc1f6166740
x25: 000b x24: ffc0fa11e000
x23: ffc1f6166740 x22: ffc1f5ccc1f0
x21:  x20: 
x19:  x18: 0007
x17: 000e x16: 0001
x15: 0019 x14: 0033
x13: 004c x12: 0068
x11: ffc1f6d2fbd0 x10: ffc1f62e
x9 :  x8 : ffc1f6166740
x7 :  x6 : 
x5 : 1000 x4 : 1000
x3 : 1000 x2 : 0042f2e4c000
x1 :  x0 : 000a

---[ end trace 247f3acfda1a2560 ]---
Call trace:
[] blk_rq_map_sg+0x3dc/0x4a4
[] scsi_init_sgtable+0x70/0xd8
[] scsi_init_io+0x38/0x108
[] sd_init_command+0x44/0x9c4
[] scsi_setup_cmnd+0xc8/0x11c
[] scsi_prep_fn+0xb8/0x138
[] blk_peek_request+0x150/0x204
[] scsi_request_fn+0x4c/0x5ac
[] __blk_run_queue+0x34/0x4c
[] blk_run_queue+0x24/0x3c
[] scsi_run_queue+0x204/0x290
[] scsi_end_request+0x128/0x188
[] scsi_io_completion+0x98/0x514
[] scsi_finish_command+0xc4/0x110
[] scsi_softirq_done+0x130/0x160
[] blk_done_softirq+0x7c/0x94
[] __do_softirq+0xfc/0x200
[] irq_exit+0x84/0xd8
[] handle_IPI+0x104/0x19c
[] gic_handle_irq+0x84/0x9c
Exception stack(0xffc1f6d2fe00 to 0xffc1f6d2ff20)
fe00: ffc000966000 ffc000966a68 ffc1f6d2ff50 ffc867f0
fe20: 6145 000a489e3200  
fe40: 0001 ffc00096a000 0001 ffc1fff9a048
fe60: ffc1f6fbef08 ffc1fff9a188 0594 ffc1f6d2fec0
fe80: 0740 ffc1f6276370 0018 0003e800
fea0:  000a9e23fc00 ffc0001a34d4 007f8a8d2820
fec0: 007f89432760 ffc000966000 ffc000966a68 ffc000946ac0
fee0: ffc1f6d2ff70 ffc00094a1e8 ffc000677978 ffc000966000
ff00: ffc1f6d2c000   ffc1f6d2ff50
[] el1_irq+0x68/0xd8
[] default_idle_call+0x1c/0x30
[] cpu_startup_entry+0x1c8/0x218
[] secondary_start_kernel+0x11c/0x140
[<0041000827ec>] 0x41000827ec
[ cut here ]
kernel BUG at /home/julien/works/linux/drivers/scsi/scsi_lib.c:1096!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 6 PID: 0 Comm: swapper/6 Tainted: GW   4.4.0-rc3 #276
Hardware name: APM X-Gene Mustang board (DT)
task: ffc1f6d13700 ti: ffc1f6d2c000 task.ti: ffc1f6d2c000
PC is at scsi_init_sgtable+0xc0/0xd8
LR is at scsi_init_sgtable+0x70/0xd8
pc : [] lr : [] pstate: 21c5
sp : ffc1f6d2f950
x29: ffc1f6d2f950 x28: ffc000848aa8
x27: ffc000808270 x26: ffc1f5cd8000
x25: ffc1f6e68830 x24: 00034000
x23: ffc1f6e68800 x22: 
x21:  x20: ffc0fa11e000
x19: ffc0fa25b2c0 x18: 0007
x17: 000e x16: 0001
x15: 0019 x14: 0033
x13: 004c x12: 0068
x11: ffc1f6d2fbd0 x10: ffc1f62e
x9 :  x8 : ffc1f6166740
x7 :  x6 : 
x5 : 1000 x4 : 1000
x3 : 1000 x2 : 0042f2e4c000
x1 : 000a x0 : 000b

Process swapper/6 (pid: 0, stack limit = 0xffc1f6d2c020)
Stack: (0xffc1f6d2f950 to 0xffc1f6d3)
f940:   ffc1f6d2f980 ffc000473bd4
f960: ffc0fa11e000 ffc0fa11e000 ffc0fa25b200 ffc000483838
f980: ffc1f6d2f9c0 ffc00047c858 ffc0fa11e000 ffc1f6e68800
f9a0: ffc1f62e 0acdc310 ffc1f5cd9400 ffc0faa64800
f9c0: ffc1f6d2fa30 ffc000473d6c ffc0fa25b200 ffc1f6e68968
f9e0: ffc1f62e ffc1f6e68800 ffc1f62e ffc1f6ff6d70
fa00: ffc1f6e68830 ffc1f6e68800 ffc1f6d2fa20 ffc00046d408
fa20: ffc1f6d2fa60 ffc000473ee8 ffc1f6d2fa60 ffc000473e78
fa40: ffc0fa11e000 ffc1f6e68800 ffc1f62e ffc1f6ff6d70
fa60: ffc1f6d2fa90 ffc00035739c ffc1f62e ffc0fa11e000
fa80: ffc0fa8d9100 0080 ffc1f6d2fac0 ffc000474850
faa0: ffc1f6e68800 ffc0faa64800 ffc0fab6ed80 ffc1f6e68850
fac0: ffc1f6d2fb30 ffc000353978 ffc1f62e 

Re: [Xen-devel] ARM64 DOM0 crashing after commit 578270b "block: fix segment split"

2015-11-30 Thread Julien Grall

Hi Jens,

On 30/11/2015 20:03, Jens Axboe wrote:

The bisector fingered the commit 578270b "block: fix segment split".
If I reverted this patch on top of 4.4-rc3 and everything seems to
work fine.

Anyone have any ideas?


Can you try my for-linus branch?


I pulled this branch into Linus' master and the problem disappear, thank 
you!


Next time I will try your branch before sending an error report.

Regards,

--
Julien Grall

___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel


Re: [Xen-devel] ARM64 DOM0 crashing after commit 578270b "block: fix segment split"

2015-11-30 Thread Jens Axboe

On 11/30/2015 01:49 PM, Julien Grall wrote:

Hi Jens,

On 30/11/2015 20:03, Jens Axboe wrote:

The bisector fingered the commit 578270b "block: fix segment split".
If I reverted this patch on top of 4.4-rc3 and everything seems to
work fine.

Anyone have any ideas?


Can you try my for-linus branch?


I pulled this branch into Linus' master and the problem disappear, thank
you!

Next time I will try your branch before sending an error report.


Hopefully we won't have a next time :-). Thanks for reporting, and I'm 
happy we've got it nailed already.


--
Jens Axboe


___
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel