Date: Sun, 20 Dec 2015 21:45:13 -0800 From: Yuri <yuri@rawbw.com> To: Freebsd hackers list <freebsd-hackers@FreeBSD.org> Subject: Should DEBUG_VFS_LOCKS messages be reported as bugs? Message-ID: <567791E9.50207@rawbw.com>
next in thread | raw e-mail | index | archive | help
With these debugging options in kernel: options INVARIANTS options INVARIANT_SUPPORT options WITNESS options DEBUG_VFS_LOCKS options DEBUG_MEMGUARD it prints some messages that look like errors, see below. Are these generally worth reporting as bugs? 10.2-STABLE r292527 Yuri ----begin messages---- Dec 20 21:15:00 yuri kernel: lock order reversal: Dec 20 21:15:00 yuri kernel: 1st 0xfffffe0da86d5920 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3130 Dec 20 21:15:00 yuri kernel: 2nd 0xfffff801706a1a00 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:280 Dec 20 21:15:00 yuri kernel: KDB: stack backtrace: Dec 20 21:15:00 yuri kernel: #0 0xffffffff8097c330 at kdb_backtrace+0x60 Dec 20 21:15:00 yuri kernel: #1 0xffffffff80996ed4 at witness_checkorder+0xe24 Dec 20 21:15:00 yuri kernel: #2 0xffffffff809490d5 at _sx_xlock+0x75 Dec 20 21:15:00 yuri kernel: #3 0xffffffff80bac9da at ufsdirhash_add+0x4a Dec 20 21:15:00 yuri kernel: #4 0xffffffff80baf8f0 at ufs_direnter+0x6a0 Dec 20 21:15:00 yuri kernel: #5 0xffffffff80bb8945 at ufs_makeinode+0x575 Dec 20 21:15:00 yuri kernel: #6 0xffffffff80bb47dd at ufs_create+0x2d Dec 20 21:15:00 yuri kernel: #7 0xffffffff80e7744f at VOP_CREATE_APV+0x10f Dec 20 21:15:00 yuri kernel: #8 0xffffffff809faea3 at vn_open_cred+0x2c3 Dec 20 21:15:00 yuri kernel: #9 0xffffffff809f456f at kern_openat+0x26f Dec 20 21:15:00 yuri kernel: #10 0xffffffff80d4fb04 at amd64_syscall+0x2c4 Dec 20 21:15:00 yuri kernel: #11 0xffffffff80d3354b at Xfast_syscall+0xfb Dec 20 21:18:39 yuri kernel: insmntque: non-locked vp: 0xfffff80170fe0588 is not exclusive locked but should be Dec 20 21:18:39 yuri kernel: KDB: stack backtrace: Dec 20 21:18:39 yuri kernel: #0 0xffffffff8097c330 at kdb_backtrace+0x60 Dec 20 21:18:39 yuri kernel: #1 0xffffffff809ea99e at assert_vop_elocked+0x6e Dec 20 21:18:39 yuri kernel: #2 0xffffffff809ea1d1 at insmntque1+0x41 Dec 20 21:18:39 yuri kernel: #3 0xffffffff82e272a1 at unionfs_nodeget+0x281 Dec 20 21:18:39 yuri kernel: #4 0xffffffff82e2ab06 at unionfs_lookup+0x726 Dec 20 21:18:39 yuri kernel: #5 0xffffffff80e7728f at VOP_CACHEDLOOKUP_APV+0x10f Dec 20 21:18:39 yuri kernel: #6 0xffffffff809d8dd6 at vfs_cache_lookup+0xd6 Dec 20 21:18:39 yuri kernel: #7 0xffffffff80e770cf at VOP_LOOKUP_APV+0x10f Dec 20 21:18:39 yuri kernel: #8 0xffffffff809e13b2 at lookup+0x5c2 Dec 20 21:18:39 yuri kernel: #9 0xffffffff809e0ad4 at namei+0x4e4 Dec 20 21:18:39 yuri kernel: #10 0xffffffff809f635e at kern_statat_vnhook+0xae Dec 20 21:18:39 yuri kernel: #11 0xffffffff809f64f0 at sys_lstat+0x30 Dec 20 21:18:39 yuri kernel: #12 0xffffffff80d4fb04 at amd64_syscall+0x2c4 Dec 20 21:18:39 yuri kernel: #13 0xffffffff80d3354b at Xfast_syscall+0xfb Dec 20 21:34:39 yuri kernel: insmntque: non-locked vp: 0xfffff805c74793b0 is not exclusive locked but should be Dec 20 21:34:39 yuri kernel: KDB: stack backtrace: Dec 20 21:34:39 yuri kernel: #13 0xffffffff80d3354b at Xfast_syscall+0xfb Dec 20 21:34:39 yuri kernel: insmntque: non-locked vp: 0xfffff805c75221d8 is not exclusive locked but should be Dec 20 21:34:39 yuri kernel: KDB: stack backtrace: Dec 20 21:34:39 yuri kernel: #1 0xffffffff809ea99e at assert_vop_elocked+0x6e Dec 20 21:34:39 yuri kernel: #1 0xffffffff809ea99e at assert_vop_elocked+0x6e Dec 20 21:34:39 yuri kernel: #0 0xffffffff8097c330 at kdb_backtrace+0x60 Dec 20 21:34:39 yuri kernel: #0 0xffffffff8097c330 at kdb_backtrace+0x60 Dec 20 21:34:39 yuri kernel: #2 0xffffffff809ea1d1 at insmntque1+0x41 Dec 20 21:34:39 yuri kernel: #2 0xffffffff809ea1d1 at insmntque1+0x41 Dec 20 21:34:39 yuri kernel: #1 0xffffffff809ea99e at assert_vop_elocked+0x6e Dec 20 21:34:39 yuri kernel: #1 0xffffffff809ea99e at assert_vop_elocked+0x6e Dec 20 21:34:39 yuri kernel: #3 0xffffffff82e272a1 at unionfs_nodeget+0x281 Dec 20 21:34:39 yuri kernel: #3 0xffffffff82e272a1 at unionfs_nodeget+0x281 Dec 20 21:34:39 yuri kernel: #2 0xffffffff809ea1d1 at insmntque1+0x41 Dec 20 21:34:39 yuri kernel: #4 0xffffffff82e2ab06 at unionfs_lookup+0x726 Dec 20 21:34:39 yuri kernel: #2 0xffffffff809ea1d1 at insmntque1+0x41 Dec 20 21:34:39 yuri kernel: #4 0xffffffff82e2ab06 at unionfs_lookup+0x726 Dec 20 21:34:39 yuri kernel: #3 0xffffffff82e272a1 at unionfs_nodeget+0x281 Dec 20 21:34:39 yuri kernel: #3 0xffffffff82e272a1 at unionfs_nodeget+0x281 Dec 20 21:34:39 yuri kernel: #5 0xffffffff80e7728f at VOP_CACHEDLOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #5 0xffffffff80e7728f at VOP_CACHEDLOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #4 0xffffffff82e2ab06 at unionfs_lookup+0x726 Dec 20 21:34:39 yuri kernel: #4 0xffffffff82e2ab06 at unionfs_lookup+0x726 Dec 20 21:34:39 yuri kernel: #6 0xffffffff809d8dd6 at vfs_cache_lookup+0xd6 Dec 20 21:34:39 yuri kernel: #6 0xffffffff809d8dd6 at vfs_cache_lookup+0xd6 Dec 20 21:34:39 yuri kernel: #5 0xffffffff80e7728f at VOP_CACHEDLOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #5 0xffffffff80e7728f at VOP_CACHEDLOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #7 0xffffffff80e770cf at VOP_LOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #7 0xffffffff80e770cf at VOP_LOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #6 0xffffffff809d8dd6 at vfs_cache_lookup+0xd6 Dec 20 21:34:39 yuri kernel: #6 0xffffffff809d8dd6 at vfs_cache_lookup+0xd6 Dec 20 21:34:39 yuri kernel: #8 0xffffffff809e13b2 at lookup+0x5c2 Dec 20 21:34:39 yuri kernel: #8 0xffffffff809e13b2 at lookup+0x5c2 Dec 20 21:34:39 yuri kernel: #7 0xffffffff80e770cf at VOP_LOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #7 0xffffffff80e770cf at VOP_LOOKUP_APV+0x10f Dec 20 21:34:39 yuri kernel: #9 0xffffffff809e0ad4 at namei+0x4e4 Dec 20 21:34:39 yuri kernel: #9 0xffffffff809e0ad4 at namei+0x4e4 Dec 20 21:34:39 yuri kernel: #8 0xffffffff809e13b2 at lookup+0x5c2 Dec 20 21:34:39 yuri kernel: #8 0xffffffff809e13b2 at lookup+0x5c2 ----end messages----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?567791E9.50207>