Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2926687imm; Tue, 4 Sep 2018 12:14:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdalxKb5Ht7ob0c48hO3Sz5VuVFRfsYOgsbtoqZzpQA3O8ARW241eDY7IS+PrwwfqHcrTdT7 X-Received: by 2002:a63:d309:: with SMTP id b9-v6mr32893393pgg.163.1536088495181; Tue, 04 Sep 2018 12:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536088495; cv=none; d=google.com; s=arc-20160816; b=TRq4RbbNqTbIQ4G/95wOhynIoe/rWpL6J6i8PiOTeRQ+XUF2BpzmQrFPMmODdSaS2I z/R5Xa2RB/EZeZzvrf1zg6iv3xQrMI7+SfpBNYoA6P84M2QNdqc4NAdgRkHMYIKL/ZCU zM1iT5agmfWdNdieQpxYaD8Xs+KuKUImWeUZ7OsbT0cYln2IOdta2YWRHn0wlnv4MqAx FTAonmAoLbg3EUdQ7wbiH9frxMgKsEHWPpae0lhf9vXQhSquCHUSlaePJp7d6ZKe14F5 s4uVAHG1oLHgTAbTETDxk8ZOe6K+lSoyvXShaYpxbBEoPPMix4h+4VKzzZOc5M5WLwn2 NEIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=T6A7ZEQ9uuEcvqu7U4cvjpXyi74WWMiyL34IklnhFmQ=; b=wgSBS4Ya2PUW80QHyWCKWbk6Kj+s8jHkELE1QWyRSTkF7vDpL+RfBS0p4f7UZ5nB0h nf8cHPTuBgViJbmSqTLdUxDF9hjSl08knOzyBZktFiOZamFo2mIE6WxEhzRoSfoaO4Vy un8xvzUK3J9hQzTnmoFaS0jyIGYEaHReQkHAZXG8QmdOzUWanxWmudeUeVP/OXkaR1ry s7QCNnc89ZYOrb8lNCftTtH0GlJZUKryDcgfeg5gJulF+FwlW8P/y2lq5/MupWOo0BFD o9eprfojo5ojWLyhwAfLZX/DL255rjuPyMmYsEgGPEOYhic1NmP7Iy7gp8zACfTLwwuV DF9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20-v6si21315252pgf.434.2018.09.04.12.14.39; Tue, 04 Sep 2018 12:14:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727868AbeIDXkB (ORCPT + 99 others); Tue, 4 Sep 2018 19:40:01 -0400 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 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7341CCAA; Tue, 4 Sep 2018 19:13:32 +0000 (UTC) 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: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.