Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp2404851ima; Sat, 2 Feb 2019 22:07:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN59J1udwpWpIKdNWgwodhY8zsixXkRLnBY/BdIC5P67JlxezBOZPZBGcTL1NfkJgXfbSqKN X-Received: by 2002:a62:c101:: with SMTP id i1mr46131726pfg.80.1549174022249; Sat, 02 Feb 2019 22:07:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549174022; cv=none; d=google.com; s=arc-20160816; b=wPYdSyXdNs3kkozDfoOndoxwhsk4/ENRZ6vg95sBQfCKMrOcgj8fg0c7Ug+Yx5gew/ dCNtQLPvD3mRglG+Xpq0yBIzubJU9oamSas1yUlJ+f2H7LhDNpqdngqIiLS4b5pKs3JT SNf02FWusQ5Zu5XwfjlOCz2TCQo+05bl3cETbITDbYB+xCPmgi67oKki4ddD2OAdHcYo k9BFTFQSPdbv8DnNKDBxXz/24T750D7De0A9iktPLR4Vu4rfu7xgowtuela5RgAMFqEI 5J4DnmdCfnG/dh88qFLep0VNZQbJ2h+nPt63w6sVuDvLTFaIUmuo7oyAxBhXrv0x7nex fU/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:mime-version :accept-language:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-phdr; bh=hQSkznbJMECbTwaxOpEt8S6hzZghaK9gOL1NxExQLw4=; b=A+QL8o9Av2c21X/jVIrtZHKYrTITDFeopxLlFMWqor8aYto3Hh62WRhLnfYYAG6k6U d1uKR1KyClMphzYDJ80Z2jazHLy5fsQBvFa8kMKrvKzY+SOTENbIfxVMHdZHLiFYezLK 0EGSbcdfuCCerHTWzZxzCOb8aqEjoVg0NDNi40A/NeAA/dDHbRI+b4+Owm6F1nVVrthi ktxYKw9pgB6FDpmjBfcfsOn3V51LxMkVKPAE1x8UAJAhgGMCi8V8RiTCj92vbnt/PeyE CC7FHtQ6IdZ8SY23OhUeYTxiqMjbq7YrJRFmDXSD4N8ZYT2qspDhc/EkfoFSeRCEW+rb Siiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si752646pgb.550.2019.02.02.22.06.23; Sat, 02 Feb 2019 22:07:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726807AbfBCGFE (ORCPT + 99 others); Sun, 3 Feb 2019 01:05:04 -0500 Received: from smtpext4.darkmatter.ae ([185.180.84.5]:54270 "EHLO smtpext4.darkmatter.ae" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbfBCGFE (ORCPT ); Sun, 3 Feb 2019 01:05:04 -0500 X-Greylist: delayed 606 seconds by postgrey-1.27 at vger.kernel.org; Sun, 03 Feb 2019 01:05:01 EST IronPort-PHdr: =?us-ascii?q?9a23=3AQUEUHxMgKHp+e4FIvnMl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0K/j9rsbcNUDSrc9gkEXOFd2Cra4c26yO6+jJYi8p2d65qncMcZhBBVcuqP?= =?us-ascii?q?49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6?= =?us-ascii?q?JvjvGo7Vks+7y/2+94fcbglUhzexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfO?= =?us-ascii?q?pWxWJsJV2Nmhv3+9m98p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ZSKJOMBhlycE?= =?us-ascii?q?VaWnS48uzx2hqAj6y79/JOrO5iIYrY7j1MRy5+DLjx4z9SF0D9+d022XSmF5hX?= =?us-ascii?q?gISCUz3KBkvEx9zFiD3bJkjPxfENxZ/+lJXRsiNZ7A0+x6DMj/WgfbcdePSVam?= =?us-ascii?q?RMipDi8rTt4s2dMOeF1wG864gRDGxCqqHrkVl7ORCJMo9aLc2mD7J9xhxHbeyK?= =?us-ascii?q?khk14mT9NVNWG8mq5/9xLcB5bNk0WYl6elb6Ac0TXW9GiZyGqOp1xYUAh/Uanf?= =?us-ascii?q?QX8fYU7Wp8zj5kzeV7+uFagnMgxZxM6cMKdKbMfmjU9cS/flN9TTeHmxlH21BR?= =?us-ascii?q?aT27OMaoXqd38B0yXaDUgOixoT8mqeNQgiGiehpHrTDD51FVLreUzj6ul/pWig?= =?us-ascii?q?Tk8p1AGFcVdt2Kay+h4QnfacUe8c3qoYuCc9rDV5BFK939PQC9qdqAttZaZcbs?= =?us-ascii?q?0n4FdBy23ZsxdwPoKvL698nF4SaQd3sF301xVxFIpAldImrHQwzAp9euqk1wYL?= =?us-ascii?q?cjqe3Jb8N6eObHLa5xmqcLPQ1RfV19PcsvMK4fI5rVnupljvDWI5+nB8zt9alX?= =?us-ascii?q?Cb48OOREAdS5/+UUYf8xl8uqHUZTQ764rI1Hpqd66uvXWKj90zCeQmyj6kftFC?= =?us-ascii?q?IK2DCQn+GtEbAM7oL/YlzRzhJAoJIO1I3K4pJcerZuCB1rK0Nfxt2jmhiC4PtJ?= =?us-ascii?q?hwzk+W3yphUOrFzo0Cze2H1xGKETz7iQHl+or1goRNbyA6BXekxG7vA4sbLvlw?= =?us-ascii?q?ZoICA3aGONCsy5N1gJu7CFBC81v2JF4b3oqOMSKbdV+1iS5dyEJShjqfkDG75z?= =?us-ascii?q?B9iTIsp7aD0TaIyum0J0lPAXJCWGQ31QSkGoOzld1PGRHwNwU=3D?= X-IPAS-Result: =?us-ascii?q?A2kDAAAwgVZc/1oB4AphAxoBAQEBAQIBAQEBBwIBAQEBgVE?= =?us-ascii?q?FAQEBAQsBhBQKg3mIGo1+g1CUP4F7DAGBd4J1AheDHTQJDQEDAQEBAQEBAgEBA?= =?us-ascii?q?QGBEYI6KQGCZwEBAQECASMEUhACAQYCDQQDAQIBKgICAjAdCAIEAQ0FCAaDFYF?= =?us-ascii?q?5jECbYXwzGgKJeA+CfogmgzMmgn9JNYUYCQELG4JCglcCiVcGGIIDhBeBeJBrB?= =?us-ascii?q?wKERI1uIYFshUGDKwOCVYFvgXCBNS2JdpE1AgICAgkCFIFGYYEuTYNfgigXjh5?= =?us-ascii?q?yjFwEgSqBHwEB?= X-IronPort-AV: E=Sophos;i="5.56,555,1539633600"; d="scan'208,223";a="1359610" Received: from unknown (HELO keys-ext2.darkmatter.ae) ([10.224.1.90]) by ADMSS-00-D-002-DATA2-KDC.darkmatter.uae with ESMTP/TLS/DES-CBC3-SHA; 03 Feb 2019 09:54:53 +0400 Received: from ForcepointDLP ([10.224.1.90]) by keys-ext2.darkmatter.ae (PGP Universal service); Sun, 03 Feb 2019 09:54:52 +0400 X-PGP-Universal: processed; by keys-ext2.darkmatter.ae on Sun, 03 Feb 2019 09:54:52 +0400 Received: from PassiveEmail (PassiveEmail [127.0.0.1]) by PassiveEmail.localdomain (Service) with ESMTP id 0B501180009A; Sun, 3 Feb 2019 09:52:41 +0400 (GST) Received: from email.darkmatter.ae (unknown [10.224.74.12]) by PassiveEmail.localdomain (Service) with ESMTP id E7C3C1800098; Sun, 3 Feb 2019 09:52:40 +0400 (GST) Received: from ADKDCSVMC001.darkmatter.uae (10.224.74.11) by ADKDCSVMC002.darkmatter.uae (10.224.74.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1531.3; Sun, 3 Feb 2019 09:54:51 +0400 Received: from ADKDCSVMC001.darkmatter.uae ([::1]) by ADKDCSVMC001.darkmatter.uae ([fe80::58c5:b1df:29a1:fe6f%18]) with mapi id 15.01.1531.010; Sun, 3 Feb 2019 09:54:51 +0400 From: Keun-O Park To: "maninder1.s@samsung.com" , "gregkh@linuxfoundation.org" , "peter@hurleysoftware.com" , "jslaby@suse.com" CC: "linux-kernel@vger.kernel.org" , "AMIT SAHRAWAT" , Vaneet Narang , Rohit Thapliyal , Ayush Mittal Subject: Re: race between flush_to_ldisc and pty_cleanup Thread-Topic: race between flush_to_ldisc and pty_cleanup Thread-Index: AQHUujgrtYRy6+Ptu0W2Q4s+Xo32DQ== Date: Sun, 3 Feb 2019 05:54:51 +0000 Message-ID: <7668b2ad75e044d38b17f6ce32845dfb@darkmatter.ae> References: <20190201142642.GB3211@kroah.com> <20190201133326epcms5p506416bc4ae22f600ee705f146ca1a599@epcms5p5> <20190201143747epcms5p579d523f0458736dcaaf55dec453cf6b9@epcms5p5> Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.224.74.90] x-exclaimer-md-config: 77ff947c-8af8-48f1-8d81-f67dcf75dbee MIME-Version: 1.0 Content-Language: en-US Content-Type: multipart/mixed; boundary="_002_7668b2ad75e044d38b17f6ce32845dfbdarkmatterae_" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --_002_7668b2ad75e044d38b17f6ce32845dfbdarkmatterae_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGksDQoNCjAyLzAxLzIwMTkgMDc6MzEgUE3sl5AgTWFuaW5kZXIgU2luZ2gg7J20KOqwgCkg7JO0 IOq4gDoNCj4gSGksDQo+DQo+PiBPbiBGcmksIEZlYiAwMSwgMjAxOSBhdCAwNzowMzoyNlBNICsw NTMwLCBNYW5pbmRlciBTaW5naCB3cm90ZToNCj4+PiBIaSwNCj4+Pg0KPj4+DQo+Pj4gVGhlcmUg aXMgc29tZSByYWNlIGNvbmRpdGlvbiBiZXR3ZWVuIHR0eV9wb3J0X3B1dCBhb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IGVycm9yLCBwbGVhc2UgY29udGFjdCB0aGUgc2Vu ZGVyIGFuZCBkZXN0cm95IGFueSBjb3BpZXMgb2YgdGhpcyBpbmZvcm1hdGlvbi4NCg0KDQoNCg0K DQoNCg0KDQo= --_002_7668b2ad75e044d38b17f6ce32845dfbdarkmatterae_ Content-Type: text/x-patch; name="0001-tty-pty-Fix-race-condition-between-release_one_tty-a.patch" Content-Description: 0001-tty-pty-Fix-race-condition-between-release_one_tty-a.patch Content-Disposition: attachment; filename="0001-tty-pty-Fix-race-condition-between-release_one_tty-a.patch"; size=2171; creation-date="Sun, 03 Feb 2019 05:54:51 GMT"; modification-date="Sun, 03 Feb 2019 05:54:51 GMT" Content-Transfer-Encoding: base64 RnJvbSAzYTY1ZWMwMWY4ODQ5YzNlMTEyNjc3OTRiOWQxYzcwZWYzMmQxM2UzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTYWhhcmEgPGtldW4tby5wYXJrQGRhcmttYXR0ZXIuYWU+CkRh dGU6IFN1biwgMyBGZWIgMjAxOSAwOToyNzoyOCArMDQwMApTdWJqZWN0OiBbUEFUQ0hdIHR0eTog cHR5OiBGaXggcmFjZSBjb25kaXRpb24gYmV0d2VlbiByZWxlYXNlX29uZV90dHkgYW5kCiBwdHlf d3JpdGUKCkVzcGVjaWFsbHkgd2hlbiBhIGxpbmtlZCB0dHkgaXMgdXNlZCBzdWNoIGFzIHB0eSwg dGhlIGxpbmtlZCB0dHkKcG9ydCdzIGJ1ZiB3b3JrcyBoYXZlIG5vdCBiZWVuIGNhbmNlbGxlZCB3 aGlsZSBtYXN0ZXIgdHR5IHBvcnQncwpidWYgd29yayBoYXMgYmVlbiBjYW5jZWxsZWQuIFNpbmNl IHJlbGVhc2Vfb25lX3R0eSBhbmQgZmx1c2hfdG9fbGRpc2MKcnVuIGluIHdvcmtxdWV1ZSB0aHJl YWRzIHNlcGFyYXRlbHksIHdoZW4gcHR5X2NsZWFudXAgaGFwcGVucyBh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