Received: by 10.223.164.202 with SMTP id h10csp1674038wrb; Wed, 8 Nov 2017 07:56:06 -0800 (PST) X-Google-Smtp-Source: ABhQp+R10FkzJ34c/Zsb2yWqV0Pfv9SvI6Q9E5aFUqb9pJijBIERxGPuH/VhDTKoxR6IujSXP7ur X-Received: by 10.99.116.89 with SMTP id e25mr884915pgn.218.1510156565943; Wed, 08 Nov 2017 07:56:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510156565; cv=none; d=google.com; s=arc-20160816; b=KquDrle8EINb4Op31aa4nbAXH/V4YPKnZyhg+aHuXEx50iCRq0m67HlKtg3zfiByF+ aw5Zx+RXz++lwYnAXhJOZ5AYRIRexrTM2LtTTbX3ZkQ8AQcI+kmV9FpVpnYdkDhlONY/ 4KIG/e3FtZdDWyuVVonjU3V5eVFgMNZLrcFcayt93+QNaLU03K/wFIyA9GfsUz99LWvx fXiaVAAJY6uD1TGMD552aWNYOsDXDceIc86bsGoKQ7p6fj3+Z6Ae4jjv+EgvTqxPewCg Qt4OWbRQb1dbWYL6key0srCi1eYo3H9erqIULN5dMAtso/BJlZx3kZG4G/OJfqUv7N6/ dfOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=0gNKH0SfDSonKcpqV6Z4L+j8+Kmiy+37xa/RTWSO/rM=; b=Q+25hB4H8bQ7cE7ZphDiaG8AvBO/VxC2Q9tY1ZjCaFBG7JntesD3m3rvDiA2h+hlY/ 6k5cyqBSrmKcg2KhUeyE2YL9xri+LADRtN4vl/rpMZ4xCEfGWyuhpqNMmHCSjWqFQNhD R64jFUQsyB2hCklqlmLMSD/xanDjJ0sKki8URaRTwcD7CbAbzpu8q/F9DyxWyJNyd2bw 9xAm/e2yKOI8WTm1Vx3UrFI/i7zFNwxlSfM2p2xOqrYGeyeqag1pJZy7x0zarvGGYNOO 1urYABOlBOGZb/d0n0DCIX3nwHcqk9YbJ0zybUbqa72rv7as2upLqaamCJv64wSmidUY ddHw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si4505402pfk.224.2017.11.08.07.55.54; Wed, 08 Nov 2017 07:56:05 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752695AbdKHPzI (ORCPT + 83 others); Wed, 8 Nov 2017 10:55:08 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:35065 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491AbdKHPzG (ORCPT ); Wed, 8 Nov 2017 10:55:06 -0500 Received: from static-50-53-35-55.bvtn.or.frontiernet.net ([50.53.35.55] helo=[192.168.192.153]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1eCSgr-0000ar-1v; Wed, 08 Nov 2017 15:54:57 +0000 Subject: Re: [apparmor_mmap_file] WARNING: bad unlock balance detected! To: Fengguang Wu , linux-security-module@vger.kernel.org Cc: LKML , Linus Torvalds , Stephen Rothwell , Al Viro , Eric Paris References: <20171107013821.2b34a6i6uez37stu@wfg-t540p.sh.intel.com> From: John Johansen Organization: Canonical Message-ID: Date: Wed, 8 Nov 2017 07:54:53 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171107013821.2b34a6i6uez37stu@wfg-t540p.sh.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/06/2017 05:38 PM, Fengguang Wu wrote: > Hi, > > Here is a warning in 4.14-rc8 -- it's not necessarily a new bug. > sigh, yep its older than 4.14 but I have haven't finished bisecting it yet thanks > Please press Enter to activate this console. > [�� 45.117766] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX > [�� 45.122174] 8021q: adding VLAN 0 to HW filter on device eth0 > [�� 45.247159] [�� 45.247451] ===================================== > [�� 45.248021] WARNING: bad unlock balance detected! > [�� 45.248608] 4.14.0-rc8 #158 Not tainted > [�� 45.249087] ------------------------------------- > [�� 45.249672] fw3/1183 is trying to release lock (rcu_preempt_state) at: > [�� 45.250443] [] rcu_read_unlock_special+0x5f8/0x620 > [�� 45.251136] but there are no more locks to release! > [�� 45.251752] [�� 45.251752] other info that might help us debug this: > [�� 45.252561] 1 lock held by fw3/1183: > [�� 45.253019]� #0:� (rcu_read_lock){....}, at: [] aa_file_perm+0x0/0x460 > [�� 45.253925] [�� 45.253925] stack backtrace: > [�� 45.254526] CPU: 0 PID: 1183 Comm: fw3 Not tainted 4.14.0-rc8 #158 > [�� 45.255275] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 > [�� 45.256266] Call Trace: > [�� 45.256628]� dump_stack+0x16/0x1c > [�� 45.257082]� print_unlock_imbalance_bug+0xb9/0xd0 > [�� 45.257676]� ? rcu_read_unlock_special+0x5f8/0x620 > [�� 45.258259]� ? rcu_read_unlock_special+0x5f8/0x620 > [�� 45.258871]� lock_release+0x1cc/0x490 > [�� 45.259347]� ? rcu_read_unlock_special+0x5f8/0x620 > [�� 45.259969]� ? _raw_spin_unlock_irqrestore+0x86/0xd0 > [�� 45.260581]� rt_mutex_unlock+0x1e/0xb0 > [�� 45.261054]� rcu_read_unlock_special+0x5f8/0x620 > [�� 45.261643]� __rcu_read_unlock+0xa7/0xb0 > [�� 45.262152]� aa_file_perm+0x5a/0x460 > [�� 45.262633]� ? pvclock_clocksource_read+0xd5/0x230 > [�� 45.263203]� ? pvclock_clocksource_read+0xd5/0x230 > [�� 45.263797]� common_file_perm+0x81/0x240 > [�� 45.264308]� ? kvm_sched_clock_read+0x9/0x20 > [�� 45.264843]� common_mmap+0x93/0xd0 > [�� 45.265283]� ? apparmor_file_mprotect+0x30/0x30 > [�� 45.265867]� apparmor_mmap_file+0x12/0x20 > [�� 45.266388]� security_mmap_file+0xaf/0x170 > [�� 45.266903]� vm_mmap_pgoff+0x35/0x100 > [�� 45.267381]� ? __fget+0x1c3/0x1d0 > [�� 45.267831]� SyS_mmap_pgoff+0x16d/0x370 > [�� 45.268318]� do_int80_syscall_32+0x95/0x290 > [�� 45.268840]� entry_INT80_32+0x2f/0x2f > [�� 45.269313] EIP: 0xb7f7c2d4 > [�� 45.269713] EFLAGS: 00000202 CPU: 0 > [�� 45.270169] EAX: ffffffda EBX: b7f63000 ECX: 000002ad EDX: 00000003 > [�� 45.270901] ESI: 00000012 EDI: 00000003 EBP: 00000004 ESP: bff29f24 > [�� 45.271637]� DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 007b > [�� 45.351763] 8021q: adding VLAN 0 to HW filter on device eth0 > LKP: HOSTNAME vm-lkp-nhm-dp1-openwrt-ia32-6, MAC , kernel 4.14.0-rc8 158, serial console /dev/ttyS0 > [�� 47.390581] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX > > Thanks, > Fengguang From 1583454663441209168@xxx Wed Nov 08 00:14:03 +0000 2017 X-GM-THRID: 1583402233990926621 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread