Bug_ON with patch: bio: modify __bio_add_page() to accept pages that don't start a new segment

From: Mike Qiu
Date: Tue Jul 15 2014 - 04:15:02 EST


My Power7 box boot fail with commit:

254c4407cb84a6dec90336054615b0f0e996bb7c
bio: modify __bio_add_page() to accept pages that don't start a new segment

Just revert it will works for me.

See below:

[ 22.659431] ------------[ cut here ]------------
[ 22.659437] kernel BUG at fs/direct-io.c:747!
[ 22.659501] Oops: Exception in kernel mode, sig: 5 [#1]
[ 22.659528] SMP NR_CPUS=1024 NUMA PowerNV
[ 22.659533] Modules linked in: e1000e vhost_net tun ses(+) macvtap macvlan enclosure ptp pps_core vhost be2net(+) shpchp kvm binfmt_misc uinput lpfc scsi_transport_fc ipr
[ 22.659688] CPU: 8 PID: 772 Comm: lvm Not tainted 3.16.0-rc5-next-20140714+ #76
[ 22.659755] task: c0000003b0a7dc20 ti: c0000003b0afc000 task.ti: c0000003b0afc000
[ 22.659823] NIP: c0000000002ba854 LR: c0000000002bad80 CTR: 0000000000000010
[ 22.659890] REGS: c0000003b0aff450 TRAP: 0700 Not tainted (3.16.0-rc5-next-20140714+)
[ 22.659957] MSR: 9000000000029032 <SF,HV,EE,ME,IR,DR,RI> CR: 24222844 XER: 20000000
[ 22.660114] CFAR: c0000000002bad90 SOFTE: 1
GPR00: c0000000002bad80 c0000003b0aff6d0 c00000000145c148 0000000000000000
GPR04: 0000000000000000 0000000000000000 c000000000b6e7c8 0000000000000001
GPR08: 0000000000000000 0000000000010000 0000000000100000 f000000000000000
GPR12: 0000000024222844 c00000000fee2400 0000000000000010 c0000003b9140000
GPR16: 0000000000010000 c0000003b9140000 0000000000047bff 0000000000010000
GPR20: 0000000000000000 f000000000cb0fdc 0000000000010000 0000000000010000
GPR24: 0000000000000000 0000000000010000 0000000000000000 c0000003b0afc000
GPR28: 0000000000000000 00000000023dff80 c0000003fcb10380 c0000003b9140028
[ 22.660980] NIP [c0000000002ba854] .__blockdev_direct_IO+0x1584/0x3960
[ 22.661036] LR [c0000000002bad80] .__blockdev_direct_IO+0x1ab0/0x3960
[ 22.661092] Call Trace:
[ 22.661116] [c0000003b0aff6d0] [c0000000002bad80] .__blockdev_direct_IO+0x1ab0/0x3960 (unreliable)
[ 22.661208] [c0000003b0aff980] [c0000000002b6114] .blkdev_direct_IO+0x64/0x80
[ 22.661276] [c0000003b0affa20] [c0000000001dd430] .generic_file_read_iter+0x5b0/0x690
[ 22.661355] [c0000003b0affb50] [c0000000002b5a40] .blkdev_read_iter+0x60/0x90
[ 22.661423] [c0000003b0affbd0] [c000000000269d28] .new_sync_read+0xa8/0x120
[ 22.661491] [c0000003b0affcf0] [c00000000026b280] .vfs_read+0xc0/0x1f0
[ 22.661559] [c0000003b0affd90] [c00000000026b674] .SyS_read+0x64/0x110
[ 22.661628] [c0000003b0affe30] [c00000000000a158] syscall_exit+0x0/0x98
[ 22.661695] Instruction dump:
[ 22.661729] e88100d8 80a100e4 80c100e0 f92100c0 39200000 912100a8 4814fe15 60000000
[ 22.661841] 812100e4 78630020 7f891800 419ef880 <0fe00000> 60000000 60420000 e9410118
[ 22.661955] ---[ end trace 6248a5bb36020fd2 ]---

Thanks,
Mike




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/