Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5182985ybl; Tue, 27 Aug 2019 00:19:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzifJF7t/KTwhZm+BYE/OQu5GQOgEt/aIHa1kfRtrXhst1DjAcUqXLxw4mCzoAgywUuUhSR X-Received: by 2002:aa7:93cf:: with SMTP id y15mr24364664pff.251.1566890369478; Tue, 27 Aug 2019 00:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566890369; cv=none; d=google.com; s=arc-20160816; b=nKuWzpmKZPb3keePW+Tf6W5SgJMQZXf8w4cCstUTHPRG1wSEtq0IngD+ZRLG5dgCxI 9vfxUYpFGvgVL2hLXVzSo5UJdoYm7O4VemQZaE7TnLTb/kXZ3ow2m/lCMuK3ZUdrOsy9 JYpRzAVCR5WpS5IIzI+Gb3eoQRegSgw0vVMvpzwuyav1vtspLAKz3JFHtcNFgZU+cpgs 8DhltkmUi9+tFchAw+Xzi0SZJ+ZYX9zZjZGAWAAcmwckTVvf6Rf+lpEzrrlScSJEtxtx q+G+Y82t9TXm7o+fwbchXf/a+gl5cT0Lb8CtrtJZiWFdVG8+C+OAEpN9PPxm/erq+lk4 scZA== 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=570W9huAMrLpA9fjVXnq/nR/0anq4cJpfceX93DbE1g=; b=XUbx4HpqZULuzwY7fL9+Rs4acmlxb6Bbx49FE5tUJXjkwyK6PFwGFor+ptSvvuaNy/ YNThxGNVRPol3fuBhT9O4G79b8SQ4KBdOu6iqjZQAFrOkDzerHngWshnF9VZ44FhBMKK xq8ghA7nVfPF4lsyFBs9Cf7+JuIatdTgd3+kbpVzT7+Bqs74bBifSvFn5NK87gh9t19r i7ycDRjKW9p6uyQiDYbMfGoHdxonqNdl6HG6CKLNcYFVeCgLskAAAcTAO1VrQ43HmkBk FqEGcy8vAT82mQz5m7JfTQQwD3yDPfdnbHGpn4PEyDap+aja6rUt58KvrRP6x0KJ43UV EwGg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si1752001pjs.64.2019.08.27.00.19.14; Tue, 27 Aug 2019 00:19:29 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727939AbfH0HSY (ORCPT + 99 others); Tue, 27 Aug 2019 03:18:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:40460 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725890AbfH0HSY (ORCPT ); Tue, 27 Aug 2019 03:18:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C36DBAF37; Tue, 27 Aug 2019 07:18:22 +0000 (UTC) Date: Tue, 27 Aug 2019 09:18:21 +0200 From: Michal Hocko To: Alastair D'Silva Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , Andrew Morton , David Hildenbrand , Mike Rapoport , "Aneesh Kumar K.V" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory Message-ID: <20190827071821.GS7538@dhcp22.suse.cz> References: <20190827052047.31547-1-alastair@au1.ibm.com> <20190827062844.GQ7538@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 27-08-19 16:39:56, Alastair D'Silva wrote: > On Tue, 2019-08-27 at 08:28 +0200, Michal Hocko wrote: > > On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > It is possible for firmware to allocate memory ranges outside > > > the range of physical memory that we support (MAX_PHYSMEM_BITS). > > > > Doesn't that count as a FW bug? Do you have any evidence of that in > > the > > field? Just wondering... > > > > Not outside our lab, but OpenCAPI attached LPC memory is assigned > addresses based on the slot/NPU it is connected to. These addresses > prior to: > 4ffe713b7587 ("powerpc/mm: Increase the max addressable memory to 2PB") > were inaccessible and resulted in bogus sections - see our discussion > on 'mm: Trigger bug on if a section is not found in __section_nr'. Please document this in the changelog -- Michal Hocko SUSE Labs