Received: by 10.223.185.116 with SMTP id b49csp1120726wrg; Wed, 21 Feb 2018 12:28:27 -0800 (PST) X-Google-Smtp-Source: AH8x225EdH6fNZ8hs5rliYw2sVWNBvIn82Eivf2Zz952zdmil3vv0PwDZigdzwmoEL5ygfbzDY7O X-Received: by 10.101.93.15 with SMTP id e15mr3597851pgr.175.1519244907501; Wed, 21 Feb 2018 12:28:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519244907; cv=none; d=google.com; s=arc-20160816; b=wVxaqe9YiLnWKhoHYIM7TWnc4P7e8viH3x2zZ6utv/QN3mTqI+x/qCLgoKPK1Sr/zn /FpIwcMyoWD5lXjfAro6c55IfZdLkJEL4j0fQYJKAwIBrZ5nNkdyDAFfyWn/x1S0p5FF EL+7LPNV7BvPGdOYaxzAbbAv0SiYvoNDVuPx64fAm02diRzt/sKni5rZtDLU8U460s9Y UASjtItKNUVbWmeqLmczYGhUL4c6JyZewhjzU62j5PgZewDXkQ1biLdggggUubejbF5R q7XVELZVPLKH3Z/jPbM+7vG7zDDCgAL3zGCjzmngu0pemcQt+zmYNyFkByQ8xP8HzoFb PFyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=GVsU3BfS2l5ZZ6TQy1FFQ9nGl6yAVB89sHLSv/3fZsE=; b=UFrIBjvETkA+pxa6/qWXqwdLfKNZk7CBFmV8FojAGZQq8HOxEQQ9booyzO0TVPykNi dt0VJOqe1XjToWPJa9HaiKThYNqRpL146r7TKl/JN3s6KMfx7Fz7jIdrv3topa8wgHjx ZoRNVFRgU9aFwmvNC5YAlZkzNd4qULn8xIXPr9iPuMdJ3xv2lJJI5f7d/1Fe9Ohddu4H JvrekNw1BVxUOkChk+wzDBaaBizx2q4SNnr++qpH1cOSEVk0wqRAYFLHFVm6zMfaQlO3 u5pWbjxSMsuFe0+HoC19zbV+6X8pqjr9AhvqmZVgSSQ5WlSUlU62/rFymI2luDw+RfCl gBbA== 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 y125si149873pgb.120.2018.02.21.12.28.12; Wed, 21 Feb 2018 12:28:27 -0800 (PST) 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 S1751346AbeBUU1J (ORCPT + 99 others); Wed, 21 Feb 2018 15:27:09 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38306 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbeBUU1I (ORCPT ); Wed, 21 Feb 2018 15:27:08 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.9.71]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 3A400EB6; Wed, 21 Feb 2018 20:27:08 +0000 (UTC) Date: Wed, 21 Feb 2018 12:27:07 -0800 From: Andrew Morton To: Rasmus Villemoes Cc: Andy Shevchenko , Alexey Dobriyan , Linux Kernel Mailing List Subject: Re: [PATCH 2/2] proc: use set_puts() at /proc/*/wchan Message-Id: <20180221122707.69398914a45486a741bdad96@linux-foundation.org> In-Reply-To: <317b6413-0a46-8f5c-ad24-c5e183bc9a7a@prevas.dk> References: <20180217072011.GB16074@avx2> <20180220160212.8f3942d40e0b4014e2aa457c@linux-foundation.org> <317b6413-0a46-8f5c-ad24-c5e183bc9a7a@prevas.dk> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Feb 2018 09:57:49 +0100 Rasmus Villemoes wrote: > On 2018-02-21 01:02, Andrew Morton wrote: > > On Sat, 17 Feb 2018 16:06:42 +0200 Andy Shevchenko wrote: > > > >> On Sat, Feb 17, 2018 at 9:20 AM, Alexey Dobriyan wrote: > >>> Signed-off-by: Alexey Dobriyan > >> > >> > >>> - seq_printf(m, "%s", symname); > >>> + seq_puts(m, symname); > >> > >> While this might have no security concerns, the pattern might be > >> brainlessly used by some janitors and there would have security > >> implications. > > > > And I'd like to see a changelog, please. One which explains why > > `symname' cannot have a %s (etc) in it, and never will. > > OK, since #youtoo: It doesn't _matter_ if symname is "%pHAHAHA %fooled > you ", seq_puts does not interpret it at > all. There are _never_ security implications with the above replacement. > Sure, seq_printf(m, symname) would be bad, but that's not what is being > done. doh, OK, sorry. RTFP, Andrew.