Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2373273rdb; Thu, 21 Sep 2023 17:31:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcB5DQMD38CP1JGKa8elezFbbZWGCx89RoVEknhwGTpjigalM7k8tggDHyIYKhQMKjKFqD X-Received: by 2002:a17:902:6941:b0:1c5:70d3:f193 with SMTP id k1-20020a170902694100b001c570d3f193mr6423019plt.10.1695342707599; Thu, 21 Sep 2023 17:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695342707; cv=none; d=google.com; s=arc-20160816; b=demY0LZrpHW/+hmCJhegS38uwPQFEnbPmrxu/H7iNwWv5UX4wjBp90OMETk6wnT6cO IfN+vz8hXm/8L+1d+6yj3qZF1nSGp4CwCX2Y5509Zn27hZGFs//TWSULua522PBknTdS TgWKKKHjNTv+rQNQ9nu3X9licqbTgIEvo4PfP9f2QetOrT9AyQkZPygEHCl4Fy2m/jSs PEJv0LyLm4IMYfIC6ArwCtPFz3iPwt+zH8XyFNfv4JM+++leYRP8rHRPmRPgOLnyju6z TTK7qmZExhQsi/CaEXVHHobevy6aPKSM/XrPkdzFkrL2i8i8FElrFGe5taafX+Zc046k QhvA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=kihQxl1G0jpVDyuXxocl6/1jo7sGaJhEu0m1tC9mTUc=; fh=5cF/S1EmXH3VEAX0CHif/1cxrnJ1poVlu7X2uJmo7Jo=; b=AeatNxuQONPYS7gdK8aEL6skyNIl8a8rTZ8NtdKcEY/RXuLmwGm71t9zwg8EmN55qL l/IoG7k0teO1SVWrVB+2T+Y3JWHXtg606ZmH1mNCsr1HoQ/Mg9ufGSG16svpNaxnzU5f qtFTUsvHmwedB6De7Vb2WLMOELIfOfotcFE9NhXdRgbDjxrRFzcYHRM/UgFroacYtgas XUlnyFOmn4VoM/hYX3F9ukPp4zUb6aZpVJg83+33mjyuJBVcwOEjbyDfeZmU0dBaiOkz /s9vJTWrbh4PknaKYjqszN4rHgvZcLQapmtmm96ejTIvYGJ4DdCCMbLD0BYUZ5IOLnWG gSvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="oNLDJ5/1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id r19-20020a170902c7d300b001b6c462acbdsi2320500pla.15.2023.09.21.17.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 17:31:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="oNLDJ5/1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5CE31837BE6B; Thu, 21 Sep 2023 16:28:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbjIUX14 (ORCPT + 99 others); Thu, 21 Sep 2023 19:27:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjIUX1z (ORCPT ); Thu, 21 Sep 2023 19:27:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20C5F8F for ; Thu, 21 Sep 2023 16:27:50 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 786FDC433C8; Thu, 21 Sep 2023 23:27:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1695338869; bh=SJbxiQb0unKA+nMj2mRavTDir6g83Ub6YVE1qG4Rjns=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oNLDJ5/1ert+fipFAqVCBE140YejWbtzCnP3HKI6PchHFLLHn3KPqD86onbbwNuQ2 zvLy5pP+yrLkXEXKb1D0eq9MXQ8BmPW7/D6azUQsFeNbwK+NP7ySXNUHezM7O5PKzK PHI1/5FErfcroy0Vvda8f9adqRLTIj+H3GLapQu4= Date: Thu, 21 Sep 2023 16:27:48 -0700 From: Andrew Morton To: Matthew Wilcox Cc: "Liam R. Howlett" , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, pedro.falcato@gmail.com, stable Subject: Re: [PATCH 0/2] maple_tree: Fix mas_prev() state regression. Message-Id: <20230921162748.a85eb5af766e0662e4f22a5e@linux-foundation.org> In-Reply-To: References: <20230921181236.509072-1-Liam.Howlett@oracle.com> <20230921112521.fc07c658804f4e188179da77@linux-foundation.org> <20230921185330.j5jw3oms4tc6crkf@revolver> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 16:28:00 -0700 (PDT) On Thu, 21 Sep 2023 20:23:11 +0100 Matthew Wilcox wrote: > > > It isn't clear what are the user-visible effects of this flaw? Please > > > send this along and I'll paste it in. > > > > > > User may notice that mas_prev() or mas_next() calls that result in going > > outside of the limit passed to the call will cause incorrect returns on > > subsequent calls using that maple state, such as mas_find() skipping an > > entry. > > When Andrew says "User visible" he means "userspace visible". Not > "in kernel user visible". What are the _consequences_. Thanks ;) We have a Link: (https://gist.github.com/heatd/85d2971fae1501b55b6ea401fbbe485b) but it takes us to the reproducer code. If it took us to Pedro's initial bug report then the sun would shine and birds would sing.