Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp215535pxu; Fri, 4 Dec 2020 01:12:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzG+F5if7KRL1ulTkkD/VyIFBvWgGfPCDCmPctyEN8NonkqiVKHX4c7X2LIka6KzQ/D7tF7 X-Received: by 2002:a17:906:2e55:: with SMTP id r21mr6289305eji.46.1607073122461; Fri, 04 Dec 2020 01:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607073122; cv=none; d=google.com; s=arc-20160816; b=uGkBYxjGFSDqTRGoWfgzjzXEDrhQfvWMaNNW/vFOJUUTuiE88t9PbCyOBkqh+obLv7 IauOD7tWYQDw59P0QUclbIavu26/IznAEc89N/27Ff3gOotm553FQAJQq4mVwYJa7/5F nQYLS8MNRQatI9eeFK8Tn4IhNjv+PF/dlCo9V9+VQ3BI4WW9aTqAFGqhwXVun4Q9Yx5b Rkmiz5Jo3PM4JGPdbcDTja8VQJ3BuXbSP1vCp3Rzw2eMhgNOFaI/82LD1ShuHL7+aeCG OrYpmzpNPjuKUBLkXbnu1ER7fwDbO/IVIlQk0IlgQDgR4SroQXMCEpQnQuqz0cJ/80uv xo2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=SR8h7KsFzDmctffG9+y/wNSPvAvhxCSHc8HtOaYe9YY=; b=EUtatBVn1fKrHgoe6M+47KR3MM5P/RMxYvvgTT7a5DRF4IqGCCLgA+mza6pFVu/8kn BFtO8zkXlPl98UD+73tGMQ/lPzPvNQbZazGj/DUWE9tf0jlK7UfMXeyUQxHXnEuOAa0I TEvTaU4i2yY59nuWb32Y/pHQbdkokLl1K0LL63Sgr1OMw2DpMHJSmtzeS9vD3Zlns5ay SR7hVXgWUL6WLvNOaS7TjWhqT4chH4pepLNrbxxu+mWuE4OHzNHjvz6MmbGYDQ0lH+Gb D3pX96cdT8gwArjLNX7GI5pAoUIe4qnnBSgV3wivUGWL+jSzTOpbj5l7686rpF51lKCG bM+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y+BhaWZ4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si954142ejm.301.2020.12.04.01.11.39; Fri, 04 Dec 2020 01:12: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y+BhaWZ4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729191AbgLDJJx (ORCPT + 99 others); Fri, 4 Dec 2020 04:09:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:43416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgLDJJw (ORCPT ); Fri, 4 Dec 2020 04:09:52 -0500 Date: Fri, 4 Dec 2020 10:10:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607072952; bh=dHN4FrfyhpfVhI7AQNwFreA2S92urqF4EB45O0yPO2c=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=y+BhaWZ4BYpQtbC69d3vUykCKS0B0k4JDFj8oSvIoDVK/cpOVI+VEOylIVjmQ5YyS +mqi4KulEy6w0qUsUK5dsjDv2JzxmqEoGeJroxxv642zCq5JQiMX2czt5JhcFtB81y 3okgAkDoxvL5kV5BAuwuez+Jj5jKiqpkIahaDBTY= From: Greg Kroah-Hartman To: Jiri Slaby Cc: Jann Horn , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: Remove dead termiox code Message-ID: References: <20201203020331.2394754-1-jannh@google.com> <5cca5126-60ba-d123-0f7d-47fdbac4c4db@kernel.org> <93834a92-b342-aaee-c400-2883d5df0cdc@kernel.org> <8e993706-46e2-cbed-265f-1ba63cc9274d@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8e993706-46e2-cbed-265f-1ba63cc9274d@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 09:51:07AM +0100, Jiri Slaby wrote: > On 04. 12. 20, 9:36, Greg Kroah-Hartman wrote: > > On Fri, Dec 04, 2020 at 09:20:39AM +0100, Jiri Slaby wrote: > > > On 04. 12. 20, 9:17, Greg Kroah-Hartman wrote: > > > > On Fri, Dec 04, 2020 at 08:22:41AM +0100, Jiri Slaby wrote: > > > > > On 03. 12. 20, 3:03, Jann Horn wrote: > > > > > > set_termiox() and the TCGETX handler bail out with -EINVAL immediately > > > > > > if ->termiox is NULL, but there are no code paths that can set > > > > > > ->termiox to a non-NULL pointer; and no such code paths seem to have > > > > > > existed since the termiox mechanism was introduced back in > > > > > > commit 1d65b4a088de ("tty: Add termiox") in v2.6.28. > > > > > > Similarly, no driver actually implements .set_termiox; and it looks like > > > > > > no driver ever has. > > > > > > > > > > Nice! > > > > > > > > > > > Delete this dead code; but leave the definition of struct termiox in the > > > > > > UAPI headers intact. > > Note this ^^^^^. He is talking about _not_ touching the definition in the > UAPI header. Does the rest below makes more sense now? No, I'm still confused :) We can't touch the UAPI definitions, but the fact that this api never did anything still is ok as after this patch it continues to not do anything. I'm confused as to what you are proposing... greg k-h