Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp558540pxu; Thu, 7 Jan 2021 11:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuo7zFkjlN5PmqrBjjTawwj4y1e/lBqJQoQru0BXN15rs+NO1XvEc0SmfqfynP/vQaO4/S X-Received: by 2002:a50:b905:: with SMTP id m5mr2755833ede.292.1610048985037; Thu, 07 Jan 2021 11:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610048985; cv=none; d=google.com; s=arc-20160816; b=TLzskl+o6/7wrsPqUhRv7NR3Qn6k74JWy8M5sYQJjGHQ8JHPNZbDIEQX/FfQy92PdL 61lDUhwnJHgFOVIMJgfi8jJ5pGWZvmeelez9pjcWINAJQpxFdvbtgC58FMrYhuaX9S7z QfTYKFc97jw1pN8ZohnfmsDP6GfhsyeVUVs3fi5gZk6+BhTnTioVRfgHC9GPfOEnLPoD aOO/SIbaM6xYi7BwBOFLJ+mKtP1flf51BhYu2YEKotkrKg4fOMYBUueNijER7tush2+a IWN0jvHiSXBQdxzK6r3dooalciGGJt+sS0B32BJfBfCtG5gcha2w3gyhUQviCfZZsjVr fvHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8ruY7+Hc6DwjfUtsIGmEMt3x9fL7QwNpww7Qmh8m5ao=; b=rOLrIGuO1z88uHLKNVnWuc28Weo2gU3fg1MEFUHWvViLrrRaQj9pTqCFZAmNTJ6myA XF0u+gFT3r2EkqRKvJP46eOUKTXv1QuAEt6rum4br+2YGua3ryp/irvY9Eq60fTgUbXA V9AVmtRwmYUzJZuYEJqgN2m4gGNCBTxde8alEVlDSfon9FYAU5jjL1G9JPrTuxxNOg8K a3nLr1ER+TbX6/+UTDzBtx44fcmssMHHiX8AvoeQ2CMfy37v3mQBJeBxnpamw3NvFtLM tee3tKNa/uxyiC7ENyjRGwPeGk7dnQieqZUMaJ3mh22SK1D0gdN3KSsZtzvMSerzzHkO 5+aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FqnqVnVR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si2639517ejx.183.2021.01.07.11.49.21; Thu, 07 Jan 2021 11:49:45 -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=@linux-foundation.org header.s=google header.b=FqnqVnVR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729352AbhAGTsD (ORCPT + 99 others); Thu, 7 Jan 2021 14:48:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729323AbhAGTsD (ORCPT ); Thu, 7 Jan 2021 14:48:03 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0668C0612F4 for ; Thu, 7 Jan 2021 11:47:22 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id l11so17493951lfg.0 for ; Thu, 07 Jan 2021 11:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8ruY7+Hc6DwjfUtsIGmEMt3x9fL7QwNpww7Qmh8m5ao=; b=FqnqVnVRhdZ06qPkVepbc2d6YqyFCx6doQkSftj/eLt2k4QnSPYtgEpD3IcxBsg6Sc 58CHR7Y5cSwWtGBBFbBHUOAu+DGUplKWy0JWSPQvWkeuwNRpNRO/Tp6sndPafmhBl9Wq iOWAlxJfkbmFP6NX+zwC7HF8T1R8D9wozuP5Y= 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=8ruY7+Hc6DwjfUtsIGmEMt3x9fL7QwNpww7Qmh8m5ao=; b=t9lc6IWUVusulgmGqyreFnr/+qKY44qmZI+Nai6IJG5csayYWbrq9Ob2RI8b2zIcqA bnvzVmc+7MjHpHEjUoBwOF+j77/x5e2mZHhythImm6OD9U8KNwyF/ZBZiFED2DY0KHuP eE8fvcWVm1QPVhAEX5ikkvCdBn262a5gyQ9nvynCegqVH7gCQm1H6CMw977P2MwGJvQT bFiJOTYoc5tGiOD7qdKb0a4MOVUKCzdOQxU7i58IC3KAY8UVKffLhCrtKIdVCm39mZ81 BrJHD9cQ9xjMAkRV8TFNRkWWAmly8XEfGGOBSpP3Elp68u7Sn85+URSopjxwIIx3AGo4 bZUw== X-Gm-Message-State: AOAM532/URNnNps3TRleyFLxkBrfprcQYQR3lBwWtrvMSdrUBtbGs/pI Lx4qfOmRDErpxNYdTDWYlrMuk5vP2P6EpA== X-Received: by 2002:a2e:97ce:: with SMTP id m14mr35471ljj.380.1610048840927; Thu, 07 Jan 2021 11:47:20 -0800 (PST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id p17sm1348915lfc.273.2021.01.07.11.47.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Jan 2021 11:47:19 -0800 (PST) Received: by mail-lf1-f46.google.com with SMTP id b26so17375882lff.9 for ; Thu, 07 Jan 2021 11:47:19 -0800 (PST) X-Received: by 2002:a2e:3211:: with SMTP id y17mr27794ljy.61.1610048838877; Thu, 07 Jan 2021 11:47:18 -0800 (PST) MIME-Version: 1.0 References: <20201118194838.753436396@linutronix.de> <20201118204007.169209557@linutronix.de> <20210106180132.41dc249d@gandalf.local.home> <20210106174917.3f8ad0d8@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: From: Linus Torvalds Date: Thu, 7 Jan 2021 11:47:02 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [BUG] from x86: Support kmap_local() forced debugging To: Willem de Bruijn Cc: Jakub Kicinski , Steven Rostedt , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 6, 2021 at 8:45 PM Willem de Bruijn wrote: > > But there are three other kmap_atomic callers under net/ that do not > loop at all, so assume non-compound pages. In esp_output_head, > esp6_output_head and skb_seq_read. The first two directly use > skb_page_frag_refill, which can allocate compound (but not > __GFP_HIGHMEM) pages, and the third can be inserted with > netfilter xt_string in the path of tcp transmit skbs, which can also > have compound pages. I think that these could similarly access > data beyond the end of the kmap_atomic mapped page. I'll take > a closer look. Thanks. Note that I have flushed my random one-liner patch from my system, and expect to get a proper fix through the normal networking pulls. And _if_ the networking people feel that my one-liner was the proper fix, you can use it and add my sign-off if you want to, but it really was more of a "this is the quick ugly fix for testing" rather than anything else. Linus