Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1316343imm; Sun, 2 Sep 2018 18:42:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbifYTaheCdTPI+zl2lQkizq8T75wlRHXOoMfOyuS4pyZfluzHLtT6VTGti/gQCzPpfvbhB X-Received: by 2002:a17:902:b902:: with SMTP id bf2-v6mr26361847plb.185.1535938969782; Sun, 02 Sep 2018 18:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535938969; cv=none; d=google.com; s=arc-20160816; b=Esdf+RTVhvKWFrhblkA6Hg8DyyaEnUS+mSw0yX83rKlIpEq/tG0VzlUzzLAB3J4rLy g8J53lYuPC7vUP6ylfHXvWCVwvY4y6FScHHZZzNTOzRu9aVusO+Au1xjrMATLvLNoiMm jA6cbAwR/JX4Wy2W2KAXcFqsu0XfnQr5R0vRQCNYaulzqOABmYSlVuiaF2NsSTKPma90 S0mQlAO2Zcme8pcjGIRL6iuPQBPtrjuPyUbIBA+45e1xCMXcw8gvgc/SR15OL7fN/PQd 7+dQeGIIiT2A+SYYUkvv05ptpJGuMYdhE8sFBLaVXPvMgoSo90gqxbZUmjBsjd8uhRYG t0BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=GZffnLf/qdii9GdgBqkK5zn+qXvrNQ9JivnW1GAX48A=; b=T2cdvVM6WABcR8uyDL1o7dsZOwWA+IwWI+NuuN3EJf/op9zW7sqJZ8ayDe/l7FZbQj 7HQbBcVQ14pO7VbNF3uB3uHMi9nTIFJbGwXnvbhu1CgRFuHgSbZ9tdDip0BcokTO5zqD kiZPXIljpKIuvom7WM4VMJa5Q1u7BN9mkxFYJctq8lS5Bg5YVFF7IReaKnCdz5eCSbyM rUFqN8w5vuj5ji0WcRna32Tv0vXPbe5fp+nKebtwspyI/NbIF2w9Oadnec7RRq4F/GNp HAfh9MyA3UyHReAIu3tBEm8/03tS0ik0SbfR/+cNR4JNRpWjr3LwhG19H7xZbw1W25zs /L/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=shhAl9lh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si15987819pgh.281.2018.09.02.18.42.33; Sun, 02 Sep 2018 18:42:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=shhAl9lh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726133AbeICF6C (ORCPT + 99 others); Mon, 3 Sep 2018 01:58:02 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38813 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725762AbeICF6C (ORCPT ); Mon, 3 Sep 2018 01:58:02 -0400 Received: by mail-pg1-f196.google.com with SMTP id f4-v6so2555290pgq.5; Sun, 02 Sep 2018 18:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=GZffnLf/qdii9GdgBqkK5zn+qXvrNQ9JivnW1GAX48A=; b=shhAl9lhGYY23/MqqEI+7fdavIfiZD/AIt7YJH4LSY4QCRcvzTJ88lbSZdYUzKiIaO bovQzrFgUXpJMsQnCLbVsIElP3KjK5eqwNeiTQ97/sleFBfN/Hz9B5xfbSM+gbjSp4g3 BTnD5E0Cg20EjfGkslKYyfw3c/ygacJLPVuy+XO+etLBG54KVmFDENLs1N2I2gggYnmO nQLUIP5tsK2/fy8y4HJDk3kqafFcVmQDOzEnR64p61dMo340/cUI1WsZFdbqcQcFZLUy glBwktgr6dS2q+L8Re46hhqCzPAfdMzbUTW0OQOtUcBGiwP8rnEKF7aV86dfSeH/SX/s v8SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=GZffnLf/qdii9GdgBqkK5zn+qXvrNQ9JivnW1GAX48A=; b=AFPIIhg+0SbLc7kQYlVbAZcoo9c+5im8c3cvMHRJ9PargANCnTactqEymosGHIBA9J SvZBX3kPHp2WEpUGH2GSBD1IBNtSO1SIz90KtVaZJyr5U1Yd98+vKGfh1trQoG34Ur23 QBvIQEAS2Pp2IBmigiEncroGT2AJt90BXSyzNP5TmkqWUP7T76UJZa+BK+nccMeU0HQk ZHipO/OnoiYNrJH3/zOilXntOKJi7yLJlCOaubH51kl47KXAHq6oeCjiGn/vVuvHemDa GZfypmqxizrXtzz0dv+0Ru9dbUJtX+928oSftvc+TfuZ4PiJK/Fwi2aBALatamCjkrja i5JA== X-Gm-Message-State: APzg51ANlLNU08VK6zbisRE9bAExcJoPyHBdeo49T8JzD1VBZ7Y22X0U OHJIMuJm5xva3pReJ8wxzbyEkZyE X-Received: by 2002:a63:1a1a:: with SMTP id a26-v6mr24133819pga.449.1535938813059; Sun, 02 Sep 2018 18:40:13 -0700 (PDT) Received: from ?IPv6:2402:f000:1:1501:200:5efe:166.111.71.58? ([2402:f000:1:1501:200:5efe:a66f:473a]) by smtp.gmail.com with ESMTPSA id 82-v6sm26219523pfw.159.2018.09.02.18.40.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Sep 2018 18:40:12 -0700 (PDT) Subject: Re: [PATCH] isdn: mISDN: tei: Fix a sleep-in-atomic-context bug in create_teimgr() To: isdn@linux-pingi.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180901120019.31664-1-baijiaju1990@gmail.com> <3ecd32b2-81e5-038e-edc9-fd06d6e21851@linux-pingi.de> From: Jia-Ju Bai Message-ID: Date: Mon, 3 Sep 2018 09:40:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <3ecd32b2-81e5-038e-edc9-fd06d6e21851@linux-pingi.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/9/3 0:31, isdn@linux-pingi.de wrote: > Hi, > > I do not understand the analysis and do not see that the spinlock is a > problem here. > I think your DSAC analyzer assumes that the FUNC_PTR mgr_ctrl call calls > the mgr_ctrl in tei.c, but in real it calls l2->ch.ctrl() which is the > function in layer2.c, not tei.c. And the function in layer2.c should not > do any GFP_KERNEL allocation. > > Same for your 2. reported issue. Okay, thanks for your reply. My analysis handles the function pointer using the function type and structure field, but it cannot distinguish the different variables of the same type and field now. I will try to improve my tool, thanks for your explanation. Best wishes, Jia-Ju Bai