Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2346169ybl; Mon, 20 Jan 2020 01:00:17 -0800 (PST) X-Google-Smtp-Source: APXvYqy2b7POZE0FN3rutlF9ortklFZBJ3DcJcC6jUOHogWm4wODZdPRM4GRI2XbV3oyOpQXB9cz X-Received: by 2002:aca:1204:: with SMTP id 4mr12221969ois.143.1579510816844; Mon, 20 Jan 2020 01:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579510816; cv=none; d=google.com; s=arc-20160816; b=VhmS5DY/HxqQ8XEkKhrIA2+gR4WaIYZbBrTbN7U+KSSHz77hMJ1lVRaThGbbMyuzfe fopv8hBGsqJzVlDrC+v6QYHP+ySIPmvDc9UxLH2kTJozeOe3a+6Xyceh4drMh6Rn3gna gvLedCcaICIhLkMYQd0snwj/Selgjw5XllpjeIcKTpXaKQ8xwwHGjb/JorfDWHOL18f8 8iL0VhekrcCmprAXM9kRJO89W/Zq3lWnYopoqI8k2CgoEfF9BJ8wkC1U8rVRrYmACZb4 7BZc8tmzncueYjdesiyS5UnWO10yKsSKQvJh+lcwIB3tF5ju9Y7WsV7MHoTMY+mAXTpW pb1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OtvuAZ/43/mZHHfizo8i6GGUaKzklYrgQcNWjIYaCCE=; b=sA9Xt85uUHdIvcYk8+MHWwdvoZwMuonGdfRhSbizXNjuDXvZwCF1DN8OQebL1I2zbm my/8AdoZPuzuMMdkmrgoO/8wXHGhwq+/DqK6SB4bVU4D6/Un3Myq9JkvSAuhENDPxQnZ Nb2fE/SDfzF6skAC9oNknyodtdyHwpI1ea7Y2eGXdam9O7eOn298tBT4S7W9PF22JzJd fkGqcaFE7rsZH54IqwA17zKD8cKseD+EB5k6eNAJjVwfHt4y+Vu1DUS0IqQnpmz8C/bn HqHW4WLIoCbnEfdD47/VWU9USldTjBRBw9HTIeSvRc7enqf19lrkPqdItVXvebUA7WOU Cnpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WdDp0lZv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si17548473oih.0.2020.01.20.01.00.05; Mon, 20 Jan 2020 01:00:16 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WdDp0lZv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727580AbgATI6P (ORCPT + 99 others); Mon, 20 Jan 2020 03:58:15 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37970 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbgATI6O (ORCPT ); Mon, 20 Jan 2020 03:58:14 -0500 Received: by mail-pg1-f195.google.com with SMTP id a33so15226963pgm.5 for ; Mon, 20 Jan 2020 00:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OtvuAZ/43/mZHHfizo8i6GGUaKzklYrgQcNWjIYaCCE=; b=WdDp0lZvPJmeAzRMpIwzwDhesFmt4i0sEFxsoWiXOtYFS56QGmK9RMbCK6kw8m7QEI 0X5HiIFpbovQKTm2dPFyoK+0BD8h+9nyX/EFDXoRsjNg9SiNa1Dw9kMgtS9ic0wJ/tEG oZuRKII7pM05FfYMOJ3FqF18EyzDEVz6sDyEGT2vwoMuUIYkc04jldFVMxGXrGzXmA+k qj0YNEJsKBVQNQVF/I6qffKSeeh1cr9HqY0z+JZtXKYILrthO4WKzF5wlkNwEJgwKAte f11oQtwy1F8rNTly7RHk8geriY8aPkf0JWTAO66sju9daX5QTYNgOspqFFcF7ixy3mPQ jYCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OtvuAZ/43/mZHHfizo8i6GGUaKzklYrgQcNWjIYaCCE=; b=cfY23+/afDzfrYh6pVOTUP9COfUePJxK/6SF19rZQZIzX+2n/IMs03QVWnqRamRsoL sjMFvtKL1jlsucdyDw1MLwyq9pSihz60YNiiFuvHDFowlgmDRqkpr6/8JXyJiH9D+Wa4 08WAYOBh6EN47+h6BgBwW6Qlq/2s54VzcTCrubri+Mr4A7GKDNI+YZJ8mU1913Up8kM/ mFRHC+wy5qvIU3iYqpr/pmy/jk3BVFE/oC5HemiHFHoV40s+8Dfks2UUjPcEVoJ0abND 97+mbWT+ftYRb7h88d3dptY3EPfJmkdIJ/CjJgEbQb37a+YGT3WVy90BHYkvDbfyizwR TXIA== X-Gm-Message-State: APjAAAVuQ4fn5BSShCL14YF9+DdnwFofWHAyZ1gYttQXGuLYzEDx0Q5p i4SvQrh/NK9KRp9uxYA+LjHHntDtwHePAeFqRQs= X-Received: by 2002:a63:220b:: with SMTP id i11mr58192051pgi.50.1579510693988; Mon, 20 Jan 2020 00:58:13 -0800 (PST) MIME-Version: 1.0 References: <20200117125834.14552-1-sergey.dyasli@citrix.com> <20200117125834.14552-5-sergey.dyasli@citrix.com> In-Reply-To: <20200117125834.14552-5-sergey.dyasli@citrix.com> From: Paul Durrant Date: Mon, 20 Jan 2020 08:58:02 +0000 Message-ID: Subject: Re: [PATCH v2 4/4] xen/netback: fix grant copy across page boundary To: Sergey Dyasli Cc: xen-devel@lists.xen.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , George Dunlap , Ross Lagerwall , Andrew Morton , Wei Liu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Jan 2020 at 12:59, Sergey Dyasli wrote: > > From: Ross Lagerwall > > When KASAN (or SLUB_DEBUG) is turned on, there is a higher chance that > non-power-of-two allocations are not aligned to the next power of 2 of > the size. Therefore, handle grant copies that cross page boundaries. > > Signed-off-by: Ross Lagerwall > Signed-off-by: Sergey Dyasli > --- > v1 --> v2: > - Use sizeof_field(struct sk_buff, cb)) instead of magic number 48 > - Slightly update commit message > > RFC --> v1: > - Added BUILD_BUG_ON to the netback patch > - xenvif_idx_release() now located outside the loop > > CC: Wei Liu > CC: Paul Durrant Acked-by: Paul Durrant