Re: [dm-devel] [PATCH V15 00/18] block: support multi-page bvec

From: Bart Van Assche
Date: Fri Feb 15 2019 - 12:14:22 EST


On Fri, 2019-02-15 at 08:49 -0700, Jens Axboe wrote:
+AD4 On 2/15/19 4:13 AM, Ming Lei wrote:
+AD4 +AD4 This patchset brings multi-page bvec into block layer:
+AD4
+AD4 Applied, thanks Ming. Let's hope it sticks+ACE

Hi Jens and Ming,

Test nvmeof-mp/002 fails with Jens' for-next branch from this morning.
I have not yet tried to figure out which patch introduced the failure.
Anyway, this is what I see in the kernel log for test nvmeof-mp/002:

+AFs 475.611363+AF0 BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
+AFs 475.621188+AF0 +ACM-PF error: +AFs-normal kernel read fault+AF0
+AFs 475.623148+AF0 PGD 0 P4D 0
+AFs 475.624737+AF0 Oops: 0000 +AFsAIw-1+AF0 PREEMPT SMP KASAN
+AFs 475.626628+AF0 CPU: 1 PID: 277 Comm: kworker/1:1H Tainted: G B 5.0.0-rc6-dbg+- +ACM-1
+AFs 475.630232+AF0 Hardware name: QEMU Standard PC (i440FX +- PIIX, 1996), BIOS 1.10.2-1 04/01/2014
+AFs 475.633855+AF0 Workqueue: kblockd blk+AF8-mq+AF8-requeue+AF8-work
+AFs 475.635777+AF0 RIP: 0010:+AF8AXw-blk+AF8-recalc+AF8-rq+AF8-segments+-0xbe/0x590
+AFs 475.670948+AF0 Call Trace:
+AFs 475.693515+AF0 blk+AF8-recalc+AF8-rq+AF8-segments+-0x2f/0x50
+AFs 475.695081+AF0 blk+AF8-insert+AF8-cloned+AF8-request+-0xbb/0x1c0
+AFs 475.701142+AF0 dm+AF8-mq+AF8-queue+AF8-rq+-0x3d1/0x770
+AFs 475.707225+AF0 blk+AF8-mq+AF8-dispatch+AF8-rq+AF8-list+-0x5fc/0xb10
+AFs 475.717137+AF0 blk+AF8-mq+AF8-sched+AF8-dispatch+AF8-requests+-0x256/0x300
+AFs 475.721767+AF0 +AF8AXw-blk+AF8-mq+AF8-run+AF8-hw+AF8-queue+-0xd6/0x180
+AFs 475.725920+AF0 +AF8AXw-blk+AF8-mq+AF8-delay+AF8-run+AF8-hw+AF8-queue+-0x25c/0x290
+AFs 475.727480+AF0 blk+AF8-mq+AF8-run+AF8-hw+AF8-queue+-0x119/0x1b0
+AFs 475.732019+AF0 blk+AF8-mq+AF8-run+AF8-hw+AF8-queues+-0x7b/0xa0
+AFs 475.733468+AF0 blk+AF8-mq+AF8-requeue+AF8-work+-0x2cb/0x300
+AFs 475.736473+AF0 process+AF8-one+AF8-work+-0x4f1/0xa40
+AFs 475.739424+AF0 worker+AF8-thread+-0x67/0x5b0
+AFs 475.741751+AF0 kthread+-0x1cf/0x1f0
+AFs 475.746034+AF0 ret+AF8-from+AF8-fork+-0x24/0x30

(gdb) list +ACo(+AF8AXw-blk+AF8-recalc+AF8-rq+AF8-segments+-0xbe)
0xffffffff816a152e is in +AF8AXw-blk+AF8-recalc+AF8-rq+AF8-segments (block/blk-merge.c:366).
361 struct bio +ACo-bio)
362 +AHs
363 struct bio+AF8-vec bv, bvprv +AD0 +AHs NULL +AH0AOw
364 int prev +AD0 0+ADs
365 unsigned int seg+AF8-size, nr+AF8-phys+AF8-segs+ADs
366 unsigned front+AF8-seg+AF8-size +AD0 bio-+AD4-bi+AF8-seg+AF8-front+AF8-size+ADs
367 struct bio +ACo-fbio, +ACo-bbio+ADs
368 struct bvec+AF8-iter iter+ADs
369
370 if (+ACE-bio)

Bart.