Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp940276pxb; Wed, 1 Sep 2021 13:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEMdzKxP6rTDE80JVguJ45RijMcQ19JP9cHZKIO6JHJu4OOj5Iq9QOnTzMq3GNyEZIMkbK X-Received: by 2002:a05:6402:5154:: with SMTP id n20mr1392183edd.33.1630527265664; Wed, 01 Sep 2021 13:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630527265; cv=none; d=google.com; s=arc-20160816; b=Xvq4TUH5JHXZfVKYviKXwiMQuUgZYm+o/m3ykLLkrF0WTjDCbjOlhHBgQeG+4rRn9o wDfH5aKmBTYVTsf6yAG+58LH9old5xRHDFYQCwOBm2ztHzDwe7+8gf57WlCf6/xY87lD HeIbZ37BamT/8Mrezsge5moUlCgkIHIE/PfjHodxnpOl5vb65xH4hlDl3ivJ0QRe8DtG JAAkdB0V/iSgcrAhVj/s3xSaTOgpvx4R8vwuj5MKyNwHjq8Bs3+SmiRE4lhN2eZ6vOU/ ZJpfqrGHZ/eMQz9HwMUI/3nei7AhmGL3fddFZkyyNYVycePzQzKZOnk8Ylutx8Du70i+ rUDQ== 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=I0rFn4wl+tOpu07x8UlVpjjhlF/ISAYNAAX5uONIY3U=; b=KO2/XyDdG/Ib9hq+IRTK/tRCWo4AYBk4ZufcKlvip9f6w5PrqysyuiSCLfvgp97F8d ySKOIjl0DSWTcu+PaPfsR2iUVhIYjejgOgPQlpWwWRbEU/AILN/4NrjO7BraY1ew7URl T/wpggjUmbDz3Ah5t1DzsYTaI0kQWaHGmOiDaCVP8grSLJcVCXDKGreFKU2peSmxbxwi FJtKrpXb9fyUlkOyX1iMwQ6DRUki0VdkfGOT3WWYtxTf5d3hF/Uj5R0F4JajokAJGCKG DbmwQvms6p9/B5BFVWdrVAVrxQEj+ZYTwqClusVAzO9Rip0NrHRICr7BONPr7CtVnUFL ZXQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R2VG3od3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si530459edy.360.2021.09.01.13.13.47; Wed, 01 Sep 2021 13:14:25 -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=pass header.i=@linuxfoundation.org header.s=korg header.b=R2VG3od3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343918AbhIAQln (ORCPT + 99 others); Wed, 1 Sep 2021 12:41:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:57616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245406AbhIAQlZ (ORCPT ); Wed, 1 Sep 2021 12:41:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C7F126108E; Wed, 1 Sep 2021 16:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1630514428; bh=FR9i7gvAhPWX0ryUMejF81JTrmWtBca9FbRWF1GJJFc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R2VG3od3qw6XFglrSzcuIOPRMvzouRUuRs6W7FJ34SewHafIvYiCnT3d3jDT1O5LS rk+cpHJN5IL/IP+qcPhBdaNYN0kWwGbY4Y3Kt/d1tqYx4SIoEAwt78F2uPoPig374Q o94SdB14MZ5j+J4yen8ZQgUxZXux2tEhlGA2CmqQ= Date: Wed, 1 Sep 2021 18:40:25 +0200 From: Greg Kroah-Hartman To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, syzbot+01985d7909f9468f013c@syzkaller.appspotmail.com, Alexey Gladkov , Sasha Levin Subject: Re: [PATCH 5.10 036/103] ucounts: Increase ucounts reference counter before the security hook Message-ID: References: <20210901122300.503008474@linuxfoundation.org> <20210901122301.773759848@linuxfoundation.org> <87v93k4bl6.fsf@disp2133> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87v93k4bl6.fsf@disp2133> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 01, 2021 at 09:25:25AM -0500, Eric W. Biederman wrote: > Greg Kroah-Hartman writes: > > > From: Alexey Gladkov > > > > [ Upstream commit bbb6d0f3e1feb43d663af089c7dedb23be6a04fb ] > > > > We need to increment the ucounts reference counter befor security_prepare_creds() > > because this function may fail and abort_creds() will try to decrement > > this reference. > > Has the conversion of the rlimits to ucounts been backported? > > Semantically the code is an improvement but I don't know of any cases > where it makes enough of a real-world difference to make it worth > backporting the code. > > Certainly the ucount/rlimit conversions do not meet the historical > criteria for backports. AKA simple obviously correct patches. > > The fact we have been applying fixes for the entire v5.14 stabilization > period is a testament to the code not quite being obviously correct. > > Without backports the code only affects v5.14 so I have not been > including a Cc stable on any of the commits. > > So color me very puzzled about what is going on here. Sasha picked this for some reason, but if you think it should be dropped, we can easily do so. thanks, greg k-h