Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3745imm; Tue, 31 Jul 2018 12:43:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcRuczSJivkptU31/J/jDpn34vvQYSQmWKVq8Lbqtircq8AwP2lw/2+5MlMmjGKp89jq5T8 X-Received: by 2002:a17:902:50ec:: with SMTP id c41-v6mr21731693plj.269.1533066216480; Tue, 31 Jul 2018 12:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533066216; cv=none; d=google.com; s=arc-20160816; b=fOhxoKRUgQWrXIoO8CWAf+Rx94zo2ETgwH/h7PsnYbARpPgjcH5qf7V8IeXr7zOULo M0hdT+HZ3RuPhDp9SKrKxS90uMBXJWS/Xd4SFTuEBUuElfIPqiUhww+ks/LefPpSnkkT Q8TMpAmY43l3Te3TQq57esyB0MEGU8MV2+EO03rESnFmn1afGuzkukeGSN6kWEMBtbpS ePLrX/HYWF6C1yS0aiT5dyRRr1Rh3QkNVZGIZvGXzcBTL+ynnRencJ9iEb3ohZlnNGuH RG0AV+WYU8pLAXA5OgRhWWKszyQgEfWQqLVtpgfdRMVT7j3OFVyLXqKe5mfuPef5z5L5 mY+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=svBW5zEMt4yvj0o5cNou6zQdRNRcnSk+bgJcJEz++RA=; b=kQsjg55LCwpZTACMJ/RyJ+PclHjL3eh4tygfAeiXwjIX9PJg96+TX4dQNLFdZ0OR0Q jTojHhk2IrBwLMzDxUlj+pw/10Fd/mDh3Yg9g5QBm28fde7Cp5zQBeeO7DR25Iw/mU5l s9pidEJW6JF13/Txcm0QkdD/HHCh2844e2eE7ElLk2hcpa6Y5I9pfQ/sxGXUSRZwbjuX YuCo2jxAMwYB4LgKb/M5ghmWafxkzK6yAU5ZWObqKbMw1alcIzWSAtHSz93yvIhsYvhi zme2MSAFvADTLyW/JR/D9jds2knfQTX8w2FBqj82mtIRemRNpNgHzXkwpzfpIsFtVUlD q7Iw== ARC-Authentication-Results: i=1; mx.google.com; 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 w3-v6si12862253plb.197.2018.07.31.12.43.16; Tue, 31 Jul 2018 12:43:36 -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; 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 S1732408AbeGaVU7 (ORCPT + 99 others); Tue, 31 Jul 2018 17:20:59 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:52283 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729699AbeGaVU7 (ORCPT ); Tue, 31 Jul 2018 17:20:59 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 18BBC806A8; Tue, 31 Jul 2018 21:39:07 +0200 (CEST) Date: Tue, 31 Jul 2018 21:39:05 +0200 From: Pavel Machek To: David Howells Cc: Matthew Wilcox , "Theodore Y. Ts'o" , Linus Torvalds , Al Viro , linux-fsdevel , Linux Kernel Mailing List Subject: Re: [PATCH 36/38] vfs: Add a sample program for the new mount API [ver #10] Message-ID: <20180731193905.GA28700@amd> References: <20180730183847.GB5544@bombadil.infradead.org> <20180730194938.GA12962@bombadil.infradead.org> <20180730210209.GY21725@thunk.org> <20180730235849.GA19692@bombadil.infradead.org> <20180731005802.GB21725@thunk.org> <18974.1533031913@warthog.procyon.org.uk> <20180731113422.GA22939@amd> <20180731120752.GA23378@bombadil.infradead.org> <4951.1533042037@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <4951.1533042037@warthog.procyon.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-07-31 14:00:37, David Howells wrote: > Pavel Machek wrote: >=20 > > Regexes do not work in presence of arbitrary strings in the > > message. If we had a way to tell start / end of string inserted in the > > message, yes, the problem would be solved. >=20 > You could use quotes around arbitrary insertions, ie. you always do '%s' > inside the kernel if %s doesn't correspond to a specific set of text > constants. Yes, that would work. Except for strings that can contain 's, for example filenames. \0 could be used to terminate arbitrary strings.. AFAICT this goes over file descriptors, so length is available, and we could use \0 to terminate strings. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --/04w6evG8XlLl3ft Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltgutgACgkQMOfwapXb+vIcQQCghSIJbE0vhoOHn0oKsG0JcaQ4 5GkAn3cX3Umd/qo7HZat0BsJNWEVvIQz =6RYh -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--