Received: by 10.192.165.148 with SMTP id m20csp5447117imm; Tue, 1 May 2018 15:26:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrlE9r+456HE75iSl0TjPy4bD76Pu3/W9gC8w9a9D/mJguf2yFh8+rUZqt+KMQjF8RRQAMQ X-Received: by 2002:a63:7514:: with SMTP id q20-v6mr14105998pgc.88.1525213597368; Tue, 01 May 2018 15:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525213597; cv=none; d=google.com; s=arc-20160816; b=ynJcJrFeDRGQgBgw6kSVJUTLt7FN3mBytwwHPmDvAixJ/bfxU6iK7oAurSSfUKe7c2 ZPvc4E1WgSRuVpIAJ8nGc5QUODM1NpKFqH61Kk5JMcrsTb+OGztmXlRfVIWIp0e4uvhO q67GYbT33wMn+8pBXlB6K+cWK5XPJBOBdOpWgvLyw4Uz6JnxjQfzeoTznjbS9pfw1zqX h5Tma/9afX1tqROMn+Lr97Vchpw31fnVZcKdVkppaUZe4cGKj93tsYllXm5FVhchM/b2 eh/hbGOdRTqdNWDIHa3YV4eS+Ky6OBQgrIRJawqqDFlZjjX0/9VwkrNo/6Ke28Hr+Z+Z y3tg== 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:arc-authentication-results; bh=aKNXcalK/1exx0WUl5nm7zm60nsRA4xAODIY7SCxC/o=; b=VFlfU5pOd0Ve3ZwcnS+PdxNHtY9cn0Yqv7+J+fB5hfDeJF2oAnFZ5fDI3UHulhAbIE E4FKGX7g5MOz6ms1WL0LJv+JJl1YLnES69MT7lluapdgMPEgNbO2NVvqwJXovMicc66o PhaptS+Z5pPsHmjulEiAiTsLAv/agjGBH7enJDOhg/EF4mTbYpoog6ATr2Gzsz5L62ae ivx4w/ksXqA02wE63T3xSaie8+bedqsxl0W+U8LxXqzErwm2U7WS0Qnf03l3kFyQMnnA Lp14mwzYbbFvZRJwNNyemqub1NgAcjt/XLDJgeUCqnxYUvjxj1X43/99hVGcP/i5X/sb ahXA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d9si10535825pfm.226.2018.05.01.15.26.22; Tue, 01 May 2018 15:26:37 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751279AbeEAW0H (ORCPT + 99 others); Tue, 1 May 2018 18:26:07 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:42353 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbeEAW0G (ORCPT ); Tue, 1 May 2018 18:26:06 -0400 Received: by mail-ot0-f193.google.com with SMTP id l13-v6so14445632otk.9 for ; Tue, 01 May 2018 15:26:06 -0700 (PDT) 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=aKNXcalK/1exx0WUl5nm7zm60nsRA4xAODIY7SCxC/o=; b=tPKFBF3G+NAxZzJo6TyTLZg7B+oR+b+/vSR4vwBOmA63fBNsUl7oOMCy2IBOus1+Gi RwzfNKozOinIRukGv5ECmxLMwVxkTPCfawGGTQJR22dGxAUCMoU2gThOOiw3jySZTCfn bdsqA2wgsVBas8ZbQujnbQfbyMwckkBBknCe8kl5ZqrV/F2mSMZJjRLDLcXfzLGsvRb9 ATO2mV9TSv8NhCnLF68e316NIcgUvHAuSELNfxgAV4X+LhGSmqugES78lkvNXkkIo2Mn vrx20BGdEC+4G07W3Dxe4ejWpJy1jgqAcRUq6SNH+aGgw+S4rWMl2ZJsfzBIui6+n6pd zlxA== X-Gm-Message-State: ALQs6tADrJSRBlFXKqSuO6dO0nH6Y2QTGZfZ7ee2lAxq2mDq3ni4Y3wj rame46ozLKvDBjY3pI6eAYM0fA== X-Received: by 2002:a9d:2fc8:: with SMTP id b8-v6mr11598638otd.177.1525213564590; Tue, 01 May 2018 15:26:04 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::d2dd? ([2601:602:9802:a8dc::d2dd]) by smtp.gmail.com with ESMTPSA id g36-v6sm3481522otb.9.2018.05.01.15.26.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 15:26:03 -0700 (PDT) Subject: Re: [PATCH] proc/kcore: Don't bounds check against address 0 To: Andrew Morton Cc: Dave Anderson , Kees Cook , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Ingo Molnar , Andi Kleen References: <1039518799.26129578.1525185916272.JavaMail.zimbra@redhat.com> <20180501201143.15121-1-labbott@redhat.com> <20180501144604.1cf872e7938bffc01a26349f@linux-foundation.org> From: Laura Abbott Message-ID: <4db64722-47b5-767c-4090-bdd9c1522e96@redhat.com> Date: Tue, 1 May 2018 15:26:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180501144604.1cf872e7938bffc01a26349f@linux-foundation.org> Content-Type: text/plain; charset=utf-8; format=flowed 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 On 05/01/2018 02:46 PM, Andrew Morton wrote: > On Tue, 1 May 2018 13:11:43 -0700 Laura Abbott wrote: > >> The existing kcore code checks for bad addresses against >> __va(0) with the assumption that this is the lowest address >> on the system. This may not hold true on some systems (e.g. >> arm64) and produce overflows and crashes. Switch to using >> other functions to validate the address range. >> >> Tested-by: Dave Anderson >> Signed-off-by: Laura Abbott >> --- >> I took your previous comments as a tested by, please let me know if that >> was wrong. This should probably just go through -mm. I don't think this >> is necessary for stable but I can request it later if necessary. > > I'm surprised. "overflows and crashes" sounds rather serious?? > It's currently only seen on arm64 and it's not clear if anyone wants to use that particular combination on a stable release. I think a better phrase is "this is not urgent for stable". Thanks, Laura