Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #58542

Bug#866511: kernel BUG at nvme/host/pci.c

From Andreas Pflug <pgadmin@pse-consulting.de>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#866511: kernel BUG at nvme/host/pci.c
Date 2017-07-28 19:40 +0200
Message-ID <u8hoZ-6JP-7@gated-at.bofh.it> (permalink)
References (1 earlier) <tZWrn-Q4-5@gated-at.bofh.it> <u03jc-5nS-11@gated-at.bofh.it> <u0cZc-3xB-7@gated-at.bofh.it> <u1IWZ-6Op-1@gated-at.bofh.it> <u1KP7-7Xs-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


After discussing the issue on linux-nvme, the bug was located in
xen/biomerge.c. It can be fixed in 4.9.30 as well as 4.13RC1 using the
patch from Roger Pau Monne below.

---
 drivers/xen/biomerge.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/xen/biomerge.c b/drivers/xen/biomerge.c
index 4da69dbf7dca..1bdd02a6d6ac 100644
--- a/drivers/xen/biomerge.c
+++ b/drivers/xen/biomerge.c
@@ -10,8 +10,7 @@ bool xen_biovec_phys_mergeable(const struct bio_vec *vec1,
 	unsigned long bfn1 = pfn_to_bfn(page_to_pfn(vec1->bv_page));
 	unsigned long bfn2 = pfn_to_bfn(page_to_pfn(vec2->bv_page));
 
-	return __BIOVEC_PHYS_MERGEABLE(vec1, vec2) &&
-		((bfn1 == bfn2) || ((bfn1+1) == bfn2));
+	return bfn1 + PFN_DOWN(vec1->bv_offset + vec1->bv_len) == bfn2;
 #else
 	/*
 	 * XXX: Add support for merging bio_vec when using different page

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#866511: kernel BUG at nvme/host/pci.c Andreas Pflug <pgadmin@pse-consulting.de> - 2017-06-29 19:40 +0200
  Processed: Re: Bug#866511: kernel BUG at nvme/host/pci.c owner@bugs.debian.org (Debian Bug Tracking System) - 2017-07-05 19:40 +0200
  Bug#866511: kernel BUG at nvme/host/pci.c Ben Hutchings <ben@decadent.org.uk> - 2017-07-05 19:40 +0200
    Bug#866511: kernel BUG at nvme/host/pci.c Andreas Pflug <pgadmin@pse-consulting.de> - 2017-07-06 03:00 +0200
      Bug#866511: kernel BUG at nvme/host/pci.c Ben Hutchings <ben@decadent.org.uk> - 2017-07-06 13:20 +0200
        Bug#866511: kernel BUG at nvme/host/pci.c Andreas Pflug <pgadmin@pse-consulting.de> - 2017-07-10 17:40 +0200
          Bug#866511: kernel BUG at nvme/host/pci.c Ben Hutchings <ben@decadent.org.uk> - 2017-07-10 19:40 +0200
            Bug#866511: kernel BUG at nvme/host/pci.c Andreas Pflug <pgadmin@pse-consulting.de> - 2017-07-28 19:40 +0200
  Processed: Re: Bug#866511: kernel BUG at nvme/host/pci.c owner@bugs.debian.org (Debian Bug Tracking System) - 2017-07-06 13:20 +0200

csiph-web