Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754047AbdLICSv (ORCPT ); Fri, 8 Dec 2017 21:18:51 -0500 Received: from smtprelay0197.hostedemail.com ([216.40.44.197]:34541 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753821AbdLICSt (ORCPT ); Fri, 8 Dec 2017 21:18:49 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:541:599:960:967:973:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2525:2553:2560:2563:2682:2685:2691:2828:2859:2915:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6120:7903:9025:9072:9108:9388:10004:10049:10400:10848:11232:11658:11914:12043:12292:12682:12740:12760:12855:12895:13069:13161:13229:13311:13357:13439:13845:14096:14097:14106:14181:14659:14721:14764:14849:21080:21324:21433:21611:21627:30003:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: jump72_86ee54e4de65a X-Filterd-Recvd-Size: 2173 Message-ID: <1512785925.26342.4.camel@perches.com> Subject: Re: [PATCH] doc: convert printk-formats.txt to rst From: Joe Perches To: "Tobin C. Harding" , Dan Carpenter , Laura Abbott Cc: Kees Cook , Jonathan Corbet , Randy Dunlap , Andrew Murray , linux-doc@vger.kernel.org, LKML Date: Fri, 08 Dec 2017 18:18:45 -0800 In-Reply-To: <20171209012736.GC2191@eros> References: <1512524729-16051-1-git-send-email-me@tobin.cc> <20171207234402.GT2191@eros> <20171208004627.GW2191@eros> <1512768157.1845.30.camel@perches.com> <20171209012736.GC2191@eros> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.26.1-1 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: 857 Lines: 22 On Sat, 2017-12-09 at 12:27 +1100, Tobin C. Harding wrote: > On Fri, Dec 08, 2017 at 01:22:37PM -0800, Joe Perches wrote: > > Outside of the documentation, what could be useful is for > > someone to add a tool to verify %p extension to > > the typeof address actually passed as an argument. > > This sounds interesting to work no. At first glance I have no idea how > one would go about this. Some form of static analysis would be a good > place to start, right? I'd like to allocate some cycles to this, any > pointers most appreciated. A gcc-plugin would likely work best. There was some discussion about such a thing here: http://www.openwall.com/lists/kernel-hardening/2017/02/14/38 I vaguely recall someone else doing a broader use tool which I believe was not smatch, but my google-fu isn't finding it. It might have been coccinelle based.