Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7326261pxb; Thu, 18 Feb 2021 07:19:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5l5Byz9euzILuY/soG14jVMAAZMfp1NsyrG1na34Tfz0LQg0+3oemgIr0Z2ts1G8bXeI6 X-Received: by 2002:a17:906:1951:: with SMTP id b17mr4207740eje.409.1613661550083; Thu, 18 Feb 2021 07:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613661550; cv=none; d=google.com; s=arc-20160816; b=auhReKzDjYULmB7pqEm4CvZ4ofxF0m4QPSn4HqsnRCxNI3CCezHzdODZFAKlaYSTnC rxAW4QetVWyxWvbsdzRP9uBwdI8jzJT1np+6enHbW9XmnC86YEll1iOzHmB5DOQ6Hj4h oohfMUi0tEDFmcHib/xpkvMk+a5cT5QSo7Iwuw+1GmDi8dv1SkpiUtMXcE2FvqD2QcLU Kx3Tv9AaMa2vWh80AyKxhz8xLkudBL42K+AaXsugy/S9dm69UT1RUnQ+loHOqMIo3dxW wYEBgq6Ms1kRTKqVOtZxPGUrLa7vHfmglEicWE5ATuh38rQhfKK+uCyRnPTnY+SEfDMz vixA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2jntTY6KjrXzGhj4wQ8ErItvzH/dYtJsdj3IZjK14aA=; b=j+2hRrO4ZxgM9zlPs2lz5dXe+5vqHsmZP8J1d5KLSbLO5D8Jj9oiOgXAAu4wnrAgIl Cez1U4wLT4pCeA9D6RHRr4SjlL4ZVGWiQBuy5Y3rog8569sbr9KfKldKp3+sR3GaCALJ /vMytb3yjVc1woseBtU20C9PJr+LawXDHRLMn4WMpl79mgFAK7j1NxO/FGbZz4D4Oy8B R3SffqgVBOOMbVBv2yPHXKkQoEPq6cyoPQxDZDCFLiFXy6OLItTWpTfN7F558WglqrFd x4W42EtVhJUxjEdqYRQvJWAYhe3gKD7IGCEaslnQmcwNjwnlyuVf4zVU+c+IEWcehnUW 05WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=xNILjLMK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb43si3211619ejc.169.2021.02.18.07.18.44; Thu, 18 Feb 2021 07:19:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=xNILjLMK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230221AbhBRPQ4 (ORCPT + 99 others); Thu, 18 Feb 2021 10:16:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbhBRMXd (ORCPT ); Thu, 18 Feb 2021 07:23:33 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B7BC0613D6 for ; Thu, 18 Feb 2021 04:21:58 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id t11so5160402ejx.6 for ; Thu, 18 Feb 2021 04:21:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2jntTY6KjrXzGhj4wQ8ErItvzH/dYtJsdj3IZjK14aA=; b=xNILjLMKtpGQpmfZrj0WxmAi5N2HXaWpV9UtS+plRZxlLUDMSy/RfRYROetankfVrg p3LEotiu2MjtLEOAKK0XZFhBxuD2oHBcskippngfaDDwA0LMG6HQPI04eDA1c9JH1Y1a V6AX155VYFHHMBKVJMidIlIpX7gTbka+Irfr0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2jntTY6KjrXzGhj4wQ8ErItvzH/dYtJsdj3IZjK14aA=; b=HMuMGlQI+52wSBT1ueLHfWD4lszCda7M9vKixyEy5wxbRj1QZSK/QW2OPwmOpcybDh 5oMpHdUZB7Il8GPE80aMJgoJCUK7bWEzA6wb10ERVXj5B+wyndH+8+uAQhgJB+tnqtx/ J05fXAb8FDcOschEOaA4DSTKscKtaAg3nNWlSz4uoj4PC+obg+iMN/NUM9Q77uWI+lDO DIovQyjoSbcA9Oj7q0SpW1YA4MtZH486tYrnz+fOA+rTKWN3kc3bzWGbFa6MtYzoDhZt qTiwWM232p7F5YC/o6WXrrdFz+u3MnO4mnY2GgW+v5K/nOINNIeASwv85rc7Fq42wS2f MiFw== X-Gm-Message-State: AOAM531wtJ8QBMKcCnKr67fUQQFcQSzaw3m55Hqwy8XSyQ835wjhTxps aZlvCPhUIPum6GFAFEEEep9DBJ/JFbRO/za1 X-Received: by 2002:a17:906:1944:: with SMTP id b4mr3723494eje.342.1613650916905; Thu, 18 Feb 2021 04:21:56 -0800 (PST) Received: from localhost ([2620:10d:c093:400::4:f7e9]) by smtp.gmail.com with ESMTPSA id an10sm2318681ejc.106.2021.02.18.04.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 04:21:56 -0800 (PST) Date: Thu, 18 Feb 2021 12:21:55 +0000 From: Chris Down To: linux-kernel@vger.kernel.org Cc: Petr Mladek , Sergey Senozhatsky , John Ogness , Johannes Weiner , Andrew Morton , Steven Rostedt , Greg Kroah-Hartman , Kees Cook , kernel-team@fb.com Subject: Re: [PATCH v4] printk: Userspace format enumeration support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.5 (da5e3282) (2021-01-21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for all your feedback, Petr and Steven. :-) Petr, I believe this is a comprehensive checklist of everything we discussed for v5 -- any chance you could double check I'm not missing anything you folks wanted? Thanks! - Use seq_file iterator again instead of simple_open + size - Remove debugfs file first to avoid ENOENT - Tear down datastructures if debugfs fails - Human readable output format - Display file/line - Rename to CONFIG_PRINTK_INDEX, or... something - Move to another file, kernel/printk/debug_formats.c or similar - Use `struct module *mod` instead of calling it module - Add documentation for printk_fmt_sec (or whatever it will be called) - Rename things to pf_, pi_, or something - See if it's safe to pass a printk_fmt_sec to seq_file instead of a module - Handle cont + level - Don't expose level/KERN_SOH directly