From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB762C74A5B for ; Wed, 29 Mar 2023 23:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bjE575AaEh0AT3BkFkS1EX0fo5Nf10tlL8xecRDhgGY=; b=U4K0bxQXocXXvK 1y9lyvGoay76SVKXtWBU5qMq485M42MVFYUWVHe/5u7q92qoghF2sY2qGON3FzVuYCTDvdsYl2C2c QYxM/dwP1hY3fcVrrCiVfwLJQ39mz5F0ufsvcw/Kd4aAG9Fjt2HWKS9wW4Bs3tByPHRVb1bPJhjK5 tI+XxAvxRKe8RoYdpvGtEau7LXjtsrJQBzd6XDxdjOpSU+I5ZNqfVIdUFibsvhtw9QLdH7QogIRr8 36BDIuo4U5mjbUvAQIqQwpjDRwO9t+ni13InycEL+A2YPnVeUcrxgEISWtZRsE9pge4wt9+KV4Uvx n4FBoS78y6EDTGOWIpTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phfdC-0026Rr-02; Wed, 29 Mar 2023 23:55:06 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phfd9-0026Qx-2K for linux-arm-kernel@lists.infradead.org; Wed, 29 Mar 2023 23:55:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680134102; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YDvzU53CPeswLit/FMHu3YOxwiNaBZwdjQxKehJieKw=; b=M4SuFubxzbQ1GDT8aKx1QmIIYx2Luv02KE16TChtGPwnmK5AIr6ZgrD9ahggesiKOpCA/C bIBAON2s2KGzwPlVKqSxTYLD//3+KjMlpjTmtaMnThH7wyYEEmnrZKkauJpksr+3gW66mF GEbSd3AC/nM3SBJ2HaHPl6LjlNmyggA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-658-gjbwPLEMPuu8BeS56HR0nQ-1; Wed, 29 Mar 2023 19:54:56 -0400 X-MC-Unique: gjbwPLEMPuu8BeS56HR0nQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C88EE3C0DDA1; Wed, 29 Mar 2023 23:54:55 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.161]) by smtp.corp.redhat.com (Postfix) with SMTP id AFE50492C3E; Wed, 29 Mar 2023 23:54:51 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 30 Mar 2023 01:54:48 +0200 (CEST) Date: Thu, 30 Mar 2023 01:54:43 +0200 From: Oleg Nesterov To: Gregory Price Cc: Arnd Bergmann , Gregory Price , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux-Arch , avagin@gmail.com, Peter Zijlstra , Andy Lutomirski , krisman@collabora.com, Thomas Gleixner , Jonathan Corbet , shuah , Catalin Marinas , Will Deacon , Mark Rutland , tongtiangen@huawei.com, Robin Murphy Subject: Re: [PATCH v14 1/4] asm-generic,arm64: create task variant of access_ok Message-ID: <20230329235442.GA10790@redhat.com> References: <20230328164811.2451-1-gregory.price@memverge.com> <20230328164811.2451-2-gregory.price@memverge.com> <20230329151515.GA913@redhat.com> <9a456346-e207-44e1-873e-40d21334e01b@app.fastmail.com> <20230329160322.GA4477@redhat.com> <20230329171322.GB4477@redhat.com> <20230329175850.GA8425@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230329_165503_833509_C4CC7A64 X-CRM114-Status: GOOD ( 13.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 03/29, Gregory Price wrote: > > Last note on this before I push up another patch set. > > The change from __get_user to get_user also introduces a call to > might_fault() which adds a larger callstack for every syscall / > dispatch. This turns into a might_sleep and might_reschedule, which > represent a very different pattern of execution from before. might_fault() is nop unless CONFIG_PROVE_LOCKING || DEBUG_ATOMIC_SLEEP. Again, I won't really argue with task_access_ok(). Just I am not sure 2/4 gives enough justification for this new helper with unclear semantics (until we ensure that access_ok() doesn't depend on current). Oleg. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel