Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1954304AbdDYU3G (ORCPT ); Tue, 25 Apr 2017 16:29:06 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46863 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1950865AbdDYU2t (ORCPT ); Tue, 25 Apr 2017 16:28:49 -0400 Date: Tue, 25 Apr 2017 13:28:41 -0700 From: "Paul E. McKenney" To: Ross Zwisler Cc: linux-ext4@vger.kernel.org, Jan Kara , "Theodore Ts'o" , linux-kernel@vger.kernel.org, Josh Triplett Subject: Re: kernel/rcu/tree.c:1031 rcu_irq_enter() invoked with irqs enabled!!!! Reply-To: paulmck@linux.vnet.ibm.com References: <20170425201345.GB11773@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170425201345.GB11773@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 17042520-0036-0000-0000-000001EE3E5F X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006973; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000208; SDB=6.00852399; UDB=6.00421335; IPR=6.00631236; BA=6.00005312; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00015175; XFM=3.00000013; UTC=2017-04-25 20:28:42 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17042520-0037-0000-0000-00003FFFB8FE Message-Id: <20170425202841.GF3956@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-25_14:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704250356 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3951 Lines: 67 On Tue, Apr 25, 2017 at 02:13:45PM -0600, Ross Zwisler wrote: > I hit this RCU warning while running mkfs.ext4 on a PMEM namespace with > an unmodified v4.11-rc8 (passed through kasan_symbolize.py): > > =============================== > [ ERR: suspicious RCU usage. ] > 4.11.0-rc8 #1 Not tainted > ------------------------------- > kernel/rcu/tree.c:1031 rcu_irq_enter() invoked with irqs enabled!!!! Just in case there is any doubt, invoking rcu_irq_enter() with irqs enabled voids your kernel's RCU warranty. ;-) So please don't do that. Thanx, Paul > other info that might help us debug this: > > > rcu_scheduler_active = 2, debug_locks = 0 > no locks held by mkfs.ext4/18493. > > stack backtrace: > CPU: 10 PID: 18493 Comm: mkfs.ext4 Not tainted 4.11.0-rc8 #1 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-1.fc25 04/01/2014 > Call Trace: > [< inline >] __dump_stack project/linux/lib/dump_stack.c:16 > [< none >] dump_stack+0x86/0xc3 project/linux/lib/dump_stack.c:52 > [< none >] lockdep_rcu_suspicious+0xd7/0x110 project/linux/kernel/locking/lockdep.c:4461 > [< none >] rcu_irq_enter+0x74/0x80 project/linux/kernel/rcu/tree.c:1031 > [< none >] kvm_async_pf_task_wait+0x1af/0x240 project/linux/arch/x86/kernel/kvm.c:164 > [< none >] do_async_page_fault+0x63/0x90 project/linux/arch/x86/kernel/kvm.c:269 > ?[< none >] do_async_page_fault+0x63/0x90 project/linux/arch/x86/kernel/kvm.c:269 > [< none >] async_page_fault+0x28/0x30 project/linux_2/arch/x86/entry/entry_64.S:1014 > RIP: 0010:copy_user_enhanced_fast_string+0x5/0x10 > RSP: 0018:ffffc90008777c90 EFLAGS: 00010202 > RAX: 0000000000000001 RBX: 0000000000001000 RCX: 0000000000001000 > RDX: 0000000000001000 RSI: 00007f42a5d88010 RDI: ffff88007e82d000 > RBP: ffffc90008777ce0 R08: ffff88007e82d000 R09: 0000000000000000 > R10: 0000000000000000 R11: ffffea0001fa0b40 R12: 0000000000001000 > R13: ffffc90008777e50 R14: ffff88007e82e000 R15: 0000000000001000 > ?[< inline >] copy_user_generic project/linux/./arch/x86/include/asm/uaccess_64.h:37 > ?[< inline >] __copy_from_user_nocheck project/linux/./arch/x86/include/asm/uaccess_64.h:59 > ?[< inline >] __copy_from_user_inatomic project/linux/./arch/x86/include/asm/uaccess_64.h:251 > ?[< none >] iov_iter_copy_from_user_atomic+0xbb/0x350 project/linux/lib/iov_iter.c:721 > [< none >] generic_perform_write+0xf2/0x1d0 project/linux/mm/filemap.c:2843 > [< none >] __generic_file_write_iter+0x185/0x1c0 project/linux/mm/filemap.c:2960 > [< none >] blkdev_write_iter+0x96/0x110 project/linux/fs/block_dev.c:2008 > [< inline >] call_write_iter project/linux/./include/linux/fs.h:1733 > [< inline >] new_sync_write project/linux/fs/read_write.c:497 > [< none >] __vfs_write+0xe8/0x160 project/linux/fs/read_write.c:510 > ?[< inline >] call_write_iter project/linux/./include/linux/fs.h:1733 > ?[< inline >] new_sync_write project/linux/fs/read_write.c:497 > ?[< none >] __vfs_write+0xe8/0x160 project/linux/fs/read_write.c:510 > [< none >] vfs_write+0xcb/0x1f0 project/linux/fs/read_write.c:558 > [< inline >] SYSC_pwrite64 project/linux/fs/read_write.c:647 > [< none >] SyS_pwrite64+0x98/0xc0 project/linux/fs/read_write.c:634 > [< none >] entry_SYSCALL_64_fastpath+0x1f/0xc2 project/linux_2/arch/x86/entry/entry_64.S:204 > RIP: 0033:0x7f42acd4d213 > RSP: 002b:00007ffc846e4e38 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 > RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f42acd4d213 > RDX: 00000000001e0000 RSI: 00007f42a5c9f010 RDI: 0000000000000003 > RBP: 0000559bd6c46380 R08: 00007f42a5c9f010 R09: 0000000000000200 > R10: 0000000680820000 R11: 0000000000000246 R12: 00007ffc846e4f9c > R13: 0000000000000425 R14: 0000000000000200 R15: 0000559bd6c46380 >