Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1329215imu; Wed, 9 Jan 2019 16:17:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN4fOLLF0j2eWWdDWXjHHtafRuqoVg3pQlUUWW/kxHCO15WaacObgW/UlR47USaCreUu38Of X-Received: by 2002:a17:902:b592:: with SMTP id a18mr8143638pls.293.1547079437397; Wed, 09 Jan 2019 16:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547079437; cv=none; d=google.com; s=arc-20160816; b=SOWpsb7txMePqdAo3Ed+Ti8MmNKJrUI5D1WPXVpCb9/3gWVCqPt7TWLfyxQRRZVl67 vhcqlmQk0/oL/GKOT5VkdCPHJpxOSmET6REHUeIioaFsNT0VMBSGeBmuKnb7FB/UBjPC 5MIH6o/rVrGPeBGeSSK5/Piq03o/ZEPyvYDWK7THUwTI/TgIe+zO99m2vZT4S7o1S4yU +Z42/Ez4KTpH+YL4pVzKd0P/YdKB+0QtbPIt0+dsyMIVjwOl0xOLY/81Fm9RBAMqKAO1 VWyuVmL8xi9HsyL1XbaTVTrQJ6Qe+z8ssBFb3tksj9gpsBahgbeyrxw/EDYd+oRqgVSh gX0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=F2DKBpfL8hd4zEaAUPCu7YhS0w4KpnJ8pve5IA7F9m8=; b=uRChjsCJYk5YB26fc8tIPlIr9gC8O2OQNf1jq579tOpdJQ0L64muhFINg8XhbeCWuM +if8vcvidgpzjTHO/5LJ5pY01z0oqIvry0R13JIrs6bABjCEDe3Dyo5dq0ZmP+nmnQHV URQMATz379ISf2aubbDRIUKIzxIJJyn3ATuebOiQb1ZlmUb1JU4Kfkef8jKw8SPGK3tt EjvfiTmIHXT+nSY9G/kYKvikwMRDhr3bGIlpv9ZOsJC81yIvLK7IQnErmeNeKbqmRVpr nKaGLdBu4KhQ5g1nokemKoIf4U6WdYSWzbJ4lHmrexhllX6HVkWHSHEFYPSpKUyYHf1T UnmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZIfTFNWF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si15160978plq.25.2019.01.09.16.17.02; Wed, 09 Jan 2019 16:17:17 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ZIfTFNWF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726685AbfAJANE (ORCPT + 99 others); Wed, 9 Jan 2019 19:13:04 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46036 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfAJANE (ORCPT ); Wed, 9 Jan 2019 19:13:04 -0500 Received: by mail-qt1-f195.google.com with SMTP id e5so10451577qtr.12 for ; Wed, 09 Jan 2019 16:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=F2DKBpfL8hd4zEaAUPCu7YhS0w4KpnJ8pve5IA7F9m8=; b=ZIfTFNWFLbpHaJ3knOoOK/DRLAknYAjbWevj8TlidJPYvi8i4kWTh37iH1nfU7tCaz tzrDV+ao2a5KEFyvVHcu+SoRKHOjPhVl5OJLQ+cAVV1UJuKW2pv0vEtq4ldDnxzdYY2G jJ36LvFVr8SX+CICKzMNEAW43wu+AcNXWxn2M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=F2DKBpfL8hd4zEaAUPCu7YhS0w4KpnJ8pve5IA7F9m8=; b=apnMPdZwWdDO/Owo07+WsBH5JJpTR5CvLePy3NiJ1zwUl2Hl+yelCTL4TCV7xfbl1v 7k1kZgrBMhiXa2/SM89k1Kpx78wY64El/vP46laSHAn/41qXrRLfsD7XOkhOORYZYm0h XPa3wypwcooIp7pPBWZWaqsqLYli1t9Rrm+TcvoTTe99A5h+MaqSRZUw0fojPhSX/3T1 AOApOU4W3i8s6HSsW0EmuqnO2JUN54Zxx7lUN5XNn3CmVhIVEe5heIMUvxd5qUm4L1gw d+RErlRvnz5kh7nZ5b0NM/j4nLExq/KJQIx1AJI8vXF9P8SHDC3a8Ult/luzFCaC1mzA PVMg== X-Gm-Message-State: AJcUukczFjMoaZZGLRdimiiBJLDnjwAqzQlIQ/nXVLSWy1IlMYopkRTI fo+gMmeUFba5YR4lvCE4ihaSgo1tWHE= X-Received: by 2002:a0c:a9da:: with SMTP id c26mr7580877qvb.140.1547079183447; Wed, 09 Jan 2019 16:13:03 -0800 (PST) Received: from xanadu.home (modemcable228.104-82-70.mc.videotron.ca. [70.82.104.228]) by smtp.gmail.com with ESMTPSA id d85sm5635396qkb.89.2019.01.09.16.13.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 16:13:02 -0800 (PST) Date: Wed, 9 Jan 2019 19:13:01 -0500 (EST) From: Nicolas Pitre To: Greg Kroah-Hartman cc: Dave Mielke , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] vcs: poll(): cope with a deallocated vt In-Reply-To: <20190109035504.8413-6-nicolas.pitre@linaro.org> Message-ID: References: <20190109035504.8413-1-nicolas.pitre@linaro.org> <20190109035504.8413-6-nicolas.pitre@linaro.org> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jan 2019, Nicolas Pitre wrote: > When VT_DISALLOCATE is used on a vt, user space waiting with poll() on > the corresponding /dev/vcs device is not awakened. This is now fixed by > returning POLLHUP|POLLERR to user space. > > Also, in the normal screen update case, we don't set POLLERR anymore as > POLLPRI alone is a much more logical response in a non-error situation, > saving some confusion on the user space side. The only known user app > making use of poll() on /dev/vcs* is BRLTTY which is known to cope with > that change already, so the risk of breakage is pretty much nonexistent. > > Signed-off-by: Nicolas Pitre That patch introduced a small unwanted behavior change that I intend to fix in a follow-up patch (it will be tagged [PATCH 7/6]). I prefer to go with a separate patch rather than respinning this one as this gives me the opportunity to separately document said behavior. Nicolas