Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp187337rdb; Tue, 19 Dec 2023 13:20:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnGcUzTk0DlYAjSYdaV7kkiKaFuyYq59O3Q23gzsAiHKCGmZsdcR9ccJ0HKfYYuTK8jwur X-Received: by 2002:a05:6214:262c:b0:67f:4607:a624 with SMTP id gv12-20020a056214262c00b0067f4607a624mr7017520qvb.34.1703020817006; Tue, 19 Dec 2023 13:20:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703020816; cv=none; d=google.com; s=arc-20160816; b=XO03jTlaC5om+AZKOjA4gD/R6OFEyao9oDCa8BVD0wowhqeF/E/wUMW3BIetBRC4lN t1p6LjNhn0NKAlk6TZIiUnDr7pK251M1/AJN+Mlbm45PpFc5buFG/EZyWKTEQrrgbQWP GHfoEuEQiHEv0mCWNy4khTeWOaXQllVpaJG3Yc3ZsqXCFu6emEegi6ZZ8lB0pluxWMAs yjB0RIkqSZVGXjZBHepNO91SXn1NFC0jlUN8PWgLpKVFgWjFqr3qDfOT244uDYpFn+a8 dvgMV0kFT+D3K9QAAtURlike72ml30w5Yvp3H5zYaALE1U2T0P3W0Ajg95OmPkNH2YLX EOig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=edMpd9BGEGYDrNpVSYxtSqq0y4QzGBIBITzoL+fELBg=; fh=R37Itr4vM4DSdM7nCVEJRaUzpyR01xRhpmD5Puf7xME=; b=p3dMdVU681cSITzFuVk71q+smNLlhwZh9o2esTBbZeqRlGpVsRWQn6JjRjzc+j21g7 IVVrS1Pgwrx4nsY5FLiCraFGp1raYDDxC+hdju4Yx1doucdYIhnTr7UXYj99fbGRbYb3 AxKZLjxRkBz5hhNWaChvxxpOup/+P5CW3q1iO4HE7zFVVsUiof5cv8ECWgEFHmpLqfhR v5o77d5KktIu3I5AJsHpgNvyiHCzEDSBBE8xf43Jc/3Ttv9SdVz5ZXoKTnoXlFSDzRnm a0RjGbnfS1srvOH4R5ALbpRCfkeAqgz2u9fp5zZaLNWpqTggJZ0XRjYnJY0ynq3dd1yL Zotw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wLCvb7tP; spf=pass (google.com: domain of linux-kernel+bounces-5958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5958-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o12-20020a05620a22cc00b00773fa71cbb8si24699196qki.512.2023.12.19.13.20.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 13:20:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wLCvb7tP; spf=pass (google.com: domain of linux-kernel+bounces-5958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5958-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B69551C251D2 for ; Tue, 19 Dec 2023 21:20:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AF913D0D9; Tue, 19 Dec 2023 21:20:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="wLCvb7tP" X-Original-To: linux-kernel@vger.kernel.org Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 716533D0BE for ; Tue, 19 Dec 2023 21:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=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=1703020796; 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=edMpd9BGEGYDrNpVSYxtSqq0y4QzGBIBITzoL+fELBg=; b=wLCvb7tPTet1ewSEyphPkF5jb5wDKB5Vbjqh4le8R0Rn4fxhBnuoKo1fqvqY8SToVNk61x B1M4ri9j+O+GWc0OTT6fKsTtU9b1+XLXknmEYWgtYmEYdY8Rhj98SmDUO40SSsLlBIWU+r c2X4Jz1fohy0rf+kfz6yYZ33Z5V2yZ0= 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 v3 mm 0/4] lib/stackdepot, kasan: fixes for stack eviction series Date: Tue, 19 Dec 2023 22:19:49 +0100 Message-Id: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Andrey Konovalov A few fixes for the stack depot eviction series. Changes v2->v3: - Use raw spinlock instead of spinlock to avoid issues on RT kernels. 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 | 8 ++++++++ mm/kasan/quarantine.c | 2 +- 5 files changed, 47 insertions(+), 6 deletions(-) -- 2.25.1