Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755380Ab3HBSch (ORCPT ); Fri, 2 Aug 2013 14:32:37 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:14428 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753017Ab3HBScg (ORCPT ); Fri, 2 Aug 2013 14:32:36 -0400 X-Authority-Analysis: v=2.0 cv=P6i4d18u c=1 sm=0 a=Sro2XwOs0tJUSHxCKfOySw==:17 a=Drc5e87SC40A:10 a=7p5mhCWNro8A:10 a=5SG0PmZfjMsA:10 a=IkcTkHD0fZMA:10 a=meVymXHHAAAA:8 a=KGjhK52YXX0A:10 a=xRPFay5u69YA:10 a=5EJbLc2318gLgB091eEA:9 a=QEXdDO2ut3YA:10 a=8sdsUPW-wLkA:10 a=g-seKyyuCv8A:10 a=Sro2XwOs0tJUSHxCKfOySw==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 67.255.60.225 Message-ID: <1375468355.22073.9.camel@gandalf.local.home> Subject: Re: [PATCH] tracing: a few fields of struct trace_iterator are zeroed by mistake From: Steven Rostedt To: David Sharp Cc: Andrew Vagin , "linux-kernel@vger.kernel.org" , Frederic Weisbecker , Ingo Molnar , Hiraku Toyooka , Arjan van de Ven , Masami Hiramatsu Date: Fri, 02 Aug 2013 14:32:35 -0400 In-Reply-To: References: <1375463803-3085183-1-git-send-email-avagin@openvz.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 644 Lines: 23 On Fri, 2013-08-02 at 11:15 -0700, David Sharp wrote: > Wow. That is a terrible hack. Thanks for noticing it. Why thank you :-) It's a hack from doing things that way else where and long ago. > > If I may suggest a way better idea: put these zeroed-in-pipe_read > members in an embedded anonymous structure, and zero the structure in > pipe_read. Sure, sounds like a fix for 3.12. -- 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/