Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2623847pxb; Thu, 11 Feb 2021 18:24:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxReWkbPMoCscNR7XMNzNk5SwUtOIFivpSd3gqxen5pbk9c9HQuP4YlzS1rnfmqLNM97loZ X-Received: by 2002:a05:6402:22b0:: with SMTP id cx16mr1060652edb.255.1613096673319; Thu, 11 Feb 2021 18:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613096673; cv=none; d=google.com; s=arc-20160816; b=fRyR2+vFR8ETktYl5ebF/ib2svwSaY6TaTP4/nzkJkDyMI7JOLpQecsi+KpaeRTwKj 8pYs2+gDiAGWw73yChCQuzsNEPuAVWlcBc6cUHaR/jUGjHoOz+kPQtIFKqZZRdYOhqp4 6nPBUByPrzymWEqjQCEOuO/nM+nwFWpT/Go2zX/vlNL469myF6nixI58rSUF3QQGZe0y cp2i0JQtnTUQAQu2HhUg2AOHMnvKi4PPWywpIjWC0rimb51NNWmGenOKdCRe8NbMWrG4 3kFSCkywJvX/AZNEYHhiyeZyqcIzW2vr3SYXlPjbiHRWQCLwVGid9UvfSPntHGvQNlI1 VhrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=dU/WYbC37st4I+jrBuv2cuR53WwtbAEgiG6zSSIMGQM=; b=ASWk5qbI2NvVrFFwtqcI9UNr8sO2Ii3Xci91PL1RJZmPeQXohGiX57wTDut9Oukp8k hFHS2fmHtjDjyKmDHTIk2PMxR39xBbj9UQvR8OI1jxE1mjeh1OnWWnHQGikyyvKs4TmS vUnr/wSm2F8NNkJOZhvE5x3XhjdVyEi3/SazDsha1if4HJyoTvMo5tC4DU6FXvkfd54D REkcxSmHVBhWxku31R1X/cloIaNrXGUIIcvZd05asmpxPhAGOD/itmqIMB5z0G/oPudY gPOkxHAMPH8RbmkZKvtwrtQ72CTinZE5fC7jcnO8qfCGlMkye/X6f4V+7xcChzGkGkQO 8DUA== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si4997149edt.265.2021.02.11.18.24.10; Thu, 11 Feb 2021 18:24:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbhBLCXA (ORCPT + 99 others); Thu, 11 Feb 2021 21:23:00 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:64444 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbhBLCW7 (ORCPT ); Thu, 11 Feb 2021 21:22:59 -0500 Received: from fsav403.sakura.ne.jp (fsav403.sakura.ne.jp [133.242.250.102]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 11C2MGK1066572; Fri, 12 Feb 2021 11:22:17 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav403.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav403.sakura.ne.jp); Fri, 12 Feb 2021 11:22:16 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav403.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 11C2MGB8066504 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Fri, 12 Feb 2021 11:22:16 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: general protection fault in tomoyo_socket_sendmsg_permission To: Shuah Khan , Hillf Danton , syzbot Cc: linux-kernel@vger.kernel.org, Andrey Konovalov , Valentina Manea , Greg Kroah-Hartman , syzkaller-bugs@googlegroups.com References: <000000000000647eff05b3f7e0d4@google.com> <20201113120055.11748-1-hdanton@sina.com> <5f71e0c1-d387-6d72-d8e4-edb11cf57f72@linuxfoundation.org> <2b70d360-a293-4acb-ea6c-2badda5e8b8b@linuxfoundation.org> <9bdd3f10-bddb-bd87-d7ad-b4b706477006@i-love.sakura.ne.jp> <6b8da36f-a994-7604-77f4-52e29434605f@linuxfoundation.org> <5f9ec159-77d8-ffba-21d1-2810e059f998@i-love.sakura.ne.jp> <40617d66-1334-13a0-de9b-bd7cc1155ce5@i-love.sakura.ne.jp> <43d8d6bf-53f3-11e6-894d-c257f7f4bd07@linuxfoundation.org> <4368349b-fc0c-6da3-a502-2733f953d271@i-love.sakura.ne.jp> <92a4c6ae-172d-91cb-b89e-8eb857fdfb3a@linuxfoundation.org> From: Tetsuo Handa Message-ID: <954bd943-8b55-36c8-9cba-a35a03213b2c@i-love.sakura.ne.jp> Date: Fri, 12 Feb 2021 11:22:13 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/02/12 10:34, Shuah Khan wrote: > On 2/10/21 6:14 PM, Tetsuo Handa wrote: >> (Dropping LSM ML because this is not a TOMOYO's bug.) >> >> On 2021/02/11 4:29, Shuah Khan wrote: >>> This is a good find. I already replied to the thread to send a complete >>> fix. >> >> As I said at https://lkml.kernel.org/r/f8cae6b1-8f84-0e6a-7d9c-fc4aec68f07b@i-love.sakura.ne.jp , >> the as-is patch is effectively a complete fix. And applying the as-is patch should help spending >> syzbot resources for reproducing "general protection fault in tomoyo_socket_sendmsg_permission" >> with debug printk() patch applied, which in turn will help you in >> >>> Right. I would like to get a clear understanding of how this condition >>> is triggered. I am not saying this isn't a problem. Understanding how >>> it is triggered helps find the best fix. >> >> part. Therefore, I strongly expect you to apply this version now. >> > > Is there a reproducer for this problem? There is no reproducer for "general protection fault in tomoyo_socket_sendmsg_permission" problem, but the race condition is explained at https://lkml.kernel.org/r/676d4518-0faa-9fab-15db-0db8d216d7fb@i-love.sakura.ne.jp .