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: 18022 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8222655dys; Wed, 13 Dec 2023 16:48:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHRlPKCmFe/dPYOWFwswOGRWX9UXob4peiXqJgIKb1OMqgfpZ8X9AijIqVXPv+WqxkfQdY X-Received: by 2002:a05:6808:1250:b0:3b9:d9d6:16be with SMTP id o16-20020a056808125000b003b9d9d616bemr10072319oiv.61.1702514888499; Wed, 13 Dec 2023 16:48:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702514888; cv=none; d=google.com; s=arc-20160816; b=bdEZjh8BUiW/Hrigs1+dj2Uw+fJ3hl/AWo975FvjxMUw0/zubjwiFHKgfd068/w/gk 71m+neG++upbxohCZeB+m7bwVqRp0l6XNYMi/FybA0iSZ2fYyHnlmAy746zLMHVjNYQU H1hdQaXwTN+i8PlZYC39dchqTFSNhINQL0/XtY24Tdi7X7z9mddw9jNhKCNK6Ewkvdfv tCjs4IGu7qS1wWA5z7Xs6eOxut1mrRp+0ly52rsYo4eXJOQ2ZwoE3DcjUIHXVaZkBf6S lQ6t5fOUB9i1gLtMNhlJKe2W8yBrnpP24pos2PJmlYNQ+B8XBL5IHDWIWTUJu9pkAvmE LXhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cJEulgYn/h7q3QFVAp5zsWImEtvD0ben3q7crmppy9w=; fh=R37Itr4vM4DSdM7nCVEJRaUzpyR01xRhpmD5Puf7xME=; b=Z5uuP5zeOuzBoZmjb2HjVcPg/Rtj+RvKs9V+v4Nrxk76tg+L5MocPUsjZuqkbrNpII vaBzsbRD/IJ125gGX5DJIiIpMTaZaWktfqsxsv0RLmja1V2zSeUHS3t3W/RxNvNh/DV6 8Wnr1W6Uoq7lQpfTBxK7Y6OvLP/T7uxOxD65+O5mWXoz0V2ezgHEoLMsqcHEIsF2TTY3 xBiRvnye6VeTShCxxvjMB9aLf2jX/4LZeA+PTf5AVL26N8Ljf9DR2PpNomiVTSqxLK1a KP22Dkfqf9iR3UAyInGHz7fQmXX9xotnrntaEH29zERZKpAjLvCZZGD2POlJhIR1yaXH pQdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=f+afQX0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g16-20020a1709029f9000b001d3641693e4si503641plq.236.2023.12.13.16.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 16:48:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=f+afQX0w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DB93680CE7E2; Wed, 13 Dec 2023 16:48:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234117AbjLNArz (ORCPT + 99 others); Wed, 13 Dec 2023 19:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjLNAry (ORCPT ); Wed, 13 Dec 2023 19:47:54 -0500 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [IPv6:2001:41d0:203:375::ae]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BE399A for ; Wed, 13 Dec 2023 16:48:00 -0800 (PST) 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-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 16:48:05 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785216251829935725 X-GMAIL-MSGID: 1785216251829935725 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(-)