Message ID | CAKYffwpAAgD+a+0kebid43tpyS6L+8o=4hBbDvhfgaoV_gze1g@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C9646028F for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 1 Jun 2018 23:34:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FA332899D for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 1 Jun 2018 23:34:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31506289BE; Fri, 1 Jun 2018 23:34:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HTML_MESSAGE, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28ECA2899D for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 1 Jun 2018 23:34:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 64F1A6B0005; Fri, 1 Jun 2018 19:34:06 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 5FEDE6B0006; Fri, 1 Jun 2018 19:34:06 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4EEB76B0007; Fri, 1 Jun 2018 19:34:06 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id D18816B0005 for <linux-mm@kvack.org>; Fri, 1 Jun 2018 19:34:05 -0400 (EDT) Received: by mail-wr0-f199.google.com with SMTP id k27-v6so19312526wre.23 for <linux-mm@kvack.org>; Fri, 01 Jun 2018 16:34:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:mime-version:in-reply-to :references:from:date:message-id:subject:to:cc; bh=YgFDpYC5SnGVZx8GPIM1mc1l1LdYIPlcbSsNAKLrw5o=; b=UxdzRGxSqhH7DFXcC6gUvHMP6jbLVsChx2Tv25Qdew835ezxLC9vnoEdxZEjO1nVpM uXkBT+uwseNaUXdx6awMDyGrKKQ9tV9FwH/vJWQ1a98X1sQRLG058UxOn1yvYzpsBiLL yACJNFk/WhValwVjcvXLYSp/b0Bkl/pMNmVFMsACEAP1hYEemIExlO3a3CK+226hSZaT HNQAOArsDI7WtI8d64dA6Sp8WAV+fNFokuOL6wKL8SRvn2UBM5Cecv9TegxYFDW62pxC 9H+mAYO8wksED3eYs35ZR/5olIYPZ5ZFs3Wj1mrKH6FafvlnEc0/IvxzYe/JU+EdyFUx x4TA== X-Gm-Message-State: APt69E2Gs/7aIE4zkmOQOT/yFYyYc3gi1Cuk6om6dXUeEgzm5tb7tbuD VJFFpm7UvRr29sLNM7dR+ZmJTv5R4wZI4+AMRRRKmpb0mwGAa1AaL0NueHGnxhgAXm4FmF6AgMJ nfTseJccCjO9wN9VBXIVxQloDfJOUzW7u0mefE04F1rFJZQd14CpjyrYXnhyqDX9TVZfPaBjLR2 LZw2ONCjbZs423fDgHdTujSgYZ8AXFH6w1ah1UE4/WQ/3+UZJupQF1TPgxdQ0ppqhUvepVAaIYN ouEUbtO0nNTTCx54m0QyF34fVqh/mfuy67UcCICgHtjZpKOj7zsy+nf5X3JRR1NRNKqbg+f1aDr K2d2C6DUm+ajkiqvSTHflLSJZgKjtHUYO56kSgXswns/m0jvfYZPoc3lTBNvgwEldOP2iZrjegD x X-Received: by 2002:a1c:afc3:: with SMTP id y186-v6mr3599924wme.87.1527896045049; Fri, 01 Jun 2018 16:34:05 -0700 (PDT) X-Received: by 2002:a1c:afc3:: with SMTP id y186-v6mr3599893wme.87.1527896043693; Fri, 01 Jun 2018 16:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527896043; cv=none; d=google.com; s=arc-20160816; b=Qz8YENL8Frz7ydkhh/SC76hRmo7QbUoOVCe4fJIKh4REOl+dRzNoMnTp5+g1FQX5xf 4lhaP6n+XZZrHddpA6Zo9Xt+9eStaKEq7o8lmgvQKr8JP+uRPlO9Q66bqSQb7rSW1Fwa I1ecTW4eMlhe7y9YAFr6mYyp/epKo9xBwBW/RyY4mawDiNZhblSFoDqg6FXNfnV4rlMp 99db2v4o1Dheod56P9iB4ROYJlVlVO2HhlHCWf5aloqZtFaa8YARtAvuCLeU58pA2BGe 2+2qKsKpEI9gw6fB3re3AOxOTWCocCmDey6Z1i079yuGTgvAO4zD47wkVMbW/AevBOL+ DwUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:dkim-signature:arc-authentication-results; bh=YgFDpYC5SnGVZx8GPIM1mc1l1LdYIPlcbSsNAKLrw5o=; b=U6E/kErxLynBfp9wx3JVdBnSnEHTys1Mhki90Fjq1Ld9C+sTkhRzdKPbuH5GkQS+bi EfvnQLRe3aDoIL5Q6WW04nXwlirr8rmpGsCqK5A+f4BR/amZxHOyKWpJwzaQIpUua6sa +c1zAGjEh/XDQ/1dQ2EDMYQfDoyPBEr3bpF+6ZzP5Nq5d73NQ6qX21uohr9++C3wCMXE ZUX6ze3gMh/eF+fsSq49ZnJ9bkpLhFERKDVmA9hv8NBJfBxVLYFsCc+ybaZj6z4msAZ+ sfA4TVMqq1ICWtWaXu+f4FIagQHTySFbW4+rGczPZDyJHCwzivQHJJ8Ml7P0TwWAqit+ GK3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightbitslabs.com header.s=google header.b=zHMSMNqw; spf=pass (google.com: domain of anton@lightbitslabs.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=anton@lightbitslabs.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n128-v6sor797098wma.46.2018.06.01.16.34.03 for <linux-mm@kvack.org> (Google Transport Security); Fri, 01 Jun 2018 16:34:03 -0700 (PDT) Received-SPF: pass (google.com: domain of anton@lightbitslabs.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@lightbitslabs.com header.s=google header.b=zHMSMNqw; spf=pass (google.com: domain of anton@lightbitslabs.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=anton@lightbitslabs.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightbitslabs.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YgFDpYC5SnGVZx8GPIM1mc1l1LdYIPlcbSsNAKLrw5o=; b=zHMSMNqwtt+xGL6+o7+AHlutBdXNfjJ1kRd9rFXKIuJggqMXRKiFFwqLO+m2UGqzTn yGgXOtA+q6YyKkSJXTDDFWwZAV27/7hL/XBCxkK21yJFIiypPgSrcFkzhoWX85JleD0H 8Fvv4hFdbp8lOFmDPgcKw4bCQ9LOj71TRenj8= X-Google-Smtp-Source: ADUXVKKDQv9Gw52Z7NgCghfr53HEOMkP8Hs6sE1QRXwskIkL7/+VkQyvNcjOJSy5Q+QkKZeLy9wG5/HcyJDkLurAcnw= X-Received: by 2002:a1c:80e:: with SMTP id 14-v6mr4112463wmi.9.1527896043117; Fri, 01 Jun 2018 16:34:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:815:0:0:0:0:0 with HTTP; Fri, 1 Jun 2018 16:34:01 -0700 (PDT) In-Reply-To: <CAGXu5jLvN5bmakZ3aDu4TRB9+_DYVaCX2LTLtKvsqgYpjMaNsA@mail.gmail.com> References: <CAKYffwqAXWUhdmU7t+OzK1A2oODS+WsfMKJZyWVTwxzR2QbHbw@mail.gmail.com> <55be03eb-3d0d-d43d-b0a4-669341e6d9ab@redhat.com> <CAGXu5jKYsS2jnRcb9RhFwvB-FLdDhVyAf+=CZ0WFB9UwPdefpw@mail.gmail.com> <20180601205837.GB29651@bombadil.infradead.org> <CAGXu5jLvN5bmakZ3aDu4TRB9+_DYVaCX2LTLtKvsqgYpjMaNsA@mail.gmail.com> From: Anton Eidelman <anton@lightbitslabs.com> Date: Fri, 1 Jun 2018 16:34:01 -0700 Message-ID: <CAKYffwpAAgD+a+0kebid43tpyS6L+8o=4hBbDvhfgaoV_gze1g@mail.gmail.com> Subject: Re: HARDENED_USERCOPY will BUG on multiple slub objects coalesced into an sk_buff fragment To: Kees Cook <keescook@chromium.org> Cc: Matthew Wilcox <willy@infradead.org>, Laura Abbott <labbott@redhat.com>, Linux-MM <linux-mm@kvack.org>, linux-hardened@lists.openwall.com Content-Type: multipart/alternative; boundary="000000000000e771d7056d9d044a" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index a098d95..7cd744c 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -40,6 +40,7 @@ #include <linux/in6.h> #include <linux/if_packet.h> #include <net/flow.h> +#include <linux/slub_def.h> /* The interface for checksum offload between the stack and networking drivers