Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1781016pxb; Wed, 10 Feb 2021 17:19:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPNLFP5vIs4e7ueuF9yPYxxjRiXS+yjvHccrXRbhB+ISaiq4ucMEkllcWAyEwc3udkcetF X-Received: by 2002:a50:a086:: with SMTP id 6mr5687094edo.70.1613006359379; Wed, 10 Feb 2021 17:19:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613006359; cv=none; d=google.com; s=arc-20160816; b=hsXg1oA8kSKkxcUzCoS7YuVtz9iRI3+0X+gsgTq6suMXveHaFdP5/pCNVh/Zaksxkb 7oBC/aRUR+hbpxAZmIPHJSpj++bGiL2fD3Wbgn5ULRycF0Pl9q7lnH81W+JTaMCuJku+ oBD+c+ePL3DIRVMYMCdP2P8hVv8I4iBFp8brEsjd53P6NL4TCN95twDilUlG+LTh3JpT QzadWndJ+VrlJ+B30GKr7ja5ACWMhO/Tu2UurWSHeF513rwqdWdVpjF7hbF+D/quaijV Vd+4xd2BaWx8JEfrc78mEgwpu0Dyu/36gr7pZ0iiUOZKNrT9QQyLYJ5JHWMWuXn6by0M cYZw== 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=agJdGzUQYXswo/BYlfMnONA4rUyREIe5bH+eNiRphrk=; b=Bx9lqN5C3H3bHagTeDhWw2/C9EvmBBfdNOKBgYVj8xcxCGgcQgS1o7dFSfWKgq8eMm vtMb40cbJvOZTx2W1WmWYEGoCNDVKFHgdBZJrf8Qsd/v76UUrq0BeGKw1CR+MVrZ+iKS IBwX7uBOcao8eK/1JMJ2bPxmXNzHdDSRy0vZgEKhCFV5rixDLTj9VvU7s8K3LNrpUzoc vPRWBGz2afoa2aYpVuPU6d7OGK1uuilXOvexdSMSa7kiGkAEitamVR1MFqHoW14alAf4 0Wc+Ci7pC4OIHs1Wx54r3yCwQm1vpsbwETliAhGpgir/rQ+kGzZ9spzHH1xYw/HT5y/J c0zQ== 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 z17si2537997ejc.207.2021.02.10.17.18.56; Wed, 10 Feb 2021 17:19:19 -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 S229983AbhBKBOt (ORCPT + 99 others); Wed, 10 Feb 2021 20:14:49 -0500 Received: from www262.sakura.ne.jp ([202.181.97.72]:49797 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbhBKBOs (ORCPT ); Wed, 10 Feb 2021 20:14:48 -0500 Received: from fsav109.sakura.ne.jp (fsav109.sakura.ne.jp [27.133.134.236]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 11B1E6NG034653; Thu, 11 Feb 2021 10:14:06 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav109.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav109.sakura.ne.jp); Thu, 11 Feb 2021 10:14:06 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav109.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 11B1E6lX034649 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Thu, 11 Feb 2021 10:14:06 +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: Date: Thu, 11 Feb 2021 10:14:01 +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: <92a4c6ae-172d-91cb-b89e-8eb857fdfb3a@linuxfoundation.org> 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 (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.