Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3572736pxb; Sat, 13 Feb 2021 02:12:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNpesqW6wMGvH4AABim7LenupDDg2/t80i3wwFV+jzqjbmo791STHqb8TZRLNMHS+GQyEo X-Received: by 2002:aa7:dc0d:: with SMTP id b13mr7374028edu.170.1613211155067; Sat, 13 Feb 2021 02:12:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613211155; cv=none; d=google.com; s=arc-20160816; b=NA6LZ0qnpTKEHr5vwdKzscizBSx9xRLQgBfONhD9ih7VsDzzBCCAZvOXeRvyziRMiz qXUq/9dNYvvcgspLTmSA/k+ueximQJpeJPShFkBnEwThUmjgdJ462lMrjNbLgloSk75n W3YZnuLdEFmcwlL1CrgJucubpZXms6d+896l7RSybm02ifYGGAiPYaJUP5Ug/dNnTdYL LNsHgMkpbrfmrNw7VtgZRf06IEMedX5+wl39Kc1Tk/XKLF0x50MS/NKr8aufwGodNxUL dlEV55BCpXTwq5nkj0yGcIFSsLA0FQ6dPs8HnQT+K1QMAHHEg37BS6sQUkygPGiS/hj9 U8ow== 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=1XREIfMdjS3Do7p2fa/9S+d7ypqCFXSrtdVAajDTrBc=; b=C1jQd6OVA17z4mOEIFbwIj20VbtiItcMlbFGfnFnKw/k1aiHH5yAI1Oon3mYHHfYfM IKbbHlU5U+mLlQUr67OmpmFL4MzZtPDqQoJtd+xNJXmhzqVviwVLqhdZPJhJQGFWrlBR 5wzzEf4io5LMrpFwY/Nv2e/pprmPuBqBVlycunqAVhBNw/Srs5P4+VmmlsfLzgNpp9PS SR8AqGVp/lRluXgh9z2jA3NbckmpNHzLNZ+79NEdYnP1TMH9A6Ud6zUDhE7O6CYdR0nD nL4zyIE4Br+DCu8PBGqeYqw4436EuJRlTZvPf8zFxqU+12cBrRoh8tvSImeO4V8T2lgw qNBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IgpVntgL; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si7925062ejc.559.2021.02.13.02.12.11; Sat, 13 Feb 2021 02:12:35 -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=@linuxfoundation.org header.s=korg header.b=IgpVntgL; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229531AbhBMKKs (ORCPT + 99 others); Sat, 13 Feb 2021 05:10:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:38772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbhBMKKr (ORCPT ); Sat, 13 Feb 2021 05:10:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8888A64DEE; Sat, 13 Feb 2021 10:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613211007; bh=CYMMTOcAA6lBjhCnfr8YFrFdgDi7gATKcExkta6oQtk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IgpVntgLx3r+FQEu0EVjVMeV2cb8f2k/bDy0jEZt0zMUDoD/A7nErfwNmZZeKyNcv Mn0eh8BPtWUaPN/eam/F4rt+rAzMPPFsvmOeU4TXWVAuTCCWAVmytWRDiXFUxRo3an XbiWam4+mLVohTKDuP9sfMwtgAdW1S0anLm0hj0k= Date: Sat, 13 Feb 2021 11:10:03 +0100 From: Greg Kroah-Hartman To: Tetsuo Handa Cc: Shuah Khan , linux-kernel@vger.kernel.org, Andrey Konovalov , Valentina Manea , syzkaller-bugs@googlegroups.com, Hillf Danton , syzbot Subject: Re: general protection fault in tomoyo_socket_sendmsg_permission Message-ID: References: <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> <954bd943-8b55-36c8-9cba-a35a03213b2c@i-love.sakura.ne.jp> <99d7fba8-3472-3d6e-e825-9c9c115b5776@i-love.sakura.ne.jp> <4d49e8fd-f89f-efa7-5583-a6ca2272c67a@linuxfoundation.org> <19685ee2-1769-ad9c-941f-53e7e72ff235@i-love.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19685ee2-1769-ad9c-941f-53e7e72ff235@i-love.sakura.ne.jp> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 13, 2021 at 07:02:22PM +0900, Tetsuo Handa wrote: > Greg, will you queue https://lkml.kernel.org/r/20210205135707.4574-1-penguin-kernel@I-love.SAKURA.ne.jp (which can > close a report which is wasting syzbot's resource with 5300+ crashes) for 5.12 ? The change shown below will be > too large to test before merge window for 5.12 opens. > > The patch for fixing "general protection fault in tomoyo_socket_sendmsg_permission" will kill kthread_get_run(). > Closing frequently crashing bug now is the better. > > On 2021/02/11 22:40, Tetsuo Handa wrote: > > I guess that we need to serialize attach operation and reset/detach operations, for > > it seems there is a race window that might result in "general protection fault in > > tomoyo_socket_sendmsg_permission". Details follows... > > Here is untested diff that is expected to be complete. Please work and test this and get it merged in a normal manner, there is no "rush" here at all. Submit it properly and all will be fine. thanks, greg k-h