Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2969965pxb; Sat, 6 Feb 2021 14:36:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLpbxylDfGyLLhYtW98YWMqJXXCsvF24bhGu8Y9GcQKRFS8qk9TaTZgSMw91HO+nJ+Wpl/ X-Received: by 2002:a17:906:dff1:: with SMTP id lc17mr10066041ejc.198.1612650966686; Sat, 06 Feb 2021 14:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612650966; cv=none; d=google.com; s=arc-20160816; b=N1b4AE2VNN+ofzndqS3mDeoo4Y+/IJDYc9dEG5/z/36Kx/B6d5uvNXTngOIb6JzGdQ 3WmCHcmTiR5/3CuMzYEYxx+cfWs94zi1je0iIajADN4n+N1Kj3yCoyzXkqaApVv2cXPG F62g/StI/gfTf+RNxIbA+h3c/fEzha/277v+bdC6UAUy6rwWvI567/KHmtZzwbN9txsW BVu7du1ZlrDsKjwM/97cKfXh4ycDR16Lwr13fEPLZA20ZjUe2w9zKGzVLlnspwIaUKeH 0MS/IjfMFRKe+J5kwvQ4U5Nxu+reuB+ZBqYeb0Q52ST1ZVWoGtPyX5RbnPqH1VwUIIXM B+VQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=66GMsXFW9otbwI0KAwdMUZ4bkwwGSz64QbZ8/4Xlus8=; b=osN2YmVXAufdlFHQq9khKtWRkLXA1wBySmFvPruhnSAsCBRER06x48nYYkHaw4V62r B3fu2smP3MO7cnuUC70A+LEYhOOQIE4qyde8X6Pby+RxesC2yrXGrdFffjZ26GXlJkic XA2e7AAfLjgTbvsRxQP+wya+7DSO27WwqfgSf4gBLuCjQ4wnRsTleX2WouJYfLf+VeZ9 jvRlfM3XlcsndNCGQJNTyURRt6qMx27qSUL8HnounFj5u/p7/NjMPswywujDTp/YYqxD UDKLNXxWMzwXwH6wTygQrcmrzhl/c4V0/qzxDzyFuS+Sk48QLy3papwMIeRUrMO7o3OT J9bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KVbBniO5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qu20si7973833ejb.436.2021.02.06.14.35.27; Sat, 06 Feb 2021 14:36:06 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KVbBniO5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbhBFWaI (ORCPT + 99 others); Sat, 6 Feb 2021 17:30:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:46898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbhBFWaG (ORCPT ); Sat, 6 Feb 2021 17:30:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DAB9C64DA1; Sat, 6 Feb 2021 22:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612650565; bh=5whCFGTXa3J1746EODCwZovMzZz+QDWnX+nqhWJoo8Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KVbBniO58u4QFUB32f9KRwF91AQ+EOH3Kx8zSld2dTKeS6bbVngC8lN72bAzfjChU YUyZhRLKOKOXDO5gxQCDAz3mX29oH29sevZ8Uq7CBif+qhiyCNbQFVq2+7gS0lWpII 4OOIAnMrjzqqky0uF+yK1je0plwSI4cGz8QhkwRWJEnaulhQHOWyLAJE1L3uaSdWzt pMjZse5mPqyzYrP+8JcAYBI/6qGeasmvWuDb5Qg4t3+daMlPMNbG/ULsmZwMHMmmBv WoQRsmkyFf/9YN+81bLJKOeuDc7LqZ8GvFworFp2kV9jIXY7gtX9/lNMetjRU+CLPe bWI29EbUd4ilg== Date: Sat, 6 Feb 2021 14:29:24 -0800 From: Jakub Kicinski To: Andrew Morton Cc: NeilBrown , Alexander Viro , Jonathan Corbet , Xin Long , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Vlad Yasevich , Neil Horman , Marcelo Ricardo Leitner , "David S. Miller" , linux-sctp@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 0/3] Fix some seq_file users that were recently broken Message-ID: <20210206142924.2bfc3cf5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210205143550.58d3530918459eafa918ad0c@linux-foundation.org> References: <161248518659.21478.2484341937387294998.stgit@noble1> <20210205143550.58d3530918459eafa918ad0c@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Feb 2021 14:35:50 -0800 Andrew Morton wrote: > On Fri, 05 Feb 2021 11:36:30 +1100 NeilBrown wrote: > > > A recent change to seq_file broke some users which were using seq_file > > in a non-"standard" way ... though the "standard" isn't documented, so > > they can be excused. The result is a possible leak - of memory in one > > case, of references to a 'transport' in the other. > > > > These three patches: > > 1/ document and explain the problem > > 2/ fix the problem user in x86 > > 3/ fix the problem user in net/sctp > > 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code and > interface") was August 2018, so I don't think "recent" applies here? > > I didn't look closely, but it appears that the sctp procfs file is > world-readable. So we gave unprivileged userspace the ability to leak > kernel memory? > > So I'm thinking that we aim for 5.12-rc1 on all three patches with a cc:stable? I'd rather take the sctp patch sooner, we'll send another batch of networking fixes for 5.11, anyway. Would that be okay with you?