Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbdLLIcb (ORCPT ); Tue, 12 Dec 2017 03:32:31 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:44740 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbdLLIcP (ORCPT ); Tue, 12 Dec 2017 03:32:15 -0500 X-Google-Smtp-Source: ACJfBotKVdQA0oG0kmShkogV33OB463KCRGFmkKOeJGZlH1tYFxeYSNIPbW0uYkTvxSit2F2lm5EyA== To: dmitry.torokhov@gmail.com, ilya.muromec@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org From: Jia-Ju Bai Subject: [BUG] drivers/input/misc/pcap: a possible sleep-in-atomic bug in pcap_keys_handler Message-ID: <9af81fe8-e07c-9161-2d85-3eb23a198ec9@gmail.com> Date: Tue, 12 Dec 2017 16:32:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 381 Lines: 14 According to drivers/input/misc/pcap_keys.c, the kernel module may sleep in the interrupt handler. The function call path is: pcap_keys_handler (interrupt handler) ezx_pcap_read mutex_lock --> may sleep I do not find a good way to fix it, so I only report. This possible bug is found by my static analysis tool (DSAC) and checked by my code review. Thanks, Jia-Ju Bai