From nobody Sun May 07 04:51:29 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 4QDX7j5pRgz49fZG for ; Sun, 7 May 2023 04:51: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 4QDX7j3Rp3z3r7c for ; Sun, 7 May 2023 04:51:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683435089; 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=IJjQztXep7dRVKR3RFmS6RdLlcqnLSCZnFTMiarGIEk=; b=sfhTRw6UJmVGF7CQWoBLbbLCp+aqFlHF/jwzLk7OYV/+8bz6mPKBf+A+9Tg4wyyoEgC8xc nnFRf4zcTa/9F6WVI6fj7sgyCd6aU1qyTYt5hVBNdutViQk12UbdB7VGdroVdlaRrUdc6l kL6croICQ33b030qZbrBOkBnJfBLcnEjmcHoifsGH354Xn2qwnBjDQfy/HIuApecfX+Q4b yYT1Shg96EPtM+zyty12B3lLLMXpgK6gQM6XE6RnLu2GCjO9ygAQU1N523v6fiD/VEfHgO 3j7JV9zzgablFOA7otYFV6ibAY/qEX/MJf/HzLRrAMsj4ju08bHB9lMW6FfWdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683435089; a=rsa-sha256; cv=none; b=eFq+CGfEH7nfKITDZkOH631dLMtAvgbhmVo9ADH/r3TZoCa+ehv6o46TxwVPJBik+V7db8 5h357Cx7osuvcgvfCBkzjZwz8gZ4NcgdWQllURZfhNYg5PuqHL+KmNIPIfnpeumQtB2DVO 566DfYlaLUWMlrRlr8nYa3vYHvw0TLJ5bPFslipomaUvH/L9ttFmHn8og10M1qbc87Muax flGKRl4notwCv+F4M5camtunnYrEM8B4BHGO++RK6WGNCL7WGVFEwBD1OzqZVJ5u6hVhuf md070Od4mVEnWXG+UM+zwXZfavpgEp7jZRMEQa4ktZUwCMDrticm6E12SgFesw== 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 4QDX7j2YGhz15Bg for ; Sun, 7 May 2023 04:51:29 +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 3474pTVR040573 for ; Sun, 7 May 2023 04:51:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3474pTpO040572 for bugs@FreeBSD.org; Sun, 7 May 2023 04:51:29 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 271292] kernel panic while dd'ing a USB disk to a ZFS directory Date: Sun, 07 May 2023 04:51:29 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dgilbert@eicat.ca 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 attachments.created 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271292 Bug ID: 271292 Summary: kernel panic while dd'ing a USB disk to a ZFS directory Product: Base System Version: CURRENT Hardware: riscv OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dgilbert@eicat.ca Created attachment 242030 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242030&action= =3Dedit core.txt file for the crash I was using my RISC-V unleashed (running -CURRENT) to dd copy an NVME disk using a USB enclosure. The crash message was unhelpful: Unread portion of the kernel message buffer: panic: buffer modified while frozen! cpuid =3D 0 time =3D 1683224304 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x38 kdb_backtrace() at kdb_backtrace+0x2c vpanic() at vpanic+0x126 panic() at panic+0x2a .LBB9_21() at .LBB9_21+0xc arc_write_done() at arc_write_done+0x4e .LBB84_358() at .LBB84_358+0xcc .LBB41_60() at .LBB41_60+0xbc taskqueue_run_locked() at taskqueue_run_locked+0x90 taskqueue_thread_loop() at taskqueue_thread_loop+0xd4 fork_exit() at fork_exit+0x68 fork_trampoline() at fork_trampoline+0xa KDB: enter: panic With slightly more information coming from the kgdb output from panic() dow= n: #12 0xffffffc002cc363a in arc_cksum_verify (buf=3D) at /usr/src/sys/contrib/openzfs/module/zfs/arc.c:1475 #13 0xffffffc002ccfc48 in arc_write_done (zio=3D0xffffffd0df9839c0) at /usr/src/sys/contrib/openzfs/module/zfs/arc.c:6725 #14 0xffffffc002dfbd16 in zio_done (zio=3D0xffffffd0df9839c0) at /usr/src/sys/contrib/openzfs/module/zfs/zio.c:4893 #15 0xffffffc002df48ae in __zio_execute (zio=3D0xffffffd0df9839c0) at /usr/src/sys/contrib/openzfs/module/zfs/zio.c:2233 #16 zio_execute (zio=3D) at /usr/src/sys/contrib/openzfs/module/zfs/zio.c:2144 #17 0xffffffc000350bc4 in taskqueue_run_locked (queue=3D0xffffffd01539c000) at /usr/src/sys/kern/subr_taskqueue.c:514 #18 0xffffffc000351a2c in taskqueue_thread_loop (arg=3D) at /usr/src/sys/kern/subr_taskqueue.c:826 #19 0xffffffc0002b8f90 in fork_exit ( callout=3D0xffffffc000351954 ,=20 arg=3D0xffffffd00318df40, frame=3D0xffffffc1fa399c40) at /usr/src/sys/kern/kern_fork.c:1102 #20 0xffffffc0005b069e in fork_trampoline () at /usr/src/sys/riscv/riscv/swtch.S:385 Backtrace stopped: frame did not save the PC coredump, kernel and debug symbols will appear here as I upload them: https://v4.nextcloud.towernet.ca/s/NkD6E4Bd7TAQdGH --=20 You are receiving this mail because: You are the assignee for the bug.=