Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3322905imu; Sun, 11 Nov 2018 12:21:28 -0800 (PST) X-Google-Smtp-Source: AJdET5coseW7Hmld31mO1oHS0o4T+wXOhG8gd6nytD82D1GMlLzRXifc60vItDxG1REOVPQeRO9M X-Received: by 2002:a63:4f5e:: with SMTP id p30mr15010477pgl.71.1541967688003; Sun, 11 Nov 2018 12:21:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541967687; cv=none; d=google.com; s=arc-20160816; b=TY4TXikNr3TcwKh9I9k6iYWq71aXe57jnvPVg3w3qJjb7KF4fr5YXLxTgbc4fGw0TD 3K+psGWJtl3Brvmy+Qkse7r/q79UEMD+3FTPGVpQO/xe4TF3kJ6+uoQLggbL6bGrR6/f tBvuoC6hc2ApZfVcvzs93mc1UFNTZ8WK4jFO1Vab0+dnLrxAZezN1mz0cMAQKrqws+Bp FLqnzbKglFsfwk+Q8Ij8goIktdjJ/TPvI0c+W/JfTYbNlpAKUNwd9Yfr4oIA4NlQTWBK tlF/JvhJYBQQ9MQOCP+lwmYbGa8t+K8KD6gVIJRQr3tVs2heigtEQ9Tu/tommaX6xnv4 2B7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=rwIJtFEE1x3fkPrzQFA8Sbc7gC9JiO1MilwBJul/Kc0=; b=vzt3NXsvRRYoYP0UTzlWuX93I4f0azlGTXLQ+alivpsYRb7AkPEuXa7IcUOgWYJqGZ qY7ZXA1YXNPINbSQxyz3aJ8Wvp1mlkesyDavACuL1GXLwZDiQ1MoukAwnn7AKr75rwgL ZvkdBxUmnU/B2VFgzsMbidUOXI3mToF8dN9t0F8rP5PTo4qdN8LaRHAOr4nvISmDmwEa GuD7MrA2dB7GBeUoqUdPzd36qJBXvl7mTheLvcoqurjwxUOhhVTbYryIdhd3OiWeGE/S UNcBOd7retRtTY4cr8BCE2Gt1EbiuxWz90v3e8iV2uCPnHXEqmQns5+giMWj4PoqavPW slvw== 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 d12-v6si15894444pla.24.2018.11.11.12.21.13; Sun, 11 Nov 2018 12:21:27 -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 S1731782AbeKLGJ6 (ORCPT + 99 others); Mon, 12 Nov 2018 01:09:58 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:53494 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbeKLGJ5 (ORCPT ); Mon, 12 Nov 2018 01:09:57 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvt7-0000lF-Le; Sun, 11 Nov 2018 19:59:17 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsQ-0001SJ-0Q; Sun, 11 Nov 2018 19:58:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Jan Kara" , "Theodore Ts'o" , "Eric Biggers" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 078/366] ext4: correct endianness conversion in __xattr_check_inode() In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Eric Biggers commit 199625098a18a5522b424dea9b122b254c022fc5 upstream. It should be cpu_to_le32(), not le32_to_cpu(). No change in behavior. Found with sparse, and this was the only endianness warning in fs/ext4/. Signed-off-by: Eric Biggers Signed-off-by: Theodore Ts'o Reviewed-by: Jan Kara Signed-off-by: Ben Hutchings --- fs/ext4/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c @@ -251,7 +251,7 @@ __xattr_check_inode(struct inode *inode, int error = -EIO; if (((void *) header >= end) || - (header->h_magic != le32_to_cpu(EXT4_XATTR_MAGIC))) + (header->h_magic != cpu_to_le32(EXT4_XATTR_MAGIC))) goto errout; error = ext4_xattr_check_names(entry, end, entry); errout: