Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1572701pxb; Thu, 4 Mar 2021 15:12:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwB/bGGzl8NWTCJqmil8wxEqIGbzUnc8WqS6jvWV6r1D/3iak7boO/UeSrsXIdhLcPQfXFg X-Received: by 2002:a5d:9245:: with SMTP id e5mr5516802iol.97.1614899548336; Thu, 04 Mar 2021 15:12:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614899548; cv=none; d=google.com; s=arc-20160816; b=z8WBA19RXY2/70LXdI9bJWa9uTSItIVKAmyqjz6YUo1tFZfWvfYKHhM/gGIuEOpVaw S5VJeGsp09GaZf4aSPvYgOd18W1o1ZEszCdvg1xG52sAqLYdz24rhgZmJalpEDsbyHIB pHnB7JHWlr08R4WV3JMaTf9h16GgNSQzZSBCxkh8pKoJjZuzJuveg8kYK1rePmeQNkCJ CgDSRY0mMOyi4+P9U5gaAMIcZFN8sSM2Jx/kJGiV9zc0JdYyO3Z5MAN0BuQFqkphl2BN 6gnYKhFZWCPdEVDafURtu4UD2qG5fd/WDSC5MXtKpgU15i0N1IlyT3nhJYGBsbYOqAfn 3JOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=KQXvgyhSrjF3BinYyO09oyvL9i4UaN+F4g55KY1VE+g=; b=dm7yv+koXhbbqU3soqx1aD3sfvIemFdbybY+3jCClM6JRYTsLNprA9z+5oJpH6jTsb aoe4gwtolggppbtUww7uZ9NyUHOhWMrmNWxgH/nBPcufA6J6xZwhr9oWCzUh2+lmcE23 bqwJGrQ8phswlia9ExK2964C8VWRSBZj+BdMi6+ZCRBBtyAtXRZPxSp/Lb7suUx7ogRo 9qXil3i2qopY/UOaf7RdzzuG5kP9V170F0oCuJwkyMrkohpw+hrDWE2S7U8zvXLP+x/b J+bthI3YEVcyjG9rlA+SQBsiB4gigmbZAVyOLNP1/+WcCQ4LVzWQFI67l87G/TqXgBEg smhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x129si519433iof.75.2021.03.04.15.11.41; Thu, 04 Mar 2021 15:12:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383959AbhCCPfv (ORCPT + 99 others); Wed, 3 Mar 2021 10:35:51 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:51030 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356559AbhCCKrp (ORCPT ); Wed, 3 Mar 2021 05:47:45 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Dr9fN2CZxz1qtd7; Wed, 3 Mar 2021 11:46:36 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Dr9fN1Ftmz1qwjx; Wed, 3 Mar 2021 11:46:36 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id SblTSEWGU7-O; Wed, 3 Mar 2021 11:46:35 +0100 (CET) X-Auth-Info: Axyhjc4rBEzDLbMrWl1hfC1lqjWQmeVKKob8n6+6z1N27WUyAB38JWBlHrVKC9BT Received: from igel.home (ppp-46-244-163-86.dynamic.mnet-online.de [46.244.163.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 3 Mar 2021 11:46:35 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 586712C36B8; Wed, 3 Mar 2021 11:46:34 +0100 (CET) From: Andreas Schwab To: Marco Elver Cc: Christophe Leroy , LKML , kasan-dev , Alexander Potapenko , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Dmitry Vyukov Subject: Re: [RFC PATCH v1] powerpc: Enable KFENCE for PPC32 References: <51c397a23631d8bb2e2a6515c63440d88bf74afd.1614674144.git.christophe.leroy@csgroup.eu> <3abbe4c9-16ad-c168-a90f-087978ccd8f7@csgroup.eu> X-Yow: Somewhere in Tenafly, New Jersey, a chiropractor is viewing ``Leave it to Beaver''! Date: Wed, 03 Mar 2021 11:46:34 +0100 In-Reply-To: (Marco Elver's message of "Wed, 3 Mar 2021 11:39:02 +0100") Message-ID: <87pn0gy0ol.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mär 03 2021, Marco Elver wrote: > On Wed, 3 Mar 2021 at 11:32, Christophe Leroy > wrote: >> ./include/linux/kern_levels.h:5:18: warning: format '%zd' expects argument of type 'signed size_t', >> but argument 3 has type 'ptrdiff_t' {aka 'const long int'} [-Wformat=] >> 5 | #define KERN_SOH "\001" /* ASCII Start Of Header */ >> | ^~~~~~ >> ./include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH' >> 11 | #define KERN_ERR KERN_SOH "3" /* error conditions */ >> | ^~~~~~~~ >> ./include/linux/printk.h:343:9: note: in expansion of macro 'KERN_ERR' >> 343 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) >> | ^~~~~~~~ >> mm/kfence/report.c:233:3: note: in expansion of macro 'pr_err' >> 233 | pr_err("Invalid free of 0x%p (in kfence-#%zd):\n", (void *)address, >> | ^~~~~~ >> >> Christophe > > No this is not expected. Is 'signed size_t' != 'long int' on ppc32? If you want to format a ptrdiff_t you should use %td. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."