Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1097746pxu; Sat, 12 Dec 2020 01:56:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuk4d/OBQdJ5gIWbWXL0DsMAgRZGriG8tWZjM/Q1VXn4HDuWmId1b1n64rpDnMltF/IBL1 X-Received: by 2002:a50:b5c5:: with SMTP id a63mr1056267ede.227.1607766962576; Sat, 12 Dec 2020 01:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607766962; cv=none; d=google.com; s=arc-20160816; b=rkVtXdtznS4BDuArPOrmMnC3ESTAiz2sBdnVIpVloehZTv7cOLSe8SjsKTyy7/UJN2 LtXuWWXqJTlSiwRd5FktKOOMgnzOwQF9+oTyMRSKOksySINCgQG5MmaPCvub5R3OqL26 JpnG6mvgqdSuFJS6qaAKe7xrBs6/v5obDiVXBjZuWfA/Q0MhxG6we15qcqBLmJl034wJ 8hBycpKx+W/NWcsuTN/OVgQ5Ac5YhkM9tWYv9XUEkL07lweSkwtwWi3QOdUjT9FEGsP5 h0UzWLvrNwfNFEToXU2ZDCTW7LlGwYdJVukqlbyQdlb/ZEI1dcU82neQ/7qklJp9c+BK Ngeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=hpLDsvUlsslKY8ei5BtTHA8ua/flkbHs7UpF6VbS5ag=; b=cs4FQNlevInRmdz95wus14dnV5g4/L1c8rJSXrSP9wP2Qzi6rkJiECVSfErWRVTOy1 ++gxnCLZpszpcd/oFtdqtNnJzByKVzzZ39ul9cuQ/fjlqxgLpwRn3RXjqb+c5oWfUrIp nnjvr5BcFBMt18e/dkb6+nRivZEL7olfci58xenGLjXvlrI9GHM3NpG44ZdMoWnOi3Xj hRrhn7nGFrzqxACzpyDIlzBioJlDF0Rib6V1uI23ZZa2RMx5zhzmMDje2ryBlEv6tSvh YbvKhnfp+PycL4jP4M4uufDWOrUZcpQq6vkK8Ir4nauGZthTWjOVxApe+ahOBm8Ie02L EJCA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si6097719ejn.207.2020.12.12.01.55.40; Sat, 12 Dec 2020 01:56:02 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389995AbgLKIIa (ORCPT + 99 others); Fri, 11 Dec 2020 03:08:30 -0500 Received: from smtp.h3c.com ([60.191.123.50]:47544 "EHLO h3cspam02-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387443AbgLKIIG (ORCPT ); Fri, 11 Dec 2020 03:08:06 -0500 Received: from h3cspam02-ex.h3c.com (localhost [127.0.0.2] (may be forged)) by h3cspam02-ex.h3c.com with ESMTP id 0BB6A2V6076745 for ; Fri, 11 Dec 2020 14:10:02 +0800 (GMT-8) (envelope-from gao.yanB@h3c.com) Received: from DAG2EX01-BASE.srv.huawei-3com.com ([10.8.0.64]) by h3cspam02-ex.h3c.com with ESMTP id 0BB697wM073602; Fri, 11 Dec 2020 14:09:07 +0800 (GMT-8) (envelope-from gao.yanB@h3c.com) Received: from DAG2EX08-IDC.srv.huawei-3com.com (10.8.0.71) by DAG2EX01-BASE.srv.huawei-3com.com (10.8.0.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 11 Dec 2020 14:09:09 +0800 Received: from DAG2EX08-IDC.srv.huawei-3com.com ([fe80::81d1:43f5:5563:4c58]) by DAG2EX08-IDC.srv.huawei-3com.com ([fe80::81d1:43f5:5563:4c58%10]) with mapi id 15.01.2106.002; Fri, 11 Dec 2020 14:09:09 +0800 From: Gaoyan To: Greg KH CC: "jirislaby@kernel.org" , "linux-kernel@vger.kernel.org" , Tianxianting Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0hdIFt2Ml0gdHR5OiBQcm90ZWN0IGRpc2NfZGF0YSBp?= =?utf-8?B?biBuX3R0eV9jbG9zZSBhbmQgbl90dHlfZmx1c2hfYnVmZmVy?= Thread-Topic: [PATCH] [v2] tty: Protect disc_data in n_tty_close and n_tty_flush_buffer Thread-Index: AQHWzp15rcbAW2mlAUelugKRa08EAKnvVhAAgAHvFMA= Date: Fri, 11 Dec 2020 06:09:09 +0000 Message-ID: References: <20201210022507.30729-1-gao.yanB@h3c.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.161.27] x-sender-location: DAG2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-DNSRBL: X-MAIL: h3cspam02-ex.h3c.com 0BB697wM073602 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgR3JlZyBLSO+8mg0KCUkgdHJ5IHRvIHJlcHJvZHVjZSB0aGlzIHByb2JsZW0gaW4gdGVzdGlu ZywgYnV0IGl0IGlzIGRpZmZpY3VsdCB0byBoYXBwZW4gYWdhaW4uIEl0IGlzIGhhcmQgdG8gZ3Jh c3AgdGhlIHRpbWluZw0KdGhhdCBuX3R0eV9mbHVzaF9idWZmZXIgYWNjZXNzZXMgdGhlIGRpc2Nf ZGF0YSB3aGljaCB3YXMganVzdCBzZXQgdG8gTlVMTCBieSBuX3R0eV9jbG9zZS4N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