Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp46644pxu; Wed, 6 Jan 2021 20:50:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbR4yR1yAUibsgoI+Qi0oAgB07MzMMukbZwe3R0UoqmQj6UvBtiHyfsKQDu4ohGHAZaCQ0 X-Received: by 2002:a05:6402:513:: with SMTP id m19mr300392edv.244.1609995012321; Wed, 06 Jan 2021 20:50:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609995012; cv=none; d=google.com; s=arc-20160816; b=u8505FzQVhlCHgbl1K/Q5l4C3m4EQfdoKkpm0LG89vCQh8FWOVs/iVVgb8qZ9DbOY/ g6Oxo2hsNo/V/poh3Ac9vKF5I9mewP+olQOai+1xzMxmTYGiO/bODZaQRdvZfLAV1WBN I3XWrIvm9+72cf0uauiNr9mFRDtesHFTMvvmvm6m4xawMD2TsUM8c9QHwihrl+VZ6ubU X8AgttQm0BE+NUsAONeqePXV3+cd658tdSwu2M1/+2mpI9aV4frrcFwlcyzzPtTdc1Fv 3j7c08pTfqSfYJKWjZiNXAxwHd8lC1NSR/dijtPfMxDt9YGpwXqo8xWj0LvNbOExsxPX B8pQ== 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=0FqBU0DzyxHE7rFaChTOl0+T3ooasosngTw/QRkuqug=; b=kI3cvS5D3oCAFrmo98zYYF0mKBcPHOTaguafZZGimKQSmvOF+wapbadVWTdIcqr4pG c6X9OKIjR2/oFoFKGFWdHDK1v2uVk7zfcTknHo9F4+2J7jShc0mx4ANklaL2zWxSJFaF NanQUZ8uZqqrNvDjzbDwqoOlc+HAhooAz4KtHjXI3LvYRZ68pNpswbGFtOpB0ebyn+WR 1VhGB1G4QDYGiO59l5BSSL5XwuGtM5fRY1Oun7awpCAl3/KteNgzF0EaWwiL23v5lfmS IVtVIQDKUXjLZIRvp8KFEfREH90Qp2tv+u427kvwyq/6x2YsAtJGXhQaoSD/HQWOzcS4 YWEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CZXxilFU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si1273965ejg.99.2021.01.06.20.49.49; Wed, 06 Jan 2021 20:50:12 -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=@google.com header.s=20161025 header.b=CZXxilFU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727446AbhAGEqN (ORCPT + 99 others); Wed, 6 Jan 2021 23:46:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727432AbhAGEqN (ORCPT ); Wed, 6 Jan 2021 23:46:13 -0500 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83112C0612F1 for ; Wed, 6 Jan 2021 20:45:32 -0800 (PST) Received: by mail-ua1-x933.google.com with SMTP id 17so1873253uaq.4 for ; Wed, 06 Jan 2021 20:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0FqBU0DzyxHE7rFaChTOl0+T3ooasosngTw/QRkuqug=; b=CZXxilFUsoVBDX44Kjfrzt9xXAty5ZhWzDyCfu4kVQ1Qo7a3UIOFlzJNPFs95RNjS0 ZN10TTyBRYb1pGd42ZVV5Ye/gKqpiI1F1/ZYRe4zpZCRwURUzeK/vVrMEj3gTkBcL6UG X8k18HXjmGb6OQ8yhG0ja6Jihr8cO+X/QbbJ0GHHnz01kf020ABkEMGfVWK4uYwWeqg9 S7jayEzgXB0rMOb4Zp1b+MDVvEVnFQSS6EWBjOqwPcp3GGDOxvZ2lVleaeKv0/UwwZSs tNS0H6biAIo1Z8ias28x1iHdU4MjG9lBmQ6jUuAqTA38xOKplbSbO4nFVyA9eamm66or hE7Q== 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=0FqBU0DzyxHE7rFaChTOl0+T3ooasosngTw/QRkuqug=; b=oOVhI+Dq6ZY3Z8m9T4DlfOl9frURwXRwRJV5DgBiIk1TjEfoT6XDOzfg8F4OVal1fU Ngcik/+vXo/iOsCLsHpFxLeEgs5TgRerOp/JFh9lx9UjMHZ4zViGJt2Q51N8IeJndPK3 Pq4kAOLbc2gxsTKKmiRCEUn8zjprAHxkIvXpfKBMKTblijslGJLK2R5Oiwl8fSLOMwPT 0zz9ZDSZ7FTo5TrTqwZ6BI2cI96s9/+Bo3c0b1HCY0jsJpFgqu3QnpdydP2MyJgaBHAO PwIDGFzIaIhOShSM1nMkhqjFiuh68n7B2kMfDbpz9ug9OOR5uGurrq5zEM7o8NH2eqUS gxhQ== X-Gm-Message-State: AOAM533T4RxEREkwmM+vg/7i3qoL31earJIoAkIHwIBxS9FF5hhslbLN SoIWLwHTUrW4jnL+dPqKC++nEhmm8NozC8GnJ9We8w== X-Received: by 2002:ab0:7386:: with SMTP id l6mr6184246uap.141.1609994731526; Wed, 06 Jan 2021 20:45:31 -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: Willem de Bruijn Date: Wed, 6 Jan 2021 23:44:54 -0500 Message-ID: Subject: Re: [BUG] from x86: Support kmap_local() forced debugging To: Jakub Kicinski Cc: Linus Torvalds , 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 9:11 PM Willem de Bruijn wrote: > > On Wed, Jan 6, 2021 at 8:49 PM Jakub Kicinski wrote: > > > > 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. 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.