Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2521278rdb; Mon, 25 Dec 2023 15:32:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjw2c1q/c7ggzfEh1MqEd56DZIHdzH8dTh0jrUHVr1jn5D0oNSXv7rBtXUSPf616CTROuP X-Received: by 2002:a17:902:bf46:b0:1d3:b085:12cc with SMTP id u6-20020a170902bf4600b001d3b08512ccmr7001743pls.25.1703547129641; Mon, 25 Dec 2023 15:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703547129; cv=none; d=google.com; s=arc-20160816; b=qHnE3aOcDnLnGolKwXwqe3tKWPK0rjQNBEr76lDGV6xQiUJkWoGeSogtn02fkggNJp oaLa/EQ+fRc89bXXhxakodYLZF1GwJRmhHaSsbLSFtsWG6z7GNbyd0ZrSnOzX1n/5ERM 6lpMvIQEX/lh8dwHnaROLSc2K2q+OkvgxxUOZpH8ojwTabPjUoH3sR8IqLWaxllrDChy afqAKTAiBISEaO+6530tYKiaIrQ/P3ITEBn8M5ZtnqpPIankxiKMC+fJHu/58iaGWhcJ xps8qGsToUBPdXho8lQvNIM18CuubnjvTHb13GSfEoHedXUvixEKKAjLVsDICj1+bWt9 HDgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BSlPAyAZzv+QVMkLmtnw21kPDx01ngb4jPGaj9Nd6Dk=; fh=GwK1eSWwGUpY0n8kR53H4JZI0vC4DPij9Hh3zu8bMC4=; b=SMTIWSKpSbP7kNIzOjTaN83i+/iG6nMDQre8BxcRZiZJfiMea7f7D0x1KNGmAo1ymB 1i4zfv5Z/+vFETtv3DmuAfdjbZC8hxOMpR6eRt4I4f8FjkFmYRhRmR5dTYJBeoe+F1C4 iGTDwa8AGIHfSURRHFC5sZF9Q9ClSCwG8iOBXhZeXsZBT2gttJMWJyZ2Bl9Wu1cEd+T0 oRWEnMBmSK+Orohs9tW2xsl62+749a9gesmiojIR3Q4etpnP2y+OvoQYTsIkGtx7Eh1+ 8qT0kOx2evrViM7Ppv1vMCFZWj6ScXMEshodddkFzAHOKwV6eH51DCn1Pg9dWkvqLh5w gOPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVyHHONS; spf=pass (google.com: domain of linux-kernel+bounces-11189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j12-20020a170903024c00b001d3fa1c091esi8411377plh.81.2023.12.25.15.32.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 15:32:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVyHHONS; spf=pass (google.com: domain of linux-kernel+bounces-11189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D6ADAB21270 for ; Mon, 25 Dec 2023 23:32:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5330C53E28; Mon, 25 Dec 2023 23:32:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HVyHHONS" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBFFE53E17 for ; Mon, 25 Dec 2023 23:31:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703547117; h=from:from: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=BSlPAyAZzv+QVMkLmtnw21kPDx01ngb4jPGaj9Nd6Dk=; b=HVyHHONSLpmH/07R0WiJVsExF/p1CmbYgE+YlNcfUm2aHUILjCjSRNqkpwRc+vkvmo8djH 2Eb+UpUKqyYNWnLIoKUizg780dSMQw80lMDzKJYybwsiOreswNnldvF4hdsVLvoCKlofed Wj0OxoPd3q2t7rVAVV98UdgeviFAM0s= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-247-Kp_o3q8TMuunmh3-dbEeKw-1; Mon, 25 Dec 2023 18:31:54 -0500 X-MC-Unique: Kp_o3q8TMuunmh3-dbEeKw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E07831C172C1; Mon, 25 Dec 2023 23:31:53 +0000 (UTC) Received: from localhost (unknown [10.72.116.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E1691C060AF; Mon, 25 Dec 2023 23:31:52 +0000 (UTC) Date: Tue, 26 Dec 2023 07:31:49 +0800 From: Baoquan He To: fuqiang wang , akpm@linux-foundation.org Cc: Vivek Goyal , Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] x86/kexec: fix potential cmem->ranges out of bounds Message-ID: References: <20231222121855.148215-1-fuqiang.wang@easystack.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 On 12/25/23 at 09:44pm, fuqiang wang wrote: > 在 2023/12/24 12:46, Baoquan He 写道: > > > Rethink about this, seems above code comment is fine to be kept, and the > > same feeling about the elfheader region split from crashk_res. So, other > > than the patch log concerns, this patch looks good to me. Let's see if > > other people has concern about the newly added comments. > > > > Hi Baoquan > > Thank you very much for your suggestions in the patch log and code comments. I > have learned a lot and I will gradually improve. > > I found the following patch in linux-next: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=666ef13f2870c43ba8a402ec8a3cedf6eb6c6f5a > > I'm sorry, It's my mistake. Do you think it is still necessary to merge this > patch based on that ? That patch need be withdrew because that is not expected according to our discussion. Hi Andrew, Could you withdraw the patch fuqiang mentioned? x86/crash: fix potential cmem->ranges array overflow https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=666ef13f2870c43ba8a402ec8a3cedf6eb6c6f5a Thanks