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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9373C43465 for ; Sun, 20 Sep 2020 18:42:10 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 12D01207D3 for ; Sun, 20 Sep 2020 18:42:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 12D01207D3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1C58A6B0096; Sun, 20 Sep 2020 14:42:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 165BD6B009B; Sun, 20 Sep 2020 14:42:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFAD66B0096; Sun, 20 Sep 2020 14:42:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0204.hostedemail.com [216.40.44.204]) by kanga.kvack.org (Postfix) with ESMTP id C87A66B0096 for ; Sun, 20 Sep 2020 14:42:08 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 84701181AEF09 for ; Sun, 20 Sep 2020 18:42:08 +0000 (UTC) X-FDA: 77284309536.02.name91_36179632713e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin02.hostedemail.com (Postfix) with ESMTP id 5AC2310097AA1; Sun, 20 Sep 2020 18:42:08 +0000 (UTC) X-HE-Tag: name91_36179632713e X-Filterd-Recvd-Size: 3220 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [195.92.253.2]) by imf21.hostedemail.com (Postfix) with ESMTP; Sun, 20 Sep 2020 18:42:07 +0000 (UTC) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kK4Hd-002cE4-T4; Sun, 20 Sep 2020 18:41:58 +0000 Date: Sun, 20 Sep 2020 19:41:57 +0100 From: Al Viro To: Matthew Wilcox Cc: Christoph Hellwig , Andrew Morton , Jens Axboe , Arnd Bergmann , David Howells , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag Message-ID: <20200920184157.GP3421308@ZenIV.linux.org.uk> References: <20200918124533.3487701-1-hch@lst.de> <20200918124533.3487701-2-hch@lst.de> <20200920151510.GS32101@casper.infradead.org> <20200920180742.GN3421308@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200920180742.GN3421308@ZenIV.linux.org.uk> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Sep 20, 2020 at 07:07:42PM +0100, Al Viro wrote: > /proc/bus/input/devices (fucked bitmap-to-text representation) To illustrate the, er, beauty of that stuff: ; cat32 /proc/bus/input/devices >/tmp/a ; cat /proc/bus/input/devices >/tmp/b ; diff -u /tmp/a /tmp/b|grep '^[-+]' --- /tmp/a 2020-09-20 14:28:43.442560691 -0400 +++ /tmp/b 2020-09-20 14:28:49.018543230 -0400 -B: KEY=1100f 2902000 8380307c f910f001 feffffdf ffefffff ffffffff fffffffe +B: KEY=1100f02902000 8380307cf910f001 feffffdfffefffff fffffffffffffffe -B: KEY=70000 0 0 0 0 0 0 0 0 +B: KEY=70000 0 0 0 0 -B: KEY=420 0 70000 0 0 0 0 0 0 0 0 +B: KEY=420 70000 0 0 0 0 -B: KEY=100000 0 0 0 +B: KEY=10000000000000 0 -B: KEY=4000 0 0 0 0 +B: KEY=4000 0 0 -B: KEY=8000 0 0 0 0 0 1100b 800 2 200000 0 0 0 0 +B: KEY=800000000000 0 0 1100b00000800 200200000 0 0 -B: KEY=3e000b 0 0 0 0 0 0 0 +B: KEY=3e000b00000000 0 0 0 -B: KEY=ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe +B: KEY=ffffffffffffffff ffffffffffffffff ffffffffffffffff fffffffffffffffe ; (cat32 being a 32bit binary of cat) All the differences are due to homegrown bitmap-to-text conversion. Note that feeding that into a pipe leaves the recepient with a lovely problem - you can't go by the width of words (they are not zero-padded) and you can't go by the number of words either - it varies from device to device. And there's nothing we can do with that - it's a userland ABI, can't be changed without breaking stuff. I would prefer to avoid additional examples like that, TYVM...