Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2639218pxb; Tue, 13 Apr 2021 06:49:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN7GOlYlU3ebD5do22AQbrPxN3YwqW6LdemOf8raHbx7HJuD7vbFNAz6SlvSAmGiP7e4g2 X-Received: by 2002:a65:410c:: with SMTP id w12mr32219373pgp.62.1618321766469; Tue, 13 Apr 2021 06:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618321766; cv=none; d=google.com; s=arc-20160816; b=roAiyRdN+c04gUszzbW4Btgwc8fRxsxRAJ+uvr+j9rQh0IhjK4rmt5awMR93Rrtcxu O3cyA9P08Bo3V03snr7rpWIw9Z8PyGoKr0HOjEYfccMy5B8NZvtXnFqMsfGE3hqH64ex yfOfMdhWUhksY/scQVdsgS7aPMbN7tMWpklDw3mBP2LcHRmzGzbDsNIARPCs52ZtuszJ KzM62vPfoC+ib3rMfFFk0Ze1z/GHLK7xhPM5GCaJRp0DTtDJDavCKbfTdmHIJp8I0Syj Q67c4IIYij76RR+Rsgg6+IrI+CGjaJR5Q//Mto/In6zqnywaLWqdsgSnecMxF6tujVIi iE/Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1wj/P641sD/e5hD8zFgOUD41DvnEOt3Hc9lA4lyfQJw=; b=nG4lM24fzdSIxxNKMaIfrb4GlqHhxQ01kqhkX+eZ4iUyJ/mRAH4H6d0WLAo/4FPBmZ yaqKKB4t2908pMqs9guIlId+CKU56Uuwtbwk7YsRuqwRJRpvQeCZ5wDoKkmQll8agkx8 zPn489F5K7eTB4wBMBTeVRQMHxFb5OVNnHMPnXJc5V4iM9spQDn42EIX/orkmnA4ZBtj +9XwEpqnPAtMAGs3aTWxW54qBZMsNPbJirb8l3dLuJsS1KTVRZ0Ab2OvYkWSNC3YVd91 I/tYl9TpwGsrDAJboMNPwyrReaZrjemYHqkVpozgHEDjTMqR9CMCwGGn7u+bC278d/UN ZrYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NK3frzvd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m129si17868991pfd.105.2021.04.13.06.49.14; Tue, 13 Apr 2021 06:49:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NK3frzvd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240982AbhDMHhZ (ORCPT + 99 others); Tue, 13 Apr 2021 03:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240979AbhDMHhW (ORCPT ); Tue, 13 Apr 2021 03:37:22 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66EDFC061574 for ; Tue, 13 Apr 2021 00:37:03 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id n38so10897256pfv.2 for ; Tue, 13 Apr 2021 00:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1wj/P641sD/e5hD8zFgOUD41DvnEOt3Hc9lA4lyfQJw=; b=NK3frzvdW3ud3kjLPx4OsxwMpdZ1NjA1NtsDL9Y1kDzUCyA32byROcomS1jI6UhsLO jumgwA75Emo0ROYheWpVPfZ/C5rYerF2GHo2NonsePo8L3sC2HoiiZLL/gkJ7K+A5zaN U0VnIbLj2yAV4Bf4g4JnEIgugsP7kjexCtZ6m2KptQAtYP+AvEKPDslfDpsNme6TNDRx 7TNmPbOSunzhVPYTuoYw17dO0F16ilR/XgW0QyHqofKiPgoQ4dLzdVrcEpoROrSKSARS J/VKSZWS92NKEb12CvcWuVYTy4CAK5T6v8HFJjemsJRuLvKOA9zkPkn104cvDjOSTiAd 9c1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1wj/P641sD/e5hD8zFgOUD41DvnEOt3Hc9lA4lyfQJw=; b=m1URs5RmZDl3K+bjN5mtMnJMWvUdmzS13MW4iFWfLJOBx/4RfF4JjU2rzurUTWrkRU WukJznb3qbHguaXL6XkvZFnX17PEWEW49EHYJQbSMYMg7JQ2o624TO3oSRMWEtiqjVVX VKuUVdNC9+kXhJLvWgQ9xPT2pHFTr7FxII6pJPFYV7ewORxlaL0ZPEhsEx3ZcOy+80zD 1KImd2nMgEyV1xF+HAHIpaGDj3cOjuMyDS3yZvU7iUl6cMJyCUK/2pIZ0WTO3yq0M+mw EQqhoXFauChymRj+Zr44yXUAviE34ReNDM1p6oyfTHaSE80bePG0ZBBd8SRzJV0BGOS8 KC7A== X-Gm-Message-State: AOAM532g+B2mH4gsbviEKrQl14bvKzauLQlSaBvWwOHaesM5lE+AuHH3 EE0dnNFS9Z06QXK3dV2cNWQ= X-Received: by 2002:a62:5bc1:0:b029:20d:69a5:189 with SMTP id p184-20020a625bc10000b029020d69a50189mr6216012pfb.57.1618299422983; Tue, 13 Apr 2021 00:37:02 -0700 (PDT) Received: from edumazet1.svl.corp.google.com ([2620:15c:2c4:201:71d7:d843:bfe8:bec7]) by smtp.gmail.com with ESMTPSA id a3sm1349068pjq.36.2021.04.13.00.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 00:37:02 -0700 (PDT) From: Eric Dumazet To: Ingo Molnar , Mathieu Desnoyers , Peter Zijlstra Cc: "Paul E . McKenney" , Boqun Feng , Arjun Roy , linux-kernel , Eric Dumazet , Eric Dumazet Subject: [PATCH 0/3] rseq: minor optimizations Date: Tue, 13 Apr 2021 00:36:54 -0700 Message-Id: <20210413073657.2308450-1-eric.dumazet@gmail.com> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Dumazet rseq is a heavy user of copy to/from user data in fast paths. This series tries to reduce the cost. Eric Dumazet (3): rseq: optimize rseq_update_cpu_id() rseq: remove redundant access_ok() rseq: optimise for 64bit arches kernel/rseq.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) -- 2.31.1.295.g9ea45b61b8-goog