Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbbH0Xnh (ORCPT ); Thu, 27 Aug 2015 19:43:37 -0400 Received: from smtprelay0001.hostedemail.com ([216.40.44.1]:52008 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751797AbbH0Xng (ORCPT ); Thu, 27 Aug 2015 19:43:36 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2194:2198:2199:2200:2393:2553:2559:2562:3138:3139:3140:3141:3142:3351:3622:3865:3866:3867:3868:3870:3872:3873:5007:6261:7576:7875:10004:10400:10450:10455:10462:10464:10848:10967:11232:11658:11914:12517:12519:12663:12740:13069:13311:13357:19904:19999:21080:21094,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: dress24_20ff7cc67024 X-Filterd-Recvd-Size: 1695 Date: Thu, 27 Aug 2015 19:43:32 -0400 From: Steven Rostedt To: David Miller Cc: ast@plumgrid.com, mingo@kernel.org, wangnan0@huawei.com, hekuang@huawei.com, daniel@iogearbox.net, brendan.d.gregg@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] bpf: add support for %s specifier to bpf_trace_printk() Message-ID: <20150827194332.279edaa4@gandalf.local.home> In-Reply-To: <20150827.162039.1520656052011605652.davem@davemloft.net> References: <1440656819-25622-1-git-send-email-ast@plumgrid.com> <20150827.153409.893765406170260565.davem@davemloft.net> <55DF97E6.9050108@plumgrid.com> <20150827.162039.1520656052011605652.davem@davemloft.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 787 Lines: 23 On Thu, 27 Aug 2015 16:20:39 -0700 (PDT) David Miller wrote: > From: Alexei Starovoitov > Date: Thu, 27 Aug 2015 16:06:14 -0700 > > > Fair or you still think it should be per byte copy? > > I'm terribly surprised we don't have an equivalent of strncpy() > for unsafe kernel pointers. > > You probably won't be the last person to want this, and it's silly > to optimize it in one place and then wait for cut&paste into the > next guy. If it doesn't exist. Perhaps its time to create it. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/