Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp497231pxb; Thu, 20 Jan 2022 18:26:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNv+emwlrN1D+MWMCJguI/hFJuzVFpxNTAgO6Px1jh9oBButSrmB0CRJ8Sy6DfAomuCA/h X-Received: by 2002:a05:6a00:84e:b0:4c3:1693:7733 with SMTP id q14-20020a056a00084e00b004c316937733mr1622846pfk.13.1642732013170; Thu, 20 Jan 2022 18:26:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642732013; cv=pass; d=google.com; s=arc-20160816; b=Bm6Aji1XcGAXeVE9Y66BZbwZ4mubthLKKu6iHbf17Z9cYn9Ng9FY/xmaWahgPZuGeB DHYx9ugpXGNmCKObz5uV6uIrFHi134grwrx/pS156Atq0k1lKKhJm+ldrUeK5sO4XAB0 es8UJzqP16niHMa4TRSAtcrr5n9piMB0h89HDw4ZV9nx6EYiiQqzAv36os55Jqexj1ea 5uBrfCH5d2/aoEr7SQ6/LH4nKxPyF3o9O4eLMyHf4Bzs6tm474MI7FzejqXVLkKDjlGc GQ8fb6xLp2CQwscCG8cVLYku/tx3QOq4tHy5YoYKHaj+h938LtJaV/STt1gWyc47yxT0 19LA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:references:cc:to:from:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=xVruDj0UAiKX6qx5/58vjt+11Os6pI3I4rHAc4sg4K8=; b=vETfUxk9QIIQu+ptW3jualedQgaWO8B8RR4tRcc4vX+wAkbyZ9VeQdOCwqyewsuQiC aOrBHLw/scSswHtcCDRRpkBFiVecPs3fTQ1gJ6m1eaRLgo7uBfkIju1Kwj4EYvCLfgUn +eZAXXu24T9IyrCK/wxGe9iUfmduzUTrAsVyc6b28i4SOgq0IDgXIwe9doC3YxbJe3M/ j5IEIXMw3UnuyKjy8CJeXabdeWKVMmEHr7nnQ5caqeSCw3RJfB7+loiCIgPZ0g572xEj MEbxzDZ46LR73Wxpu7QrWVJ8DIwMwbkhvZ/OWHreJQEnB/pdELiAZK+pu7OESvYaWluK 0fsA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=ybLVmXkV; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=L4j07e5j; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a70si2393581pge.522.2022.01.20.18.26.41; Thu, 20 Jan 2022 18:26:53 -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=@oracle.com header.s=corp-2021-07-09 header.b=ybLVmXkV; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=L4j07e5j; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348560AbiARTBC (ORCPT + 99 others); Tue, 18 Jan 2022 14:01:02 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:52370 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244633AbiARTBA (ORCPT ); Tue, 18 Jan 2022 14:01:00 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20IHSgCU024410; Tue, 18 Jan 2022 19:00:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=xVruDj0UAiKX6qx5/58vjt+11Os6pI3I4rHAc4sg4K8=; b=ybLVmXkVN7BtYdFgpwxbO7iBaxGAuXTNrFN+Cewfd64kANUdwGB5ifcSxOKklYXq4Syf Vu74gf8FBJqNnh29g5CMV/p+UBfuGZs8pKUWwXZ1TXvDy+Cxgk7mZq04WKzRxi/a32zT Sss9p/WTqdiwhDvK5fInAl1yTTP8Nvox/VS79nIA+b26bm04M21VxcCNZxTvh66nMC3J K+cvZn2MQX/C6eepRU17yD6cXGhuDGCYWitnvRHQkeYD2DAfHe2TmNkJXnZERiCbgK17 M1gntP05aZF19Lr4YYgutrhIr3tTGaTCYtDKCq4K+dgFnKEzy6s425Y9NuMUHXi+FA11 Vw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3dnc4q2vr5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jan 2022 19:00:45 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20IJ02mI024246; Tue, 18 Jan 2022 19:00:44 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2108.outbound.protection.outlook.com [104.47.58.108]) by userp3020.oracle.com with ESMTP id 3dkqqnwnyp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jan 2022 19:00:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ejGYmpjxx2VnKuTwbEUQmxVLzMRvk+9Q+We2nltCQP1Dve12J0mAj1LC6gMkng/uJbUy5RrlRgWNDrXOU7bJ6LVy2TzITNalX/i1oodrHV2iyKrH5NoLT7nRR2aJyaYJnkpsMf4r25Jiw8FaLFqjKOJwxDEkHHEnAg4muU2Ts6v6LmDfJbfvUbMdbxoeRGoYbN09MHPoa124EtFLEWfmvzgxaARwMy6vLMa7AUph+tym9i+rNUAhqJcq3XQVzMsb5qC1lduY78GoHWV8llNRZAWINIeoj4vJGnZ4ZjR8BUygZ7uWD1vm8/p0OINgwtwlQSlcbYNvTsWDwRd2HEPJHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xVruDj0UAiKX6qx5/58vjt+11Os6pI3I4rHAc4sg4K8=; b=FS1E3v0MAfQU/30ea5u+AjzjPe1fvKXyL03J0emMTyX/zYrB/NmDQkKABeQDWi87WUzMysfkhfiSQsJWVN6Ha9MVRIIE95J4Dtm8qpyNYM3ptP7pLZNtDVNBhShOs7xrgu/RJSd+xraa7ef7BeBFB9TdbNvQPZye2hKmRCcY6DXljklWOA9nBxrOAS7c84K6k3Q6VvJQHbcMly4YXAsvHP76vZ0J5e6bEfKvKJUslQRzR/1xPqoTfN3tkM0tc9Vt7dQ38FaQh7EvJ/EAzoiwRZ2i8S3iiIp+L/cQAKHWeTb3QOPejl69LMbELVW+ez4FaYIoK1/3FTuYPYYyO1Od6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xVruDj0UAiKX6qx5/58vjt+11Os6pI3I4rHAc4sg4K8=; b=L4j07e5jieP22kwhkEnj7yaxIj6kFhgH8ZwI6ilxIg9b+QjhOtTQoJCP8F6H2n+u+kqrIwM6lZt+ePyKDMUzLFcX6dlF/Cp3lTHu/v2GKZKa2lBtkwHlJzmg6ThYY0v3gu5LWMcF9HEH7eNb0D03KbqDRhjrDPst5EVipnnXT+0= Received: from DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) by PH0PR10MB5795.namprd10.prod.outlook.com (2603:10b6:510:ff::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Tue, 18 Jan 2022 19:00:41 +0000 Received: from DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::21b5:910:b965:9e6c]) by DM5PR10MB1466.namprd10.prod.outlook.com ([fe80::21b5:910:b965:9e6c%6]) with mapi id 15.20.4888.014; Tue, 18 Jan 2022 19:00:41 +0000 Message-ID: <201528df-4474-b544-e25a-9746e30df04d@oracle.com> Date: Tue, 18 Jan 2022 13:00:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH V6 01/10] Use copy_process in vhost layer Content-Language: en-US From: Mike Christie To: "Eric W. Biederman" Cc: geert@linux-m68k.org, vverma@digitalocean.com, hdanton@sina.com, hch@infradead.org, stefanha@redhat.com, jasowang@redhat.com, mst@redhat.com, sgarzare@redhat.com, virtualization@lists.linux-foundation.org, christian.brauner@ubuntu.com, axboe@kernel.dk, linux-kernel@vger.kernel.org References: <20211129194707.5863-1-michael.christie@oracle.com> <87tuf79gni.fsf@email.froward.int.ebiederm.org> <87tuf11oe6.fsf@email.froward.int.ebiederm.org> <87pmpoxzuf.fsf@email.froward.int.ebiederm.org> <783145b7-243b-b85e-e274-44ef6c0696b9@oracle.com> <874k62b76d.fsf@email.froward.int.ebiederm.org> <68ba89ae-108e-c14a-02a0-db72b169c9b1@oracle.com> In-Reply-To: <68ba89ae-108e-c14a-02a0-db72b169c9b1@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH2PR15CA0005.namprd15.prod.outlook.com (2603:10b6:610:51::15) To DM5PR10MB1466.namprd10.prod.outlook.com (2603:10b6:3:b::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8478894c-785d-4e2d-ae22-08d9dab4d2c9 X-MS-TrafficTypeDiagnostic: PH0PR10MB5795:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IXNkZwnkBnb9ShCGN8Gg5xAome66xgBDvxKG4k3TLFWP9Z/NG26KCCLFqu8e5rgjZ+0lF0xv+BSF/UpMp3X9gjpc0duXzkKg/1WH+ANcujZ+b723/6e2Pr2LRoUzFHjB458bIFM7DZY9kOk6VTUXcsENcmUQOAAMEZtAFQimRtWDB/VO9lWb/gG2rJJBLDZdlGa7OubG6rKAGAsarCuWfOacXZ48t5pVOvqYJTUQNjmfZmAGONjFXPwHTv8/1+FEauFVeHn5k65WjCDBIGtAsisSPZoR0EE0U0r3yqLPGMpz51gvzJsRDb+GSQTH98dOpco0UgwPwqoicpJnNQIqqv3SoEa9NtoiNFVWeXVvoEr5daqN/wne2OHnHeW1Up+9Xa+LylsXxEwkwcJ9PK+W6+EOq57v+93v3GuXj3dV5WTmj43ZC67dhjMVFZtemCZcnxbkSXdrJscA4ov8YpjKIsjNjFvSiheap0rumBmsa7B23E4TkcqvXQnyrhHagfGa7qVmzYJev/AxCJQnq0sx/8MPYypdQfoJ4FRrC/GLZp6qaI+4f4t+DHUVuyg28H27liAFaWW7xi0oGztoOqGfd1VIeMvjVlBRiljuqMVSHGYJDnk6Gha12PiO9yBjCEneUYhZnNmmfL67YzD0x10HU5+ltEtO6uUvxpYtigCQKWoV+aG6vXong9+YMO4UmQT2gbv6FvEp+Q6IOJf5t5i4oonejBvOrjSRvC/Q5xs9vfWiRp8w1miAZoRtFuGJhje/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR10MB1466.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(83380400001)(4326008)(26005)(316002)(186003)(508600001)(6916009)(86362001)(6506007)(53546011)(6486002)(6512007)(2906002)(5660300002)(7416002)(31696002)(2616005)(8936002)(38100700002)(36756003)(66556008)(66476007)(66946007)(31686004)(8676002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RGJaYmtIbXk4dmt6M0pkQnhWSElZL24wR1FRQXJxSldvbmZOTTQ3Sm5CbzlN?= =?utf-8?B?STBzaTZwUG9tVVJMbUJhNmI0MjZIdEc2NkdaWWFwSW0vQnpwd0pycTQxcGVE?= =?utf-8?B?WHJlUmN4V0hlcDN3bjc4NEtBOEJ6UjRyVUxGeUl0MFJ3VEkrS2tvVzRpeDEz?= =?utf-8?B?SFl0WHZIR1NXbWhGVUk0ZDBHNXRFU0UxWDIya01pTW5mbDZQMitLOGZ6aUox?= =?utf-8?B?NGVZZFc3SXpwd2lsSW8zLzlaSTFiQlJaeFEvQ05CeXBDY2RKd0tGcEllOExu?= =?utf-8?B?MFhwcmhSZlZIUUk5Z2RDQjlTUUdmUjZ4Q29Rd014cnl4TCtZWktEcVVqdUJX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JNEFqN0lRbFlpb01aT1BjbE1lNjUzSVhZ?= =?utf-8?B?MGtZZlZQQ05EazZPRlhPSnRvZTdRQWNJbUdpaDdmaTl2MTAwcWU3bUdoK3VN?= =?utf-8?B?T1ovR1VmclZ4dUQwc3R4MXc4Z0FnPT0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8478894c-785d-4e2d-ae22-08d9dab4d2c9 X-MS-Exchange-CrossTenant-AuthSource: DM5PR10MB1466.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2022 19:00:41.7224 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: okCPvJgD1Iqd1Aenu/hGT3jZ+4GgPKsdBo9s9hT63FqWsdKuM9dyIDoq5g42z9PFuold88LuTo/rPwF4sUI6Pac0ZiNghr8sI77MWfEZc6A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5795 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10231 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201180113 X-Proofpoint-GUID: PhsSQegpFunzt2h9r632j-a8CAOOGFmf X-Proofpoint-ORIG-GUID: PhsSQegpFunzt2h9r632j-a8CAOOGFmf Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/18/22 12:51 PM, Mike Christie wrote: > On 1/17/22 11:31 AM, Eric W. Biederman wrote: >> Mike Christie writes: >> >>> On 12/22/21 12:24 PM, Eric W. Biederman wrote: >>>> All I am certain of is that you need to set >>>> "args->exit_signal = -1;". This prevents having to play games with >>>> do_notify_parent. >>> >>> Hi Eric, >>> >>> I have all your review comments handled except this one. It's looking like it's >>> more difficult than just setting the exit_signal=-1, so I wanted to check that >>> I understood you. >> >> [snip problems with exit_signal = -1] >> >>> >>> What do you think? >> >> I was wrong. I appear to have confused the thread and the non-thread >> cases. >> >> Perhaps I meant "args->exit_signal = 0". That looks like >> do_notify_parent won't send it, and thread_group_leader continues to do >> the right thing. > > That doesn't work too. exit_notify will call do_notify_parent but > our parent, qemu, does not ignore SIGCHILD so we will not drop > down in into this chunk: > > psig = tsk->parent->sighand; > spin_lock_irqsave(&psig->siglock, flags); > if (!tsk->ptrace && sig == SIGCHLD && > (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN || > (psig->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDWAIT))) { > > do_notify_parent will return false and so autoreap in exit_notify will > be false. > > > >> >> Baring any additional confusion on my part that cleanly solves the >> problem of how not to send a signal from a child process cleanly. >> Oh yeah, maybe we are thinking about different things. The issue I am hitting is that the parent, qemu, does not know about these task_structs. And, userspace can add/delete these vhost devices dynamically. So qemu could continue to run, but the vhost device could be deleted. In this case I want to free up the task_struct resources since we are no longer using it. With kthreads do_notify_parent returns true and exit_notify calls release_task, so it's handled for me. I had stuck in the USER/VHOST check in the patch you didn't like to get that behavior. If you prefer not adding the VHOST/USER task check in exit_notify then instead of auto reaping, would another possible alternative be to add a modified kernel_wait like function in the vhost layer to reap the task?