From patchwork Wed Jun 25 09:42:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 32471 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8DE45201EF for ; Wed, 25 Jun 2014 09:42:41 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id eb12sf9166333oac.3 for ; Wed, 25 Jun 2014 02:42:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:in-reply-to:references :date:message-id:subject:from:to:cc:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=v0V5U0iyyjDG8Uid8TrAlMDQIKIlRIApvfRqA2mcxJM=; b=CemV4CBiFwtjCJnzU/k648bskQUJhJNUOJnY9GFRo8OLcCYGm1zCC8jybquOQRhPvD mhMdG8sf17r5OmvmoFLGLOwt58qztH9DCBphqa3QlrxuqtucmasDXWy2Ppsf2IOQxM98 M8CUD84768PQW36oCb4qu4eLYDRbpmIb5hyilGNfJa26lytMgMjx+osADiM5ivwd6nwG h5X7GefrAE1pQxd19j8IcCX29+2Cj62u+e8t9gVxKV2ExdfXYjbK/gzhWq5YfTkmJBb6 pxUGUwMHDFlDOz/Ph+9pcJvrZdpVV4Gni1M2vqKg9QVf3IFv04D8Dnoy2N9XDx7x5GJK 7Wpw== X-Gm-Message-State: ALoCoQldQsfENG+0kbTPSkku3JOEGgqx36SSAorFDQawgziFl5FyekoeZJlP02rs5FFck6ghI8/q X-Received: by 10.43.134.65 with SMTP id ib1mr3425847icc.21.1403689359049; Wed, 25 Jun 2014 02:42:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.70 with SMTP id 64ls1179977qgs.14.gmail; Wed, 25 Jun 2014 02:42:38 -0700 (PDT) X-Received: by 10.221.63.195 with SMTP id xf3mr5912272vcb.36.1403689358964; Wed, 25 Jun 2014 02:42:38 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id sk10si1910065vec.81.2014.06.25.02.42.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Jun 2014 02:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hy10so1623678vcb.1 for ; Wed, 25 Jun 2014 02:42:38 -0700 (PDT) X-Received: by 10.58.228.74 with SMTP id sg10mr5772227vec.6.1403689358851; Wed, 25 Jun 2014 02:42:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp275225vcb; Wed, 25 Jun 2014 02:42:38 -0700 (PDT) X-Received: by 10.69.10.164 with SMTP id eb4mr9773775pbd.35.1403689358026; Wed, 25 Jun 2014 02:42:38 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zj8si4349995pac.125.2014.06.25.02.42.37; Wed, 25 Jun 2014 02:42:37 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755239AbaFYJm1 (ORCPT + 27 others); Wed, 25 Jun 2014 05:42:27 -0400 Received: from mail-oa0-f47.google.com ([209.85.219.47]:63557 "EHLO mail-oa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752091AbaFYJmZ (ORCPT ); Wed, 25 Jun 2014 05:42:25 -0400 Received: by mail-oa0-f47.google.com with SMTP id n16so1789704oag.6 for ; Wed, 25 Jun 2014 02:42:25 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.97.230 with SMTP id ed6mr1105410oeb.81.1403689345149; Wed, 25 Jun 2014 02:42:25 -0700 (PDT) Received: by 10.182.45.196 with HTTP; Wed, 25 Jun 2014 02:42:25 -0700 (PDT) In-Reply-To: <20140625093650.GD27280@localhost> References: <20140625093650.GD27280@localhost> Date: Wed, 25 Jun 2014 15:12:25 +0530 Message-ID: Subject: Re: [cpufreq] kernel BUG at kernel/irq_work.c:175! From: Viresh Kumar To: Fengguang Wu , Peter Zijlstra Cc: Linux Memory Management List , LKML , Andrew Morton , Stephen Rothwell , Jet Chen , Yuanhan Liu , LKP , "Su, Tao" Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On 25 June 2014 15:06, Fengguang Wu wrote: > FYI, we find similar bug message in Viresh's tree, which contains 8 > cpufreq patches based on next-20140625. > > tree: git://git.linaro.org/people/vireshk/linux cpufreq/cpu0-exynos > head: d51c9fbdf49983fc3303ec576d02e8ef97da3d8b > commit: d51c9fbdf49983fc3303ec576d02e8ef97da3d8b [8/8] cpufreq: cpu0: Add support for multiple 'struct cpufreq_policy' instances > > +-----------------------------------------------------------------------------+-----------+---------------+------------+ > | | v3.16-rc2 | next-20140625 | d51c9fbdf4 | > +-----------------------------------------------------------------------------+-----------+---------------+------------+ > | boot_successes | 3 | 3 | 1 | > | boot_failures | 0 | 0 | 2 | > | kernel_BUG_at_kernel/irq_work.c | 0 | 0 | 2 | > | invalid_opcode | 0 | 0 | 2 | > | RIP:irq_work_run | 0 | 0 | 2 | > | BUG:sleeping_function_called_from_invalid_context_at_kernel/locking/rwsem.c | 0 | 0 | 2 | > | backtrace:smpboot_thread_fn | 0 | 0 | 2 | > +-----------------------------------------------------------------------------+-----------+---------------+------------+ > > mount.nfs: access denied by server while mounting bee:/nfsroot/trinity > run-parts: /etc/kernel-tests/99-trinity exited with return code 32 > [ 66.841357] ------------[ cut here ]------------ > [ 66.841772] kernel BUG at kernel/irq_work.c:175! > [ 66.842302] invalid opcode: 0000 [#1] SMP > [ 66.842686] Modules linked in: > [ 66.842969] CPU: 1 PID: 10 Comm: migration/1 Not tainted 3.16.0-rc2-next-20140625-00008-gd51c9fb #6 > [ 66.843747] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 > [ 66.844010] task: ffff88001eb75e60 ti: ffff88001e03c000 task.ti: ffff88001e03c000 > [ 66.844010] RIP: 0010:[] [] irq_work_run+0xf/0x22 > [ 66.844010] RSP: 0018:ffff88001e03fcc0 EFLAGS: 00010046 > [ 66.844010] RAX: 0000000080000001 RBX: 0000000000000000 RCX: 0000000000000005 > [ 66.844010] RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000000 > [ 66.844010] RBP: ffff88001e03fce0 R08: 0000000000000200 R09: ffffffff82137030 > [ 66.844010] R10: 0000000000001c24 R11: 0000000000007c00 R12: ffff88001fd13940 > [ 66.844010] R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff82073270 > [ 66.844010] FS: 0000000000000000(0000) GS:ffff88001fd00000(0000) knlGS:0000000000000000 > [ 66.844010] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [ 66.844010] CR2: 00007f10054a6000 CR3: 0000000000030000 CR4: 00000000000006e0 > [ 66.844010] Stack: > [ 66.844010] ffffffff811412f7 0000000000000001 ffff88001fd13980 ffffffff82055fb0 > [ 66.844010] ffff88001e03fd00 ffffffff811413ea 0000000000000001 00000000fffffff0 > [ 66.844010] ffff88001e03fd48 ffffffff81105027 0000000000000001 0000000000000008 > [ 66.844010] Call Trace: > [ 66.844010] [] ? flush_smp_call_function_queue+0xab/0x10e > [ 66.844010] [] hotplug_cfd+0x90/0x97 > [ 66.844010] [] notifier_call_chain+0x6d/0x93 > [ 66.844010] [] __raw_notifier_call_chain+0xe/0x10 > [ 66.844010] [] __cpu_notify+0x20/0x37 > [ 66.844010] [] cpu_notify+0x13/0x15 > [ 66.844010] [] take_cpu_down+0x27/0x3a > [ 66.844010] [] multi_cpu_stop+0x93/0xed > [ 66.844010] [] ? cpu_stop_park+0x63/0x63 > [ 66.844010] [] cpu_stopper_thread+0x92/0x114 > [ 66.844010] [] ? retint_restore_args+0x13/0x13 > [ 66.844010] [] ? _raw_spin_lock_irqsave+0x25/0x56 > [ 66.844010] [] smpboot_thread_fn+0x187/0x1a5 > [ 66.844010] [] ? SyS_setgroups+0x10c/0x10c > [ 66.844010] [] kthread+0xdb/0xe3 > [ 66.844010] [] ? kthread_create_on_node+0x174/0x174 > [ 66.844010] [] ret_from_fork+0x7c/0xb0 > [ 66.844010] [] ? kthread_create_on_node+0x174/0x174 > [ 66.844010] Code: cd 81 e8 dc 31 f6 ff c6 05 46 c3 f8 00 01 eb 05 e8 91 ff ff ff b8 01 00 00 00 5d c3 65 8b 04 25 50 b9 00 00 a9 00 00 0f 00 75 02 <0f> 0b 55 48 89 e5 e8 70 ff ff ff 5d c3 55 48 89 e5 5d c3 55 48 > [ 66.844010] RIP [] irq_work_run+0xf/0x22 > [ 66.844010] RSP > [ 66.844010] ---[ end trace 043717361af3ed47 ]--- > [ 66.844010] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:41 Nothing specific to my tree, its there in linux-next and PeterZ is already working on it: https://lkml.org/lkml/2014/6/25/25 Last diff from him: --- kernel/irq_work.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ Index: linux-2.6/kernel/irq_work.c =================================================================== --- linux-2.6.orig/kernel/irq_work.c +++ linux-2.6/kernel/irq_work.c @@ -160,21 +160,11 @@ static void irq_work_run_list(struct lli } } -static void __irq_work_run(void) +static void irq_work_run(void) { irq_work_run_list(&__get_cpu_var(raised_list)); irq_work_run_list(&__get_cpu_var(lazy_list)); } - -/* - * Run the irq_work entries on this cpu. Requires to be ran from hardirq - * context with local IRQs disabled. - */ -void irq_work_run(void) -{ - BUG_ON(!in_irq()); - __irq_work_run(); -} EXPORT_SYMBOL_GPL(irq_work_run); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org