Received: by 10.223.185.116 with SMTP id b49csp1787919wrg; Thu, 22 Feb 2018 03:11:06 -0800 (PST) X-Google-Smtp-Source: AH8x224oQ20N3287oQVEzUcWY3EN5sEmChJmpZ0h0XBT98/t4SqJ3gRiEqNy8HMNO298UNEXtEt0 X-Received: by 10.101.93.71 with SMTP id e7mr5462329pgt.248.1519297866327; Thu, 22 Feb 2018 03:11:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519297866; cv=none; d=google.com; s=arc-20160816; b=tQhO0hv7ysXd9niXcsGFUx6CzO2+jW14Ym1bQHkaFhftyuUHTwHuH3/1re+3DY1n4f I+2SFlWZMZLSm0GudUQSwdKuLXhv3efHdiOA0vCybCFdSXdp9g9yWfuTTMrNqN0WBICj +jeRXpAwP5/DIrUCURdIR734coB8YupYYgpdHqtL1NHy3WE35xLxjjOwgfzKjuMxaqOE r+vvHhNyT5XXQ5GYstPk0mjnn/ybDTY0HHUX/igIJIdilN8XSmRWQRh3O2I0tDpCYQ4z php2SdmKU2WAHCp0g22soRHJVbPz18GfkvClYOsxnlOgw+a6R1gaKYXE+pmVsjhNSgTe aPAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=VYoZhMyR7JWsluG44fozhf+thdI/uTHNUeK7vImiZxU=; b=YKuBjkDmkQGi8SZ7SVHlQd1VVdqnEvywyJgoA7K+3ietdlfoKd1jcOEuKFdFeNjZWP z2Q6SrTTBoBE7CTyRUVSS3i8+oeGBWnxC5G4Oi63ToflPhx4eBZ2C80ZsHWVE+5pzXAW anxaXNIuRgbhM2JyiJtQtQzl3ohVftPZL2mLsDDrhLA/Z4F/3ITvqOqvNJl65r655EYG VGbM0wAHc8rOl/tvM4LtHvzItlnsHySuKlBwvB8TpBkmOPM9gw05K58+UA8IH6UESqcF FtawN8J8pNZuYgb+23LSF9kkixPffouUrbniePW7R4zSHerGyVK36bN4kg6Rbt7VJThj ed3Q== 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 g6si3636107pgq.765.2018.02.22.03.10.51; Thu, 22 Feb 2018 03:11:06 -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 S1753503AbeBVLKG (ORCPT + 99 others); Thu, 22 Feb 2018 06:10:06 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33500 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753279AbeBVLKF (ORCPT ); Thu, 22 Feb 2018 06:10:05 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 58A0FE7D; Thu, 22 Feb 2018 11:10:04 +0000 (UTC) Date: Thu, 22 Feb 2018 12:10:03 +0100 From: Greg KH To: Arnd Bergmann Cc: Lorenzo Colitti , Linus Torvalds , Mark D Rustad , Adam Borowski , Joerg Roedel , Andy Lutomirski , Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , X86 ML , LKML , Linux-MM , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Pavel Machek , Florian Westphal Subject: Re: [PATCH 00/31 v2] PTI support for x86_32 Message-ID: <20180222111003.GB22572@kroah.com> References: <20180209191112.55zyjf4njum75brd@suse.de> <20180210091543.ynypx4y3koz44g7y@angband.pl> <20180211105909.53bv5q363u7jgrsc@angband.pl> <6FB16384-7597-474E-91A1-1AF09201CEAC@gmail.com> <20180213085429.GB10278@kroah.com> <20180214085425.GA12779@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 05:59:34PM +0100, Arnd Bergmann wrote: > On Wed, Feb 21, 2018 at 11:26 AM, Lorenzo Colitti wrote: > > On Wed, Feb 14, 2018 at 5:54 PM, Greg KH wrote: > >> > > IPSEC doesn't work with a 64bit kernel and 32bit userspace right now. > >> > > > >> > > Back in 2015 someone started to work on that, and properly marked that > >> > > the kernel could not handle this with commit 74005991b78a ("xfrm: Do not > >> > > parse 32bits compiled xfrm netlink msg on 64bits host") > >> > > > >> > > This is starting to be hit by some Android systems that are moving > >> > > (yeah, slowly) to 4.4 :( > >> > > >> > Does anybody have test-programs/harnesses for this? > >> > >> Lorenzo (now on the To: line), is the one that I think is looking into > >> this, and should have some sort of test for it. Lorenzo? > > > > Sorry for the late reply here. The issue is that the xfrm uapi structs > > don't specify padding at the end, so they're a different size on > > 32-bit and 64-bit archs. This by itself would be fine, as the kernel > > could just ignore the (lack of) padding. But some of these structs > > contain others (e.g., xfrm_userspi_info contains xfrm_usersa_info), > > and in that case the whole layout after the contained struct is > > different. > > So this is x86 specific then and it already works correctly on all > other architectures (especially arm64 Android), right? Why is this an x86-specific issue? I think people have noticed this with ARM systems given that the original bug report I saw was for an ARM Android-based system that had a 64bit kernel and 32bit userspace. thanks, greg k-h