Received: by 10.223.185.116 with SMTP id b49csp4577595wrg; Tue, 6 Mar 2018 19:29:22 -0800 (PST) X-Google-Smtp-Source: AG47ELs3z0+v4/OnMhVlrYaZ6CBfFN9vqJ1iCwEPOEXixe4b0UqteVsq9bQeOls7+uhdOkAxbYE3 X-Received: by 2002:a17:902:367:: with SMTP id 94-v6mr19096577pld.140.1520393362268; Tue, 06 Mar 2018 19:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520393362; cv=none; d=google.com; s=arc-20160816; b=fGO5oeePCw1NOxf0nW8njF1ZzCrOFIHL1wvEvcuqNooPgNMDQjPK2u1WmxqQhanevz RaDZ5SGsW+nNjHoWeAqLHKc1ZHOGMDOidcIQZnpqch6ji3axpW6GJUx3jXxPdNADftgP h/BSqeW2xSQQStlfZ4jkiB8Y52BHxCzgHWJRCG3oCcvFe/CkYN7YwonGK7sz50XiIqkO l/+zmM0y0C8eHoNmP6omGkZoUR5PUSrqj4IFaDFZe1mXp95nJssCIc2zU85+9Lm6Fjmk IjGxsPrsNcmEME7bp/s1OrcsBkmIPgZwS7u9MDtAVPmrRG79LBqVPXIOdqHo52kDgUGX uPLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=AWLezLLlNYs2aUpeO/+qV86eczo2y7+1NJUkp2+5N74=; b=bLhOFwoD6bObOVSlaQtIPHNrBLpuZiJZ79nKJCe/rgwdMNb1Wc+631XMDd6p3naxmw 4RxgbOV+tci1mXnEAy+fC6nea1u6PM6Cphgd42etBSsMoD3VPOrP86LD+LOVdcC/MbPl GnrsI/UgkHcKUGjOglQAP4eP0om6X/rbRpy6VJUpl5VRkZQEe0SdT8tfOka5RcBNXNkO nmuiwJ6bwRCg81QP89JURXsWCLe/HTHAwFUWXwAsP8XdYoGgTu/cIUeIPxX5QR+3zimH iBBmjJp5ojaYyS1ZkGDNLWylN4EmkB4uLb5KQxPhzsfkqAbU5N7lJCjEVIdqVHMgXsBk 0ATw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A8hkNDiv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k75si10759159pgc.134.2018.03.06.19.29.07; Tue, 06 Mar 2018 19:29:22 -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; dkim=pass header.i=@linaro.org header.s=google header.b=A8hkNDiv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933362AbeCGD1x (ORCPT + 99 others); Tue, 6 Mar 2018 22:27:53 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33363 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933055AbeCGD1v (ORCPT ); Tue, 6 Mar 2018 22:27:51 -0500 Received: by mail-pf0-f173.google.com with SMTP id q13so430010pff.0 for ; Tue, 06 Mar 2018 19:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AWLezLLlNYs2aUpeO/+qV86eczo2y7+1NJUkp2+5N74=; b=A8hkNDiv92WOs11Xr3kXGEisXTwnUH5f0/ZcelGNajifI0UHJiSh+M+zZelEJ3siPI T/vRV6Aa2Kv61NOXq8XOaUHjiPOstRe62X9lKwz+9B44+qdk5xWGl0AVjq70AVEKpkw2 PW9rEmu4S5ggWHOkrr9rtWTBgrhTqFIoMz6J4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AWLezLLlNYs2aUpeO/+qV86eczo2y7+1NJUkp2+5N74=; b=o4+u/RH6xmTLQpyfcPkt5lx+aa9iC+w205irPtGfBwC7VrMThRlHNN2TPGv1RaqNRD yuPTh0kEDlKvXD5tYG2fcVyKhct+Zzlb/7kchpVl9ftvi7VjNQDojZ50z9Jy0mEWgLLA pISVwxWkBMaNMLvjlPkVdBhtxicXZqNE1/0xZztPA9nHHhSsgweWkvXilwXmUSB81MRU pb+cTRm7F73WIanOUHN+9qv7xLc1+BZkTdjpD96dAeHkl9ejwJu34sCSGrmrnNTDrgFy x+IccgC7N7Je8FuKMKtRQ7WPFRKBHY0GStz5tmq3U6k4Uywki8sBjD7cxY9tVpL3I+QO nNZg== X-Gm-Message-State: APf1xPCqDGxBr6HEOh4ahW4gWhudtJV/jX+w2GQVDIcZ5TIowk3WrULM XIirkXnLCrp9jM02gxo0RA9iA4ZoUco= X-Received: by 10.99.178.6 with SMTP id x6mr17301122pge.98.1520393270944; Tue, 06 Mar 2018 19:27:50 -0800 (PST) Received: from [192.168.1.225] (176.122.172.82.16clouds.com. [176.122.172.82]) by smtp.gmail.com with ESMTPSA id e77sm33895140pfd.73.2018.03.06.19.27.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 19:27:50 -0800 (PST) Subject: Re: [PATCH 0/29] arm meltdown fix backporting review for lts 4.9 To: Greg KH , Mark Brown Cc: Marc Zyngier , Will Deacon , Ard Biesheuvel , Catalin Marinas , stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <1519790211-16582-1-git-send-email-alex.shi@linaro.org> <20180301152450.GA4061@kroah.com> <5cf40379-9098-da02-a471-8abd7d8f0be8@linaro.org> <20180302165415.GB8704@kroah.com> <20180305124638.GG8588@sirena.org.uk> <20180305130859.GB17802@kroah.com> From: Alex Shi Message-ID: <1cd025d0-b456-f7bf-e282-d076eb530fac@linaro.org> Date: Wed, 7 Mar 2018 11:27:37 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180305130859.GB17802@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> But really, I don't see this need as all ARM devices that I know of that >>> are stuck on 4.9.y are already using the android-common tree. Same for >>> 4.4.y. Do you know of any that are not, and that can not just use >>> 4.14.y instead? >> >> There's way more to ARM than just Android systems, assuming that getting >> things into the Android kernel is enough is like assuming that x86 is >> covered since the distros have their own backports - it covers a lot of >> users but not everyone. Off the top of my head there's things like >> routers, NASs, cameras, IoT, radio systems, industrial appliances, set >> top boxes and these days even servers. Most of these segments are just >> as conservative about taking new kernel versions on shipping product as >> the phone vendors are, the practices that make people relucant to take >> bigger updates in production are general engineering practices common >> across industry. > > I know there is lots more than Android to ARM, but the huge majority by > quantity is Android. > > What I'm saying here is look at all of the backports that were required > to get this working in the android tree. It was non-trivial by a long > shot, and based on that work, this series feels really "small" and I'm > really worried that it's not really working or solving the problem here.> > There are major features that were backported to the android trees for > ARM that the upstream features for Spectre and Meltdown built on top of > to get their solution. To not backport all of that is a huge risk, > right? Thanks for response! Yes, that is problem I concern, current android is far from enough to protect it self form these two bugs. There are lots of fix missed. like the main fix patch from upstream isn't included: arm64: Add skeleton to harden the branch predictor against aliasing attacks commit 0f15adbb2861 upstream. BTW, The concept of 2 bugs mitigation is relatively simple, and current backporting include everything that arm did to mitigate them. > > So that's why I keep pointing people at the android trees. Look at what > they did there. There's nothing stoping anyone who is really insistant > on staying on these old kernel versions from pulling from those branches > to get these bugfixes in a known stable, and tested, implementation. > That's why I point people there[1]. To do all of the backporting and > add the new features feels _way_ beyond what I should be taking into the > stable kernels. We didn't do it for x86, why should we do it for ARM? Thanks for your effort! That's the reason, LTS need spectre/meltdown fix on ARM, people like to keep using them system with a simple kernel/fireware update, instead of whole system update with whole system retesting. > > Yes, we did a horrid hack for the x86 backports (with the known issues > that it has, and people seem to keep ignoring, which is crazy), and I > would suggest NOT doing that same type of hack for ARM, but go grab a > tree that we all know to work correctly if you are suck with these old > kernels! We know things aren't perfect in urgency fix, that's a reason for x86 story. but for arm side, arm had 3 versions fix, and do update 2 times on them website, we did 2 times backport too for their fix. Obviously arm get more time and take more lesson from x86 story for their fix. > > Or just move to 4.14.y. Seriously, that's probably the safest thing in > the long run for anyone here. And when you realize you can't do that, > go yell at your SoC for forcing you into the nightmare that they conned > you into by their 3+ million lines added to their kernel tree. You were > always living on borowed time, and it looks like that time is finally > up... yes, that's true. But compare to x86 market, backport to old stable kernel would save much time for arm vendors and free them to more new/upstream work instead. > > thanks, > > greg k-h > > [1] It's also why I keep doing the LTS merges into the android-common > trees within days of the upstream LTS release (today being an > exception). That way once you do a pull/merge, you can just keep > always merging to keep a secure device that is always up to date > with the latest LTS releases in a simple way. How much easier can I > make it for the ARM ecosystem here, really? > > Oh, I know, get the SoC vendors to merge from the android-common > trees into their trees. Look, that's already happening today for at > least 3 major SoCs! So just go pull the update from your SoC today, > for your chip, and it automatically has all of these fixes in it > already! If you know a SoC that is not pulling these updates > regularly, let me know and I'll work with them to resolve that[2]. > > [2] I have offered to do that merge myself, from the android-common > trees into any "internal" tree, so that future merges happen cleanly > and automatically, for any company that asks for it. So far only > one company has taken me up on it, and it only took me a week to get > it all up and working properly. It took a ton of "fun" quilt and > git work, but in the end, it all worked, and has worked cleanly > since then, showing it can be done. >