Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1148624imm; Tue, 5 Jun 2018 09:47:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKa5596Jv5x4cyBBs/y2n73iWTo/cIYLkau3df1YQBcCvE2pb24jU1vNoW/PVVFJn2UdEw6 X-Received: by 2002:a62:9c9c:: with SMTP id u28-v6mr10644223pfk.90.1528217260604; Tue, 05 Jun 2018 09:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528217260; cv=none; d=google.com; s=arc-20160816; b=ERmz9HXmI8FkUD3Q5y+/4LeODyOIHZDimgYAx2hoPvJJQXXqAyXZjIWFNa2iUVoNc0 SwviuuXqrlB1snMf7YXLz0S7mGPFwy5UtXjFDETxV8j8KkW5WFV0/T4+PPTC5EKpHxG8 crJZm4YRrCIFNZSqJFkRzdgyXz5Qti7K2FND57Sn+QD9Tlnv6JGuRk9Itx/+l9tXVEPM 4vcXr3fdpdqgzlXCE1hdyS/+kxCU5LoRI0cKtzsW73yFj32r9YS2qRTWIHlp1fVZTnOp wUXpcMOrYeE8maHo8KahNAz2OI6vhFfcVMtsY84L/lFK4lpF0jm3QoJYxYkriDe5tve+ F6tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :arc-authentication-results; bh=qfuUwiDpIb6P47nK+MvxE0j04bQG+9kj4wjgON/WUqI=; b=GbMgWq7fCbySUDKWtyZVOcHLUgZYBzGf7LDVY4E2KDJfwiCrekfRnLInx3Erx0Q/J/ sagJJEfHEZHYuA5rokGFK+s6RmwmtWRI5x/ir0iSJb+v57mBhmMWx9S0sDh3xL10DzYL z1n9kFeforw0fGTtBgzhmqx4dKn/cUN+16JWjxjy6wh7edAj0KZxPSn3rRLxXbhxRKRt hEAL/S5J1/gcWpGQbUpDSkJTqA8fVs90/9bcsOjwmd6TTAkrJURLok+S1XV4Z4vYrUNU 13/GVpfUI99R7D2ALz5PcVoBUX5PT/kBN5JzCg1nTAEijQprlAa9DUkk5iaaCMY0iuOc 96YA== 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 63-v6si34148903pla.140.2018.06.05.09.47.26; Tue, 05 Jun 2018 09:47:40 -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 S1751980AbeFEQnr (ORCPT + 99 others); Tue, 5 Jun 2018 12:43:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:46799 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751748AbeFEQnq (ORCPT ); Tue, 5 Jun 2018 12:43:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 40A70AD49; Tue, 5 Jun 2018 16:43:44 +0000 (UTC) From: Michal Suchanek To: Jonathan Corbet , Michal Suchanek , Arnd Bergmann , Frederic Weisbecker , Ingo Molnar , Aaron Wu , Tony Luck , Andrew Morton , Thomas Gleixner , "Steven Rostedt," , Laura Abbott , Dominik Brodowski , Alexey Dobriyan , Tom Lendacky , Jeffrey Hugo , Baoquan He , Ilya Matveychikov , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v10 0/5] Kernel parameter parser cleanup/enhancement Date: Tue, 5 Jun 2018 18:43:07 +0200 Message-Id: X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, due to work on the fadump_extra_args I looked at the kernel parameter parser and found its grammar rather curious. It supports double quotes but not any other quoting characters so double quotes cannot be quoted. What's more, the quotes can be anywhere in the parameter name or value and are interpteted but are removed only from start and end of the parameter value. These are the patches not specific to fadump which somewhat straighten the qouting grammar to make it on par with common shell interpreters. Specifically double and single quotes can be used for quoting as well as backslashes with the usual shell semantic. All quoting characters are removed while the parameters are parsed. Previous versions (including the fadump part) can be found here: https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg126148.html https://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg123639.html Thanks Michal Michal Suchanek (5): lib/cmdline.c: Add backslash support to kernel commandline parsing. Documentation/admin-guide: backslash support in kernel arguments. init/main.c: simplify repair_env_string. lib/cmdline.c: Implement single quotes in commandline argument parsing. Documentation/admin-guide: single quotes in kernel arguments. Documentation/admin-guide/kernel-parameters.rst | 5 +- init/main.c | 13 ++--- lib/cmdline.c | 63 +++++++++++++++---------- 3 files changed, 46 insertions(+), 35 deletions(-) -- 2.13.6