Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754156AbbHEPum (ORCPT ); Wed, 5 Aug 2015 11:50:42 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:6541 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752671AbbHEPuk (ORCPT ); Wed, 5 Aug 2015 11:50:40 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Wed, 05 Aug 2015 08:50:40 -0700 Message-ID: <55C230C7.2000909@nvidia.com> Date: Wed, 5 Aug 2015 18:50:31 +0300 From: Aapo Vienamo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: , , CC: , Subject: [BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep X-NVConfidentiality: public Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.21.25.165] X-ClientProxiedBy: UKMAIL102.nvidia.com (10.26.138.15) To UKMAIL102.nvidia.com (10.26.138.15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 669 Lines: 16 Hi, The breakpoint setting code in arch/arm/kernel/kgdb.c calls patch_text(), which ends up trying to sleep while in interrupt context. The bug was introduced by commit: 23a4e40 arm: kgdb: Handle read-only text / modules. The resulting behavior is "BUG: scheduling while atomic..." when setting a breakpoint in kgdb. This was tested on an Nvidia Jetson TK1 board with 4.2.0-rc5-next-20150805 kernel. Regards, Aapo Vienamo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/