Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2780712iog; Mon, 20 Jun 2022 04:48:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u5N5RIeoPJE6t1QviJaH1iGUEULkNl959aYs9hIFHbpzVID21aEpMnbbgZzN7a6WV+2jzQ X-Received: by 2002:a05:6402:5206:b0:42e:1279:cc8b with SMTP id s6-20020a056402520600b0042e1279cc8bmr29648102edd.186.1655725683685; Mon, 20 Jun 2022 04:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655725683; cv=none; d=google.com; s=arc-20160816; b=EKEN0+60bdlp9dyahBxDIElRYWqTz92qQtC5B/j0YC7lrlflEdaq4uwfQZW5jesuYV DzFz0pQ77S6+fyGeK75Pk3+ziPSHG8QoVVEv4mJO6FmIElckL23cFHmjd+4A0pJuWPbP U9SK79fJ1MrFUfgIVV+BAzhjHHVqoj9yRT1K8AR873t6KmmSTpTdCqU5wBd5XzzjrOAW g97dprzW3vCzuY3jP4qwJHud46BCdeOi/D1BrPWBcllQsLtGU8D8MS6cJ6a6tPaPBs3r UqaOtOsLeoU584OSUJwEjchczHAi7Gr/wl5SqFhVsXnGvL3kr1MtT8YYrLGwxfRS5jxB YmIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/ayyFIPOEX7mmFlL3xX1k+HqUb9PAPVzELewnOWAtkE=; b=OzMvM7FWYPvZNoUsiiQnoSe2wg63kwgPMFJeW9aBqiYKvaX2uelvdyHmkbTo+Ar0Gz o5lpH+UajaSIPSQyKHzew8+OQg3joA84XGHdTRpSlXQldP8kemooM/qUriUYS2DzZg4v HUbJNuJu+IXCpja5WeEiCyEgj6xoDoZgaiHCfc+dTlrloJ8/56piG/LEI8a4+UeWPXg3 +em5GTEnU9TbnqZy09syBddWgrdeQ94cV2/zvbp9sDoEFGh0WlbMQCHsBlxhE6oIgp7z oQNlbbVHVBLHQ65hgc+jy6sts0A6mbt0pI890+GTR7uH2NzXGz9EylBcjb6IHnSiw1cq OPkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YHDSC+bw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa13-20020a1709076d0d00b00711ce996a07si11340595ejc.877.2022.06.20.04.47.38; Mon, 20 Jun 2022 04:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YHDSC+bw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240777AbiFTKoQ (ORCPT + 99 others); Mon, 20 Jun 2022 06:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240122AbiFTKoO (ORCPT ); Mon, 20 Jun 2022 06:44:14 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA29913F33 for ; Mon, 20 Jun 2022 03:44:12 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id ej4so10565350edb.7 for ; Mon, 20 Jun 2022 03:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/ayyFIPOEX7mmFlL3xX1k+HqUb9PAPVzELewnOWAtkE=; b=YHDSC+bwoq5f1H4yX7964QUWsTVMA47TLsvBrzfEyMTkXapaxSZP0TWbgnxWBeYAk0 F+JVvZ0baWWoqZRyI7yF7jntpBwrjAOfx09c7ZxgIfdf35x65ITdjO7PB8B0mpqm7nJ/ z7Di2wgFdKY0W1UcI0ROZ1G+dYfI+t3mm669GOyCLRHwkpxWq0y8mGBVbZZE8PHWu4UI dXPMLTIywRWkGq/4dSx1UWKMU6fUU6UhIsIh3n/5I8TT84dVsUBilTmtAiHGUg/ot26v 5vg5RUbRG/2WbxV9Tx3o//Uym3CCOoZNYU1OMbunmYImB7mYo7IVfmlc+rTvTmNWD1Sl 4Oew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/ayyFIPOEX7mmFlL3xX1k+HqUb9PAPVzELewnOWAtkE=; b=EvjrcxRBFuwVoGeW+No5ahN1rdXR+AXlKee1JfBeXjk8QJCBStrzCZkVjCotjQpQZt W+LlKltpK1z230tum+iEG/WhX0VE9OSeGJBWYTshxV16nO4iV8j2RgZZYf/vpZXANUGa ijDfEZvxRs4w+UYFXYRwQcSCc01di4bxllPRbh9nEkS6m3NHaiNapnY3YPiYw0qLRP3g 6R1k0OnWKr3Bee4z9Byvi+kJxS/83PfDHavzXmGLBm2TXN6IOxVRbdO69lyScoD4THS1 S8fwUcCdP6aqI1omj9gg0wmNXw4bDVDsoZals8JG7SRPPneb2wh/xuiPqy0Xmdo1wM2z R4/A== X-Gm-Message-State: AJIora+Hc62o/BxWFUVy060bRNqaJ8UCbuDPIEf5/4E2TJY6g+2HwVFH EEw3iY7bQHg9i9nx9COq2XwyINwqN2K4kadFfDkBjAw7P3ZBFlRE X-Received: by 2002:a05:6402:26ca:b0:435:7f6e:f3a4 with SMTP id x10-20020a05640226ca00b004357f6ef3a4mr7230293edd.61.1655721851333; Mon, 20 Jun 2022 03:44:11 -0700 (PDT) MIME-Version: 1.0 References: <1653447164-15017-1-git-send-email-zhaoyang.huang@unisoc.com> In-Reply-To: From: Uladzislau Rezki Date: Mon, 20 Jun 2022 12:43:59 +0200 Message-ID: Subject: Re: [PATCH] mm: fix racing of vb->va when kasan enabled To: Zhaoyang Huang Cc: "zhaoyang.huang" , Andrew Morton , "open list:MEMORY MANAGEMENT" , LKML , Ke Wang , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > > Is it easy to reproduce? If so could you please describe the steps? As i see > > the freeing of the "vb" is RCU safe whereas vb->va is not. But from the first > > glance i do not see how it can accessed twice. Hm.. > It was raised from a monkey test on A13_k515 system and got 1/20 pcs > failed. IMO, vb->va which out of vmap_purge_lock protection could race > with a concurrent ra freeing within __purge_vmap_area_lazy. > Do you have exact steps how you run "monkey" test? -- Uladzislau Rezki