Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1263310pxu; Wed, 6 Jan 2021 17:52:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJymIlB53NuHE/UFH0ZQ1AkoqZy/iuEpq9n3sGT0zlxwSfvT/BPZIrL5FJnd7O2vmNMFUcYu X-Received: by 2002:a17:907:111c:: with SMTP id qu28mr4630978ejb.540.1609984362358; Wed, 06 Jan 2021 17:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609984362; cv=none; d=google.com; s=arc-20160816; b=gvHxaswVsXnovQC2U17APGZugmbz4YQ9yIRYPt9XRfZHa1h4bZs+xno4WM1P7lii6N TTyYsSGM6qoPDMWhsgQNmr/MJk817kthiIL6v8wYQrwDF2gx1ARyucPEAmxuM7VnMamn fTo7owmnzq201F/auFQvNT4djV4KFDDhOU2UtzB2RCovWdhO5KAnwpIsoxN6Zc2PGkY8 dmdYkq5pFlVz4NnXZyUPUsiL4t3EoEXXS98obzZLmjzWccvx6zU+MIPO/gx/dKhVtLmB y+x41hLlT55xL2Vqi8KIiqt5/4iyNliAqIYk+FowuLRbyYm2Wwy3DRE2GXUKsDbI1XGr K4TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9PQbKL2zXtZ7XSMrrJqPVNNHmKi9o3f5wMCz/+kU5bc=; b=b8S28BRYWLUOv8o3D0OZNJODscUbVHA19+zBEPuaxUdI3kbKghKgqWN8kCM9cN7fNh yIfIh5ryAtT50HGYSTrv8gyQLP9ZeO4i6MSnv3bdpYR2NDGp70tNL4al+fbD9fFUtnXK l5dhq3nwwGoQIkmE++RBCgbnAnPAGlg7WS5Mh3zNMfoziVffCm4ZBnwPZttmlLV1+c2H RIF42J47qDMemf3BdQwlI8tTu7IDf0StT4k8v5/PB+mTqmE2jRWLfzrCmbwbmUeyZ4CR eaSjwmO6+m71KrEMTGiSWJ2ktEyi6H2yNIdkL10F93iUzEmcVY3E83FqyPeTrx8QeS7s Pyjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hGbJmoFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si1575525eju.603.2021.01.06.17.52.03; Wed, 06 Jan 2021 17:52:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hGbJmoFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbhAGBuA (ORCPT + 99 others); Wed, 6 Jan 2021 20:50:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:34840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbhAGBuA (ORCPT ); Wed, 6 Jan 2021 20:50:00 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B30CF22EBF; Thu, 7 Jan 2021 01:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609984159; bh=doqZnSsLCdDqGPlvrZj/h0iAnNN1drlPUlLMSBzsonk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hGbJmoFDZMv+INHH05XMsJw9v6I3OfRL2/dXi+RTnL+VwKu5wLcV6VxSD0ikLT8Y2 Z52dYK3l4pf5142GRL4W7Rt8RrDRp2nY2JUY5cdNVuFgwGDqT/NsTErCN5j58Ra36k 1daBb1Iz7ZEwkqcrvats/lQkKF65NJNfEutcikPJqu4an2fOrpe8z+3nhkHzRJDH0T JFjtMTHTfDqSFVJtl67HhhXVG/zVX2UXdAi+NWppphyJxnpBeHBp4jJ1ApXvewKSo7 l4ZHXInUhEbXuYLUr1WGmVhw/9sra2XwPIfRxGOqUBjW+lQTciJZzvNBABYKJJ+FCn fFQlGzH2sJ6Hw== Date: Wed, 6 Jan 2021 17:49:17 -0800 From: Jakub Kicinski To: Linus Torvalds Cc: Steven Rostedt , Willem de Bruijn , David Miller , Jonathan Lemon , Thomas Gleixner , LKML , "the arch/x86 maintainers" , Christoph Hellwig , Matthew Wilcox , Daniel Vetter , Andrew Morton , Linux-MM , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Netdev Subject: Re: [BUG] from x86: Support kmap_local() forced debugging Message-ID: <20210106174917.3f8ad0d8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20201118194838.753436396@linutronix.de> <20201118204007.169209557@linutronix.de> <20210106180132.41dc249d@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Jan 2021 17:03:48 -0800 Linus Torvalds wrote: > I wonder whether there is other code that "knows" about kmap() only > affecting PageHighmem() pages thing that is no longer true. > > Looking at some other code, skb_gro_reset_offset() looks suspiciously > like it also thinks highmem pages are special. > > Adding the networking people involved in this area to the cc too. Thanks for the detailed analysis! skb_gro_reset_offset() checks if kernel can read data in the fragments directly as an optimization, in case the entire header is in a fragment. IIUC DEBUG_KMAP_LOCAL_FORCE_MAP only affects the mappings from explicit kmap calls, which GRO won't make - it will fall back to pulling the header out of the fragment and end up in skb_copy_bits(), i.e. the loop you fixed. So GRO should be good. I think..