Message ID | 20240809-kasan-tsbrcu-v8-0-aef4593f9532@google.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53A3DC3DA4A for <linux-mm@archiver.kernel.org>; Fri, 9 Aug 2024 15:37:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DDDA86B0089; Fri, 9 Aug 2024 11:37:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D66146B008C; Fri, 9 Aug 2024 11:37:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C2E0B6B0092; Fri, 9 Aug 2024 11:37:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id A4F9B6B0089 for <linux-mm@kvack.org>; Fri, 9 Aug 2024 11:37:09 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 56F061A11CD for <linux-mm@kvack.org>; Fri, 9 Aug 2024 15:37:09 +0000 (UTC) X-FDA: 82433110578.05.38F2D3A Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by imf26.hostedemail.com (Postfix) with ESMTP id 4E42C140012 for <linux-mm@kvack.org>; Fri, 9 Aug 2024 15:37:07 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ok+Y2eao; spf=pass (imf26.hostedemail.com: domain of jannh@google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=jannh@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1723217794; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=NwDMdzsGShHJ6e9jLnQFlgFGGOswIylgETD5oLDX1VI=; b=wHnmKRT5Tbhu9fdWQ45ETZZ/QFsiQaizVB34bVMPNyau8Q/Z0vvmTnWdYPwu2Y84J1Zpzg hdUTQRqjdrkTxpShTOpTwWQ/wOKUw2IXZG8/poopqQ9/9PlNvIvdiAanskg/72qNU3Hu9Q HkmdghlaO6vSzJXdtENj287p9o+xYAA= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=ok+Y2eao; spf=pass (imf26.hostedemail.com: domain of jannh@google.com designates 209.85.128.43 as permitted sender) smtp.mailfrom=jannh@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1723217794; a=rsa-sha256; cv=none; b=OG/7dKBaz4Que5KH6/VTbv8kV0KX1gdqmMC4obUZXIhdIJpjLnfiYHbC9sIbIyrVzoswqC TalC6jXhEX94vVLFH2lZ3j7ojCAObV6O7Mi4KQ7PMXEiXA9etI1p0zJ1uWyPv5iyhqZRtA Esosawmo0DniOZRJGd+S0IZP7wJAzK0= Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-427fc9834deso65745e9.0 for <linux-mm@kvack.org>; Fri, 09 Aug 2024 08:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1723217826; x=1723822626; darn=kvack.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=NwDMdzsGShHJ6e9jLnQFlgFGGOswIylgETD5oLDX1VI=; b=ok+Y2eaovw/ygs7wgqTZEZsGRlaaqRmZpcggN0/KiZuZW4aYYZNyOAcdXaW35ASLrD nkxdMCeI9a/kluU3i0rBmCKg//Cd2UDClGGvra9YsQ2ljEFfm9IYKmeD5hju9vLJGagw Y/s9/GlyKeQsb4+Cl95uZ1bXomwfRTzLQLajRf68o5FSYL0ob7xiCZ+66s9HNFh6UrgM qvhEP55TLK4ZzwQoymHPFdqLHrDdoQHjqBLGew+hLLBIm3jh59EGKOggKxgnsxssTgpT S45xVwyBMaZyxkpnwxBIafaoKDOqd2PqtRZIECih9e+8O0oJxJeZ8R/LXdwWQ2rdn5hS omvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723217826; x=1723822626; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NwDMdzsGShHJ6e9jLnQFlgFGGOswIylgETD5oLDX1VI=; b=cK63krfcmwPdL7OkONN2Xp+vJRvfSzprJvgv4O7gLtANXcdTe2DGDGK3tyzolCLBx/ dOE0xnHuDy2bA3TatRJaN+OyIeFxbZ6CbTmHhNkm+JCrev46rkOyUjWVbROb6PQ9GSne vUnG6qYXYPYdzGTPOROJoty3MHMqm2PVjGK4/xDvYKfzHG1Pz7byjj5WLp7r5qyh6+jA asuurG5oYD9XThNsDYwRIgSTKH++MyD0Bn4eo1IpLdVXeY0CJGharGj1TgIQP+JHNja3 Wax/c4PgK/Umpbybsw0dqJ0yv6bXLGbAyHgfeph4LSuK4yRIm1+SAP/nLWYCMg5tWHgl +pUQ== X-Forwarded-Encrypted: i=1; AJvYcCWpf0xRI69xvGY8C+4c8XW/pz3ioM44i4kG0nUY2AQGiKa0zt3F3XIpYolbao+IOeZlh1w1AdVHwdWh0grSLcSQ4HY= X-Gm-Message-State: AOJu0YyNpNTBtgaIFpC/S6uwlXD0ABUUwOjQ/xcjh1czFdHK5BZZGc26 VSjag7FIjF+m4KFb2M57gcQmaKHy3P7i/MkYT3jP/3KZtPCdhD6w+w6gzZtnnA== X-Google-Smtp-Source: AGHT+IF9SW1oRTPIzo1yEqiGOy+OXB/pUCTzDVM0WFzb9TNHbINjPNCzCPEg7+bT1Mcve9Kc21c2Fg== X-Received: by 2002:a05:600c:1f0a:b0:426:68ce:c97a with SMTP id 5b1f17b1804b1-429c23553ecmr1336575e9.7.1723217824918; Fri, 09 Aug 2024 08:37:04 -0700 (PDT) Received: from localhost ([2a00:79e0:9d:4:1cbc:ea05:2b3e:79e6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36d27156c8asm5607035f8f.24.2024.08.09.08.37.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 08:37:04 -0700 (PDT) From: Jann Horn <jannh@google.com> Subject: [PATCH v8 0/2] allow KASAN to detect UAF in SLAB_TYPESAFE_BY_RCU slabs Date: Fri, 09 Aug 2024 17:36:54 +0200 Message-Id: <20240809-kasan-tsbrcu-v8-0-aef4593f9532@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAJY3tmYC/2XOTU7DMBCG4atUXmM0/p+w4h6IhTOxUwuIUVwiU JW741RCpM7ys/S84ysrYU6hsKfTlc1hSSXlqQ58ODE6+2kMPA11MwlSg5OKv/niJ34p/UxfvHf C+A5EdM6ySj7nENP3LffyWvc5lUuef271RW6vfyF9H1okB65NxA7Bam3xecx5fA+PlD/YVlrUX ptGq6qNoE5GjEKAOGi9112j9aZdIDQhIpA9aLPTChpttp/joKgfIhGZg7b/GkE22lZtYUAbvEM tjrfdXmOjXdUwgOmAjPbhXq/r+guCXmJx3wEAAA== To: Andrey Ryabinin <ryabinin.a.a@gmail.com>, Alexander Potapenko <glider@google.com>, Andrey Konovalov <andreyknvl@gmail.com>, Dmitry Vyukov <dvyukov@google.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Andrew Morton <akpm@linux-foundation.org>, Christoph Lameter <cl@linux.com>, Pekka Enberg <penberg@kernel.org>, David Rientjes <rientjes@google.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Vlastimil Babka <vbabka@suse.cz>, Roman Gushchin <roman.gushchin@linux.dev>, Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Marco Elver <elver@google.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, David Sterba <dsterba@suse.cz>, Jann Horn <jannh@google.com>, syzbot+263726e59eab6b442723@syzkaller.appspotmail.com X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1723217820; l=7406; i=jannh@google.com; s=20240730; h=from:subject:message-id; bh=uFiBYlbkxdigQenIMp5nAwwqrh4S/9K2gPEQtQ2EsiI=; b=W+3X6Fz2LJ4n6j7/pAhLNqx5v9SnrjJHYeGuApT6jH3QQbmWECsCaYqYbZQwG0dttTGpFq8fk PYkNcnijIsKCEYeR9ykvHN/3MJdvRUKIXxr+cQnX/95ui/fyc4cIhAg X-Developer-Key: i=jannh@google.com; a=ed25519; pk=AljNtGOzXeF6khBXDJVVvwSEkVDGnnZZYqfWhP1V+C8= X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 4E42C140012 X-Stat-Signature: gcc6c7n9dbzcfry49hxq5ie7iu8ex6g7 X-HE-Tag: 1723217827-378481 X-HE-Meta: U2FsdGVkX18maowH2f8w4nGKGMFMZ+ZLfHpnwkx9Z5CUOGuQ2BHe5NyZO8WNSxtKcIg7jKqAB3PLmqt7+vUYsk1lt298O4WE1eX1+FBQPaaKXq01X6WWcMmMiiJjjye2T+jBFkLKVWE4lpIBrHiqDrp9IQKiDBuppOfTMm0uK1O6xdOLu5k1HGqzY10/ap/WYTrKU1pCsuTFuAHGh3t+DqNSjCjtNAh2KpzzZTSK1mB7JuU7haoSatfXim18Gg+z5IkUM8XRxdpUAVyQ3SfFbx635J9yoG/zh9QQ1/rVR4AWwo5DK88OK86eFIFh03X43jQEBZx8tVs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zuygrm+fYz+uXQ/mRb1XxhLyT+/qwG6gFvUYR5bDZkMPprqRjUfbCtVbSPair3OrVp8NP530XjtL/1qkD6bqFqQwx7YpQ== 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
allow KASAN to detect UAF in SLAB_TYPESAFE_BY_RCU slabs
|
expand
|
On Fri, Aug 09, 2024 at 05:36:54PM +0200, Jann Horn wrote: > Changes in v8: > - in patch 2/2: > - move rcu_barrier() out of locked region (vbabka) > - rearrange code in slab_free_after_rcu_debug (vbabka) > - Link to v7: https://lore.kernel.org/r/20240808-kasan-tsbrcu-v7-0-0d0590c54ae6@google.com > > Changes in v7: > - in patch 2/2: > - clarify kconfig comment (Marco) > - fix memory leak (vbabka and dsterba) FWIW, I've retested v7 and got no OOM (caused by the leak), on KASAN, KFENCE and other debugging options enabled.