From nobody Fri Jun 17 19:38:44 2022 X-Original-To: dev-commits-src-all@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 D43CC85B824; Fri, 17 Jun 2022 19:38:44 +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 4LPq902zQLz3Qk8; Fri, 17 Jun 2022 19:38:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494724; 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=oAW5gaq1B/Uul2FZFS/BtPAl3th/SOyIGFwPBBbum6Y=; b=J2nb4u3+pJzD9sxkDqJ5mmzzXh83rwrNuDQ/e08I+I3Z1zf3LBZTJ/3f2MG1OihnVTpiqx SFmQWQhq2lIPzBOE95I9CMiR2RZMu69fEp3eOgtMLNb2/pQj8iCGeCj856dvfzYFpOt0pE LdDSMURVTR5rdYgQI/HRCcENwDJR5Fk49nHW5vljkktv1JDfurf3njqku4pjaTNDCTI9pz cqmtjhJrLlVoCK/HKvnPku7q8fek/EfbFvXerkjggMXjc3eUgBSFUZw9/QvgOo1R0SDRLJ vv/nQjGSWfWH/PI56Hx7TG3kPPVQhZ9umej2zG/pbTArm2oIJjmEoqYCKZA4ZA== 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 3BEC425D09; Fri, 17 Jun 2022 19:38:44 +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 25HJciqg015079; Fri, 17 Jun 2022 19:38:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJcisp015078; Fri, 17 Jun 2022 19:38:44 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:38:44 GMT Message-Id: <202206171938.25HJcisp015078@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: de1382dc4b5b - stable/13 - linux(4): Eliminate bogus options value check validation. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: de1382dc4b5bbcaf6ecb51706d1f4792c700c20d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494724; 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=oAW5gaq1B/Uul2FZFS/BtPAl3th/SOyIGFwPBBbum6Y=; b=w0vPPEUr+VOaMEKXNWugWWFuIuBQvYEmo2YhMIcHR28Q3r4t2qIeCHvAJnBW4JPatBmuAj 1YACny+S/QGfvbR2Uwl++oc5Uj7swjH+XxCZP5k/kKpD087y/AO/95LZAEDf0OMf3LbIiX HzmLcL+toSuRR6IT1cjEpbaFwcSDwa3HjumaNMF3Zee9/lPB82NVLt3VtggZ0kVLBMB38s CMFlvNJ/rR8P836hH6hasHWdUdYJj8IyosktGAfDr4j5t75ZGb05YDbUybs5vAbcSRhujQ uzDUBfTgAJSud7xDojZ8NoviRM0tLHsXEvlXLxHS+yWHiDYRn3iPYcjywDa1Mw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494724; a=rsa-sha256; cv=none; b=dpBIqoFed7E/QkH5b6X+MM5zsRmCLtnczmPeudYSDPSae9/oIwuiXupw8plfBGeyX6j+Am PikilwyostofgS8npxYXe4g6lWFS+sYIzJvWb4bKaTk2Y4eL+b/mpF2C+7PzZ++xJx5NME opcW71UTdQpjQjqs3v22zn3veo00hSOZe9sgCesxYvwSlqiQL+zd+YyK1Udww72a/9tlP+ INlIWGbgzXRzyeRCxe32MWs0rYL7FagXkDFCpvwg2OwGtKsfxhvDE9oL5Se9t7rNaSpQyk bjZ8yyDatHt9gPws4qSsZG6cEIoVPXsqobCiqebSgOD35HSEsWVbiVMc2NjCjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=de1382dc4b5bbcaf6ecb51706d1f4792c700c20d commit de1382dc4b5bbcaf6ecb51706d1f4792c700c20d Author: Dmitry Chagin AuthorDate: 2022-03-31 17:41:02 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:33:44 +0000 linux(4): Eliminate bogus options value check validation. The kernel do it for us. Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D31553 MFC after: 2 weeks (cherry picked from commit 2fd480b3182f52ebf23abdcacab04520224e90b7) --- sys/compat/linux/linux_misc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 45e395acd6aa..ffebf9cd2e20 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1095,8 +1095,6 @@ linux_waitid(struct thread *td, struct linux_waitid_args *args) if (options & ~(WNOHANG | WNOWAIT | WEXITED | WUNTRACED | WCONTINUED)) return (EINVAL); - if (!(options & (WEXITED | WUNTRACED | WCONTINUED))) - return (EINVAL); switch (args->idtype) { case LINUX_P_ALL: