Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp318032pxa; Wed, 12 Aug 2020 02:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwutZm5pDYV4/70C99/YK7p5xJppmkJrVR8aI2n3VS+bZk0nsuA/K+4HFm5B2kPLoSXmkEY X-Received: by 2002:a17:906:6558:: with SMTP id u24mr29128345ejn.364.1597225843280; Wed, 12 Aug 2020 02:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597225843; cv=none; d=google.com; s=arc-20160816; b=qLPOuwzPaVrNMpJTGgvTqtFk5YtKlorySdhEysolkIrQNCxYrISjnuVehshab+XAxS t0FXmkRw84CydqQ5RRfX8OlJv5D/sKbO8O1AoeHq2ioc+3r+yX6B4DYlH8+tYIbT3zqr 8HH52jo/kY6zgB9H0310rDbDStt6kKOJ+RMZXu41VM7GPFhQZH3ugWcBYAMzJDhwNxZU og9rjJypigbia6u24Tt5a2/W1cvfD2009AgBtu2/8nlZ82czO+Of67Rdu2tsWlkNi932 2IaB7RNq005WdfffyQAqZ/L5iby/Ger6pV6oUG7pmaX46O3gSScHNKa9pegWjDTr5adl j9lQ== 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=NefAQsZRUAUyUenZEoPq5qQ4W+d1OfM7GwV+Nz+g21M=; b=p0rRCELC8A8GeG5lyoWMfjdNmLMmwVOaLpYDQtEyD+tzQO4VWHgArbCcKLInib/fWs 7rmE6XnXWX/dusTeI+N4lAWZMls4w6+g3VhqD2MQY7hOvpyynicv7pDW5vg3ajFQr4qA z1Upw5+UJ916SdsDu/DW+de42eCkyuYf/Xgsn06OkMXYXa3lON1Fsuw3NeoS4dNP1FDV NGgNxAtvtbY0lmXz+k3BPHraU0KNWt1IAUe+MeidFD7wxmzkfPOdou95EUCsD0ptxJDN p7Cp4ZK1bmMGEMglHDVSHmyY5uy3YQ7aif7kvLi7ca/n0KCXDzK4VCTVeWtpMLGo/xsG eECA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l14si821426ejz.187.2020.08.12.02.50.19; Wed, 12 Aug 2020 02:50:43 -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; 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=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbgHLJsx (ORCPT + 99 others); Wed, 12 Aug 2020 05:48:53 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:45415 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726601AbgHLJsw (ORCPT ); Wed, 12 Aug 2020 05:48:52 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-88-BXravPHFN-CLpwv5q6iGKw-1; Wed, 12 Aug 2020 10:48:48 +0100 X-MC-Unique: BXravPHFN-CLpwv5q6iGKw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 12 Aug 2020 10:48:48 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 12 Aug 2020 10:48:48 +0100 From: David Laight To: 'Miles Chen' CC: 'Christoph Hellwig' , "David S . Miller" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "wsd_upstream@mediatek.com" Subject: RE: [PATCH] net: untag pointer in sockptr_is_kernel Thread-Topic: [PATCH] net: untag pointer in sockptr_is_kernel Thread-Index: AQHWb9DKxxLX2AshVECOBLD3J//Za6kyxXFQgAFcawCAABZWMA== Date: Wed, 12 Aug 2020 09:48:48 +0000 Message-ID: References: <20200811102704.17875-1-miles.chen@mediatek.com> <20200811111551.GA3958@lst.de> <36e381c558e24185bc2f7e80a758d06a@AcuMS.aculab.com> <1597223732.5467.10.camel@mtkswgap22> In-Reply-To: <1597223732.5467.10.camel@mtkswgap22> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogTWlsZXMgQ2hlbiA8bWlsZXMuY2hlbkBtZWRpYXRlay5jb20+DQo+IFNlbnQ6IDEyIEF1 Z3VzdCAyMDIwIDEwOjE2DQo+IA0KPiBPbiBUdWUsIDIwMjAtMDgtMTEgYXQgMTE6NDQgKzAwMDAs IERhdmlkIExhaWdodCB3cm90ZToNCj4gPiA+IE9uIFR1ZSwgQXVnIDExLCAyMDIwIGF0IDA2OjI3 OjA0UE0gKzA4MDAsIE1pbGVzIENoZW4gd3JvdG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