Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp506931lqt; Mon, 18 Mar 2024 14:37:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUocMTsHyeH2ZWOVj2gQ4+Tl0l9UHTAje0qIZ8SW/SJQByvaT/Qqx3KjRtWpFRTssXZ4yWer4GA5o0kbULssQeeaPk5nmGHd0ppLnmvBA== X-Google-Smtp-Source: AGHT+IE4c+BsTwFRUSKD56mfsMR26edZvrFDtBs33uHvCujPPd7LWTIRDnkBOnkcFP7BsauoTuMO X-Received: by 2002:a05:6102:5123:b0:473:21b4:abaa with SMTP id bm35-20020a056102512300b0047321b4abaamr634549vsb.7.1710797851070; Mon, 18 Mar 2024 14:37:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710797851; cv=pass; d=google.com; s=arc-20160816; b=qo/lb+Rw550wvO71iwjqRytUy6TvsAoo9XOSeFVGvgmzh+hNLKlSKM244wvPTpbvFO si+yGcOFGufmYY7Hd5Qf631KkgXL+fv37fzIZrAKzbbpY88VPgkX8G2tZYfkvTNs27RE ABZT7zbJbf+JO7lpwN5hn8CPMZ9PvHECgJvUPS7LNhxITA5wuwAEBCsB2ynXnMP4A+EA ku8YZBIJ9lhCjZsilrX58snT2sLnwU409VVvvnJmuw7WggAMDSa/GlGMdyHebBVGcb29 nm40J1cNPG3osmRq+xw1JfV2xJG+CjusSKb7TZgfFop8WTiLz3BfBiiYjxhdHyxoDZzH 460g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=HRXaYtyX4fJLjRJdAH/hTx0Ay5mIvu4RSuyl43Oqtig=; fh=7rgE7wGZ3xdRTu4/H2lDFlNaMkRXj3Ia41Wdi3/qvSQ=; b=fMlxzcl8ue6h2ZmHakS30gIrxubpBjLfjgb1ee2V3Nr9IB3hPSgAVXlmr85Ro6AiG+ hDYVfNTvpa19jOgCX2kEdOfnIUrmmlKNe5V4607FCaT3LmHm4z3boj1bPU5EoKcWsgh+ 3GY0CPP9zqgnccPpqNs6BIaxu43R7PuSljC11uCHea5wFUG4K7bi6Z0k9ZbQwdy3TiGG iVMsWHxiZO0aBhm7Er6rbGYyZmgIZ9wiEhq56lvqgaujJbQ748qVpg6wLYEy5iwIoqFU YGuVEBMKfDgGtaK+rbUerkGpRUYOSMt1YL60Bwqeh9GA5imsvxKbY5VLTvjcUbD1v4/w sjTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F1qbdz15; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jz1-20020a0562140e6100b006917429f79asi8220674qvb.40.2024.03.18.14.37.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 14:37:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F1qbdz15; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C3F641C21230 for ; Mon, 18 Mar 2024 21:37:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A6115916D; Mon, 18 Mar 2024 21:37:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F1qbdz15" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDFF35916A; Mon, 18 Mar 2024 21:37:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710797842; cv=none; b=hajyRotYzdRPvtzQ3hSeSg/aGJ+s4M3g+qE3YKQKQi/9/5IECo6roWxImLr7VE9jxAlHl7ji38FMmvbx1kNrGfPijDe51z/lq3+sov5jpPft6nfbQWiQqPjA3nBGNaNTowtsk80pH4z/BU2uK/QBji76SbS/Da3ZAwi8Olg+8qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710797842; c=relaxed/simple; bh=SvaOnFgW0tsPznMqpMKS2aKw473436fJjW5Zu1XAxAI=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=Bt7tIPfl6U0fsbyr39GZiJqKywYkB86MPtSum8t14oSzl30USb+FTobN9vb9mVwP8I3vY3/jS40xNySBsSxak4rUBbS5rBCDzR2IkoxkY/sY3wpIkUvfSpQyErc0W4ldoUZnrrR9Dxg5dglbRGjv+GfihT1vFlEVjUmSHufX514= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F1qbdz15; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51763C433C7; Mon, 18 Mar 2024 21:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710797842; bh=SvaOnFgW0tsPznMqpMKS2aKw473436fJjW5Zu1XAxAI=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=F1qbdz15k8HSHRv2GE44mK/DlWxD1RQYo4kKknAZFbaC7MM8Rq/UzZdom/QanY3fd suOvPRd7TEGH5wvx0TwkJhU3H82papd7GMOyYXvDMDewHHSIZ9WLIKMNptW+VKrzDy WiMhPdoyjtyi3j39+dXa9qF9z7olynnthSNih17Ys5MbeMqTSv5LjZjYGmpYIBlrbh JCMGx/Gg+DcrT2ok7T7S2PU4lM5rzw4mD7YV9ljzEY0+oN/2sJgRyn9jQtjxGYlh+N 9NOkaKqNoA9FExpUCdb2idyVeqGrvgkRng2+I9CLaahrhjznU0R+1jx+aySInNO78G ZP8PaMVrmxBxw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 18 Mar 2024 23:37:19 +0200 Message-Id: Cc: "Eric Biggers" , , Subject: Re: [PATCH v3] keys: update key quotas in key_put() From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , "Luis Henriques" , "David Howells" X-Mailer: aerc 0.15.2 References: <20240130101344.28936-1-lhenriques@suse.de> <3007646.1707134664@warthog.procyon.org.uk> <87il33f24c.fsf@suse.de> <87msr2qpd9.fsf@brahms.olymp> In-Reply-To: On Mon Mar 18, 2024 at 11:14 PM EET, Jarkko Sakkinen wrote: > On Wed Mar 13, 2024 at 2:37 PM EET, Luis Henriques wrote: > > Luis Henriques writes: > > > > > David Howells writes: > > > > > >> Luis Henriques wrote: > > >> > > >>> Delaying key quotas update when key's refcount reaches 0 in key_put= () has > > >>> been causing some issues in fscrypt testing, specifically in fstest > > >>> generic/581. This commit fixes this test flakiness by dealing with= the > > >>> quotas immediately, and leaving all the other clean-ups to the key = garbage > > >>> collector. > > >> > > >> Okay, I'll accept this. > > >> > > > > > > That's awesome, thanks a lot David. And, as Eric requested, I'll sen= d out > > > shortly a follow-up fscrypt-specific patch, which will make generic/5= 81 > > > fstest finally pass. > > > > Ping. Looks like this fell through the cracks...? > > > > I took a quick look at some git trees ('jarkko' and 'dhowells') but > > couldn't see this patch anywhere. > > > > Cheers, > > My bad! I'll pick this up now. I applied it. Only for completeness sake I mention that I tuned the 2nd paragraph so that lines do no exceed 75 characters :-) Otherwise, I did not modify the commit. I'll schedule this to a PR after rc1 is out (just to see if there is something else that needs to be picked before that). BR, Jarkko