Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3835854ybb; Mon, 6 Apr 2020 17:09:19 -0700 (PDT) X-Google-Smtp-Source: APiQypJHKVKESFyS6juOReyjEOvWdofUck3XEiccA8XvToqenHpLR3A9XhIXgTzl+hc7SCEwfvgG X-Received: by 2002:aca:da57:: with SMTP id r84mr1522862oig.79.1586218159098; Mon, 06 Apr 2020 17:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586218159; cv=none; d=google.com; s=arc-20160816; b=hNVDy6sit7geFejBi/QaI2xicpQtzl2Hn7mAryPAXoLtlDWhUWNWSNPpGQu0zHI7j4 wtPr0EE8orGpPr+SVzm3awiZHascWkMtn7mdjU5zwrb+7hUGViRF1ovpGIeTWiu9a9pN /Zuy9/lxUK0pLue9+YbB1IUw05M5eEDsc5ZsceBA6Mki4w74B/QNqYhi9muc+SmVcNeI f5PaQwgS1RFUAEYuonrVmdwGZLZgBapjuRtKa56MPJdpaQIl1sDQCEH4m8V9qscsDskl AksRAy9Lw4jB6kJ5Q6w1qUvR7N8QJq+di6GurM6IYC3XzlS4ercFiHpQlOBEQ1aqHJ4G QlQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=eZLnsCyOy1pWnlx+lXC1cZfYJYpXdQQziNSjAcRId88=; b=Ah0fbE8qE5mq20h9x6hkSeqITuXZjoKeeFI5thYgSijLKz1RTEuIaG18td0PP93+zj QHzJARLEvW/w40fRVraE4rTcE2UOM3Z0LQmdTHfSDGRAmLfqyRDA20lR7IJmJHLV9pO7 60QgJc6dcy0bnpFKL3PCYHLltAEU89G2RpkhUEXe08teX6zmCTxcVhXvRojV78xMwJ2p Xs5Tgz0SRVB4Okfwo1/AmUXB/umtOrcuyeAximkF2WucytbcNdo5hos9Yj1/+g/mi3hg 4f6SZSGAQdLlIfMA23mQlINF41LHWO7MDPkzpqfsIW0dadlMPVJOd5RY208sI8IHsLsf 6CaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=hP2f9sWp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si8304476oib.105.2020.04.06.17.09.07; Mon, 06 Apr 2020 17:09:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=hP2f9sWp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726837AbgDGAB0 (ORCPT + 99 others); Mon, 6 Apr 2020 20:01:26 -0400 Received: from ozlabs.org ([203.11.71.1]:46803 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbgDGABW (ORCPT ); Mon, 6 Apr 2020 20:01:22 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48x6y60yQbz9sSb; Tue, 7 Apr 2020 10:01:18 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1586217679; bh=A/84cobeo/UVyjykfoa1X4y58WV7ot7+3H5XSPUqBL8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=hP2f9sWpVYrH9K7zG38YwbnoPZPBD11DUfLrMOQBUUBpOyCozOs1zvMSYAEQMzxCo qyUV01N/ioM0FJwECYpouUVXS3yeORxApJoAxgMyqnh09BNnRNbgQfkfUZgZ3RumH/ D5amVJn6VYoNQYgMiGyUN9pPcULmr3cLyJ6z1Ae4XhR78H2Xqk+ci8TM37rZQv+ucN V/+lUlbLcfx91j8w5ncFyN32TfokXuLiyjmLxIH4hWKrt6xJR+lBxmts0fO5cM4qkl leB5gj68Qtmmwu1cOb9h3AH0rbpyJfYk01fMTcs9Pj3VbVjMKTb7aNqgyCLSY6GWng 0Z1zL2glv/Avw== Message-ID: <06400bab5a734666bc5b9565e151eb477f9831b7.camel@ozlabs.org> Subject: Re: [PATCH 1/6] powerpc/spufs: simplify spufs core dumping From: Jeremy Kerr To: Christoph Hellwig , Andrew Morton , Alexander Viro , Michael Ellerman Cc: Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 07 Apr 2020 08:01:16 +0800 In-Reply-To: <20200406120312.1150405-2-hch@lst.de> References: <20200406120312.1150405-1-hch@lst.de> <20200406120312.1150405-2-hch@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, > Replace the coredump ->read method with a ->dump method that must call > dump_emit itself. That way we avoid a buffer allocation an messing with > set_fs() to call into code that is intended to deal with user buffers. > For the ->get case we can now use a small on-stack buffer and avoid > memory allocations as well. That looks much better, thanks! Reviewed-by: Jeremy Kerr However, I no longer have access to hardware to test this on. Michael, are the coredump tests in spufs-testsuite still alive? Cheers, Jeremy