From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id B1D897D048 for ; Tue, 5 Jun 2018 16:43:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbeFEQnq (ORCPT ); Tue, 5 Jun 2018 12:43:46 -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-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@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 -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html