Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4169858ybz; Tue, 28 Apr 2020 06:56:36 -0700 (PDT) X-Google-Smtp-Source: APiQypKwvVRTFhFS/Aoc0Sc8uLuiLFswSOAebJWmdKmHkjA6Mlu6tNP31SewzFj18nUN1nervt5K X-Received: by 2002:a17:906:809:: with SMTP id e9mr24005523ejd.81.1588082196097; Tue, 28 Apr 2020 06:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588082196; cv=none; d=google.com; s=arc-20160816; b=deaydibWdlAW++PioaKBrlYQ2lcex7A81QHsBlYlPA4PXab7zUp87apltsDCyUqHMn IoHesGKLBm1XykCtjjRqK2dQo+CJA78YNtCPsoXzN5JaBxQJ2FI2X02i08W0zPsmOA78 bEi38WTwjiqbTf/MUwalPAofMZsr2O+T9CtpZEWATHyd+NgavEJn0KjaYt4V55jsSnNU 3s0un5gsjSPVfb+E6Va8tOP6cLLXir+3UGglpai3yZDjOKxQ7dhuW7d1RhzrkfJwVlKB PQqCAdjgozYfHJ736eqsEGkWds5NwjGVNtyZNhfQRs6VWrEpMnObmqmDLkXlvRorJzFc temw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HSmNJ44lZX/TSz6zmj1Nt8wC/4fygpnnHDuGYt5dk7s=; b=zhV1kZqS+PmuDa6bGAlgEwP6cgFa88SuiQXdtYh6hFD8U84Nssl8OL+6Kewua6R6LE oZY4nqOrUfN3Qmp+Dg1a4qS4WFl+t34a4QKEHKZrQo0FGT8SXgHi+uSh8o6EfZIs1RzA oValJMZrwaHrkJfi2Euy9weX6FXrnW8SLsoM2seqN3hn9WOJML529s8DYL3T0VcK416Q sg5JKTK0tsRO7/ZGEhtMc9nkEYlBeGrvNiqUJ0ZUqYsJYdSos6TvlAJwP/acQa2iDe9r me5RfIuVq6pmN2YC4+qb4t6xrpPIU6djxfsn53xgF9TwpaPB/Ex3glKjnK648dLjV79q VZrg== ARC-Authentication-Results: i=1; mx.google.com; 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 x4si1588875edc.458.2020.04.28.06.56.12; Tue, 28 Apr 2020 06:56:36 -0700 (PDT) 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; 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 S1727878AbgD1Nyd (ORCPT + 99 others); Tue, 28 Apr 2020 09:54:33 -0400 Received: from verein.lst.de ([213.95.11.211]:56361 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbgD1Nyc (ORCPT ); Tue, 28 Apr 2020 09:54:32 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 064B668CEC; Tue, 28 Apr 2020 15:54:30 +0200 (CEST) Date: Tue, 28 Apr 2020 15:54:29 +0200 From: Christoph Hellwig To: Jeremy Kerr Cc: Linus Torvalds , Arnd Bergmann , "Eric W . Biederman" , Andrew Morton , Alexander Viro , Christoph Hellwig , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] powerpc/spufs: fix copy_to_user while atomic Message-ID: <20200428135429.GB2827@lst.de> References: <20200427200626.1622060-2-hch@lst.de> <20200428120207.15728-1-jk@ozlabs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200428120207.15728-1-jk@ozlabs.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2020 at 08:02:07PM +0800, Jeremy Kerr wrote: > Currently, we may perform a copy_to_user (through > simple_read_from_buffer()) while holding a context's register_lock, > while accessing the context save area. > > This change uses a temporary buffers for the context save area data, > which we then pass to simple_read_from_buffer. > > Signed-off-by: Jeremy Kerr > --- > > Christoph - this fixes the copy_to_user while atomic, hopefully with > only minimal distruption to your series. I recognize plenty of sniplets from that :) Your patch looks good to me: Reviewed-by: Christoph Hellwig