Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3521223pxv; Mon, 28 Jun 2021 06:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydSDo7t3VrcPHgzxHeE64vi5wv1qVRGk4MA9v9l8Rl6ERFIw+UIcvIRRMWS4orkj211qjd X-Received: by 2002:a05:6402:18f6:: with SMTP id x54mr34098010edy.53.1624887111353; Mon, 28 Jun 2021 06:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624887111; cv=none; d=google.com; s=arc-20160816; b=rDd9M4yIahZKnXdPrtYgPe3NeI9PDNE9T2qIoAgOp2RevjHwX1A3RSX9SW+vvybeUP ULuttuXg4o5YJ17cmqMh35PCmTB80aff5PlXGZ/VDUHU2+GaL8tIhcGOHjfrpiipJ0E5 qJnKTmXM9H9egqEG7qVJQp0+y0Ma3VrMEhxYPs1tGuasrJlQm9Ea31140Fps91d6zilS 3n+ysC+DPCiXurrISVqCKQoZ5DMFVKJJeFNtjV82BhpIgL+PefuAhROe7r6dgEH1Pbzn mppg7ISSU7N+2bqx+6Ov0Ck7hG+lT6lnj7UecrD+kiKfMwoe9h3ArxSW6gzjx3Pk+UzR bQYg== 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:date:dkim-signature; bh=yN2gKWfYSS2BvZ25yeJRmT/Gg0ySnY/1p9C8SnCeINA=; b=keX+/YQLHoTsn0uKqXGHskg510rpngbCTH6zhRntnvQq/XR0C3Uw6JS4Y/8c5Mm17p nvgHPNRlyGdp5tE1gc8ErSfkKFOhMrj3/mDTRSjdKYq5Y7skngxmNU8JpX5O6Y6j9hCb ZPSUHCCpBJi+UQUXp9MBx2CQEFCASyOVjI4MLFxJ1/oriLqp02AHSQS9OogKwvNi5NvN Jh/uWjWEWRQ+64LZcwTEAmDN3sOgnDbfStkHi5iQ6JRiwp4NJLCgzUAMXEJCoakzwZWR TXQe+6TNiyxOUFW0iJXQ1xl0+s90tv4hDCn+n0eSBA+uk72frf2y9bOw97Y+/SX1kRaB gABA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OA4wX64i; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hy23si13383620ejc.565.2021.06.28.06.31.25; Mon, 28 Jun 2021 06:31:51 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=OA4wX64i; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233053AbhF1NEN (ORCPT + 99 others); Mon, 28 Jun 2021 09:04:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:57924 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232598AbhF1NEN (ORCPT ); Mon, 28 Jun 2021 09:04:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624885307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yN2gKWfYSS2BvZ25yeJRmT/Gg0ySnY/1p9C8SnCeINA=; b=OA4wX64iYjbdmkNautWRTk0RzLM5vE0kIi6uDrVajqw906sY9o3oCEcFH42vTqVY5CzdKM 9XQK7zHpU6zrzse0arU4c8vnqsVeYFOoYjC1Wa/2Rc+1jJk1ntQEOik+7ErfDiQ63TXEGl ZPQlvlgJq+L7o5wGLut12twwFrWLo80= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-274-6udnZiKlNlmnouAkGCPhCg-1; Mon, 28 Jun 2021 09:01:45 -0400 X-MC-Unique: 6udnZiKlNlmnouAkGCPhCg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7FA3804308; Mon, 28 Jun 2021 13:01:43 +0000 (UTC) Received: from localhost (ovpn-112-170.ams2.redhat.com [10.36.112.170]) by smtp.corp.redhat.com (Postfix) with ESMTP id 30B7B5C1CF; Mon, 28 Jun 2021 13:01:40 +0000 (UTC) Date: Thu, 24 Jun 2021 10:40:52 +0100 From: Stefan Hajnoczi To: Mike Christie Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, mst@redhat.com, sgarzare@redhat.com, jasowang@redhat.com, christian@brauner.io, akpm@linux-foundation.org, peterz@infradead.org, christian.brauner@ubuntu.com Subject: Re: [PATCH 0/3] kthread: pass in user and check RLIMIT_NPROC Message-ID: References: <20210624030804.4932-1-michael.christie@oracle.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tAINK5wpSU1Wy0aE" Content-Disposition: inline In-Reply-To: <20210624030804.4932-1-michael.christie@oracle.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tAINK5wpSU1Wy0aE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 23, 2021 at 10:08:01PM -0500, Mike Christie wrote: > The vhost driver will create a kthread when userspace does a > VHOST_SET_OWNER ioctl, but the thread is charged to the kthreadd thread. > We can then end up violating the userspace process's RLIMIT_NPROC. This > patchset allows drivers to pass in the user to charge/check. >=20 > The patches were made over Linus's current tree. Makes sense from a vhost perspective and for future users, but I'm not familiar with the kthread internals: Acked-by: Stefan Hajnoczi --tAINK5wpSU1Wy0aE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmDUUyQACgkQnKSrs4Gr c8h3ugf/SnO91w5rQo5ExA9DoePrMOZqkuNg6cgYqUlV25038PRp49kMp9I9fUXD JuoebkNTOpavvl1JtW8auitS2pQkvkdLb4VkmzqgGBgQROmpik5sH7H9QACCh0oh huSYZVkw9PTEyo6fMnKr97+RoGncP/hORtADOuS8VfoMjhADfl0d/QIwBIilOmEA 72x1CQQzVhzmgOp7wK7uBgWGDzA7RoesQHpQhtOidvmwnpSIIa3GZJwn58jM/NJK +SScwhri8pg/zUGI0wboBpX7HCbkp3U5qF84WiOksuYSFZ3ojnqao9WTdXOVSbdK 3DO/IaTA19tStIHHvcBdAiUuRohZXg== =dvls -----END PGP SIGNATURE----- --tAINK5wpSU1Wy0aE--