From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58182 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727586AbeIDXkB (ORCPT ); Tue, 4 Sep 2018 19:40:01 -0400 Date: Tue, 4 Sep 2018 21:13:30 +0200 From: Greg KH To: Joe Jin Cc: Konrad Rzeszutek Wilk , John Sobecki , "DONGLI.ZHANG" , "xen-devel@lists.xenproject.org" , "linux-kernel@vger.kernel.org" , stable@vger.kernel.org Subject: Re: [PATCH] xen-swiotlb: use actually allocated size on check physical contiguous Message-ID: <20180904191330.GA16532@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Tue, Sep 04, 2018 at 11:16:58AM -0700, Joe Jin wrote: > xen_swiotlb_{alloc,free}_coherent() actually allocate/free size by order > but used the required size to check if address is physical contiguous, > if first pages are physical contiguous also passed > range_straddles_page_boundary() check, but others were not it will > lead kernel panic. > > Signed-off-by: Joe Jin > Cc: Konrad Rzeszutek Wilk > --- > drivers/xen/swiotlb-xen.c | 6 ++++++ > 1 file changed, 6 insertions(+) > This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.