Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp513227imj; Sat, 16 Feb 2019 05:27:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IaAgIp0aKAhbP7vqXIIxndHXXSZ/RJlM/w+EyZt+79qNP8rrwJElQ6rDj6joaruA/+8K2v8 X-Received: by 2002:a17:902:8c81:: with SMTP id t1mr15716514plo.107.1550323663953; Sat, 16 Feb 2019 05:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550323663; cv=none; d=google.com; s=arc-20160816; b=UgWi8rPY8Xe31yAeH+UTAAg0T7BepNQSlHc0efcYB+LlkBZTF3yf1iVTUYIcFDgkJM Hp7+13+p83N9f9d97CoT1C8lJpt/+xiXAwxK1b0a+oyeXaEetix+EWXQGmY4TrhPKnUy ZiUuLF2oC40vWoKjxLJXAISN6/MMfIXDA20YTfb/bnZZdtRXseYdnc0RYPf36Y7IhGqo 3OyxckoIJSPskKOE8Mp1kYsotKyxeUfV3bEJ22sOgThjU7l4lqA9wgQgqODN1IEWIJUY Bhe5mt7AwFnbaZI9q+V9mjmzEE+3rUxLmHlA9L2xPmsg02t1PsaUQkDSSfdNid/kFQKW 1L2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=/aKBnGVtmV9CYgt1ebj1ZRWuKacuYlUC0X/RbXVV5vg=; b=HwiOV2FkTmE2KDLYf9alsa++fvpqTNmpw7u0JfiQ6DA8HDlO7fAfZcTPcPN+EPwyvS 0e86ymSDc27bSFVt6mvB4dqxoHPyjPnlSyeA1h4+5CIgoQsmfZ1/Nr2wikeqb7nO2GcK GWmdLlLwkjc1M8tzn+W6dkp0NUfDdXVKVEMSdA1jWL/EclKUDhfp2pIMkcdpFdzUqYpG +eDhBuiFwPJLTMDRO1FBjFX0BPQ/Il+oTn0c/UUpVECnBSUyjTEQSIlY1c3/+xj67y6D XhbOmhkQC9/02v4z5INcTiRdkS6A6gwJY/VWS7KYKH+mX2lL0xz29nErHdWvRDjcKtQg Ts4g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si8383049plt.26.2019.02.16.05.27.28; Sat, 16 Feb 2019 05:27:43 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726090AbfBPNPX (ORCPT + 99 others); Sat, 16 Feb 2019 08:15:23 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:59019 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbfBPNPX (ORCPT ); Sat, 16 Feb 2019 08:15:23 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 441rGJ38jnz1r01b; Sat, 16 Feb 2019 14:15:20 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 441rGJ29m3z1qqkS; Sat, 16 Feb 2019 14:15:20 +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 8E9i_dOXwDyq; Sat, 16 Feb 2019 14:15:19 +0100 (CET) X-Auth-Info: WAZZ1lxIpLiJaGUL7WPeQCu95RDgYXrEcAgkoSQ4XdXOKg7aXAfiS1bzR4aClOM1 Received: from igel.home (ppp-188-174-150-184.dynamic.mnet-online.de [188.174.150.184]) (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; Sat, 16 Feb 2019 14:15:19 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id A50CE2C202B; Sat, 16 Feb 2019 14:15:18 +0100 (CET) From: Andreas Schwab To: Michael Ellerman Cc: linuxppc-dev@ozlabs.org, linux-mm@kvack.org, erhard_f@mailbox.org, jack@suse.cz, aneesh.kumar@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/64s: Fix possible corruption on big endian due to pgd/pud_present() References: <20190214062339.7139-1-mpe@ellerman.id.au> X-Yow: I'll take ROAST BEEF if you're out of LAMB!! Date: Sat, 16 Feb 2019 14:15:18 +0100 In-Reply-To: <20190214062339.7139-1-mpe@ellerman.id.au> (Michael Ellerman's message of "Thu, 14 Feb 2019 17:23:39 +1100") Message-ID: <87pnrran89.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Feb 14 2019, Michael Ellerman wrote: > The fix is simple, we need to convert the result of the bitwise && to > an int before returning it. Alternatively, the return type could be changed to bool, so that the compiler does the right thing by itself. 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."