From patchwork Thu Dec 14 00:47:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 13492155 Return-Path: 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 25A3DC3A59D for ; Thu, 14 Dec 2023 00:48:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5D32E6B032B; Wed, 13 Dec 2023 19:48:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 503ED8D0085; Wed, 13 Dec 2023 19:48:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 15B928D0083; Wed, 13 Dec 2023 19:48:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id E7DEC8D0080 for ; Wed, 13 Dec 2023 19:48:03 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C001D160380 for ; Thu, 14 Dec 2023 00:48:03 +0000 (UTC) X-FDA: 81563586846.03.7BCEC84 Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) by imf26.hostedemail.com (Postfix) with ESMTP id 0E1C614000C for ; Thu, 14 Dec 2023 00:48:00 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=f+afQX0w; spf=pass (imf26.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.187 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702514882; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=cJEulgYn/h7q3QFVAp5zsWImEtvD0ben3q7crmppy9w=; b=cc6hHgRD8de2q1pN9NTiaYgseNb7jIH7FthveE00vp57dHJfQTm5S9N9xU7/IFA1QHd7se aRXJ+jHQcWM5vA/7yitt8iQY61HrbBtdPrRGNdCUPXs9DQxsx3+vuywL6vgE/jERKhDPga 7v3uv8y2Av5Ur4sDvm2YgKw+SYgwj+0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702514882; a=rsa-sha256; cv=none; b=lfB2Q1HrmNXsKE41WvN94uB4WIK/wvaZ4rq30vs1fkGx9NgoCeoXu/CzcQwZDrxSfeADoa GN5ovNZJD5+IMRsbyBLTeMOOSfjbn0fG6qWPu3JVL8y1bUH45OxuajQ5b2Rs/KmCsIZNyF tQ5EhWB12CiMBlpiDjVAVNZzE90qzn8= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=f+afQX0w; spf=pass (imf26.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.187 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1702514878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cJEulgYn/h7q3QFVAp5zsWImEtvD0ben3q7crmppy9w=; b=f+afQX0wFs1xoeMdRosudkjUDhhaUDWmxywT7rSErc7biX7YulrrtLhocNi1BOL/Dtrnmt oHmDRjCkjF3IQ8ZGEabXb1ZDHPfxmN+rJZ/4XBN+nx4LLVcfaAlp8nqZpsDTBT1othp+u3 F4f1YEnUQMpvcQ/su0nsiQsfnh5UXxc= From: andrey.konovalov@linux.dev To: Andrew Morton Cc: Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Tetsuo Handa , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH -v2 mm 0/4] lib/stackdepot, kasan: fixes for stack eviction series Date: Thu, 14 Dec 2023 01:47:50 +0100 Message-Id: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: 0E1C614000C X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: knwrqdf4ypznj6hs67e4m3j8x9mzpft5 X-HE-Tag: 1702514880-92326 X-HE-Meta: U2FsdGVkX1+MbWj3X4n38gO2IxvXme0a41w+U0ZsbrTBqBsIgB0oZuTWJl/t3qSmCDL6tWXV3X34NeSwCANjj+gn02CoZEKcnh45B1iK+5m/p5Ij21oQcBYwBRkLAHnb759uCxKkFIipbcZYv7CW5fIxzcUVc7cYP6pDz9Yme/sqjJtA61ZCGUEsKAMwCSEM85zR/X/izCEZTEOx1SXaNGQYlEFf0JSIX0f/eXOOroe4zsKMKCjAagSguap8BKmWLVANMh6MAMyJt0cd8v2y8yQ8FSB/AfD/sWa8ote950UFHyEW6vVTfXGCsc4N4g2i/+4xWn3tfb5VKBajrgYGo7fzb9oIvgB0c1b6u3RqGSozCAyPgAM6SJvZUHpONALad1FtgGI+GquVktY9AzQ3k79O6xjWj0jrmFG6t8X6ZrPmDTiYGScgzyCWc8MijCB1OK1ctfZg8I+j6bYaDCRyPrW2g8higkisjLH962u7M5/CWQ/n+QBBydWcx6fJCNbdNndmR8Fv6SsKUXY07bUIOHy9zyWY9RHv/zWqJr6homMr1b3oKKU4Gj23n3YcfbEj6c/P9mpqZVl6kJ3DXQe0lDTrb4/TDe4dMHfDEd3b9wiY9rt/BSTsqyLWyh+5CvWZVv4lZyBQDMe5VUDSlQI14vxOG45xpeeBLPehsUY8tv44d63C0kr+w+Qjk2ldWAvfXL20ASDN9bvc64huhILwTv1Kzsl7D+V91vTVWXsCya+7AMCqPb+AyT8CHBdrCqBs5KUgoQl2entCSpAeXeYqpcJmIpbiL9FRVKbc7yOGwUZDCBA3T4lTCZsUaP8Q6VkVBL6vxClpmbBSRRZ65QIk4kV8HI1FCYuxLC3b39UfwQzXS47M+XV2vWGzRS9Mu9sIM2dpZi2XzbWeEoNy5Zf5gnF7VJbkYXHbIX6w4gMV6Lri0PSCcqOKnb1P04Sd7wDBuA45BtGod3bWVFP3cNG cWvl4Csd 9nYAtYbzb9dCrV5HzVvHWa1YnArIbWToniJeRqoljsHuzhiC7jYPmXMcszlueJiP2lL+k 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: List-Subscribe: List-Unsubscribe: From: Andrey Konovalov A few fixes for the stack depot eviction series. Changes v1->v2: - Add Fixes tags. - Use per-object spinlock for protecting aux stack handles instead of a global one. Andrey Konovalov (4): lib/stackdepot: add printk_deferred_enter/exit guards kasan: handle concurrent kasan_record_aux_stack calls kasan: memset free track in qlink_free lib/stackdepot: fix comment in include/linux/stackdepot.h include/linux/stackdepot.h | 2 -- lib/stackdepot.c | 9 +++++++++ mm/kasan/generic.c | 32 +++++++++++++++++++++++++++++--- mm/kasan/kasan.h | 2 ++ mm/kasan/quarantine.c | 2 +- 5 files changed, 41 insertions(+), 6 deletions(-)