Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp918652rdb; Fri, 19 Jan 2024 03:00:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzvC+1Uxcyb5Jq6xX5kyo2S99mTF4kbtT5mzGaUNfIXhagnQb20vLIUtNdkCWoczyHdMPr X-Received: by 2002:a17:906:bf47:b0:a28:ac84:5d52 with SMTP id ps7-20020a170906bf4700b00a28ac845d52mr1432431ejb.2.1705662040548; Fri, 19 Jan 2024 03:00:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705662040; cv=pass; d=google.com; s=arc-20160816; b=E6TR+j9RQpbG1RC28bvayUllnyZeG9MAN3JUdJQtgamJWeVyVPsz7o39u2x2VgOHaj sGxjvM+aC0cHGPqL4+mPwVvFBEEh5hu6J4GrND7Bs+HAkHWZNDMnQyWPkkljj7FOLpx7 XJzdCLJf347q+wTdvtbxpn7sSuOroHd24AD3qKxudIRKQE11tgfVWeuwqudoyov5MWe9 PW/6i827uizTAFkMaBUOcMipDJ3IdSYnkihQV+FUfAvN5JJM8BxRSi9ZLrIX8Jp4m8BH 9gUumZvD7B2veyq7zkvSFqs7niJW3u0qlv2ix9KCRy/1FVWpYcSXktOVFJNjrxSBw1mx m94A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=kW4AZyeA4bljp7x9nTqzteku8F1VnnufDy0bi8JpooQ=; fh=WthJiUozlvppg4d9XgoldsYhXlT69MzrDpMqFLvWiSM=; b=xLxmRr/CKq236lSi15afFx6M2R0ff35oG2zuk6O136SU8K1MsxJ1Y7pHGIP6d7PJ2K On0hLC/Ky4RZVI6uen4yAtCtVOCb+DEfKKT7o8eQXdBeo+PfMtrhcZR1umH+HbE4rvOu Lxlj66BJQV/BNpVTcizIj7+1O+GdQv2/NhySeleA3vLQL1oGiPngX7AMmt628vzDfTYm ju8xaZ/lTUxA5tZto+9i6jKkjBJ2vYIUyJM2rqp3t6LiOd6zFXpF757QK+3+I6l91hp0 W6JrGqg+reg+HrGq72Xg9Mla/miC0ZeyJVldUarMcMdgtVIfyGCvfBA492XYCaepOZGa ChLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1yHMRAb+; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-31066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m12-20020a170906580c00b00a297d2fae1csi7629654ejq.594.2024.01.19.03.00.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 03:00:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=1yHMRAb+; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-31066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 50CF51F22475 for ; Fri, 19 Jan 2024 11:00:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AC8D4C604; Fri, 19 Jan 2024 11:00:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1yHMRAb+" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BDA63C464 for ; Fri, 19 Jan 2024 11:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705662032; cv=none; b=cP8trowtNAFmB8QtG3jDttJARCq4KqYReWs/gze93wDUwkKHkFAYIcYmWxsT04W5epr1xRO48veRzqrXJ+nVwabtjs6w0v5sk6uAi1FkAWmd9bx9WPbzAXHZcJWJfpHsxJZvftWYvY4JCdhedWT2+lnt3qQkTX4cM0S9mTNcHNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705662032; c=relaxed/simple; bh=E8QfEkydkSnb7LnCdvu45N/wPlqfg3YPYucjEOTV77M=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Uvz76nr5HU8Y/xClj9i9GdU0JBgsUVPhQFuKVZsLiCL+6oAKEjxiKCuiWhbLgvPcKERIV+k+mXTRdgzS11YnP5hOqXA7a4MGi2J9DBrKtsQBnBwcGRPDbN9d0CV0y5C6ZmUq+gyw+B2BMsOIx0aiOEV83oZsA91oYb9zsqlRK6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1yHMRAb+; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dc226bad48cso563470276.3 for ; Fri, 19 Jan 2024 03:00:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1705662030; x=1706266830; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kW4AZyeA4bljp7x9nTqzteku8F1VnnufDy0bi8JpooQ=; b=1yHMRAb+1SXiE6powORIeGNMTOF4ToxiH9amH3T7MYbW25EQS0AMbc6KZ2L776pNyH Q7OdaDBityMNZqY4bTH8/5Xr1VnSgShiWiQVZdt2BcJdOCaxQglQ21CuAUKVuTAg8Wpx 5dG1za/Gsl3km/B2HsfbcqBp+/03RynS60Z7iEsIDVK6quRa9EImUFGTNSt6XsPwA8Ti JAaeYqV6jrWziUXZqpVuDuDtupl2Si6xLp7hTWYq5Q+Tm0Tr+Gy7Bu3zsAjPdFhi8GyO EBMN2SOZ0Z3+uSQUiMFem/CShgb7RBxec775vwwFPsnzHbSZcJ0WMu3AfE9J6R/5mYoa Nxsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705662030; x=1706266830; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kW4AZyeA4bljp7x9nTqzteku8F1VnnufDy0bi8JpooQ=; b=eJgRWHTh9p4B6d898MsNyBkTokiI4mNZcIgA/q/26WTQFxP6Epra6FjnMUrimOYYGp DtMrzf7iV1RAWHC/yB2oiyEt1EUh6GJ33B6LTIgZWXzaMRQdvMFa0Y4bJHoW6zTp8v/b QOqoAlA2d+828HkSAx8OJWgYxdTQ7vVu7wB39y6EXJ1KRWkRTj9UVJL+NlHwSnWrl0SX FnbVcZr3CkFTvmHRmpTrhJxjg9gDbvghlGScTtCszXeI7E3oy1kaIxd/J5A+9BqtBet0 5ileUanZHcFLpJ5AqPUirxpvzxLjuy3nh/8z0TJdOac0J4YIWZJ/uUZ/qQuYxin/vpxz ycXQ== X-Gm-Message-State: AOJu0YwuTi0ak06zHYQX/WtToU0zJhZ5xdo05c8G534vvZwHMEN+GcEB dPUbCO97Hmo+oz/jbtpXvI5n6IU5X7l4ufk7a9HRttTZ3Nx93P96Ea6xh8ipzoTpv4A3r+r0WZo 8WTukbvGdflFn9aKR7kV+/yBLLLoFi8nZ9T46 X-Received: by 2002:a25:8686:0:b0:dc2:5515:6f64 with SMTP id z6-20020a258686000000b00dc255156f64mr1546205ybk.93.1705662030096; Fri, 19 Jan 2024 03:00:30 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Fri, 19 Jan 2024 11:59:54 +0100 Message-ID: Subject: Re: regression/bisected commit 773688a6cb24b0b3c2ba40354d883348a2befa38 make my system completely unusable under high load To: Mikhail Gavrilov Cc: glider@google.com, dvyukov@google.com, eugenis@google.com, Oscar Salvador , Vlastimil Babka , Andrew Morton , Linux List Kernel Mailing , Linux Memory Management List , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" On Fri, 19 Jan 2024 at 11:54, Marco Elver wrote: > > On Fri, 19 Jan 2024 at 11:46, Mikhail Gavrilov > wrote: > > > > Hi, > > I use a system with KASAN sanitizer everyday. > > Because I want to catch difficult-to-repeat bugs. > > And all worked fine until commit 773688a6cb24b0b3c2ba40354d883348a2befa38. > > After commit 773688a6cb24b0b3c2ba40354d883348a2befa38 all working > > jerky when I compile something. > > The sound is interrupted, the cursor moves jerkily if I try to do > > anything when all the cores are loaded. > > > > > git bisect bad > > 773688a6cb24b0b3c2ba40354d883348a2befa38 is the first bad commit > > commit 773688a6cb24b0b3c2ba40354d883348a2befa38 > > Author: Andrey Konovalov > > Date: Mon Nov 20 18:47:19 2023 +0100 > > > > kasan: use stack_depot_put for Generic mode > [...] > > mm/kasan/common.c | 3 ++- > > mm/kasan/generic.c | 22 ++++++++++++++++++---- > > mm/kasan/quarantine.c | 26 ++++++++++++++++++++------ > > 3 files changed, 40 insertions(+), 11 deletions(-) > > > > I attached here my build .config and kernel log. > > Who could dig into it, please? > > I was afraid this would happen - could you try this patch series: > https://lore.kernel.org/all/20240118110216.2539519-2-elver@google.com/ [1] In addition, could you give some additional details about the number of CPUs in your system? And if possible, do you have a way to measure performance besides the obvious lagging of the system? It would be interesting to know if the fix in [1] regains performance fully. One major difference is still that an atomic RMW is in the fast paths. This could be fixed by reverting 773688a6cb24b0b3c2ba40354d883348a2befa38 on top of everything else, but we're not sure yet that's necessary because the cost of an atomic RMW really depends on the system you're working with.