Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1067243imm; Wed, 18 Jul 2018 16:07:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfPeTXQZDS/jCjCOYZ5VmmMHl+dvJ86X5hGArsx1+n8RTQOWvzYOMmeWGcvnUjq/OHxpT2l X-Received: by 2002:a62:6941:: with SMTP id e62-v6mr6690575pfc.217.1531955269094; Wed, 18 Jul 2018 16:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531955269; cv=none; d=google.com; s=arc-20160816; b=C0iLuST+GshtD8zJwInAAxCHS0FZnPrHZy+hq1ib2IZIY9f5ZMed5BTRrPFqLns3TH BRI0pnCubGZFyt4EXTncFSl8TjLn7xP2sw61pjrV/cJgoCOb5ImEYKLe6a3rdm2u/aMG USW178IAy4puINGzl5e5y5vsDHCBHEKLURDSCYCzMP6FB/xmnEzA+LkkIpOyKQFuNgJl 7eVj2oyLK6VJsa683jsW3pAlU+6qP6369976bYjUcZ/81cw63GnKkP9ADFMouAL0/Rbh 3vYTsfnZ3ighNYUpDz9kXKsgQk2b3cgvMkvxevDMpLXf6RUERvXn3E17/Zd8pons4kJ8 J3eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=9w1WJpYXI4VAmyxO6WdugBnxuEJ4RE/RdYB+2vcoc3I=; b=Zrndf8PgVTdcjZjw5x4PAom1liFOlBxteStwKQz8pQj2Pff1lkFNGraALCoRkQk3/j StXOGx86+2EEDedFDDr+aHG5XyyoELYvR4g8q8lsMTXht4PKQlWIrBjBCpClJ4GJCd4O 3wKOwRjPYS6koK3VKfQetFyiUroT8CQH8YDBiYj7AJzAUCuwPQmP7mGFYhMVy4XZhl6A clwmPHBKUGiDWGdFvwS6eJNseKsjyXf3yC3Tq3NI3VvyBBZGdOxqGwm8Rp74VlU1wB/C DTTMJcUHW3wvgbIH3pWxsRNAAf+3U31ViQHLLtYh7iUnxd0lqr/Uana+SPeYF06VFAya cF+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dSEjnFTq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17-v6si4080506pgp.14.2018.07.18.16.07.34; Wed, 18 Jul 2018 16:07:49 -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=@linux-foundation.org header.s=google header.b=dSEjnFTq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730273AbeGRXrI (ORCPT + 99 others); Wed, 18 Jul 2018 19:47:08 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:44554 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727254AbeGRXrI (ORCPT ); Wed, 18 Jul 2018 19:47:08 -0400 Received: by mail-io0-f179.google.com with SMTP id q19-v6so5513692ioh.11; Wed, 18 Jul 2018 16:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9w1WJpYXI4VAmyxO6WdugBnxuEJ4RE/RdYB+2vcoc3I=; b=dSEjnFTqYsmf5eDN0FHK+JQzZm7Dfw0SpkCQDcJzVwq4ZIE2Ch+HMVJFG0xhvs4hj8 PC8Ah7UbKE+XK71QBq3RmxAEYWwzYCOFD2NbtObRWsPCI16YI8lNZOecWk3bpGkU+AxY WWu2Gazml0VIYYPlpubSbvuV5U+jwgUiZRHgs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9w1WJpYXI4VAmyxO6WdugBnxuEJ4RE/RdYB+2vcoc3I=; b=au+H+M9h1PUTeQyJDjcdQTrBZEDsZGCM4PxP7iu7CK1fJFy9upqfgzWwltQlrtVgU0 DsrpI94qiMdDH/P5adhOn+koiM9UcHM90gBa5FoJZfKsbfbDUIpATWec2N6gBfPjFdRu ROlyg6HIN2PFyxMi4wPFitQben/JWUoLgZIXRosdijezHK5aHITRisDnnFeJ2xzmLPhI CV9Zet/GEdID5G7ounWJ0X3A/2EO9RijoEJMIJnooEtbgdVsqbti5tRn98TtLg7XziJH QVR94CRgG0cBNZ0jM1Rdqth8lm1DS9fWyLFtPLT30Md3ZRD8TN0xUaqaCkTovr7MpR3v Fc1Q== X-Gm-Message-State: AOUpUlEh3KqDLrrstQVcTAhnLIdJfBKLGJV15vnm/MhgQYmH2G6yh9+Y h7H3kHlc1EufC1bscF/TgKDR38/KbVW0J7qBTgaKlw== X-Received: by 2002:a6b:1502:: with SMTP id 2-v6mr7057830iov.203.1531955219221; Wed, 18 Jul 2018 16:06:59 -0700 (PDT) MIME-Version: 1.0 References: <20180718124340.GS30522@ZenIV.linux.org.uk> <20180718181252.GU30522@ZenIV.linux.org.uk> <20180718194637.GV30522@ZenIV.linux.org.uk> <20180718200411.GW30522@ZenIV.linux.org.uk> <20180718212205.GY30522@ZenIV.linux.org.uk> In-Reply-To: <20180718212205.GY30522@ZenIV.linux.org.uk> From: Linus Torvalds Date: Wed, 18 Jul 2018 16:06:48 -0700 Message-ID: Subject: Re: [RFC] call_with_creds() To: Al Viro Cc: Miklos Szeredi , Stephen Rothwell , linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 18, 2018 at 2:22 PM Al Viro wrote: > > Why is counter any better than LSB of a pointer? Easier nesting, but if you do it with the "surround by a macro" model I guess you can just save/restore instead (like you did in call_with_creds). Linus