Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1024566rdb; Mon, 19 Feb 2024 01:28:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXAp/h8cHEGNiHbY8d5QrgnkRF3VaiP6tx5lqtgzmqT7nwl6f0+VfrbfiB3t2JZuBZUA6ziebKA0MTLZgXjR9Mihdz29xxIFJfTGV65gg== X-Google-Smtp-Source: AGHT+IFOd0cPuY16fl5JbTib3cCDfFiH4kC6ZjkdAFCeM4U39TkrXekf0lRL0lq7eN3lUvMtvHst X-Received: by 2002:a17:903:2b0d:b0:1dc:7ca:36de with SMTP id mc13-20020a1709032b0d00b001dc07ca36demr338974plb.9.1708334882192; Mon, 19 Feb 2024 01:28:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708334882; cv=pass; d=google.com; s=arc-20160816; b=qS6Fk56EWajFPHJEScKDPDXbxBVTyooB1TLkivxFO4N586V7zBeTaFNvzy7c/EaKZ5 czomfZHuOduRKK/Ao9K43bmDi59gpaVQ8xRXuNomwMwbXGoja4BliCRdccTOexwdmwCr 4X6OItYXF/3+B1SMu9lHYL9EXVGZlwCcsAQgNqCwML/6MueSh8SeeyZ01yP55DH6yJBY hVJQi9h/sLfq+Ds0m3B4rUvvNIvycZj59i6W8x0CxMgeKSD0gjGQT1djmDSzGf0EnaTk waKiURWmVc5vV2XUymPVFI6xNf4MX+3jYfX/4ybHyO140NL5XDTOHsst3gOxwCG6Lg+2 JFnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:content-transfer-encoding:references:in-reply-to:subject :cc:to:from:date:dkim-signature; bh=9fjgrCkQJcTG401P9Y7fOzSFtlh4A7QyDmdWBZ31pYs=; fh=/Gn2y9EdRcjMYpZoAFrx/IkhSvYVlJazLGB+ln1DFIM=; b=MZvZXVVhINcZ4Oo83gBgZSvLZApjv/KBTjE8brMYAmCXqqFC9ZTH/e49daaJ/QedWC qmxwCiprFl7ztnkHoXNzS+Mzf1Dl7wde1PVtJG3LJnUQ5M+kpEQQaKE0BeWfphWLYB4n 71eP7ZNr0oowqFjzC6vzjTeslDFVazdKF25DqYDPdoGjLfsoclAtUA58EbfoTPGyW/E8 P6bHe/+fGsEL73z3SXcprV0kG7h0h5G1R+xA9k6WC1vSM71FXP0CIuw33wC4P8Gx4+XA SRnAzNbNAx6GM9lFpDOF/L0qv9rWonwsy9yJS1dBxhgyDxP1HkIXB2+aVfI2akvOIuV4 IcQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=JSXS+H9s; arc=pass (i=1 spf=pass spfdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-71029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p16-20020a170902e75000b001db70a9a26fsi941427plf.133.2024.02.19.01.28.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 01:28:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71029-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=neutral (body hash did not verify) header.i=@163.com header.s=s110527 header.b=JSXS+H9s; arc=pass (i=1 spf=pass spfdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-71029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=163.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 494D3B20FF4 for ; Mon, 19 Feb 2024 09:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B27CE2377E; Mon, 19 Feb 2024 09:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=163.com header.i=@163.com header.b="JSXS+H9s" Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.4]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB9C42421E for ; Mon, 19 Feb 2024 09:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708334872; cv=none; b=Igtc2xxnMynj3FUQ2Xv9fXRJKFMUkdbt/vWQxvs7kYGzfsy+PdUY0rVpCn7oXDSYujZTji9/6QR8ZF8/3Wx9di9zpGZZGOm7inGK4hAoG2rl3+VdtSdR9nknJZ0YAc2Y1On/a/zzXYHXghE5tItfhSv7EiSWDsJRQO8X30iS1eo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708334872; c=relaxed/simple; bh=9fjgrCkQJcTG401P9Y7fOzSFtlh4A7QyDmdWBZ31pYs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Content-Type: MIME-Version:Message-ID; b=FGRV4SOtgAbdQneAiEYVAsJIOEywIfo7MwIxZi6ArjQkBKEkYMWtleo/4swgABpY0L9uDtoQAQytXNQ+1eUDlq5RuYITrnJvaFmWmfw9hmYbZVLXs7HfF23fN0EO1m/YovtQfk79XMeNLdU5gRkwiDBU6cCxBRyJEfS0NRXARtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=fail (1024-bit key) header.d=163.com header.i=@163.com header.b=JSXS+H9s reason="signature verification failed"; arc=none smtp.client-ip=220.197.31.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Content-Type:MIME-Version: Message-ID; bh=LdXQA66iqTewnXLGYwkQx7fMCWVbVDbz/y8KNE5FnZ8=; b=J SXS+H9s7HHL/vHOzHbkgpxpTndollX4wJaIePQzXjHrOK/O3ld2roYZnMocy8QXS LEAoXT8P5gm0llaNzuVV05uVodz6+uEwdiXkp9v/L4oVsW4Z7G8ec+QlxSsBnH6w QiRXMHBkdd2BUMO+pwBFRA8LsWPhHJcmKbbX0wTL9M= Received: from gaoshanliukou$163.com ( [60.24.209.108] ) by ajax-webmail-wmsvr-40-114 (Coremail) ; Mon, 19 Feb 2024 17:26:55 +0800 (CST) Date: Mon, 19 Feb 2024 17:26:55 +0800 (CST) From: "yang.zhang" To: "Baoquan He" Cc: "Eric W. Biederman" , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, "yang.zhang" , akpm@linux-foundation.org Subject: Re:Re: [PATCH] kexec: should use uchunk for user buffer increasing X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20230109(dcb5de15) Copyright (c) 2002-2024 www.mailtech.cn 163com In-Reply-To: References: <20240130101802.23850-1-gaoshanliukou@163.com> <871q9r3xl6.fsf@email.froward.int.ebiederm.org> <2a207ca2.1e87.18dbf17ee10.Coremail.gaoshanliukou@163.com> X-NTES-SC: AL_Qu2bCv+Yu0Aq4yGRY+kXnEYQh+k3XcK4u/0u2YFVP5E0oyTL8z0ARUdJIVL69+GMNS2NiCCzaBpn5cJBXZNDc7oAhva9lGIG43yCV0QCwDB7 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=GBK Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <23cb32ca.9195.18dc0b09810.Coremail.gaoshanliukou@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID:_____wD3ny_fHtNl5B7kAA--.18548W X-CM-SenderInfo: pjdr2x5dqox3xnrxqiywtou0bp/xtbBZQKF8mV4H1oUZwAGs9 X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== CgoKCgpUaGFua3MsIGkgd291bGQgcG9zdCB2MiBwYXRjaC4KQ291bGQgeW91IHBsZWFzZSBwcm92 aWRlIHRoZSBlbWFpbCBhZGRyZXNzIGZvciBhbmRyZXcuCgoKCgoKCgoKCkF0IDIwMjQtMDItMTkg MTA6Mzg6MjIsICJCYW9xdWFuIEhlIiA8YmhlQHJlZGhhdC5jb20+IHdyb3RlOgo+T24gMDIvMTkv MjQgYXQgMTA6MDBhbSwgeWFuZy56aGFuZyB3cm90ZToKPj4gCj4+IAo+PiAKPj4gVGhhbmtzIGZv ciB5b3VyIHJlcGxpZXMuCj4+IERvIHlvdSBoYXZlIHBsYW5zIHRvIG1lcmdlIHRoZSBpbXByb3Zp bmcgY29kZSBmb3IgY2xhcml0eSwgb3IganVzdCBrZWVwIHRoZW0gdW5jaGFuZ2VkLgo+Cj5Zb3Ug bmVlZCBwb3N0IHYyIHRvIGNoYW5nZSB0aG9zZSB0d28gcGxhY2VzIGFzIEVyaWMgaGFzIGRlbW9u c3RyYXRlZC4KPlBsZWFzZSBDQyBBbmRyZXcgd2hlbiB5b3UgcG9zdC4KPgo+PiAKPj4gQXQgMjAy NC0wMi0wNSAyMDoyNzozMywgIkVyaWMgVy4gQmllZGVybWFuIiA8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ZWwva2V4ZWNfY29yZS5jCj4+ID4rKysg Yi9rZXJuZWwva2V4ZWNfY29yZS5jCj4+ID5AQCAtODAwLDIyICs4MDAsMjQgQEAgc3RhdGljIGlu dCBraW1hZ2VfbG9hZF9ub3JtYWxfc2VnbWVudChzdHJ1Y3Qga2ltYWdlICppbWFnZSwKPj4gPiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgUEFHRV9TSVpFIC0gKG1hZGRyICYgflBBR0Vf TUFTSykpOwo+PiA+ICAgICAgICAgICAgICAgIHVjaHVuayA9IG1pbih1Ynl0ZXMsIG1jaHVuayk7 Cj4+ID4gCj4+ID4tICAgICAgICAgICAgICAgLyogRm9yIGZpbGUgYmFzZWQga2V4ZWMsIHNvdXJj ZSBwYWdlcyBhcmUgaW4ga2VybmVsIG1lbW9yeSAqLwo+PiA+LSAgICAgICAgICAgICAgIGlmIChp bWFnZS0+ZmlsZV9tb2RlKQo+PiA+LSAgICAgICAgICAgICAgICAgICAgICAgbWVtY3B5KHB0ciwg a2J1ZiwgdWNodW5rKTsKPj4gPi0gICAgICAgICAgICAgICBlbHNlCj4+ID4tICAgICAgICAgICAg ICAgICAgICAgICByZXN1bHQgPSBjb3B5X2Zyb21fdXNlcihwdHIsIGJ1ZiwgdWNodW5rKTsKPj4g PisgICAgICAgICAgICAgICBpZiAodWNodW5rKSB7Cj4+ID4rICAgICAgICAgICAgICAgICAgICAg ICAvKiBGb3IgZmlsZSBiYXNlZCBrZXhlYywgc291cmNlIHBhZ2VzIGFyZSBpbiBrZXJuZWwgbWVt b3J5ICovCj4+ID4rICAgICAgICAgICAgICAgICAgICAgICBpZiAoaW1hZ2UtPmZpbGVfbW9kZSkK Pj4gPisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVtY3B5KHB0ciwga2J1ZiwgdWNo dW5rKTsKPj4gPisgICAgICAgICAgICAgICAgICAgICAgIGVsc2UKPj4gPisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gY29weV9mcm9tX3VzZXIocHRyLCBidWYsIHVjaHVu ayk7Cj4+ID4rICAgICAgICAgICAgICAgICAgICAgICB1Ynl0ZXMgLT0gdWNodW5rOwo+PiA+KyAg ICAgICAgICAgICAgICAgICAgICAgaWYgKGltYWdlLT5maWxlX21vZGUpCj4+ID4rICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIGtidWYgKz0gdWNodW5rOwo+PiA+KyAgICAgICAgICAgICAg ICAgICAgICAgZWxzZQo+PiA+KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBidWYgKz0g dWNodW5rOwo+PiA+KyAgICAgICAgICAgICAgIH0KPj4gPiAgICAgICAgICAgICAgICBrdW5tYXBf bG9jYWwocHRyKTsKPj4gPiAgICAgICAgICAgICAgICBpZiAocmVzdWx0KSB7Cj4+ID4gICAgICAg ICAgICAgICAgICAgICAgICByZXN1bHQgPSAtRUZBVUxUOwo+PiA+ICAgICAgICAgICAgICAgICAg ICAgICAgZ290byBvdXQ7Cj4+ID4gICAgICAgICAgICAgICAgfQo+PiA+LSAgICAgICAgICAgICAg IHVieXRlcyAtPSB1Y2h1bms7Cj4+ID4gICAgICAgICAgICAgICAgbWFkZHIgICs9IG1jaHVuazsK Pj4gPi0gICAgICAgICAgICAgICBpZiAoaW1hZ2UtPmZpbGVfbW9kZSkKPj4gPi0gICAgICAgICAg ICAgICAgICAgICAgIGtidWYgKz0gbWNodW5rOwo+PiA+LSAgICAgICAgICAgICAgIGVsc2UKPj4g Pi0gICAgICAgICAgICAgICAgICAgICAgIGJ1ZiArPSBtY2h1bms7Cj4+ID4gICAgICAgICAgICAg ICAgbWJ5dGVzIC09IG1jaHVuazsKPj4gPiAKPj4gPiAgICAgICAgICAgICAgICBjb25kX3Jlc2No ZWQoKTsKPj4gPgo+PiA+QW5kIG1ha2UgaXQgZXhjZWVkaW5nbHkgY2xlYXIgdGhhdCBhbGwgb2Yg dGhlIGNvcHlpbmcgYW5kIHRoZSByZXN0Cj4+ID5vbmx5IGhhcHBlbnMgYmVmb3JlIHVjaHVuayBn b2VzIHRvIHplcm8uICBPdGhlcndpc2Ugd2UgYXJlIHJlbHlpbmcKPj4gPm9uIGEgbG90IG9mIG9w ZXJhdGlvbnMgYmVjb21pbmcgbm9vcHMgd2hlbiB1Y2h1bmsgZ29lcyB0byB6ZXJvLgo+PiA+Cj4+ ID5FcmljCg==