Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp605497pxu; Thu, 7 Jan 2021 13:12:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUyr5Ne2LPdjtb2zhZ84+XemmamgxEQ5v8xXWMgbXOQIih93Fiu0rKqJqKW6Ot2iZwv8VM X-Received: by 2002:aa7:d1c2:: with SMTP id g2mr3140882edp.8.1610053924246; Thu, 07 Jan 2021 13:12:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610053924; cv=none; d=google.com; s=arc-20160816; b=CiNBCpX2O72CZIF4JPCcZMloEttN3gVU2ml5B64nTuzqFIitqbB3s/alR8hkqMZo5c uE+9XcQDvYZqLyiZcVKITZWp1yRYpUSzo87zpU9Vd7f1zcwQ9FE8sJKom7YvVJu0YOlb TLEeYZ7mNuVp7u8VBh9Z2SFJorp9KiYcmdAs9Fxd7wa2eB4UAi4SckKkycBKNa0Adv6k 9SNTe0m1jh4zuVHRp6EnLxN1nDt8ECGcMwz9OV10HqJ/tbObXxn1DX5HIs397mxdjzN0 YSIIRl5sLm3bDUSfPY4lqN+83Lc6TOO/LPaTm1h0o3oIK2vqVVoi3B+ZECYPxw4NhiV+ oMyQ== 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=9fYan1yzqxVguL0ZQY0BTwdyUMx5dFzjZBmr/vD5tRY=; b=nEC/p7nyrd7l2nVNLGmLPhPaZQnRfSbDBrmSFNnk0rlhA48lwOSk+FwEEVNgduZwIR J5W7/WkvAPTBNOwGr/xNQdb6lRzTUEgz0FxeDoZEAitz/2jnihsTgUfJ8l5dwbi72C9u KIuvu4J69tqOzekFc6dSbm2exYgQ1OnI2CJSiQWcXNtJPj5WA1XrYGpnKG2BA/1MjPoU Eh85rjNQHNe5L4+B7gyOzCEF1uaj0wJ901HUNtKeURqrFD6bmQTgLHj5lCuE1Lx2CrKf WK8RK9r4ZPS7jUsVTInoZZtPpM+v3GvgoWWyhQjR+RhN935h4YxBXP/FAGYrkkVNBbRV 9dWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="k7t5Q/9M"; 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 x91si2830651ede.370.2021.01.07.13.11.41; Thu, 07 Jan 2021 13:12:04 -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="k7t5Q/9M"; 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 S1727362AbhAGVJM (ORCPT + 99 others); Thu, 7 Jan 2021 16:09:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbhAGVJL (ORCPT ); Thu, 7 Jan 2021 16:09:11 -0500 Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 615C9C0612F9 for ; Thu, 7 Jan 2021 13:08:31 -0800 (PST) Received: by mail-ua1-x934.google.com with SMTP id y21so2746184uag.2 for ; Thu, 07 Jan 2021 13:08:31 -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=9fYan1yzqxVguL0ZQY0BTwdyUMx5dFzjZBmr/vD5tRY=; b=k7t5Q/9M+TUvwdmswWS/rvtjs9qDhmvTiyszvvNXDsiTTlK7iB6M75IDdY0nIKnm6o GYgVSYkz+jKHpbNAvuoI2PnlSbdVKN9N8tYY9oDVdPAJLz3Qh0r961/AZyx9ijfzjpgJ ukj0XTlvL+oBbgW9V7gFwDCroxhJAPHYplQxxdUck0GFKbevY5xd6LlUDYmLfrh2CZFG t9e7IoqPMQ1m2bAiehuDjT3IJJ/WVoT2VKCRUFvLh2ff4ikDY85hN1+fFyduNyKX2Lwq 1IADMWi+19HunLHNAHcaQpdX6aEEOEuWryDSKQhxLwPtwfBTH2uENWi3N2YKSrHla3YG w4Qw== 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=9fYan1yzqxVguL0ZQY0BTwdyUMx5dFzjZBmr/vD5tRY=; b=f+exncM21JJFyfbvFz7hkKNmPFsrxnAPKKqW9xtwDjTzFEI1qE8Vw5hanXcupJEQYY 8KvMHgjMr9cFUFM0w5cKc+dh882Vrc96d0p/3SUGZvo8Ae5YepuqJdjA3F5qspWp5HSn hpkqK0PPrGfyu4xbVA7Y4Qhz4ucuyEir9MOPIGSFzc1YKsmPKj67CiNjJTiOcLbMoKGr EkTaDdoVBXawHowhtLvXiYIzLlaOIPgyj9VZJE4n6wCKhagL434fo60BKi9SYuvZfMMW 2XSqz8MqzEUs/C4D2Q4UaaWScmveNK3qFzDuslr7r+uITYaQW2opCEWCAZfs+MIr+F5x 4vwA== X-Gm-Message-State: AOAM5326lL3QM6khwCmoSdrk2Wlz7TdztlbHm/m0aYzoq041Xij5liW7 zzPLu6fuofl3ZiTJIaBHInwfql1gD15R0sFyN1W7Vg== X-Received: by 2002:ab0:7386:: with SMTP id l6mr642880uap.141.1610053710484; Thu, 07 Jan 2021 13:08:30 -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> <20210107155256.7af2505e@gandalf.local.home> In-Reply-To: <20210107155256.7af2505e@gandalf.local.home> From: Willem de Bruijn Date: Thu, 7 Jan 2021 16:07:54 -0500 Message-ID: Subject: Re: [BUG] from x86: Support kmap_local() forced debugging To: Steven Rostedt Cc: Linus Torvalds , Jakub Kicinski , 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 Thu, Jan 7, 2021 at 3:53 PM Steven Rostedt wrote: > > On Thu, 7 Jan 2021 11:47:02 -0800 > Linus Torvalds wrote: > > > 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. I do think it is the proper fix as is. If no one else has comments, I can submit it through the net tree. It won't address the other issues that became apparent only as a result of this. I'm preparing separate patches for those. > Please add: > > Link: https://lore.kernel.org/linux-mm/20210106180132.41dc249d@gandalf.local.home/ > Reported-by: Steven Rostedt (VMware) > > And if you take Linus's patch, please add my: > > Tested-by: Steven Rostedt (VMware) > > and if you come up with another patch, please send it to me for testing. > > Thanks! Will do, thanks.