Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1808081lqe; Tue, 9 Apr 2024 00:17:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGA+dgPJArimgJr60JoAsbE2YxJR+052N7eq5VQQujM1+EpK/al8IAuViTljJtRcu6qWliIP+zZGLlmQ2LY4Qr1PZ9Fs0xnBfqjuivBQ== X-Google-Smtp-Source: AGHT+IG0YWxLneccwb3MmGh0u4lE+P+BdFzgjCL8cr4hHPeYXAcJ4GcZCRs/uyibQdRyOXYIvXDz X-Received: by 2002:a17:902:ce84:b0:1e4:196b:bb77 with SMTP id f4-20020a170902ce8400b001e4196bbb77mr6024410plg.69.1712647062288; Tue, 09 Apr 2024 00:17:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712647062; cv=pass; d=google.com; s=arc-20160816; b=n/l3JAEW1P6CRlxFy6NI/7U39DDzWABv9o9WgIOHYcSBVIcBozFkQ/9SgNZAUSPp0J K3ShBMio4/HS1uwSsX5MJLJ9SaxgUDrjZeuEpFvEph3dmLZRJchHCIKi+1RV568+/go5 Byy7DL9p8i3UTVpu/wwbChdDsd++ZoFOBJ47zVAoqQBnzaQ/c4rZj1mzwEm7KdW5EX3G o1Vc3KzsfXyFhBwHq4jFoOxM6KmgC9bGOLgYTH0sB+sE+JKjTDedoefkPNc2GWiK2GrT 9YIyhLgEEGcY+Lmjq7q4eOycY8y7lUHnN8erj61TNdLIEkv6JXrQuPXDHVa4FF2VmJg8 ZkTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=mVqYZoy8F9eatbz6K+n+Z2DIzUwcR+3uwPu3hXlwdiA=; fh=2i1YJEJPJYLant0T5KiHpwaSVM0VnSY7PFMuIgrT1Qk=; b=lU/QZti0j+R88dADvD6bj2pwd5nZGop2Aci6LGJ9piKt4CM/U8mhQkANWILkJ9yuB7 57OtbeGRu32VnvBL/BR+zlX/qhmDoTME6RwiCyxAwn7nsw4LxNCmpNwtMaV2eNisTKwP fUxdhCGvqd5qfnG3xRRIfUuskY7gSWyEh8rq39SKef1LxTGMYe0BusGed5Ztv8pcsLnI GVPq1MRbsCo8WiLbwi0eWO/CrVBCzoo49tDwP+YvurYwfamywGH88fUy8JvtaefAdqeL +uT51flph6ySpnv4gPai3qMJWE638d9d4Cquqc89RwGMs4KY2v4ydHpE7IXKpUzzs7jm HmzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=AD04XMaM; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eDCVmWMG; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-136264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e5-20020a170902ef4500b001db4f0f3698si8107055plx.458.2024.04.09.00.17.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 00:17:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=AD04XMaM; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eDCVmWMG; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-136264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9B2EEB22280 for ; Tue, 9 Apr 2024 05:55:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB4616BFA7; Tue, 9 Apr 2024 05:55:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="AD04XMaM"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="eDCVmWMG" Received: from wfhigh6-smtp.messagingengine.com (wfhigh6-smtp.messagingengine.com [64.147.123.157]) (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 7CA93657D4; Tue, 9 Apr 2024 05:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712642118; cv=none; b=G8iUFCkkf/YnxD5rBHGROGu2Z9GfSB6nBJ30uiQhRalX3bIwvlrkBRxm9mfFSz9jTwxaxIQohHLPqvbERd6RPkxkgEZHfmlDopa0qXMVSpkOwgHOGJ8plNIbfx/Giw/jjiD/D8YQcbS63whoyGawbRoB4HdR0hKc1m6TEJwBQnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712642118; c=relaxed/simple; bh=7PHyFq86sZSHTZ7mgJwXrlBy2b8rPAalgFbwOuOMKqI=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=rsl4x5tbP7F/P3dfMk2K+OWEq1dJd6jgWx8k1CXHuXiyFXsDaAIBmmq9xuLXXbwwbDcJPk2CLQnAZ8P4nDHxziVFtezWDaBp2sPF4gV2Crv7yvFRKjNG5c+Uxcmy6ODLtpSodo01nD/0/xBtU77xiER3BqaGWOVElaGz39r1hjA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=AD04XMaM; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=eDCVmWMG; arc=none smtp.client-ip=64.147.123.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id 9B0FF1800109; Tue, 9 Apr 2024 01:55:14 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 09 Apr 2024 01:55:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1712642114; x=1712728514; bh=mVqYZoy8F9eatbz6K+n+Z2DIzUwcR+3uwPu3hXlwdiA=; b= AD04XMaM7dkaWO1pYs25YgiL+pRK/5OI6YFGOOl4cz7V+KqRTnojBQb7wXsQUfuk pMjW8jCwBuA0p/TkMX09EIebtoA/el8SPKP3npuC2WC8MWflvS9bsn2WsXJk+PnX a96pyMG666cdNst4kIB4dGJgYes8vQeHkY6EiNrf5d/ijfHVTATQPNXMPSfRgItN LUR/Dr8K1gOawNFtKH92eRVn2DEchynQQvEb0rcH5ERAUdaJo6R2kDqZJ73B8vWP 0FMMK0iw9boo2AN94+g8EWXTrYzA4Sd9ZJ7kqY1IBLoqTX1A+o6o3KjDqL6EB4MO 48Q/gSNC0trbDF8GxoFl8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712642114; x= 1712728514; bh=mVqYZoy8F9eatbz6K+n+Z2DIzUwcR+3uwPu3hXlwdiA=; b=e DCVmWMGkfGKvhfeZXULf2JX9R0Vblf0P9L0foaOI7PbUnZxUTxKgiT+zaSzuUNcF Wp6dCiAJ/Um4iiqVAiYTtdohSnB/xrFS+1EeRSUVpz9Jez5mO7U0I0Zwna05r8It Y5LXZOrL4+vhqZmdEqifuOts1eCUNy6cc0A79qOztGKl93YFfrKymo38WvfpcoQa RsVf7a08BLSne7BUxgWjf4nH1ZK3d2dzhr+0zvONQVvyliZTIDUxY4833aPK87YX wiYhPUEKrzgBmdHd++lY8zb6GiA8fc/E0xE/J2yhbSuMhsKU8dPqeim+Jk6uhWBb 2sGDL1WUCwMc0TgaPicGA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegkedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6D600B6008D; Tue, 9 Apr 2024 01:55:13 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-379-gabd37849b7-fm-20240408.001-gabd37849 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <96b55a64-2bcf-44da-a728-ae54e2a73343@app.fastmail.com> In-Reply-To: References: <20240408075052.3304511-1-arnd@kernel.org> <20240408143623.t4uj4dbewl4hyoar@quack3> Date: Tue, 09 Apr 2024 07:54:47 +0200 From: "Arnd Bergmann" To: "Justin Stitt" , "Jan Kara" Cc: "Arnd Bergmann" , linux-fsdevel@vger.kernel.org, "Mike Marshall" , "Alexander Viro" , "Christian Brauner" , "Martin Brandenburg" , devel@lists.orangefs.org, "Vlastimil Babka" , "Kees Cook" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] [RESEND] orangefs: fix out-of-bounds fsid access Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 8, 2024, at 23:21, Justin Stitt wrote: > On Mon, Apr 8, 2024 at 7:36=E2=80=AFAM Jan Kara wrote: >> Frankly, this initializer is hard to understand for me. Why not simpl= e: >> >> buf->f_fsid[0] =3D ORANGEFS_SB(sb)->fs_id; >> buf->f_fsid[1] =3D ORANGEFS_SB(sb)->id; >> > > +1 for this idea, seems easier to read for me. Yes, good idea, I'll send this as v2 after my next round of build testing. Arnd