Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7079259imm; Tue, 24 Jul 2018 08:04:55 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf7UXG96hG5kSRppAHG8oBHx6LB0NMeHwOZfIbi9bLJmnzpSPPk4spv7DgAjluH0fv8Mo9h X-Received: by 2002:a17:902:1682:: with SMTP id h2-v6mr17368177plh.327.1532444695420; Tue, 24 Jul 2018 08:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532444695; cv=none; d=google.com; s=arc-20160816; b=YE4GW7jKrpfj0k/JbLs4d9SijqJZUGqQo+bsK5E7mXqB7h/XtHch7eG1be+9owetMU 2F9XirwctPTbfbBnQIlkO9Rtd6sU9ifqH6Fa9cBSMuhpcTMol1U/nA80CzTEXPwITfiL tC9avO0f/xxxuHQELpEgLRqFrjx2I2jnkUBKhbOHQiY3uL0VxeSh6R0X6SI2du8r1yQ/ kvazPewMBwyA3YiBeMqYrYA1hJN2s4nr6djl9hk8xAKtCN8jaOgmGQ+mhVn5j3QtFrZP m3M86yTn9HHl8iwEbbwfa+x33c84cbWaHTfbqxAGcHapDeUacUIbzUuvz2vkxQLyjuFg VbxA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=q8Km3PyVReA01597qHOAPwHlyt/n5MrKpbcvNy7p52M=; b=kA+3bwkaV9LfhXbrvaVL/c3Bu7MZnaHGu+522IXuU5v/wRPzcHgTiPIvHgVzYfteTE ESfvcQJbO/ses+PpWUMpQnT99LC7Q15jbDGx/qLHIBEDQnvc4lo7ZNr9Q5xLGvlGP8nE PRMS6G4auRwryUPSFWr2VJkHXmx+eXt8l6z0hRld56VKpBhXk/czUcFu2UPbafYcT/Ee gnJRtF2CQfi7ifpPymCQy/uUQJhLSniImi+B8zN4LyC/cRfnfjzpdtAttqVWTIqi8xiV 3TnuG9EBUHHVJUBjSeKp/Z6DzpGabNeyIEPS09Zc7g5UPbZsWBBUiZVZBU1YBm1uJP7t sV2w== 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 c4-v6si11550828pfd.344.2018.07.24.08.04.40; Tue, 24 Jul 2018 08:04:55 -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 S2388686AbeGXQJu (ORCPT + 99 others); Tue, 24 Jul 2018 12:09:50 -0400 Received: from seldsegrel01.sonyericsson.com ([37.139.156.29]:13024 "EHLO SELDSEGREL01.sonyericsson.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbeGXQJu (ORCPT ); Tue, 24 Jul 2018 12:09:50 -0400 Subject: Re: [PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads To: Steven Rostedt CC: , Ingo Molnar , Jens Axboe , Tejun Heo , Greg Kroah-Hartman , Linus Torvalds , Peter Enderborg , Yoshitaka Seto , Oleksiy Avramchenko , KOSAKI Motohiro , John Stultz References: <20180723134210.54013-1-snild@sony.com> <20180723095550.08203a24@gandalf.local.home> <9d762b4e-20a7-578f-90c8-10a044921d67@sony.com> <20180723113741.66df3b50@gandalf.local.home> <7749ed7d-50d5-4b95-fbd2-b056a1fff957@sony.com> <20180723124154.14ef0679@gandalf.local.home> <72573a9f-694e-fc4b-cfd1-d9cde504a480@sony.com> <20180724104815.05d2ac68@gandalf.local.home> From: Snild Dolkow Message-ID: Date: Tue, 24 Jul 2018 17:02:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180724104815.05d2ac68@gandalf.local.home> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/24/2018 04:48 PM, Steven Rostedt wrote: > On Tue, 24 Jul 2018 10:17:37 +0200 > Snild Dolkow wrote: > >> creator other >> vsnprintf: >> fill (not terminated) >> count the rest read/use comm > > I think it would be better to state what was reading the comm. Like > > trace_sched_waking(p) > memcpy(comm, p->comm, TASK_COMM_LEN) > > But the rest looks fine. > > -- Steve Works for me. Reworded v2 coming up soon. //Snild