Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1227139ybx; Thu, 7 Nov 2019 09:03:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwlylmscS8hUxpmwPcgvQVGRAIw3+F2+DdyQXJH0IA7p32J9gYMZQMqClTIdJWFcpd8s2UH X-Received: by 2002:adf:eed2:: with SMTP id a18mr1221304wrp.273.1573146186134; Thu, 07 Nov 2019 09:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573146186; cv=none; d=google.com; s=arc-20160816; b=TX9z+HmEXAPqgXjn3MZtYz0DmyPJSaeN8VivHXx8whCV6aE8x+zS9pkbF7l16v23GN QBBJ0a1RExnre2qYmg9sTkJ6vesAFWplwDSEFc1Rc7KbA8tYSEfsQV0MlEZKbwUSKALZ QCOsGUB+q+/BfWDgVKJ0wT5FwmSklQEixI3kp/FdqLHFjlLYwpDpqWXlLDqOb+ryR6zo jbvgPd/Jh10FyZjKpAmBzNQQuSut4SYpqfmU8NYEuBsNitGBIbWq3hQdYBHjNtStoyFb gyEEAzcX3XyS5O6hWKWJ6HTaLUrV+Iu+YwspgKhLJM0p2XDxTukjQqgPZ3hZnxNN2ajv fGsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SHp/LELvd2q7iaabYUCJ0BC2nPGqk1CHiTfayW8IbIE=; b=zHKUPdd28uxZul69W0TLJTw6MQGixnP4luPj15sBcYMfEEI+uLxpXBDr/bULSg5MPA OTVTCDUEl8+vYzqVTSz3ZlsgcyzRHA6CvpZl87Scn9v8Ew8VmX+W4kXORkpL8+N7nC1E 259Co4LI5s9otgYnqBDTLT3blA5uDU+tJXkAbmAtIsS156tg47dMLRFrs+exHhZ+h81k cMFFgbA7luM1TZnLA3c79f6GGXa9Nk5yWZgDMgPEEeFXAcfz8iXqAaznsbaeaW6Ta/3Y KbZQ7KykGFqYa/wnEP61fe+viaKxu14i2WxaftXddSTXrWr9ajVsKGt+U3xCaDiAnXsb hZhw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si1859104ejx.181.2019.11.07.09.02.41; Thu, 07 Nov 2019 09:03:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388614AbfKGQ71 (ORCPT + 99 others); Thu, 7 Nov 2019 11:59:27 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:14935 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387459AbfKGQ71 (ORCPT ); Thu, 7 Nov 2019 11:59:27 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id xA7Gvqec015818; Thu, 7 Nov 2019 17:57:52 +0100 Date: Thu, 7 Nov 2019 17:57:52 +0100 From: Willy Tarreau To: "Eric W. Biederman" Cc: hpa@zytor.com, Thomas Gleixner , Ingo Molnar , Linus Torvalds , LKML , the arch/x86 maintainers , Stephen Hemminger , Juergen Gross , Sean Christopherson Subject: Re: [patch 5/9] x86/ioport: Reduce ioperm impact for sane usage further Message-ID: <20191107165752.GD15642@1wt.eu> References: <20191106202806.241007755@linutronix.de> <20191107082541.GF30739@gmail.com> <20191107091704.GA15536@1wt.eu> <71DE81AC-3AD4-47B3-9CBA-A2C7841A3370@zytor.com> <20191107102756.GD15536@1wt.eu> <5AAEF116-EC9D-4C58-878F-9D27189E123A@zytor.com> <20191107125638.GB15642@1wt.eu> <87h83fd4a2.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h83fd4a2.fsf@x220.int.ebiederm.org> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 07, 2019 at 10:45:09AM -0600, Eric W. Biederman wrote: > Further a quick look shows that dosemu uses ioperm in a fine grained > manner. From memory it would allow a handful of ports to allow directly > accessing a device and depended on the rest of the port accesses to be > disallowed so it could trap and emulate them. > > So yes I do believe making ioperm ioperm(all) will break userspace. OK, and I must confess I almost forgot about dosemu, that's a good point! Thanks, Willy