Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp627019iog; Fri, 24 Jun 2022 10:29:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tQCa/W45SMScvlHQeG4UYI7ENgM3iJ7lZZn68tcL3Q+xWOueNNwLibLvYi2Bn+b/aACjUv X-Received: by 2002:a05:6402:18:b0:435:9a79:9a40 with SMTP id d24-20020a056402001800b004359a799a40mr209987edu.328.1656091757283; Fri, 24 Jun 2022 10:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656091757; cv=none; d=google.com; s=arc-20160816; b=h61t4bczJ31fCyQKc1eiuGaF5GBSBZXRzV9UIMaNAzTLGdf0s4jRtLEGa8Mz1RvCRR lOb8PhA0SH0ZNggunYIlL97DeBAVBUi/1KWLcjHeHuBWwik8Wf5Vn1/5tLO/M1GvuS+3 wa97HbXOd6TkFB41pTuj2aPCtUf9l6YdvJCOrlZrf8SfIp2CXNqisiYgNTrt7Vzy9ACc HV9JX33vo6c1SkzYfQ5AV8S0pPu2wsI+5forSPnHN9yrJm5jj7IoGe5xD5aZqxxSkorK ZPpAHJ0bnV5yc9yLZUm5w4LwiyqKqX2kjq+hi3rhxl8aF/cRA8pynrM1ZOEnVRLuBcxV gPTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WWAwNf9E3pTVM1AUmitgdkYXzT+V0jJ3tize4I5kE2U=; b=fU0GCZEJYdfjpauF5i6v9pE33VvS2hyrkAxFkTuM2XaZA5AtNrPRIjCwMEKHPZzl/P S11UUII3Oj1iGrvRKnlHIrd6v3vMmYAGf2s7fwR43K9BgDTBMzIyDzTMIpWjL+9YWrr5 0KBNhHPqOTwt7kmetHg+nY6H/lTRAhH/MsGcGmunL3KjMVJkE5d1wrej7LjTVvrVLRoR NhozpAlq7eUcgN7FPCeAoAaOZ4xaI0+L3+6A6j1Cpdv9hyO6DPZ8pnP1SoLYJlYoSfj/ cKvt4HnCtBxcX7jWHMQwy/v8/9QQ4OHMtBeNOy9FYx1x9I5oKCy5yKFmiX/0rgvjYl3u nC0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lw2wxRqg; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs9-20020a1709072d0900b006fecdce291dsi3437832ejc.520.2022.06.24.10.28.47; Fri, 24 Jun 2022 10:29:17 -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=@kernel.org header.s=k20201202 header.b=Lw2wxRqg; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230509AbiFXQ6U (ORCPT + 99 others); Fri, 24 Jun 2022 12:58:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiFXQ6S (ORCPT ); Fri, 24 Jun 2022 12:58:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C9E611465 for ; Fri, 24 Jun 2022 09:58:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7AA1D6232A for ; Fri, 24 Jun 2022 16:58:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB87DC34114; Fri, 24 Jun 2022 16:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656089888; bh=53QLMwihrFJG8ktJZB0oC36i2/jPRqOGUU1Yh6BFt9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lw2wxRqgQ6NPAPTI4S+fCkToKJKyJHK9mmnqoCSSjHuCv741q7a4KSUzzJlXNBlJ5 biQ3MfsS4HrFhf4Tvr14HLN9saWxhbZNQUGQAIXYQwx4Hh7EJT87kcOMtKsdeBqy+p 0joObPjs8XeVsDZ4hCtsmt1NhlGTji5kkTQ+rZ2fCw8sO0Nz2YB2PpZaqx7yHaBVZF tW7IWABmPkcjlavnftZQSgS+T6joCX6lOT3JKPYgpDoW6PbYMv8HzpHCAkuxgCq9jj iMSumajLrELjS4Pagiaqh5ovOtXaVsu9/h968We3rv6+BxCjx75VFl8iXKr4H9SOTa mWhYhbG5VQ3FQ== Date: Fri, 24 Jun 2022 09:58:07 -0700 From: Mark Gross To: Joe Korty Cc: Mark Gross , "Luis Claudio R. Goncalves" , LKML , Linux RT users , Sebastian Andrzej Siewior , Thomas Gleixner , Steven Rostedt Subject: Re: [RT BUG] Mismatched get_uid/free_uid usage in signals in some rts (2nd try) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Tue, Jun 21, 2022 at 03:16:39PM +0000, Joe Korty wrote: > Mismatched get_uid/free_uid usage in signals in 4.9.312-rt193 > > [ First attempt using mutt did not show up on the mailing lists. > Trying again with office365 Outlook. Also added the 4.9-rt > maintainers. ] > > The 4.19-rt patch, > > 0329-signal-Prevent-double-free-of-user-struct.patch > > needs to be ported to LAG 4.9-rt, as that release now has the Linus commit, What does LAG stand for? FWIW the cherry-pick within the RT-stable tree worked without conflict. (cherry picked from commit a99e09659e6cd4b633c3689f2c3aa5f8a816fe5b) It compiles. See 58a584ee59b2 signal: Prevent double-free of user struct in linux-stable-rt.git/v4.9-rt-next > > fda31c50292a ("signal: avoid double atomic counter increments for user accounting") > This was added to 4.9.y on March 20, 2020. commit 4306259ff6b8b682322d9aeb0c12b27c61c4a548 in linux-stable. How did you find this issue? What is missing from my testing? Do you have a test case that I can conferm my cherry-pick works? Could you test the v4.9-rt-next branch to see if it fixes you issue? --mark > which breaks the longstanding rt patch, > > 0259-signals-Allow-rt-tasks-to-cache-one-sigqueue-struct.patch > > Current application status: > > 4.4.302-rt232 OK has both Linus's patch and the fix needed for rt. > 4.9.312-rt193 BROKE has Linus's patch but not the fix. > 4.14.87-rt50 OK does NOT have either Linus's patch nor its rt fix. > 4.19.246-rt110 OK has both Linus's patch and the fix needed for rt. > 5.4.193-rt74 OK has both Linus's patch and the fix needed for rt. > 5.10.120-rt70 OK has both Linus's patch and the fix needed for rt. > 5.15.44-rt46 UNKNOWN no get_uid/free_uid usage in kernel/signal.c anymore. > > Regards, > Joe