Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2454628pxb; Fri, 5 Feb 2021 19:52:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMaQbz+9n8K7whLcBjfyWrQmo4BxDJq8VmuiNnBc6HSrf3RmxcWF/MipLh13u36e6sP4In X-Received: by 2002:a17:906:2681:: with SMTP id t1mr7349546ejc.29.1612583569911; Fri, 05 Feb 2021 19:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612583569; cv=none; d=google.com; s=arc-20160816; b=hhoybw37G8OWT3tDQrqCO62Shl9mXzeAd6YGN34FWPuCX1p5vHKWBpxKBNNFaKVkAM RXH1zoLhQFQVI7vPY0MNsJIK1vyfzRcVfB47cplaqrv4tgnwp5jhm4AddllMu3/mvAMS 8eKpIdRsILjJgRYUgMq2uH/T3HWneezQ+ke1avV477XFIbyjOfHNTED2+fmJDx9S4FAt AjyoaTaOEYUfJvvaMHKCWIstnJqQLX/lDnmHclKbpXgFvIBFjvA2+8GWUQuPOvBbObNm zJ14EPIDro5uXdTYp7vsPHV5Mq25xTLkAPh0TVxKvNRN+QF89P6Nz5b2zj+L7ajSqZob UKpQ== 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=K2YXyqPNTYtLkrfhVaNfCcIIcqlZ0pPRq+hCcQYZqc4=; b=IWgeKs8kUvd8OjHuADuKVfLxbCAxgEJbLfZt0fGrecSd1bE8487oQ4BSgIT6Z8rT2l m7PN11RKMm7kfAssR6fbktdvEjlWZbXiDPQttHB6iVhfzS0peTHtRjZ8d0Lyby+Zmi5e IL/3icrQ/7eG3+c37O2BUQVDMMTEBoILEokzxVs/DoMiRf98BG+6BvDCXuw+hqYQoQnq 06HOmIeQB8tyHS0XZrWDBI/esPolGj+7ahi3Ke8IASJNCRlXI+DOQMtTYaiDuMDnqd4t 4N/g4FAfw5jlkERGvuEaZy/yDM4XrleO0NnnKveX3xNVDXV+zzoR5ECmqGS2d+SGrTDc o4MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="eI5GH/v3"; 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 g17si7549533ejr.321.2021.02.05.19.52.25; Fri, 05 Feb 2021 19:52:49 -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=@linux-foundation.org header.s=korg header.b="eI5GH/v3"; 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 S232220AbhBFDur (ORCPT + 99 others); Fri, 5 Feb 2021 22:50:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:39752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbhBFCvz (ORCPT ); Fri, 5 Feb 2021 21:51:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04C2264F51; Fri, 5 Feb 2021 22:35:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1612564551; bh=/d7hyScWKy7rmoffTYVW8U8Hr6uQSMMsfR6pwjRMA6Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eI5GH/v34mz5bxoyj0tyMgr4duFyxIKSgiuDVYXwI0Mw6RZO9YyoC/wwf+APLDn/D IUIpI6af6qVqQQlAjixLznBHAhUVPlrFMgKED2ySuO/WFx18j1mpfLtq/bSUahZSEp UqllQfm9SeE3k2A209qzOLjDabtsY7t9zsRpyV7w= Date: Fri, 5 Feb 2021 14:35:50 -0800 From: Andrew Morton To: NeilBrown Cc: 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: <20210205143550.58d3530918459eafa918ad0c@linux-foundation.org> In-Reply-To: <161248518659.21478.2484341937387294998.stgit@noble1> References: <161248518659.21478.2484341937387294998.stgit@noble1> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) 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, 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?