Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3692148pxb; Mon, 1 Nov 2021 19:00:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYHumm7V6HNrw3C1Hn8dW0Wt3vN6QoPvxbYCIoHK7GOEN0hurRmAkrOaUs+DF319CdsutZ X-Received: by 2002:aa7:cac2:: with SMTP id l2mr47087334edt.168.1635818407850; Mon, 01 Nov 2021 19:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635818407; cv=none; d=google.com; s=arc-20160816; b=MgzphwROcstlvYhoFgFsQK+V/QdW4Bljby60jzG9FWrjlAV9Gjd0AMRsEeqrs+F5n1 LQugdODmYem+xM/PoLuk5XaIsBsxR+aVRblntWVadcW90xubr6O9H76sfSTdRYT/vNU0 HwtWehVD9APMJFHycufEEG8uBQbjxR/LVl+cJR1xkYe+gCFrcwAgDN19r/3FU3t9VPjB jYRrFFl/eS3xWDBBh3zoJ1fQbeTZhJMAxt7SRPNjEN2AnKd5tgxa5fsPLBczdU4AlXPK QUirZqSJpHJHGYR0DOzOvZwCeNHsj5MKHSP6M84SWdRgsC5gzC1gXfaSx6kaF7tgGUL/ XJ0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=wxg58ZsIOgZyjVoc5xaxje4Ee5HAbThHH8itxUQCSRo=; b=TJLEpwSNa8oKurUGv8Bxa8o4sx6393pD1jQLgF1GZQUqJ4aZn+m+heQmtNVTre4Ing 0fkJM3Vsij1I/56Cu59tiugPaKPgP+WLW8n3ibqRIrwD/Vz1Xc8+Um3qLPj5uNxW8JNW odmli/5hSbwnKQwC9dlAsdb1b/yfqwyTgeoLyjlRmzp80Bafxx9OLjYrbKJdFrY4dhOC e7XrejldgZJg0v22FKJRtZ1MaJUsoDDQcf82d15Ir6CZBOJUlyocK/z7sNaHOcZyoLcS EI8rJhxDfJuBUdR0Km04hFY0832nhHsJAbk+RuP67Qn5ZBV5OqyaPPJvXych/k91h9iL PziA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm10si8974578edb.322.2021.11.01.18.59.42; Mon, 01 Nov 2021 19:00:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230140AbhKBCAL (ORCPT + 99 others); Mon, 1 Nov 2021 22:00:11 -0400 Received: from pi.codeconstruct.com.au ([203.29.241.158]:44532 "EHLO codeconstruct.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbhKBCAL (ORCPT ); Mon, 1 Nov 2021 22:00:11 -0400 Received: from pecola.lan (unknown [159.196.93.152]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id C2B7320164; Tue, 2 Nov 2021 09:57:34 +0800 (AWST) Message-ID: Subject: Re: [PATCH net-next 0/2] MCTP sockaddr padding check/initialisation fixup From: Jeremy Kerr To: Eugene Syromiatnikov , Matt Johnston Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 02 Nov 2021 09:57:34 +0800 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eugene, > Padding/reserved fields necessitate appropriate checks in order to be > usable in the future. We don't have a foreseeable need for extra fields here; so this is a bit hypothetical at the moment. However, I guess there may be something that comes up in future - was there something you have in mind? The requirements for the padding bytes to be zero on sendmsg() will break the ABI for applications that are using the interface on 5.15; there's a small, contained set of those at the moment though, so I'm OK to handle the updates if this patch is accepted, but we'd need to make a call on that soon. Setting the pad bytes to zero on recvmsg() is a good plan though, I'm happy for that change to go in regardless. Cheers, Jeremy