Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp927209imm; Fri, 12 Oct 2018 08:54:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61egfbH/RWMC3pKmmKEhbREmVjMSy3b8Vu5zriIkoI0sLwO7D5/Gz7B1CKDWRjwUf/0aD1x X-Received: by 2002:a17:902:15a8:: with SMTP id m37-v6mr6442351pla.132.1539359677266; Fri, 12 Oct 2018 08:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539359677; cv=none; d=google.com; s=arc-20160816; b=bEB5whfQ+AyrfvyvTmrETgYTQu4sonpf8vRG6ffvOlGy0P4qkkhcPGeiSfi9Xld9lx t/44HewKayJIeZDPlY0miIVy010K/RZ8H5v+RJ800sWHV9+fViY27OkKVlOSfObahXGt sYPFg5OJ6axQLZNMOjJtCBouQJPnE83lFE23XRwvESRSdU4V8reQ4rAwTFIh8RsbNRLq eeSPKdTfCP2DkzetPV/tOy7yZf52IXw/Zkr20xeP+0GxIZy6yoxVB/7kjvNtrDg8f8t6 v+btibt2Jvr+yrp2nYuOrt8Z8MzHAwzgKg4CFOhcXRxUmAa32nvQ2tZL9RYJkrAKXC8Z Q6Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=wNLSJKUU5zXLjOjVF17hVK61QMMaYTLJ9qx/1sQMUfU=; b=Uo9ksWWrKKTk1LHw08oDOdH+B61cL53nrz5u9fCWBw9gx9jFBI5SurRrNOpqmmW+rx DHdi7xF5QXPPh3uiK/xjY8jx6yo16tUu61UZdn36i/hOApqG+LKQiD+Il+I2CFH39tjw nc9m37ibnM6UKMCkVkZ56boiq5LkbHU+ljHp8o7B8n8SbHddwdtDzbzaoG3XENee1GeL ODjJjX4e2aqMvOX6Sxs0oOsVfVPudu9avBRH8d/29QGv1azkc0DAEdxu1URMMPU2vhrI Qogaz8zjadwFFGmiuJFqZL+/u2nXXDyzpBs0qNdK/U/0VO2wI1rcstYZF5uTYs31xmNK ddRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TQufs+6W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si1378084pgv.260.2018.10.12.08.54.22; Fri, 12 Oct 2018 08:54:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TQufs+6W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729173AbeJLX0y (ORCPT + 99 others); Fri, 12 Oct 2018 19:26:54 -0400 Received: from mail-it1-f177.google.com ([209.85.166.177]:51493 "EHLO mail-it1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729071AbeJLX0y (ORCPT ); Fri, 12 Oct 2018 19:26:54 -0400 Received: by mail-it1-f177.google.com with SMTP id 74-v6so19448347itw.1; Fri, 12 Oct 2018 08:53:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wNLSJKUU5zXLjOjVF17hVK61QMMaYTLJ9qx/1sQMUfU=; b=TQufs+6W7sg/L4cpQUEp4ordO5yIZRic7jRt3QCBy1NKlkAhGkc355bqj+GpMqOYQ7 a3yqgvZynXu3PB2YzfIE+DVVxbHKgImS9H4N4D+f/4iA98Mi8VhulSEoGYJDl2Rima4l DphTS6FhUfybstj6+ltbxDbR7wjrvoKSzzLs5BOLaEXJWc8uzXTkXtn6KjLmVav6B9EO LoY2xwIa+rpQnvSd8P2PubQBKKl7YifP0R17oZGry/e3XC/WUZmD0CeGKc7QM+RdXCRc dhLsml/aIrlPvzMB+ynfmQYg3jNODM0CddKZWzk4Em9gXEQwbmnkYSrcRPwbkYoRzA4F mWqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wNLSJKUU5zXLjOjVF17hVK61QMMaYTLJ9qx/1sQMUfU=; b=PRU2nm45G6qIcH5EAZfCDCrEJMfabVxZGhKDmytihXxqUcD4iMRmvVApSahPZRsnTW oTgS5y48SLl6v1ijBZj+uNe/gJaG/R2YCFbr5uBVx1uYgVfbUXmQvufNjCA+misRrhBw RjyPyvBCbdGH9ZUii42I79wpXh384cio/2PC1xj+lTgoehN6+8ExKW8ZD8kHH9bTLFAN tRJljZ1jjn6zLbphJ8HJmVMLYbvF0wXp8yEEqgVEun0brdXt/k6BY40LrcaG3q9k8heQ 4pWsli+JREqfVsJDtMjOML8DYVQiS5NOH7B7cut9jdE6+ujc7UAeFfV5/eQZ18SZis6V vn8g== X-Gm-Message-State: ABuFfohZ7r7tw2StthkdUtJd9QyWFO2IvXtk+ry0tVxsh8NW8BttrZoZ sLnxVm3YWG4IqdWctXH7ac1ymcfc X-Received: by 2002:a05:660c:fd2:: with SMTP id m18mr1543644itn.92.1539359626595; Fri, 12 Oct 2018 08:53:46 -0700 (PDT) Received: from [192.168.1.249] (cpe-70-114-247-242.austin.res.rr.com. [70.114.247.242]) by smtp.googlemail.com with ESMTPSA id y4-v6sm414057iom.73.2018.10.12.08.53.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 08:53:45 -0700 (PDT) Subject: Re: [PATCH] KEYS: trusted: fix -Wvarags warning To: James Bottomley , ndesaulniers@google.com, dhowells@redhat.com Cc: natechancellor@gmail.com, ebiggers@google.com, Mimi Zohar , James Morris , "Serge E. Hallyn" , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org References: <1539274203.2623.56.camel@linux.vnet.ibm.com> <20181011203126.15338-1-ndesaulniers@google.com> <1539356751.2656.5.camel@linux.ibm.com> <1539357759.2656.7.camel@linux.ibm.com> <16de2bb3-815a-f534-4618-af854c906017@gmail.com> <1539359181.2656.13.camel@linux.ibm.com> From: Denis Kenzior Message-ID: Date: Fri, 12 Oct 2018 10:53:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1539359181.2656.13.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, >> From the links provided in the patch it seems that one cannot pass >> char/float/short to va_start(). Fair enough. So if we make h3 an >> unsigned int, the issue goes away, no? > > For the current version of clang, yes. However, if we're fixing this > for good a char * pointer is the only guaranteed thing because it > mirrors current use in printf. > All right. I guess I wasn't aware that non-printf like variadic functions are now considered harmful or of the impending crusade against them :) But in the context of this patch, can we please use something less invasive than changing all the arguments around? Promoting h3 to a bool (if possible) or int/unsigned int would get my vote. Regards, -Denis