Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4111186pxk; Tue, 8 Sep 2020 10:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9Vyor4wkNGNamgI1uSpr/5THa77UeWRJ6mktYrCJuAa9rfVL/23uvmqimdWwwJUgU9m5Y X-Received: by 2002:aa7:c2d6:: with SMTP id m22mr104623edp.311.1599587990828; Tue, 08 Sep 2020 10:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599587990; cv=none; d=google.com; s=arc-20160816; b=aMvbtMRciOVW3IDEIxUwQvJecCqqvYXTIbSWiaiasDkXGumsKMNrox4od5nwKThe1g dR53tMBYzE0kWhARQ0keAey4oTY/S3wdkf1fcqxRdj4NlBW1C+ef7k+gIbMq+LkQaM9L okgYOv8/oew/YhKH9VoU9sw8tlbwUjYWWKOjjRIdyWC1W5KFar43KNjsgoMOen3CvbBq j+DpU1r58WmE86SJ7NHrHsvefaG8mENeF3EHCwRxaO/8DvNM/Bktvaud84TJzBEuvqTU Y37o8k0Vpa6o41vTQS3XDrc+CPQ6XKqDeawBRAo9SDDxtfzgCEnGpRu9y2oGTeWuQ/cP W1PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DO6W80RdfG9P9Z4fc9rbaY/MdeJfPrgZXo3Rg960r0c=; b=L0H0on4CywxvH5JD8dMYm+Gi8SWbUxgIOCrr6OyaYCYKCLplEaOJrS8pMXc2rOwmzo JSDoApdR9AC/dNoOwLSWtzCciEF9RQpkRo3ccPENGg7JiWqDjrVGqyvrLbqWsmbqdKcE NTHAz52UtVvBoyr0QMlcdE0TZBOGkF3Z0lIyJp7krjvgyWP7wo35xvf8pXmhV7tzaWmV K6ugL16CePBShhh/EGU7c0QN0i6ja3z16Zr0Fl8Gg+HYDMNuQ/G8JDsxhW2U6ehhZOk2 w16VeU9qlBx/pmMAu3/wLCW3RC+/XuXeXHVajKr4QlmIutANoDWrZu9EdpYbt6qpxcf5 tetA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=TgU0nbUg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c14si13995288edr.574.2020.09.08.10.59.27; Tue, 08 Sep 2020 10:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=TgU0nbUg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731681AbgIHR6Y (ORCPT + 99 others); Tue, 8 Sep 2020 13:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgIHR6V (ORCPT ); Tue, 8 Sep 2020 13:58:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD62C061573 for ; Tue, 8 Sep 2020 10:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=DO6W80RdfG9P9Z4fc9rbaY/MdeJfPrgZXo3Rg960r0c=; b=TgU0nbUgP8phE3d+0e2QoGBHwD feFtPdBAtdEUbNiMqPm/NVSd+CE+MM4/wZoKFaY/3kaNkarsSzAEcimpK4Do9wIl8maTrW1Du71hI zYZecYMsVtVLhzfUUyza+suNgTeHebQ9tS/p/NnPhV46tR8hb5sGj6vP7cQQJ7v3VRm4/NQZE4o0z MiknYyoeDKA44fWsJis4tcZnyeeGSMzSmr+aBA6WwkfNnxOv3vVdchd4A4Mtx9/JxBIMB6UqHe9uN IEoyAnN5V/5vTSoXA58/nEkv6c8+IFyOe0p9BxadW9g/kkC1i3MHF8x/igPFUkuECYrfkt6caA2j2 Js+InoZA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFhsh-0006Ym-Vv; Tue, 08 Sep 2020 17:58:12 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9ED99307590; Tue, 8 Sep 2020 19:58:08 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8601D24C37E82; Tue, 8 Sep 2020 19:58:08 +0200 (CEST) Date: Tue, 8 Sep 2020 19:58:08 +0200 From: peterz@infradead.org To: Qian Cai Cc: mark.rutland@arm.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH -next] fork: silence a false postive warning in __mmdrop Message-ID: <20200908175808.GX1362448@hirez.programming.kicks-ass.net> References: <20200604150344.1796-1-cai@lca.pw> <20200722100637.GR119549@hirez.programming.kicks-ass.net> <20200722131900.GA4041@lca.pw> <20200722134406.GN10769@hirez.programming.kicks-ass.net> <20200908165043.GD5147@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200908165043.GD5147@lca.pw> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 08, 2020 at 12:50:44PM -0400, Qian Cai wrote: > > No, you're talking nonsense. We must not free @mm when > > 'current->active_mm == mm', never. > > Yes, you are right. It still trigger this below on powerpc with today's > linux-next by fuzzing for a while (saw a few times on recent linux-next before > as well but so far mostly reproducible on powerpc here). Any idea? If you can reliably reproduce this, the next thing is to trace mm_count and figure out where it goes side-ways. I suppose we're looking for an 'extra' decrement. Mark tried this for a while but gave up because he couldn't reliably reproduce.