From nobody Thu Feb 17 12:54:32 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 86DD219CA864; Thu, 17 Feb 2022 12:54:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jzvt03Nv8z3FPk; Thu, 17 Feb 2022 12:54:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645102472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IE6HAADs7aTGkN+KbxprRDgAkZzZiRK1Ae/p8IChpgw=; b=n49vdkIky/ghalAxoVIm5l8/nCsIL2aqNs0TCA8ncBloXMpNzZAgmTaZh+AO7dP7o5CBor cvED/xCkj1Ia01K4IdE9ZLjxzplfkp+sfuePlB7rRGmVLz0Qq54v/18U5DAD476E1OX1Js JGS/NWmkUq/7jcGouWE0mQ4FvS3lENQrnW8fwkewI4zcNB3LbIsN1dz1FwA6sOqdalqbhz bd9HtKSGlwCcPLSv4vBzUg4XPYxjQink6i/zLc+2UKR5DJ6VR7bk+eRLM17QAXU5xEdRjR TFKHK5Uw1eU1gLaAparyZi564dfNMuiQNPDdLSiuZ/+00b1P4mV7kMk44Yvhzw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3BC371F61; Thu, 17 Feb 2022 12:54:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21HCsW6t080301; Thu, 17 Feb 2022 12:54:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21HCsWAi080300; Thu, 17 Feb 2022 12:54:32 GMT (envelope-from git) Date: Thu, 17 Feb 2022 12:54:32 GMT Message-Id: <202202171254.21HCsWAi080300@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Edward Tomasz Napierala Subject: git: 1f86d04d02a6 - stable/13 - linux: Partially implement TCSBRK List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 1f86d04d02a6eb0447ed72b6597438db0cb9e4d8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645102472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IE6HAADs7aTGkN+KbxprRDgAkZzZiRK1Ae/p8IChpgw=; b=fNq3C1A2ZOdirzaCJrpEsSkgVRQPzsxNcw0uIpYEfbGoMc9DJAIxVR8IlCamBGSmx/qeYy WyZR4fk0dfvh4/EAaWIm2zDGbIWv/YtxM5nroVC4d0gS00+Slr18PeN8FNJHxDAgse4v3c 8X57INdbspjtAiIa5oJBcxtBsBkEzkxxQ1jhT7nY16H2ftiKff7q1F7FXmemaJQ3Vq9sYj /O/5Rzy4bzffl7l2g7Dm3Kcbi6u0DF9Xc/1bTjnrcZQScmL14yiRA07G0jBtByp644tVf8 U5znRXM2CjBb2tS2tMc05PYT0CgS2qkldTZbiUgLSQof3QcG7nwYVMYmmKWa3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645102472; a=rsa-sha256; cv=none; b=Qj5rp4HcqQg4ECeZVvrWFpHBg4xJ/92luNc0SFYJlVVwxfb4mVJKo4B3WrnK42vmvLUlqO QANgSaG8IZkhlhZ2XjBDswssXrdPtdN6Rf1u3t13hcw3nvh2wbZCoHqNhQj4A8p54rm7A7 mUiq9YnxkoqSzdoe4VpFO1jjSPraprgf1jM6jEi7kAJmcpVtFDOX9z0x1CZrkP5iX33kH6 ZY5ziyroQEGgXUwaI6wMySykJpeUEqBvA9C1wYaA6sixvVnyPOx9PTTf+USjwSqP9fGBQm XJ3CqkCheH87NqY9icz9vo86m4J2hUUmx3hsVoKu+J63kEvM37DW8J/fGgRrvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=1f86d04d02a6eb0447ed72b6597438db0cb9e4d8 commit 1f86d04d02a6eb0447ed72b6597438db0cb9e4d8 Author: Edward Tomasz Napierala AuthorDate: 2021-10-17 10:19:51 +0000 Commit: Edward Tomasz Napierala CommitDate: 2022-02-13 22:24:49 +0000 linux: Partially implement TCSBRK This fixes tcflush(3), unbreaking cheribuild.py under arm64 Focal. Reviewed By: imp Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32291 (cherry picked from commit 7e7859e7c2b900fd1b1af6e90ed31d51b9b5514d) --- sys/compat/linux/linux_ioctl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 62cb958aa42f..e3ce41ed38f8 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -755,7 +755,15 @@ linux_ioctl_termio(struct thread *td, struct linux_ioctl_args *args) td)); break; - /* LINUX_TCSBRK */ + case LINUX_TCSBRK: + if (args->arg != 0) { + error = (fo_ioctl(fp, TIOCDRAIN, (caddr_t)&bios, td->td_ucred, + td)); + } else { + linux_msg(td, "ioctl TCSBRK arg 0 not implemented"); + error = ENOIOCTL; + } + break; case LINUX_TCXONC: { switch (args->arg) {