Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp395189rdb; Mon, 22 Jan 2024 07:31:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdkxxP6Wei9DJIEXyH5HlnkM9XpxgJ8wqmmc2y+kI78mDA9wERxJJrjAYQXPqFKEXVO2yS X-Received: by 2002:a05:6402:944:b0:55c:4240:4c32 with SMTP id h4-20020a056402094400b0055c42404c32mr34949edz.78.1705937463114; Mon, 22 Jan 2024 07:31:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705937463; cv=pass; d=google.com; s=arc-20160816; b=nDvTW5QzSjwFyel7HVtCZSDcOoP4cMPzmDCO9ZD6SmsCEJXDSbGwtomE7ph2t43nEH doKTRkBBszVGkYQ9WlWLlrh9QCsRjb/L1lp2XN4YTxDXROe0PgurhlYtz4i/053tuo+b N/VAeg5sm6mRrf+hcuzUDUpblbt13IjcpQZ0PTuIyFUUKVER8mZtWjO4pcS8eWjX/2sM e+EUnMKKqi7UYcVIknKUhnUT6zeqVdwj681QohlNtxj3qaQNM3IThX8cvD/BA1Z+h6BQ yFJXurvmrn8fL9cdHy1Sb6O7QRNFdpjBPxVidqInGWixAlrTgg02uAVv3aZGWbq4sr20 p40w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OlvqQ1mj1CHZxe9b6UqxdNgbAUqq284Pt+OnukkyUM8=; fh=ovhc1adoUqzN4bNpcV1AWtzyHi+FVXYG/J1M0uB7o+E=; b=glUYZ+1sntlEhiE8O2cYA7ykCA/vSuSxP2qAA+nzU7UoxbxQwzGvBVSttgwPvMTp7a 1ZAPh39gWn5+16A6Ccji8Lvjz/1kunlySxHo88oH7GVECo48ununOM8oWTxcu5Ds+gXk Tx2SWf7iUH/C4UQSm3MALp1q/HZQZZV+BBoLbiDoCR87cThmcnBprZRXFL62UmRYhRPl tO0NLmrUM9h1C17oOLP+OkKqe6w0/8QZz++UOAI4Jp08RJIjUmjfri9KPdUuBTX4hOsn abHStlNolUH4px8D65yClCfeuYNrm4OYv+hU92Nvof/+a+7kodjF6mZ268VZ96mjKNcq moYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PtQvFDUJ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-nfs+bounces-1242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u8-20020a50c048000000b0055a383e69b6si4327096edd.337.2024.01.22.07.31.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:31:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PtQvFDUJ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-nfs+bounces-1242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 am.mirrors.kernel.org (Postfix) with ESMTPS id DAFEA1F21321 for ; Mon, 22 Jan 2024 15:31:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F6FF46551; Mon, 22 Jan 2024 15:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PtQvFDUJ" X-Original-To: linux-nfs@vger.kernel.org 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 C33835FF0C; Mon, 22 Jan 2024 15:02:33 +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=1705935754; cv=none; b=QL7aqc3jzU8gNLvwPaZ1yLcdzjsWC7vMiZJ6evKV+ezp7HzohipULnkYBJvrSTWVE+qqKzF5mi8qAWZezdcmI0kOpKFZJ6QPOu4PkhqkeB0eyr7Fn8P60JBv/9WCN40ZjaTTeSq2/QDqgYPs4yN0guMUKseg++Wbcshgt/2XixQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935754; c=relaxed/simple; bh=kyWsi1lflAk62F6EHmBXI3C2GexH6zr3BdO3AakAaSg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C0VT3xQqPn+IEOz4o/WBoRvrUqUUmZTiXE9CqzUYnhWf/4p7ey3nqeEzRhZVvSKx1vU1A16qp2IVNh54e3hcRm6STcNflgKqvLW/vQ2DZXYLtQ8PESL1NqmjPPs0B2FEyKZ6sIyPTsX5P7YhEJccGOmz+yBhqulNZfHqmkNR0og= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PtQvFDUJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7FB7C433B1; Mon, 22 Jan 2024 15:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705935753; bh=kyWsi1lflAk62F6EHmBXI3C2GexH6zr3BdO3AakAaSg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PtQvFDUJAtrOcjflFRQ0iI04ZPcVZ541fBxhg8XqTxh6yY2C+z6QU7W5ScDPb9nk0 bmfPyQqnEFrrhI86mtQz6gY3jag4IJGcXFTw2q442B4O+YY5nrV20ay69AUTfXSgST jbQEosMvABiE2as/ZBbnGG7cII6G3ltI46of09ik= Date: Mon, 22 Jan 2024 07:02:32 -0800 From: Greg KH To: sedat.dilek@gmail.com Cc: David Howells , ceph-devel@vger.kernel.org, davem@davemloft.net, eadavis@qq.com, edumazet@google.com, horms@kernel.org, jaltman@auristor.com, jarkko@kernel.org, jlayton@redhat.com, keyrings@vger.kernel.org, kuba@kernel.org, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, marc.dionne@auristor.com, markus.suvanto@gmail.com, netdev@vger.kernel.org, pabeni@redhat.com, pengfei.xu@intel.com, smfrench@gmail.com, stable@vger.kernel.org, torvalds@linux-foundation.org, wang840925@gmail.com, sashal@kernel.org, pvorel@suse.cz Subject: Re: [PATCH] keys, dns: Fix size check of V1 server-list header Message-ID: <2024012218-unlocking-pushy-c7e6@gregkh> References: <1850031.1704921100@warthog.procyon.org.uk> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Jan 22, 2024 at 08:32:20AM +0100, Petr Vorel wrote: > From: Sedat Dilek > > On Wed, Jan 10, 2024 at 10:12 PM David Howells wrote: > > > > > > Fix the size check added to dns_resolver_preparse() for the V1 server-list > > header so that it doesn't give EINVAL if the size supplied is the same as > > the size of the header struct (which should be valid). > > > > This can be tested with: > > > > echo -n -e '\0\0\01\xff\0\0' | keyctl padd dns_resolver desc @p > > > > which will give "add_key: Invalid argument" without this fix. > > > > Fixes: 1997b3cb4217 ("keys, dns: Fix missing size check of V1 server-list header") > > [ CC stable@vger.kernel.org ] > > Your (follow-up) patch is now upstream. > > https://git.kernel.org/linus/acc657692aed438e9931438f8c923b2b107aebf9 > > This misses CC: Stable Tag as suggested by Linus. > > Looks like linux-6.1.y and linux-6.6.y needs it, too. > > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.11&id=da89365158f6f656b28bcdbcbbe9eaf97c63c474 > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.72&id=079eefaecfd7bbb8fcc30eccb0dfdf50c91f1805 And 5.10.y and 5.15.y. Now queued up, thanks. greg k-h