Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp975780pxu; Wed, 2 Dec 2020 08:02:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCSa3HN5FKm9hU6tJQuWqhhe+LHjlgd0rLNw6qA5PuVGWlA5gl1igfzajBzNgBr9NAJwGP X-Received: by 2002:a05:6402:1c0a:: with SMTP id ck10mr559755edb.266.1606924947078; Wed, 02 Dec 2020 08:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606924947; cv=none; d=google.com; s=arc-20160816; b=aNZy0PP5nFmYMalHuP9uT1pb70ni7Y8uoG3J+vSrAchf4LFLG08XogvBhrKECQNZ+9 QwnhW29iPmGJHCZyJTBKUu6rSyfHxKmdTOh+5domwzSaS4+TkER7MULi/SgiiD+OwaFv EEIGgaAqn7C3xrwdX/1xhjVQjeua86NU3ivPzTTcEund+ojNDRc6945oXnsed5HugVDe ZczNF6wrXUs3A8SAUpY80o9aILUBAmdJsNfT/X516nH7nVxUPtO1lTCeKXfa54+3zJvn LruvZKwwtFzB7pOX/8y4dptVMuXkwsepI9aSVtjNRqYphCWCYRg67gaOkRpzmu48cfWX tLlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lQiKZxgnKFnIV+AI1ikCFgfehcxe6CB1gYbk5ktJnEM=; b=gHCW0eKHpEmGfx9n93D3NKy16Kl9Gu3hmZ0r5gloPP8DpOE/bfKD4xpoeHxwbQ1QYu d9rjuyjdk6YeAftrajNC/eoSYlI3yGmgZZqU2cxLADAFesUSAl2DwIkTznT1C4BTlFYn ascJ3dFloDQh0pljfC0dfEMQ17d6lw+AjCAALDjAwdLtRCKOEHYCqEVGsCR9N1V4pSPU 1N0pMR7RicEEMAQugb7JnJFJEBgIJQSUQ+178ZsAYAww/OWbnKOW8/xLhfGYfjN/VwFM OYSVXdJ7P6CKFQ8n1/KeCZ4vEXTbkxBjCT7JVO8LygQ1gAZLS/g55mopZ71irq/2cv+Y xC9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Lmh9C2jN; 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 g19si220043ejz.473.2020.12.02.08.01.58; Wed, 02 Dec 2020 08:02:27 -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=default header.b=Lmh9C2jN; 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 S1730573AbgLBP7c (ORCPT + 99 others); Wed, 2 Dec 2020 10:59:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:39272 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbgLBP7b (ORCPT ); Wed, 2 Dec 2020 10:59:31 -0500 X-Gm-Message-State: AOAM532MYRvP8ekkEeilPMeSUP382FZXaliUjcLV43iIlo5MczoALi85 L5FChdEb+WrUR6pG1i0nGcrz8fnWY1qH23l6XOc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606924730; bh=dTmVA5wGcd9geaQOgSpp+EqPMQTwTGZe/YFR11Pm1Ns=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Lmh9C2jNxM52u/fGCSSuET5qhSWU+FRDaSUnMl8441bzAdl8l4YQX4a+Uh7S5TZgL RPnHU2usM4VqySn5Vj8uhFx6qGyOizfaTCR8ozg/h/+An21NzQOSeoaqxvuwfVAkJG 9KK7fgfPgMfOKMRj37n83GzVVhC+K/zCRUKc+JAM= X-Received: by 2002:a9d:be1:: with SMTP id 88mr2384567oth.210.1606924729348; Wed, 02 Dec 2020 07:58:49 -0800 (PST) MIME-Version: 1.0 References: <87r1on1v62.fsf@x220.int.ebiederm.org> <20201120231441.29911-2-ebiederm@xmission.com> <20201123175052.GA20279@redhat.com> <87im9vx08i.fsf@x220.int.ebiederm.org> <87pn42r0n7.fsf@x220.int.ebiederm.org> <87h7pdnlzv.fsf_-_@x220.int.ebiederm.org> <87sg8ock0n.fsf@x220.int.ebiederm.org> In-Reply-To: <87sg8ock0n.fsf@x220.int.ebiederm.org> From: Arnd Bergmann Date: Wed, 2 Dec 2020 16:58:33 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH] coredump: Document coredump code exclusively used by cell spufs To: "Eric W. Biederman" Cc: Geoff Levand , Linus Torvalds , Oleg Nesterov , Linux Kernel Mailing List , linux-fsdevel , Alexander Viro , Michael Ellerman , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 2, 2020 at 4:20 PM Eric W. Biederman wrote: > > ebiederm@xmission.com (Eric W. Biederman) writes: > > > Oleg Nesterov recently asked[1] why is there an unshare_files in > > do_coredump. After digging through all of the callers of lookup_fd it > > turns out that it is > > arch/powerpc/platforms/cell/spufs/coredump.c:coredump_next_context > > that needs the unshare_files in do_coredump. > > > > Looking at the history[2] this code was also the only piece of coredump code > > that required the unshare_files when the unshare_files was added. > > > > Looking at that code it turns out that cell is also the only > > architecture that implements elf_coredump_extra_notes_size and > > elf_coredump_extra_notes_write. > > > > I looked at the gdb repo[3] support for cell has been removed[4] in binutils > > 2.34. Geoff Levand reports he is still getting questions on how to > > run modern kernels on the PS3, from people using 3rd party firmware so > > this code is not dead. According to Wikipedia the last PS3 shipped in > > Japan sometime in 2017. So it will probably be a little while before > > everyone's hardware dies. > > > > Add some comments briefly documenting the coredump code that exists > > only to support cell spufs to make it easier to understand the > > coredump code. Eventually the hardware will be dead, or their won't > > be userspace tools, or the coredump code will be refactored and it > > will be too difficult to update a dead architecture and these comments > > make it easy to tell where to pull to remove cell spufs support. > > > > [1] https://lkml.kernel.org/r/20201123175052.GA20279@redhat.com > > [2] 179e037fc137 ("do_coredump(): make sure that descriptor table isn't shared") > > [3] git://sourceware.org/git/binutils-gdb.git > > [4] abf516c6931a ("Remove Cell Broadband Engine debugging support"). > > Signed-off-by: Eric W. Biederman > > --- > > > > Does this change look good to people? I think it captures this state of > > things and makes things clearer without breaking anything or removing > > functionality for anyone. > > I haven't heard anything except a general ack to the concept of > comments. So I am applying this. > Sorry I missed it when you originally sent it. Looks good ot me, Acked-by: Arnd Bergmann