Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1610108lqe; Mon, 8 Apr 2024 14:23:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXy6EDVcz3+9J6YbId2faBbXd4HdXrW+HRNj7aq0QgSvXp3dBVxAhXyLTYgwryZnNmW/QNG+yCEiUFMenY8dkJwYgey25o1TqW0+l5EBA== X-Google-Smtp-Source: AGHT+IEg0WqhF5Et9RWWuh6VOfoonWLHtO/S6xLpGzfLUExC+83R7doRafQwsOXtF1nf5Eh309IS X-Received: by 2002:a17:902:d2c5:b0:1e4:2765:6343 with SMTP id n5-20020a170902d2c500b001e427656343mr4383814plc.62.1712611405328; Mon, 08 Apr 2024 14:23:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712611405; cv=pass; d=google.com; s=arc-20160816; b=kp07AP7Qh6+46hIAxa7ewsqVGoP4OmBTVt1s+LS5USvDaC2wdQNU2lzfiLowwJAPnd psILIvGiW83fuDxhJpXKx5oT1x1dGIQ7e++Sgnzr9FZavPW6Btnjb51sEQPTTGqvNnK7 9BFw04llgq4MbhI0lLOSXgRKO+LD47ghCJH+UbqlRPEm19ZbumbmVGM1CDMrDXzNtCJk iFkfHYkt+PIGCySr1S8zHUErzzxaO3/nd9RAUQMbCXHsK9pyGWoyJJS8hURUQPOBWcTG pJ6zArJzxafD3KmJ8wTHyCBFUdktdiMifEN6sgM60L7knOeXNDiEeufMbGcKhzBq7tru zh0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=jWv/i5xh3+rBeyFNDgtM4EpK2GAFLELYYUjgkTjhu9Y=; fh=F7lC4ytPB3NdwvpacLV6JDnj6S7fE7c52P2b95TVl8o=; b=yuhF8Q780RVK5a1lLJZqQfxs4QQVUoSWEIExScVrQ2p8gIbVICRwnRVZF/AMwdnMKp bVlAm3pqhMZzXuIjVYcCqkLlj16+S/YgHIu0jeGNF/e+VOaaRDpVHmLjcDS+Skndvc8Q tkGr0zTBPAkXPb942zjxuRl2mZgXPfkc2aXpdEdDMrMSmY47I0eJmZ53f5CMxSpkjqPC +wsuteXrXmPHL2zlItrPI6rC+I0up5PDJBtMPSBgHPUHpyegg4V+PFFCneq3naoExQdf 7l66Au33CczAIwnc7hKN5Kw6dAQeNe4QjhvlSjUY0h5sFzW+/iIT7CyUw/emSNP8plEO /O/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=goJN4DAf; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-135937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a13-20020a170902ee8d00b001e2a5d98c4bsi6947161pld.396.2024.04.08.14.23.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 14:23:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135937-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=@google.com header.s=20230601 header.b=goJN4DAf; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-135937-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135937-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 C0CD8B22335 for ; Mon, 8 Apr 2024 21:21:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF3E71487ED; Mon, 8 Apr 2024 21:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="goJN4DAf" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 423F9147C75 for ; Mon, 8 Apr 2024 21:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712611285; cv=none; b=ZNzV6kY7/RPxaZiEfli6iLu6aWRIgLeJY4zE9dIt3XgmdGk+gu/AEXRc2WNt8MNXVVGdQzSqt2Btz42q4q2i6WZGajCcET9xXrk59fUeLe01eqzmGwT8rkczkmAz7akSY2k4zPJBOJxrDh1eL1OZ+ohIC23utRWfcj5vybpXMl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712611285; c=relaxed/simple; bh=Sw4+k5a6MJWGjZVqHzvPeVGvtNP/9bYUYa4c2zZvwvo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gSO1ecLJrLtjznLQH8G/7vTcqfT18mE94aw52izt4FC2sv3q01Qp5+CNvBekhddYkOE1bN5h67+9PjQl1RDksrLmUffJf0kMlNFY41fWanY11R12IEkHEBPXdraA7qTw1TtH25GaMoViq0QNj++D1Zkk0rvkgcDKbi36312MbJ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=goJN4DAf; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-343b92e54f5so3767844f8f.0 for ; Mon, 08 Apr 2024 14:21:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712611282; x=1713216082; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jWv/i5xh3+rBeyFNDgtM4EpK2GAFLELYYUjgkTjhu9Y=; b=goJN4DAfu4nuy9oNi0tIq9m4unEqcS2FHw6AbEuckPeT3gUmGTwwInWHBhFmbsQyN3 xrOrD8YEybmhysAc2pRCX0SJD8+yn/1olxJsWzrTgo2Th9lfXeB+mVNHm2wYjHz6boID povWQ+RvmuVHvcAj6xX5d8Fq7TLmVQui5KAD/E3w9EU/58uepC7ztsEVlTz4M20Vyrpd Xbr4oRAvlA41huhc6Uvov6Ec7T0JpYCDyI+dS64N5J+qnx4FYXc6Tc9SJ9ZlCOTYKQqD V586TMqDxe+S8ODFMvGitaQmqFljBcxVu6j41LCRIm4RwpnwNgMCpLgzJUPJZ4DWJLXT 09mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712611282; x=1713216082; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jWv/i5xh3+rBeyFNDgtM4EpK2GAFLELYYUjgkTjhu9Y=; b=DkN0gGbvL8EXykq/dj5Ua8S8qOevOcUdb5Isphi1KEw+UggUk++FvOtspCMXaOvmpO h9ch4guveJz3ytsTH/m5S65H6LW/jH2digd8se2l3FF8LIREAymAzIrsHfjeueNhjYTF Zg+OOZQXBJLDbLVSc93kO0Kr9asoUFs0ymdXVtSd3K03y80X4ASkJatGjwuCRlQRfn9N pS0K36+dPq6gYm708PeXChtIwFcZagSE3Ok0R9sD2yaI+tYKINZjigjHHVUuEQSdijU2 /WRVJhFUxseVXucmW6SDRwEbeb/p/CdB/UqKftjyINSeeie0MSsarxPPQxt0urmhxmoL nSGA== X-Forwarded-Encrypted: i=1; AJvYcCVW5KHt6DpwyolyvcIU3OAu0S31Di8RG9UXZgzhkK3YTnEBmu+/SSDVEC04tCRRhP5Ax9WikFLd2Ty4G88lzt7OLkOxAb3Sba4ATjqY X-Gm-Message-State: AOJu0YzmU0shLIszkVqILgylIjc+yn8BG/EGweEF8+BXE14RAnz0zYAY 38bK6ZT6ELNkq3ACiAj1v7exwCGlwZantOsrbNrLRM20dRpMMG0Q+/xaBGFrcAlE7j/y8Bk8Zhv teuuKKOsIoRro5JrUYW/DZXPqirMNmwlAFM5Y X-Received: by 2002:adf:fa8e:0:b0:343:b619:dd52 with SMTP id h14-20020adffa8e000000b00343b619dd52mr7230109wrr.0.1712611282291; Mon, 08 Apr 2024 14:21:22 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240408075052.3304511-1-arnd@kernel.org> <20240408143623.t4uj4dbewl4hyoar@quack3> In-Reply-To: <20240408143623.t4uj4dbewl4hyoar@quack3> From: Justin Stitt Date: Mon, 8 Apr 2024 14:21:10 -0700 Message-ID: Subject: Re: [PATCH] [RESEND] orangefs: fix out-of-bounds fsid access To: Jan Kara Cc: Arnd Bergmann , linux-fsdevel@vger.kernel.org, Mike Marshall , Arnd Bergmann , Alexander Viro , Christian Brauner , Martin Brandenburg , devel@lists.orangefs.org, Vlastimil Babka , Kees Cook , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 simple: > > 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. > Honza > -- > Jan Kara > SUSE Labs, CR