From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759275AbcLPXE1 (ORCPT ); Fri, 16 Dec 2016 18:04:27 -0500 Received: from mail-io0-f176.google.com ([209.85.223.176]:35964 "EHLO mail-io0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752585AbcLPXEY (ORCPT ); Fri, 16 Dec 2016 18:04:24 -0500 MIME-Version: 1.0 In-Reply-To: References: <20161216215137.GA96800@beast> From: Kees Cook Date: Fri, 16 Dec 2016 15:04:22 -0800 X-Google-Sender-Auth: D0-VK30nKklMrmFQHkkWKvDhma8 Message-ID: Subject: Re: [PATCH] acpi: Fix format string type mistakes To: "Rafael J. Wysocki" Cc: 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 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? > Moreover, I'm not sure if adding __printf in acpiosxf.h is a good idea. Why not? This is going to be needed by the initify plugin to do correct detection of what's being passed around to functions... -Kees -- Kees Cook Nexus Security