From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 B751439FCD0 for ; Wed, 13 May 2026 20:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778703421; cv=none; b=RSm8Rv7/iTXG/A1Xa12YWPInEhmkMzmkW/7L1h6ThpUwlCzPzzuc5HmH69h8m+z+dvrIsspRZpIZwituD51LxSm5sl+bPL5IYFWBHz/o7AxCRYruG/anvNSaYwn0VG9s6uECX9bmGciOo67mNwnQYfG3SmOvwGFH/khU6dZnGVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778703421; c=relaxed/simple; bh=GJKD3Dd7idpMyczr0fWgC3EMCWM4ywg9m3HKwYagIH8=; h=From:In-Reply-To:References:Cc:Subject:MIME-Version:Content-Type: Date:Message-ID; b=NaZsBCSTcx3lbWzMMJ0i8XyY7DFQZRVZVOayEKl3Tfl86KRDX7WzwcmcrBrvTGdY9jQHAHg1aYoAAEyaONwlBUi+G3v7tnk6kzZHuetFcMjzu0cdRW+swuSoDQN6jkVpt03rzF+S1KTDIK1Ah+CWel/3ChrJoia46sv1N1yb/zA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=MlKD5Yno; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MlKD5Yno" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778703418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DmxfjKyS9fuAJVxLQAwUjqnNHQEjnWz1KrW4T6ZbphY=; b=MlKD5YnoddWy+hPZVll4IL3KOdjxpuArfgflOrb3/L+0GYM4JW2kzMBHJH0I1vlJLXIFVJ 2mUL34Fi7WVMSHAWfTKEyiDvJEuw4C9tbbphVaVtpBDTS8DVWS1IHNjDEk2R4+wBuUnS64 RVOYIFnZ0UCN+r4Uaqd9mIaNQIbnEO0= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-673-of0K6lSLO6yTTFK94msuhw-1; Wed, 13 May 2026 16:16:53 -0400 X-MC-Unique: of0K6lSLO6yTTFK94msuhw-1 X-Mimecast-MFC-AGG-ID: of0K6lSLO6yTTFK94msuhw_1778703410 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id ADC6219560B7; Wed, 13 May 2026 20:16:49 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.44.48.83]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 837701800576; Wed, 13 May 2026 20:16:44 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20260513131941.1439155-3-dhowells@redhat.com> References: <20260513131941.1439155-3-dhowells@redhat.com> <20260513131941.1439155-1-dhowells@redhat.com> Cc: dhowells@redhat.com, netdev@vger.kernel.org, Hyunwoo Kim , Marc Dionne , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, Jeffrey Altman , Herbert Xu , Chuck Lever , linux-nfs@vger.kernel.org, linux-crypto@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH net v2 2/4] crypto/krb5, rxrpc: Fix lack of pre-decrypt/pre-verify length checks Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1969092.1778703403.1@warthog.procyon.org.uk> Date: Wed, 13 May 2026 21:16:43 +0100 Message-ID: <1969093.1778703403@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 David Howells wrote: > + if (crypto_krb5_check_data_len(gk->krb5, KRB5_ENCRYPT_MODE, > + len, sizeof(*hdr)) < 0) This should be sizeof(hdr) here in patch 2 and sizeof(*hdr) in patch 3. David