Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp715333pxu; Thu, 3 Dec 2020 10:45:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd0pSWJlYuUgnSdbQp1MahFlZxJg2mrrgd1ppXaVq0obtyYNPoo9z0tu/XICUG+KoluFkq X-Received: by 2002:a05:6402:2070:: with SMTP id bd16mr3960357edb.107.1607021119846; Thu, 03 Dec 2020 10:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607021119; cv=none; d=google.com; s=arc-20160816; b=zPl5VKfvvuLUb4oPB2ZiYqZvKUM+lBqgOamE8bvz3InMqwAK1t4DEELsKP7kzxFvB+ P5DQdNpJeNHVoKcDWOyB/UphaV646GZpkOBKhlgDM76nUTVCyxyw2+2Kc+bV7MOZ+bad mq8f2E5duIpuETE7OUzMx/A6qvBoXq806h6s+RKSfHPTsbim/D/WMWdnrDQv1/W13Ulo 3hPL4ScW+y13sJCYxksOKRtkWjJfip3OgKC/yEpCZkzRg0lDdPuCQYTqqssb6vJ7zf3E OZy42qSrPFJbHdOwT6F6qNFUfBYXrC0cOc/n4PowH8gCIUir8yVV63TbiE8Voa/7m7bO XZ9Q== 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=vr+m/vf02QTWZS1wWC+YahodAd9+U3cNVu4CCjab82A=; b=TWE64Uf3BoV+JqIHjKVQlIIwnDxMYlijev0V5iKRjpDvH3Sqo6z9TcRNQx2qLUWQHG 87IjgzH/YBqIQF+aDyq0Z5AXYwvCZ54kehMBTQsfJ3hWeA4K7mgTOn7BOhAsjDqXmkLQ XTHujjCEN/ET2eFuTiFnEFpntx1beGCElzKRj/JC+B6kbFXEb7XZXObDsbieZ58JA2KV 4CX7wWLHFSRp0r3QHcJ//NjjbaW1mZ9eNt02gF3IeJawDpkILLnhJtgCUQE1fO3N4o36 GeZhk1ysNxqG+vuVAmLBCwau2wbipslsFnnd3wKjn0Oh+K/hPv+fAe0qS9HWRSc9kELP 4jpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qDi5P1y5; 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 ec19si1631439ejb.669.2020.12.03.10.44.56; Thu, 03 Dec 2020 10:45:19 -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=qDi5P1y5; 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 S1728007AbgLCSnC (ORCPT + 99 others); Thu, 3 Dec 2020 13:43:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:59242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgLCSnC (ORCPT ); Thu, 3 Dec 2020 13:43:02 -0500 Date: Thu, 3 Dec 2020 19:43:28 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607020941; bh=6zTrNQ15fBHs3TKhJrf/dtLFadkiV4i0+CpSsYHNVbI=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=qDi5P1y5WZnSxloksrdUiiMOMX98kxPf713eQYcpUY1ZIAcTU0sqLPRST9MdLBp7I PCnfK0Dx//5tsHJwniEkM1NArvpJBi/t7scCcDZXCiosLOPey7MjMH81bSmVLx02lJ ftmI+w8Q8Uh/VCE4Y+/oNWfSgIMxo5JDa6dm1Sjk= From: Greg Kroah-Hartman To: Jann Horn Cc: Jiri Slaby , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: Remove dead termiox code Message-ID: References: <20201203020331.2394754-1-jannh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201203020331.2394754-1-jannh@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 03:03:31AM +0100, 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. > > Delete this dead code; but leave the definition of struct termiox in the > UAPI headers intact. Crazy that no one uses it. Nice cleanup, thanks for doing this. greg k-h