Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp891362ybm; Wed, 27 May 2020 10:27:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqH7RkkL0LHnVioKOQJ1aK0bDK4EnLriWICC04wNP6NGoYHPkUiHjDDuFVk5zHc77NVf6A X-Received: by 2002:aa7:d6d1:: with SMTP id x17mr25647835edr.257.1590600453378; Wed, 27 May 2020 10:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590600453; cv=none; d=google.com; s=arc-20160816; b=I9C8HkXYzLIkUet0YGXffKrA47gSyKvZUaNN5nDGCmb0dkcVNLDapjgrwDIq81LHKZ 1tRcOvp/NVYdrlaWm7d3ocyyfDFQum5Sn+nF6C9FMjuXgKB+i+A/QFjB+3bAPg0sxYZs YBvP6/xykAUpUv+rjW4Nqs3hehtUGIZRay8fq+Xwgc3SvL9dPxkDnK3YRirioKx96jPO basvasHAAS5+M9l7dy3GvMKAsU+M7Hopj4pm1KJ3zviezHLH4h8x/vL9WwTEG9tTYPmi 6C38R/v1u0Czipx3H3Won4aWHEFnd7xH1MVjDereKs+3JH+PbNYw3quNLaTmCACiHosx gAnw== 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=SzbB0XbrUtp1j2iyf1CoUFTMMR28MqNjnT5gCOvgkuU=; b=wrzaFgPk3Y2i4IBEANOjllWDs12bwJtet9mBVv4kisL2z9Ge6uVVBviu2GmBqV8uzt +HfPsxyOyEPxnI6DZv/o7bZA41azMCN2zqkf3hrU5+JFMeFbEFcU+qvy9h+imrF22WbO DLzZIYxZOQNm1fBd2HSPuoM5SVVwHBw8IvaDmRQewkc86d1Z9CD1TXTgEMf0Q/LQtPsh bHDewoLlT5ho26Oyq/wf9gILrfiS8V1MbMHGRHS7shjFL6QfoURtxLmiS9nCh7kxYxxv Us+ZmUCE8ofnDedpxEjBKH032Zivz3Cbw7yxHRpcM1qZ3J7s6/hTEQ+Fj/mcRd5FR2F6 XNgg== 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 j26si2432691ejk.3.2020.05.27.10.27.09; Wed, 27 May 2020 10:27:33 -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 S2388011AbgE0Lzy (ORCPT + 99 others); Wed, 27 May 2020 07:55:54 -0400 Received: from elvis.franken.de ([193.175.24.41]:41117 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729451AbgE0LzK (ORCPT ); Wed, 27 May 2020 07:55:10 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jdueJ-00019x-00; Wed, 27 May 2020 13:55:07 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 2D3BEC0594; Wed, 27 May 2020 13:41:06 +0200 (CEST) Date: Wed, 27 May 2020 13:41:06 +0200 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, Kees Cook , Borislav Petkov , Heiko Carstens , Fangrui Song , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] MIPS: head.S: Always jump to kernel_entry at head of text Message-ID: <20200527114106.GA13965@alpha.franken.de> References: <20200527063438.391949-1-jiaxun.yang@flygoat.com> <20200527063438.391949-2-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200527063438.391949-2-jiaxun.yang@flygoat.com> 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 Wed, May 27, 2020 at 02:34:32PM +0800, Jiaxun Yang wrote: > Buggy loaders like early version of PMON2000 sometimes ignore > elf_entry and goto start of text directly. so select BOOT_RAW on those broken platforms, no need for this change. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]