Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6115402rdb; Thu, 14 Dec 2023 08:40:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFm88XPkm+6o1MskrXPir4S/Gu3RpYVuZMplvOhqmglecZuBVQOzoNS21LPFQS5KSR2tRDo X-Received: by 2002:a05:6a21:789c:b0:18f:97c:928d with SMTP id bf28-20020a056a21789c00b0018f097c928dmr6297246pzc.114.1702572048819; Thu, 14 Dec 2023 08:40:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702572048; cv=none; d=google.com; s=arc-20160816; b=nKhxWkzQ3PMFsCkk3fAAzR/MRc3dibFLykuyTLG1XuK0GoBAYbxRMG1RJH+rsTqJcx MN383AKypeioruqE4DtL7oZfb05guUvpFTSDDGBZgg4UfPLtgFCZJrMsvnpsJnQxuZ/J xKJ+QgByZaB7Qis/udLd1ooc3gwQYOk2LmOVP8Xj9qMcenlsWWs7OhQAdhYXMVjsLBaJ 2pmV36qPNTFg/pIv0yHklWQuSK5PNhqPrXwRPI2WMwVjwJw/qpJhufm/H70n1pzQUiEB iCm32RJnq1jdWdyCCCY2Y7eXSMvUDytOS3idlmiaV6VE6wiDqeJYIIFeO+AvMpeZc3Wm iYRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AOk13I10R4lBKheCrtggrgfT1riocLOootjug+SJCQs=; fh=QXrFcuJWtVWB69GvbU1XETfwTQfXVIn8KqzV+HuVMCw=; b=fKNjFAQrWciuenmEjROqtCpW+M6MxYfbkV+RDflrpV3wr7+LdwV9i0W4G06zn07ji3 PoBaAqpqrK7+qyKnvx3Gw59M3hEYWgbjXV582GaB5mMsrhnv4nQaIIqGHyzuW7wHZXfs fuXQKpjKWfgSJgoVSYfbaw8+YDkfxzIkRbX3yNHmWgyzlH3tl7fX7Rc6ZN7FQ42i+EwX J/M5AmGU5JNZw5v7OxGtx2YzVR4aB20Qo4Y89wEaEpoMBm4zbC59MHKn3htk+7IfGcdd dr5w2Od8gxPmh4SWeEJQx6+gfNVQvDN14BCmTivaTCfZOY7waRDZPw9eJ+iABJPqjsDc 8oOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="GLR/xjzW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c4-20020a63ef44000000b005c5fe04e4eesi11362564pgk.852.2023.12.14.08.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 08:40:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="GLR/xjzW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4E48281CA3E4; Thu, 14 Dec 2023 08:40:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443422AbjLNQkO (ORCPT + 99 others); Thu, 14 Dec 2023 11:40:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjLNQkL (ORCPT ); Thu, 14 Dec 2023 11:40:11 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A94811A for ; Thu, 14 Dec 2023 08:40:17 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1d069b1d127so50319695ad.0 for ; Thu, 14 Dec 2023 08:40:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702572017; x=1703176817; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AOk13I10R4lBKheCrtggrgfT1riocLOootjug+SJCQs=; b=GLR/xjzWPaYpWb2HIK1Qax6Fn6KeSaYNulQ7iDfVe6cX397m6haVKBY2SntNfc2Ons mxDSDv7wDlLWbAu7u6QkmAxP5uU5WxP3rHYNDx6VgstSySPeLN9qxoyYqBBEuftSFnSF uouOkGJo8zpL1t0XyG4SHInAeF8qAEYon0tT0D9mLBBFEA3HGqduHF+9ceY7v+hsJ7sY sYEnr0Dy15NjBkEiVfKLPxgoet1eSv9LLjI57zvQhtxVkVMTEuWRCAlIW6CjrEnInNdU pfNDDNvxyuomuwaYSHmY9GAhjZwNS5uuXfJlN48MjIvVpb3QoTpji8hXNzMhWsNtG5bP Cgyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702572017; x=1703176817; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AOk13I10R4lBKheCrtggrgfT1riocLOootjug+SJCQs=; b=RCbnqdCeMdjMGtKPsNMRsxAngASUX3mhUAjcAUsg3ISndhFqT9dI4MuU3QjR+szdpL 8/3OwAgFqbIAAP7ujc/FSPRb/HCF+IjevPoQLY7pjnDDO3rFMR7YEaYrP1qIpNt8BlVX YGHZf/jaoE/Xj7GbwW/PUxuezUk+pCoZhUQLdEL2uRKXG+FmDmI/8U9TS5qwFWa9FcGq 1F0uaKctdFMcnWQk2zWBQyoJNtt8ib6bI5YnlTufY10KF913QImaTx7ajKCa0EGnx2or UxiosCS/35sot7IFx03KI7Y41C6tDtM39cq82bdY0gcauSOPg1nvghR9z1rqWUtHrJQa NSqg== X-Gm-Message-State: AOJu0Yy7dkvO0HnbV/FT7CIfOVB3m8Gq+6cUGanSHZSARAfs0LH1M9Cz cumNOsjsry7rK1Z0iAuuYm3bS1GjFAY= X-Received: by 2002:a17:902:b197:b0:1d0:c345:c1d7 with SMTP id s23-20020a170902b19700b001d0c345c1d7mr5503759plr.77.1702572016721; Thu, 14 Dec 2023 08:40:16 -0800 (PST) Received: from code.. ([144.202.108.46]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b001d0b32ec81esm12595897plf.79.2023.12.14.08.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 08:40:16 -0800 (PST) From: Yuntao Wang To: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Baoquan He , Vivek Goyal , Dave Young , Hari Bathini , Eric DeVolder , Andrew Morton , Sourabh Jain , Sean Christopherson , Takashi Iwai , Lianbo Jiang , Yuntao Wang Subject: [PATCH 0/3] Some cleanups and fixes Date: Fri, 15 Dec 2023 00:38:39 +0800 Message-ID: <20231214163842.129139-1-ytcoode@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 08:40:45 -0800 (PST) This series includes two cleanups and one fix. Yuntao Wang (3): x86/crash: remove the unused image parameter from prepare_elf_headers() x86/crash: use SZ_1M macro instead of hardcoded value crash_core: fix and simplify the logic of crash_exclude_mem_range() arch/x86/kernel/crash.c | 12 +++---- kernel/crash_core.c | 70 +++++++++++------------------------------ 2 files changed, 25 insertions(+), 57 deletions(-) -- 2.43.0