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 2E1B7C43463 for ; Sun, 20 Sep 2020 18:42:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 00E95207BB for ; Sun, 20 Sep 2020 18:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726151AbgITSmG (ORCPT ); Sun, 20 Sep 2020 14:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgITSmG (ORCPT ); Sun, 20 Sep 2020 14:42:06 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4B81C061755; Sun, 20 Sep 2020 11:42:05 -0700 (PDT) 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> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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... From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Date: Sun, 20 Sep 2020 18:41:57 +0000 Subject: Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag Message-Id: <20200920184157.GP3421308@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: base64 List-Id: References: <20200918124533.3487701-1-hch@lst.de> <20200918124533.3487701-2-hch@lst.de> <20200920151510.GS32101@casper.infradead.org> <20200920180742.GN3421308@ZenIV.linux.org.uk> In-Reply-To: <20200920180742.GN3421308@ZenIV.linux.org.uk> 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 T24gU3VuLCBTZXAgMjAsIDIwMjAgYXQgMDc6MDc6NDJQTSArMDEwMCwgQWwgVmlybyB3cm90ZToK Cj4gL3Byb2MvYnVzL2lucHV0L2RldmljZXMgKGZ1Y2tlZCBiaXRtYXAtdG8tdGV4dCByZXByZXNl bnRhdGlvbikKClRvIGlsbHVzdHJhdGUgdGhlLCBlciwgYmVhdXR5IG9mIHRoYXQgc3R1ZmY6Cgo7 IGNhdDMyIC9wcm9jL2J1cy9pbnB1dC9kZXZpY2VzID4vdG1wL2EKOyBjYXQgL3Byb2MvYnVzL2lu cHV0L2RldmljZXMgPi90bXAvYgo7IGRpZmYgLXUgL3RtcC9hIC90bXAvYnxncmVwICdeWy0rXScK LS0tIC90bXAvYSAgICAgIDIwMjAtMDktMjAgMTQ6Mjg6NDMuNDQyNTYwNjkxIC0wNDAwCisrKyAv dG1wL2IgICAgICAyMDIwLTA5LTIwIDE0OjI4OjQ5LjAxODU0MzIzMCAtMDQwMAotQjogS0VZETAw ZiAyOTAyMDAwIDgzODAzMDdjIGY5MTBmMDAxIGZlZmZmZmRmIGZmZWZmZmZmIGZmZmZmZmZmIGZm ZmZmZmZlCitCOiBLRVkRMDBmMDI5MDIwMDAgODM4MDMwN2NmOTEwZjAwMSBmZWZmZmZkZmZmZWZm ZmZmIGZmZmZmZmZmZmZmZmZmZmUKLUI6IEtFWXAwMDAgMCAwIDAgMCAwIDAgMCAwCitCOiBLRVlw MDAwIDAgMCAwIDAKLUI6IEtFWUIwIDAgNzAwMDAgMCAwIDAgMCAwIDAgMCAwCitCOiBLRVlCMCA3 MDAwMCAwIDAgMCAwCi1COiBLRVkQMDAwMCAwIDAgMAorQjogS0VZEDAwMDAwMDAwMDAwMCAwCi1C OiBLRVlAMDAgMCAwIDAgMAorQjogS0VZQDAwIDAgMAotQjogS0VZgDAwIDAgMCAwIDAgMCAxMTAw YiA4MDAgMiAyMDAwMDAgMCAwIDAgMAorQjogS0VZgDAwMDAwMDAwMDAgMCAwIDExMDBiMDAwMDA4 MDAgMjAwMjAwMDAwIDAgMAotQjogS0VZPjAwMGIgMCAwIDAgMCAwIDAgMAorQjogS0VZPjAwMGIw MDAwMDAwMCAwIDAgMAotQjogS0VZ/2ZmZmZmZiBmZmZmZmZmZiBmZmZmZmZmZiBmZmZmZmZmZiBm ZmZmZmZmZiBmZmZmZmZmZiBmZmZmZmZmZiBmZmZmZmZmZQorQjogS0VZ/2ZmZmZmZmZmZmZmZmZm IGZmZmZmZmZmZmZmZmZmZmYgZmZmZmZmZmZmZmZmZmZmZiBmZmZmZmZmZmZmZmZmZmZlCjsgCihj YXQzMiBiZWluZyBhIDMyYml0IGJpbmFyeSBvZiBjYXQpCkFsbCB0aGUgZGlmZmVyZW5jZXMgYXJl IGR1ZSB0byBob21lZ3Jvd24gYml0bWFwLXRvLXRleHQgY29udmVyc2lvbi4KCk5vdGUgdGhhdCBm ZWVkaW5nIHRoYXQgaW50byBhIHBpcGUgbGVhdmVzIHRoZSByZWNlcGllbnQgd2l0aCBhIGxvdmVs eSBwcm9ibGVtIC0KeW91IGNhbid0IGdvIGJ5IHRoZSB3aWR0aCBvZiB3b3JkcyAodGhleSBhcmUg bm90IHplcm8tcGFkZGVkKSBhbmQgeW91IGNhbid0CmdvIGJ5IHRoZSBudW1iZXIgb2Ygd29yZHMg ZWl0aGVyIC0gaXQgdmFyaWVzIGZyb20gZGV2aWNlIHRvIGRldmljZS4KCkFuZCB0aGVyZSdzIG5v dGhpbmcgd2UgY2FuIGRvIHdpdGggdGhhdCAtIGl0J3MgYSB1c2VybGFuZCBBQkksIGNhbid0IGJl CmNoYW5nZWQgd2l0aG91dCBicmVha2luZyBzdHVmZi4gIEkgd291bGQgcHJlZmVyIHRvIGF2b2lk IGFkZGl0aW9uYWwgZXhhbXBsZXMKbGlrZSB0aGF0LCBUWVZNLi4u 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 D241CC43463 for ; Sun, 20 Sep 2020 18:44:40 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C865B207BB for ; Sun, 20 Sep 2020 18:44:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C865B207BB 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=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4Bvc1d2bGtzDqQY for ; Mon, 21 Sep 2020 04:44:37 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=ftp.linux.org.uk (client-ip=2002:c35c:fd02::1; helo=zeniv.linux.org.uk; envelope-from=viro@ftp.linux.org.uk; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=zeniv.linux.org.uk Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Bvbym5VYXzDqHm for ; Mon, 21 Sep 2020 04:42:08 +1000 (AEST) 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 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-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aio@kvack.org, linux-mips@vger.kernel.org, David Howells , linux-mm@kvack.org, keyrings@vger.kernel.org, sparclinux@vger.kernel.org, Christoph Hellwig , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, x86@kernel.org, Arnd Bergmann , linux-block@vger.kernel.org, io-uring@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jens Axboe , linux-parisc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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... From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Date: Sun, 20 Sep 2020 18:41:57 +0000 Subject: Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag Message-Id: <20200920184157.GP3421308@ZenIV.linux.org.uk> List-Id: References: <20200918124533.3487701-1-hch@lst.de> <20200918124533.3487701-2-hch@lst.de> <20200920151510.GS32101@casper.infradead.org> <20200920180742.GN3421308@ZenIV.linux.org.uk> In-Reply-To: <20200920180742.GN3421308@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable 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 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: KEYp000 0 0 0 0 0 0 0 0 +B: KEYp000 0 0 0 0 -B: KEYB0 0 70000 0 0 0 0 0 0 0 0 +B: KEYB0 70000 0 0 0 0 -B: KEY=100000 0 0 0 +B: KEY=10000000000000 0 -B: KEY@00 0 0 0 0 +B: KEY@00 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>000b 0 0 0 0 0 0 0 +B: KEY>000b00000000 0 0 0 -B: KEY=FFffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffff= fffe +B: KEY=FFffffffffffffff ffffffffffffffff ffffffffffffffff fffffffffffffffe ;=20 (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 probl= em - 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... 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=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 77450C43463 for ; Sun, 20 Sep 2020 18:43:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1F47F207BB for ; Sun, 20 Sep 2020 18:43:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FwjRb00r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1F47F207BB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject: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=B1alqCpA+LLGWcfS67JBlnXk4m0zoaZvYS6Acm6yXwQ=; b=FwjRb00rJ9bTLeOCVjSCksguG eM105JQXhX/SmaLxMYs6yTuiIhlmUhPZTU0xL1urO44QMGh7inCgpNlxVC1wlK76bhx+EgF6rRPo/ VG+tYUO8g4R7ng5p8cLxM93gI+fUhdW/DWNKwk9xjCJ0kJ4AM8j72ulkrE0edkDtd5JapDL/hlU0e ECpU+ngtcYuki0HIDYDe8qn5Vg9HlJi6705bzBbvgb7it4fxZQuGleHvIzC8tB56y66xdGWGxIelm I5HY0tnn9tYYjy0yCDl6m1OzA/8bd83CZXg6g227S5hQkYrgfuhD6SxNOMup7QIv+3QD2gmVmBv9G DG7UkLjXw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kK4Hm-0008UX-Hz; Sun, 20 Sep 2020 18:42:06 +0000 Received: from [2002:c35c:fd02::1] (helo=ZenIV.linux.org.uk) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kK4Hj-0008TM-GU for linux-arm-kernel@lists.infradead.org; Sun, 20 Sep 2020 18:42:04 +0000 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 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-Disposition: inline In-Reply-To: <20200920180742.GN3421308@ZenIV.linux.org.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200920_144203_600395_8CB655EB X-CRM114-Status: GOOD ( 12.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-aio@kvack.org, linux-mips@vger.kernel.org, David Howells , linux-mm@kvack.org, keyrings@vger.kernel.org, sparclinux@vger.kernel.org, Christoph Hellwig , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, x86@kernel.org, Arnd Bergmann , linux-block@vger.kernel.org, io-uring@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jens Axboe , linux-parisc@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org 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 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... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel