Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1798463pxa; Thu, 6 Aug 2020 16:39:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQWJaG56VBw6+NpuOp3VsAphr/Q910kHJrznaW+QuQJM4o4yksT06ruQ9vzNkHxx1K8xFq X-Received: by 2002:a17:906:d8f:: with SMTP id m15mr6525396eji.494.1596757196363; Thu, 06 Aug 2020 16:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596757196; cv=none; d=google.com; s=arc-20160816; b=GH1gNPfKI1WW5+/756AdnBld0fREQG1f3AX0XiuCzvDhEitJvqtuWf42ihu8/NcbP6 JeXOoth2Doy2lhfm0piugNqL5SCd1n8Legkm07Y7tyv7KNumSRHBYLmorRtPWq8zVBwt pKvTn0QJveCWyH3KXenNOUTzzMw0Pn07waBVGIGaoxlBbG85yp2K1gqGTQsiGlz338hl KIWhJ5XZ2wkWL9O4wDKv3V5XJ3iyOPo+R66kaxrzjfuuTmvSST1R2lx0nhAeQSwJOYwu LraxH8/Py8OYKv5QN+64CAwOcpRpKguWNyVw22Jr5DFPCj16ab6OYfYQ+Ga/bV9yizJx HITQ== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=Hd4O0m85sH388k9+gMMkBCM/FtfvMXzNaeJ6lUqneq8=; b=bu98+l/QztNXPd8bxWAATqXl29gWPh/g1fHe/J4LtmuuOsItX3rMa4PHFEU55oAafo ZPp69jfUdJvjuv4IXTWFfkDQSsVmp8sT1385QgMt5bQ1qBKpAZ/3fX5DOjJeFBDyQqvY SeBGdkHvWloxQ4oyXJQYegUKHkZ6LJka/y87Ko948nL2eNtWy1op5JT2+pJYIMSN+k3J G69LQ4QnKJ74Yhvc8u6ZLD8OZZxLA8SyvsPfyq2DvUt1I7KEqCo+M8K17FiayYOJf0wG iWrsfouVxwOR9VbVqW59n5Q6Odi9ytHDmYT4SBf1gyI6sv25j2t9u21hsRHnvvGmvSP2 jLMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=NYk3aP8b; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b="xD8/l9sT"; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yk11si4323941ejb.113.2020.08.06.16.39.33; Thu, 06 Aug 2020 16:39:56 -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; dkim=fail header.i=@linutronix.de header.s=2020 header.b=NYk3aP8b; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b="xD8/l9sT"; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726596AbgHFXi5 (ORCPT + 99 others); Thu, 6 Aug 2020 19:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgHFXis (ORCPT ); Thu, 6 Aug 2020 19:38:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52446C061574; Thu, 6 Aug 2020 16:38:48 -0700 (PDT) Date: Thu, 06 Aug 2020 23:38:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596757126; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hd4O0m85sH388k9+gMMkBCM/FtfvMXzNaeJ6lUqneq8=; b=NYk3aP8bsDA/CehLZ52kgOfMT7HAeqhM+971+SV9d8WGw4S4EwwK74v+y/+Wtxpd1RYG4+ ioED5q7coXpR7Ok4FGwelUx0aS0iP+Jng+OL6OGsJpwUbVxYrKC872SV4Bpz6StnaiG3R+ cqnWyFwRYciRWRQA4LRKmSbN3j51KE7M9INiFruRaqU5J2STay+UDJMOTKYD4z/rha/F1O Z7dI6vz+z6tiMYlvqDmjs+COG0bDrHn6anDEFi65aVAzNwowJ/XyRCHxgFxpyeL7YOLiqr TfyjmF3r1dPET9hEuFEcCEayPFNyImkWdK3e8zFseTW/vpPqDHJ2HyYN6FU8LA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596757126; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hd4O0m85sH388k9+gMMkBCM/FtfvMXzNaeJ6lUqneq8=; b=xD8/l9sThlJtDVRrSgiq3I/vEnhNyOTyaMtATcb3Dhm8MHCGgbPtlED0NMW2ZkmEA7lA40 4a2XGnI8aYKSPnAA== From: "tip-bot2 for Lianbo Jiang" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/crash: Correct the address boundary of function parameters Cc: Lianbo Jiang , Ingo Molnar , Dave Young , x86 , LKML In-Reply-To: <20200804044933.1973-2-lijiang@redhat.com> References: <20200804044933.1973-2-lijiang@redhat.com> MIME-Version: 1.0 Message-ID: <159675712611.3192.9276107273934429682.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a3e1c3bb24e2ff2927af5e30c2bebe669bb84196 Gitweb: https://git.kernel.org/tip/a3e1c3bb24e2ff2927af5e30c2bebe669bb84196 Author: Lianbo Jiang AuthorDate: Tue, 04 Aug 2020 12:49:31 +08:00 Committer: Ingo Molnar CommitterDate: Fri, 07 Aug 2020 01:32:00 +02:00 x86/crash: Correct the address boundary of function parameters Let's carefully handle the boundary of the function parameter to make sure that the arguments passed doesn't exceed the address range. Signed-off-by: Lianbo Jiang Signed-off-by: Ingo Molnar Acked-by: Dave Young Link: https://lore.kernel.org/r/20200804044933.1973-2-lijiang@redhat.com --- arch/x86/kernel/crash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index fd87b59..a8f3af2 100644 --- a/arch/x86/kernel/crash.c +++ b/arch/x86/kernel/crash.c @@ -230,7 +230,7 @@ static int elf_header_exclude_ranges(struct crash_mem *cmem) int ret = 0; /* Exclude the low 1M because it is always reserved */ - ret = crash_exclude_mem_range(cmem, 0, 1<<20); + ret = crash_exclude_mem_range(cmem, 0, (1<<20)-1); if (ret) return ret;