Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3749958ybz; Mon, 4 May 2020 09:03:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJOsgQCmvaz59yt6ZMAtQy47Bs7EbU0asaXjWvQ8pFcRDmTN6HwxXrRZaC3BuPlypupfnoh X-Received: by 2002:a17:906:3b8b:: with SMTP id u11mr15713795ejf.352.1588608190586; Mon, 04 May 2020 09:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588608190; cv=none; d=google.com; s=arc-20160816; b=YTXgsHqXF+KKkbvrJaok7qp+h+5bDh7cs15jigSB1MBr4hz+QJscBG+OzjYApPb3kF 2geBAIGMmz6tKr6ONTqf8wW+uXV1RxFBepVrqCn+Y1AJKBwKYfnn0n11pH8IkLZiJKZa Ypd1MvlnHbLkNXKPywPprnv53MR55P9iVgU9frfXbbyGDlmDT0BBOZjL9d0nsjIUD37C 0Lmjt4YBchI9rkxZmw+PaxZX9PRCOg4r3NF9xrOIAHH3Ml0Q9QVuRD2+XQqsi6qopphn fiQSQSnhbC2fga4KX1COI+9t7wC+a3czNikH4By4DLzz63vl1kCPZxvY7WJcmYeH3zvE qzKQ== 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; bh=FtsfL5Iafykp7MNl+i4qzrbhNhjUvpiRPoDG9xlMfNQ=; b=FpKIiZnKg7u0s0Qjffbr4smIER1CFpC6/ifRNEkPnRF6ydwV+pmyA+vnHs//hl864D gowo72Qta0CS8zd4K5BDy9kiu2NNzYTxJeB+L/DmScY13XiKHH05q6eXqyTGtYD39aqQ 8IaO5o1yQxSgBRjcCpMKtTxFItI+s8BKll+dn5jeF8fs1f28gKyQQqKPryKBC9Qr+bTj 9xvHWMA2JCntH+6jAZbHYS+BikQEdflhJCGWnKpy1b25Mr6jFxGAGaEwAnt+Iw+pvSAG DyBp8lUMsif99oJtLQvAcwcRlHQTuAHVjA9CVriR27K3U55Ommho3OSyLnOTyqwW9rn3 h93g== 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 n10si7452518ejs.456.2020.05.04.09.02.23; Mon, 04 May 2020 09:03:10 -0700 (PDT) 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 S1729386AbgEDP5R (ORCPT + 99 others); Mon, 4 May 2020 11:57:17 -0400 Received: from elvis.franken.de ([193.175.24.41]:39442 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727929AbgEDP5P (ORCPT ); Mon, 4 May 2020 11:57:15 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jVdSx-0004JX-00; Mon, 04 May 2020 17:57:11 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 8632DC036C; Mon, 4 May 2020 17:46:13 +0200 (CEST) Date: Mon, 4 May 2020 17:46:13 +0200 From: Thomas Bogendoerfer To: "Maciej W. Rozycki" Cc: Jiaxun Yang , linux-mips@vger.kernel.org, clang-built-linux@googlegroups.com, Fangrui Song , Kees Cook , Nathan Chancellor , Paul Burton , Masahiro Yamada , Jouni Hogander , Kevin Darbyshire-Bryant , Borislav Petkov , Heiko Carstens , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] MIPS: Truncate link address into 32bit for 32bit kernel Message-ID: <20200504154613.GA14031@alpha.franken.de> References: <20200413062651.3992652-1-jiaxun.yang@flygoat.com> <20200422143258.1250960-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 01:22:30PM +0100, Maciej W. Rozycki wrote: > On Thu, 23 Apr 2020, Jiaxun Yang wrote: > > > > Alternatively, have you made any attempt to verify if actually replacing > > >the setting for VMLINUX_LOAD_ADDRESS would be safe? Glancing over its use > > >there do not appear to be many places. > > > > Limited experiments showed it should be fine... > > > > But MIPS kernel has some design I'm not really familiar with like SYM32 for > > 64-bit kernel and special address space design for Trap-and-emul KVM. > > This only affects CONFIG_32BIT kernels, so SYM32 does not apply; I can't > comment on KVM. There's still that bunch of: > > $(shell expr $(...) \< 0xffffffff80000000) > > constructs I mentioned before, so let's leave your change as it stands at > this time. Please do rename the variable as I suggested though, I hope > that's not a big deal. Jiaxun, are you going to send an update with this change ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]