Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4791902rwd; Tue, 30 May 2023 09:56:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4eOGdkYBas4HC283VROZFUz3lvaEqubckwyGNA1fNMUAAng+dhd4tJAf1tTPs1jBkxfoCv X-Received: by 2002:a05:6a20:c1a2:b0:10c:2cb7:29b1 with SMTP id bg34-20020a056a20c1a200b0010c2cb729b1mr3106974pzb.51.1685465814737; Tue, 30 May 2023 09:56:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685465814; cv=pass; d=google.com; s=arc-20160816; b=XD/Y4W4bUDJPGN2MQN7M1qminv4Ehi2q1mWsNGGIHloK0Op/F2iFGoJnuqn82tamZf 8qqwq6ZzykHoyaHN+ok9s2j+6jt840bJkYP2UlLXgkfwGQC9RMufC0pOpIrlIir13cGU E+OaFiGO8xrCom2GRNcSBrme2YRyhBbaw3SsDkkahOO7Lix4b2/KaxqX3euHtVHxCbVH 1xtoe78ylvkuDKIXWu/OQL2vkdQwCAHf9aOR4WID2QBR0YzUhJ0GCpgROydX97wjMLfe GG8rUl3FCE2oydaPSUEnFuUbOS6rDXzYLvV8G595XsQOqyy+eyPz+EEgzERpJuypDDV2 eDEA== 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:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=Kg3vsSzoUED5FVn2vhnyId1IZnRpoA4sFOf6dUn6c1Y=; b=Z5y3VJrxid3gt5iouPEwYPfvyJfvVXEic2Vt75NMMZioBWxiFjHq0dQcYswut0IgK+ +q45aWoUoyIjqIj46Ba0EHqgez+0Y94DJoSjutJUgtZyzzhjz3aK469j3HMoQ6rZ4oyT 2HjNmxfz9KBKxGzX7Dfl1bWyyEnMRwuwswdhfxVvu8TPQpHVeJdMnF5Cir/F0rCIVI73 iiHb84olSzjll7+UmY4sngq611rGAwdcw6gXMbJ2NzF67OfYAYEjZEUTtrNoGN4QZMQF mJSdCbgYZyHRODwUuDMZEu6AdWpjN3RrUll1ySmTaBTOCGwRmhnxx364hxih7rNCmRJu c9Og== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=iaFCwaID; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="nxghadf/"; 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 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x28-20020aa79adc000000b0064eeb3d3a19si1971056pfp.158.2023.05.30.09.56.41; Tue, 30 May 2023 09:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=iaFCwaID; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="nxghadf/"; 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 2620:137:e000::1:20 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 S233132AbjE3Qbi (ORCPT + 99 others); Tue, 30 May 2023 12:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232873AbjE3QbV (ORCPT ); Tue, 30 May 2023 12:31:21 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1101123; Tue, 30 May 2023 09:30:49 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UE44cw017589; Tue, 30 May 2023 16:30:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=Kg3vsSzoUED5FVn2vhnyId1IZnRpoA4sFOf6dUn6c1Y=; b=iaFCwaID5pjIT/TlNHDgYgrDkwIN8RRtZnTupxbXFg/asnbEUX1xAOGoPcbUecW90rF8 eR5Pi3x6o9I2jNHRET+E23hh09wvaV3L0ggOxwaDWC9tQOVf7x2VggweUj+tHOTCq8mL 2wgjXJeVTy8JExE+3pcv3Af5sVBDF+/RLnC9h2Fqausf3iUHV7Hlk7xM1xEHh4Fl1iCn eud3HrC+iiAsU3DnOJzMPkuuK+1yhotpeGgyqJo4JWU5fA2PsScOUrXVEUpW1iFyh+j3 8ksVxjXl4HLqFG57oCS81FiacgBnnF00krviPLv9DSCCbLffIJ0LuFBEXs/xO72Jm9yA Og== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qvhj4u7ks-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 May 2023 16:30:08 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34UFp7Z8019823; Tue, 30 May 2023 16:30:07 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2173.outbound.protection.outlook.com [104.47.59.173]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qu8a4cdud-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 May 2023 16:30:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=efeVhFYHHv17Y4MbsD1eOh+ybL7isFxEdNAgai8CDLDAABFsi4fbvA9r4Z156kFPr/qVHw59JeN42IlXSmD+9M1yjOCgfngExiqhVVAhWv3KHA3dJZeGIpVAPwgvDtByFB+JxOvF01Ar2zPW9SLAZjxb/O809GWpeP2yztUR1TBkstQc3cRnAGZ7UykpPymN4Bud4gy6YJrqp9Oyw1dduknvNkw2tJ0od/0nZ/pdAZ8Cn5FCQAYZjWEzdxsAVVso33Gs75xWGub9r+D5VojAwhLdZ3bdmuyHtUMY1sVVXoWIji/47s/OexG/tgufW7jN5UWZvO3BchN9btxAfBTHbA== 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=Kg3vsSzoUED5FVn2vhnyId1IZnRpoA4sFOf6dUn6c1Y=; b=Z1BTX6onmXuUiNm++mKqxwXWAjBFuVAd428ra2Y4JyYQcmhR9FYc++jcQMpoXTA6yflHWTqiCnGNzlulGLhtwDmdfsY9QyBh42qvYTkVXsm8FM+yhALPggufSUEho5kF3r+9J1PFORqtIbatYP63qAxQxLqAzZ9mnqYvAv0iSIDCy2WmxbqRS4ISKSsTrX3G815P3DGzUk+nLichcQ0Ulw4mN7L3H1Xkdz1mv0Kwarkj5IV9zGv4MM0VCI73I4dMnBtq03kNLYNBhn3vmnISQgy5Ra6+cc4eAGSv+OdC2lDgnShBD35gC4pD4LG2BxnbIBcyRfGxR5aY+V7irleAGQ== 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=Kg3vsSzoUED5FVn2vhnyId1IZnRpoA4sFOf6dUn6c1Y=; b=nxghadf/1WWfuJtn/3mSSNSXU2G9rP/x36MXfj5C2MdTnhvF2rZuSW67iRm5Ujh11IAXLfGt+EyV2vSJ8r/YWYv7Mec795sBvKYHtaHdC3IjqinUPVoYLJ+WPDuDANhHknAgcSi7BS1XMehit58whtQpEyG7+9qWgP6vZ22D+ek= Received: from CY8PR10MB7243.namprd10.prod.outlook.com (2603:10b6:930:7c::10) by CH2PR10MB4277.namprd10.prod.outlook.com (2603:10b6:610:7b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Tue, 30 May 2023 16:30:04 +0000 Received: from CY8PR10MB7243.namprd10.prod.outlook.com ([fe80::13d6:c3f3:2447:6559]) by CY8PR10MB7243.namprd10.prod.outlook.com ([fe80::13d6:c3f3:2447:6559%5]) with mapi id 15.20.6433.022; Tue, 30 May 2023 16:30:04 +0000 Message-ID: <035e3423-c003-3de9-0805-2091b9efb45d@oracle.com> Date: Tue, 30 May 2023 11:30:01 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [syzbot] [kvm?] [net?] [virt?] general protection fault in vhost_work_queue Content-Language: en-US To: Stefano Garzarella Cc: "Michael S. Tsirkin" , syzbot , jasowang@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, virtualization@lists.linux-foundation.org, stefanha@redhat.com References: <0000000000001777f605fce42c5f@google.com> <20230530072310-mutt-send-email-mst@kernel.org> <6p7pi6mf3db3gp3xqarap4uzrgwlzqiz7wgg5kn2ep7hvrw5pg@wxowhbw4e7w7> From: michael.christie@oracle.com In-Reply-To: <6p7pi6mf3db3gp3xqarap4uzrgwlzqiz7wgg5kn2ep7hvrw5pg@wxowhbw4e7w7> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DS7PR05CA0011.namprd05.prod.outlook.com (2603:10b6:5:3b9::16) To CY8PR10MB7243.namprd10.prod.outlook.com (2603:10b6:930:7c::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY8PR10MB7243:EE_|CH2PR10MB4277:EE_ X-MS-Office365-Filtering-Correlation-Id: 5f0e44d1-7848-493c-5c76-08db612b1f50 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Kd74Jkth/klmMNe+XF3O3htoX62gEhSnQyO00C+T+RNwWMzBZBAxNbwdPQjegg4Z+l6CqK6ZwSfKk51juHDbHZg4ofXi/r2uVdixBdoSFbBC5GzAzFivCATfHHhA79GIZJuNtu2DbPVd6Tid3KrPX1Yh1LJFLGTk2vpWulGV09u8tRniWw+vc8oAC3wttVGKf7LjtF4C0XfIaO88E5FnvD2SLRA8T3e1TO6pu3T31AZEa4YkydXqaG4wKNgiUwd3ZDj2JHUbw4hzx3Bt/gPxbjaLixOPe0gDWY7UFzCa/evPHXJ7+0zhUYfCfYjDXND+8vXn74qm/i3mCzsrLaHIfyD4ui88S5GDYDi/JiapQzh0ZD+Bij01Vq3u7sG9JXIvNS2Ee5oW6QBqGstAMLO8FW2eBluPdW3Vw9uv3udwEVPzZSEb5eSAu6qbP8LBlzw5HKyq4/Z/tNvs2qLF5CMtITZwiCjNiOY7gvEWbT0SCUD71f66E07Lv0UYj5wexsHmrOIcHoxuVSAmAY1PTxsb0tLYJJaENN9o31VUJZ0LJ1iDVcydZc+ESwSMYH+dd24sMnXdzDXdbhE6j0p1opNU7hPt+XlreBxRIJPT1yxpmduNc7lWtPpgpK4ihqFO9Rtu X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY8PR10MB7243.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(396003)(136003)(346002)(366004)(376002)(451199021)(66946007)(4326008)(7416002)(36756003)(66556008)(66476007)(6916009)(83380400001)(5660300002)(31696002)(86362001)(38100700002)(41300700001)(186003)(2616005)(8936002)(8676002)(6486002)(2906002)(31686004)(6512007)(6666004)(316002)(6506007)(26005)(53546011)(478600001)(54906003)(9686003)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M1F1WUpxUHBmQnllbnVWa2VnR2VLL2FFZXFMekx4aWhISGpYTytrdEVmNVFh?= =?utf-8?B?eENFR3N1YW9YeFJhRklvdUxvWG5jYUMyVC9TS2hGbWRYMGh4bHhsaG9pdG1Z?= =?utf-8?B?NytBRjdCV1cra29KVHpkVllFbFJxM2VuZVRRV1J3MVBZQnJOMkNNZWFTd285?= =?utf-8?B?OUtlYTFaOEZHRFNyV2liN01ycWhOUWZhVFlyeUkzUDNqd1BlajhYVk9xSmJM?= =?utf-8?B?dVc0Kzgrc29rNlZvSGRKZFNUODF6c3FEbnM1WW5POUxUUGRPL2dWdE5ZdlhM?= =?ut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FsanA5bWZNZjhKcVJVT0FwY1ZTVXpyWmZmeXdxT3pJNkNI?= =?utf-8?B?eE45TWFjOEk4OFc1S3c0TnNiRzc1L1pjWGlKS3E3cmNqVElJOFVpa0QyZW9u?= =?utf-8?B?NUxMMG9FeFR5Qmx4aUwxeW9IejI4NHFJKzY0UmxLa3pxcWtCRWlxRnVhUk1i?= =?utf-8?B?R21ZKzFHL3JyaEVweHNhaXIxY3dJTU0yb05BS1ZQVER5ZVhTRXBhbnYyYnpy?= =?utf-8?B?d3EvMThFV2dGdHltbWNOT1ZIcWphYmJjdVVDMi9rMFhhTEp5cmhUVGlaU2Rt?= =?utf-8?B?dHdmcFdCckVrS29uay9hTnBXN1F5RCt1SmVvendibW9MTWZUb1BwTmRjN3cx?= =?utf-8?B?eERmZFExMWIvcVJPd1N0SmZSMjI1SHhzV3IwK3RLOUtNTUsrd0RmTUs4T1ZG?= =?utf-8?B?eXVJODVMVHpuWGwzZmFjckJmYnFOcHQvNFpnam03U3lzV0FISU1VdjJoWnR1?= =?utf-8?B?dkpHQitWN213THBuRUZ3RGNnWS9qcndZa3RtOW5OQjNxeGFFTTAwMkdIMUpP?= =?utf-8?B?L01MeVV0VXMzVDNlbmx0ZnExVEpBc01xR2NESWhaU2lvdHIyZWpYK29yMEVw?= =?utf-8?Q?VGcsqJF+W3DII=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f0e44d1-7848-493c-5c76-08db612b1f50 X-MS-Exchange-CrossTenant-AuthSource: CY8PR10MB7243.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 16:30:04.1166 (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: h8ZlF+sy0JtdK45mMKcrsqocvSoplw/X7Eox1qJaMhL1OIseaIi7m9sNGlf8USXi/MtkUc4YLaMRaUUhSgHsoT0fmi5laa0y6vXVTTFwsbk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4277 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_12,2023-05-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 phishscore=0 bulkscore=0 adultscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305300131 X-Proofpoint-GUID: O5TjUFaPZGo62jMlqNT2ryDGy3GyJbme X-Proofpoint-ORIG-GUID: O5TjUFaPZGo62jMlqNT2ryDGy3GyJbme X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/30/23 11:17 AM, Stefano Garzarella wrote: > On Tue, May 30, 2023 at 11:09:09AM -0500, Mike Christie wrote: >> On 5/30/23 11:00 AM, Stefano Garzarella wrote: >>> I think it is partially related to commit 6e890c5d5021 ("vhost: use >>> vhost_tasks for worker threads") and commit 1a5f8090c6de ("vhost: move >>> worker thread fields to new struct"). Maybe that commits just >>> highlighted the issue and it was already existing. >> >> See my mail about the crash. Agree with your analysis about worker->vtsk >> not being set yet. It's a bug from my commit where I should have not set >> it so early or I should be checking for >> >> if (dev->worker && worker->vtsk) >> >> instead of >> >> if (dev->worker) > > Yes, though, in my opinion the problem may persist depending on how the > instructions are reordered. Ah ok. > > Should we protect dev->worker() with an RCU to be safe? For those multiple worker patchsets Jason had asked me about supporting where we don't have a worker while we are swapping workers around. To do that I had added rcu around the dev->worker. I removed it in later patchsets because I didn't think anyone would use it. rcu would work for your case and for what Jason had requested.