From nobody Wed Sep 20 01:22:28 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rr13n1H0Wz4tJcC for ; Wed, 20 Sep 2023 01:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rr13n0FKpz4VSp for ; Wed, 20 Sep 2023 01:22:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695172949; a=rsa-sha256; cv=none; b=s8Hw8g70mUi43z4eKMp5WvvVkNB5z31Pci6aAsBUHVbfjMnPNdvYrljeYLpKrFD8/51FqE +eahx/bsFYf2euP3BIm8vNlnHB99hk2s0VO7hJM+i3nhNSQyFdaqgKiYZgExsiQIWnllvU dQNf1qOs/dK0sUobB5mOEn1bkC8DMSJhwwUKVlJYRdqIHSN/O42fKavZJDNNOm5bRYyCr0 q7oXUXJrHu9IluXIoukQRg1Jg9E8JiUjz5t4Lphl37/AOoBp7m5x+KgeHGBb76CFUG1+gO /5brt0pPSGu7mb9LrS+vMeXQNp2VlQYD9SyBZ7hiIfDuolJBHhMtir0H1Um6vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695172949; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z6qF8Ap5nv3j6uGhRSqMaVkqekWYbChRpeKNVjAIKkk=; b=qsbaDavmEOg6tEW37vNXHBJbqpIWqZiISOHVwCGIgDjExslHR4D8HyPbfwzSfjiz1eUVll dU3QTNzreZcv6nl/4biMW3lloCyaB2t0VX9n8eeKha0QwcsbTqWLO6hvVCzc3mBdcqHzD3 2phhKXNmvxVNnVdqYgUA11sCdJSWnz1n5tQyDV5+IMRkVgOf9Tr8RcOsBdV6W/ezm5QRws 4GDGh5cZDVM23KKOTxd3nVG3jyK+KmdFXFL+l1FTTrkMFgqgtxHF7XJK3Fw8eBKPekr7Mg gz83lkJsaIT8Cc+FvXc/6iTlY1KqYEg6s4J0HCYvxgBxmZNsuYc7bIUI4tQe4Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rr13m6FlQzc9q for ; Wed, 20 Sep 2023 01:22:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38K1MSnc007458 for ; Wed, 20 Sep 2023 01:22:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38K1MSvL007457 for bugs@FreeBSD.org; Wed, 20 Sep 2023 01:22:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273953] panic: vfs_remount_ro: mp is not busied Date: Wed, 20 Sep 2023 01:22:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: glebius@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273953 Bug ID: 273953 Summary: panic: vfs_remount_ro: mp is not busied Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: glebius@FreeBSD.org CC: kib@FreeBSD.org, mjg@FreeBSD.org With msdosfs(4) on an SD card mounted with help of autofs(5) paniced when running command 'rm *' in directory that had 3 files. Repeating same scenar= io on the same file system after reboot did not reproduce the panic, so seems = to be a race. I got core. Unread portion of the kernel message buffer: /stealth: Freeing unused sector 158705 17 0 /dev/msdosfs/STEALTHCAM: remounting read-only due to corruption panic: vfs_remount_ro: mp 0xfffffe0235211000 is not busied cpuid =3D 19 time =3D 1695171728 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2c/frame 0xfffffe015d040= b30 kdb_backtrace() at kdb_backtrace+0x46/frame 0xfffffe015d040be0 vpanic() at vpanic+0x20f/frame 0xfffffe015d040d20 panic() at panic+0x4e/frame 0xfffffe015d040d80 vfs_remount_ro() at vfs_remount_ro+0x3f/frame 0xfffffe015d040e00 msdosfs_remount_ro() at msdosfs_remount_ro+0x170/frame 0xfffffe015d040e40 taskqueue_run_locked() at taskqueue_run_locked+0x2a2/frame 0xfffffe015d040e= b0 taskqueue_thread_loop() at taskqueue_thread_loop+0xad/frame 0xfffffe015d040= ee0 fork_exit() at fork_exit+0x10a/frame 0xfffffe015d040f30 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe015d040f30 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- Uptime: 11d17h24m24s Dumping 19323 out of 65306 MB: (CTRL-C to abort) (CTRL-C to abort) (CTRL-= C to abort) (CTRL-C to abort) ..1% (CTRL-C to abort) (CTRL-C to abort) (CTRL-= C to abort) (CTRL-C to abort) ..11%..21%..31%..41%..51%..61%..71%..81%..91% 0xffffffff80c4934b in doadump (textdump=3D1) at /usr/src/FreeBSD/sys/kern/kern_shutdown.c:405 405 dump_savectx(); (kgdb) bt #0 0xffffffff80c4934b in doadump (textdump=3D1) at /usr/src/FreeBSD/sys/kern/kern_shutdown.c:405 #1 0xffffffff80c48f9b in kern_reboot (howto=3D260) at /usr/src/FreeBSD/sys/kern/kern_shutdown.c:526 #2 0xffffffff80c49ab2 in vpanic (fmt=3D0xffffffff8119d417 "vfs_remount_ro:= mp %p is not busied", ap=3D0xfffffe015d040d60) at /usr/src/FreeBSD/sys/kern/kern_shutdown.c:970 #3 0xffffffff80c492ee in panic (fmt=3D0xffffffff8119d417 "vfs_remount_ro: = mp %p is not busied") at /usr/src/FreeBSD/sys/kern/kern_shutdown.c:894 #4 0xffffffff80d8df3f in vfs_remount_ro (mp=3D0xfffffe0235211000) at /usr/src/FreeBSD/sys/kern/vfs_mount.c:3007 #5 0xffffffff80a87b80 in msdosfs_remount_ro (arg=3D0xfffff803c9e4c200, pending=3D1) at /usr/src/FreeBSD/sys/fs/msdosfs/msdosfs_vfsops.c:996 #6 0xffffffff80cdc392 in taskqueue_run_locked (queue=3D0xfffff80001d46900)= at /usr/src/FreeBSD/sys/kern/subr_taskqueue.c:512 #7 0xffffffff80cdd74d in taskqueue_thread_loop (arg=3D0xffffffff817d8998 ) at /usr/src/FreeBSD/sys/kern/subr_taskqueue.c:824 #8 0xffffffff80be4d4a in fork_exit (callout=3D0xffffffff80cdd6a0 , arg=3D0xffffffff817d8998 ,=20 frame=3D0xfffffe015d040f40) at /usr/src/FreeBSD/sys/kern/kern_fork.c:11= 60 #9 (kgdb) frame 4 #4 0xffffffff80d8df3f in vfs_remount_ro (mp=3D0xfffffe0235211000) at /usr/src/FreeBSD/sys/kern/vfs_mount.c:3007 3007 KASSERT(mp->mnt_lockref > 0, (kgdb) p *mp $1 =3D {mnt_vfs_ops =3D 0, mnt_kern_flag =3D 16640, mnt_flag =3D 8589938688= , mnt_pcpu =3D 0xfffffe02a939de50, mnt_rootvnode =3D 0x0,=20 mnt_vnodecovered =3D 0xfffff8048f8f3e00, mnt_op =3D 0xffffffff8147d938 , mnt_vfc =3D 0xffffffff8147d8e8 , mnt_mtx= =3D { lock_object =3D {lo_name =3D 0xffffffff8115e318 "struct mount mtx", lo_= flags =3D 16973824, lo_data =3D 0, lo_witness =3D 0x0}, mtx_lock =3D 0},=20 mnt_gen =3D 2, mnt_list =3D {tqe_next =3D 0x0, tqe_prev =3D 0xfffffe02352= 11b68}, mnt_syncer =3D 0xfffff80496430540, mnt_ref =3D 9, mnt_nvnodelist =3D { tqh_first =3D 0xfffff80496430540, tqh_last =3D 0xfffff8048ee0d568}, mnt_nvnodelistsize =3D 7, mnt_writeopcount =3D 1, mnt_opt =3D 0xfffff8070e1= edc10,=20 mnt_optnew =3D 0x0, mnt_stat =3D {f_version =3D 538182936, f_type =3D 50,= f_flags =3D 8589938688, f_bsize =3D 32768, f_iosize =3D 32768, f_blocks =3D 485944,=20 f_bfree =3D 308820, f_bavail =3D 308820, f_files =3D 0, f_ffree =3D 0, = f_syncwrites =3D 9, f_asyncwrites =3D 2, f_syncreads =3D 510, f_asyncreads =3D 313,=20 f_nvnodelistsize =3D 9, f_spare0 =3D 0, f_spare =3D {0, 0, 0, 0, 0, 0, = 0, 0, 0}, f_namemax =3D 255, f_owner =3D 0, f_fsid =3D {val =3D {345, 50}},=20 f_charspare =3D '\000' , f_fstypename =3D "msdosfs\000\000\000\000\000\000\000\000",=20 f_mntfromname =3D "/dev/msdosfs/STEALTHCAM", '\000' , f_mntonname =3D "/stealth", '\000' },=20 mnt_cred =3D 0xfffff80391380000, mnt_data =3D 0xfffff803c9e4c200, mnt_tim= e =3D 0, mnt_iosize_max =3D 1048576, mnt_export =3D 0x0, mnt_label =3D 0x0,=20 mnt_hashseed =3D 3245099513, mnt_lockref =3D 0, mnt_secondary_writes =3D = 0, mnt_secondary_accwrites =3D 0, mnt_susp_owner =3D 0x0, mnt_exjail =3D 0x0,= =20 mnt_gjprovider =3D 0x0, mnt_listmtx =3D {lock_object =3D {lo_name =3D 0xffffffff811d2344 "struct mount vlist mtx", lo_flags =3D 16973824, lo_data= =3D 0,=20 lo_witness =3D 0x0}, mtx_lock =3D 0}, mnt_lazyvnodelist =3D {tqh_firs= t =3D 0x0, tqh_last =3D 0xfffffe0235211a50}, mnt_lazyvnodelistsize =3D 0,=20 mnt_upper_pending =3D 0, mnt_explock =3D {lock_object =3D {lo_name =3D 0xffffffff8123df49 "explock", lo_flags =3D 108199936, lo_data =3D 0,=20 lo_witness =3D 0x0}, lk_lock =3D 1, lk_exslpfail =3D 0, lk_pri =3D 64= , lk_timo =3D 0}, mnt_uppers =3D {tqh_first =3D 0x0, tqh_last =3D 0xfffffe0235211a90},=20 mnt_notify =3D {tqh_first =3D 0x0, tqh_last =3D 0xfffffe0235211aa0}, mnt_taskqueue_link =3D {stqe_next =3D 0x0}, mnt_taskqueue_flags =3D 0,=20 mnt_unmount_retries =3D 0} --=20 You are receiving this mail because: You are the assignee for the bug.=