Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762120AbcLQCMa (ORCPT ); Fri, 16 Dec 2016 21:12:30 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:33137 "EHLO mail-wj0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753805AbcLQCMU (ORCPT ); Fri, 16 Dec 2016 21:12:20 -0500 MIME-Version: 1.0 In-Reply-To: References: <20161216215137.GA96800@beast> From: "Rafael J. Wysocki" Date: Sat, 17 Dec 2016 03:12:17 +0100 X-Google-Sender-Auth: Vj89gayHjRYjb-_ZRI6FmEUSN0U Message-ID: Subject: Re: [PATCH] acpi: Fix format string type mistakes To: Kees Cook Cc: "Rafael J. Wysocki" , Robert Moore , Linux Kernel Mailing List , Lv Zheng , "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Emese Revfy , "devel@acpica.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1325 Lines: 35 On Sat, Dec 17, 2016 at 12:04 AM, Kees Cook wrote: > On Fri, Dec 16, 2016 at 2:36 PM, Rafael J. Wysocki wrote: >> On Fri, Dec 16, 2016 at 10:51 PM, Kees Cook wrote: >>> From: Emese Revfy >>> >>> This adds the missing __printf attribute which allows compile time >>> format string checking (and will be used by the coming initify gcc >>> plugin). Additionally, this fixes the warnings exposed by the attribute. >>> >>> Signed-off-by: Emese Revfy >>> [kees: split scsi/acpi, merged attr and fix, new commit messages] >>> Signed-off-by: Kees Cook >> >> This modifies code that we get from an external projiect (ACPICA) and >> the bugs should be fixed in there in the first place. > > Who should get CCed? Fortunately, the right people are in the CC list already. :-) >> Moreover, I'm not sure if adding __printf in acpiosxf.h is a good idea. > > Why not? Because it would cause that file to diverge from its upstream counterpart which would be sort of a problem. > This is going to be needed by the initify plugin to do > correct detection of what's being passed around to functions... I guess the question is what we will miss if we don't do that specifically for ACPICA. Thanks, Rafael