From nobody Tue Jul 12 04:21:05 2022 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 5400483A047 for ; Tue, 12 Jul 2022 04:21:06 +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 4Lhncd5NhPz3mBG for ; Tue, 12 Jul 2022 04:21:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4Lhncd4T7MzVk0 for ; Tue, 12 Jul 2022 04:21:05 +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 26C4L5JJ044816 for ; Tue, 12 Jul 2022 04:21:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26C4L5TV044815 for bugs@FreeBSD.org; Tue, 12 Jul 2022 04:21:05 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 265162] fsck_ffs(8) core dumps with a mangled FS Date: Tue, 12 Jul 2022 04:21:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pho@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 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657599665; 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=dCuhRKIck4eYH1MFQ0whWtoKwBIoIUTKYbouw+rIg0E=; b=RGt2S3VjiW++agVyWHhkm5AqFhoAQWFzdKs6UlRPyWZoyEZFeL+ee5V6ljxkK+bsTHc9Ts DbxlfUlipC75C4cm7tDlWNIB86+H1JtoPs1tCwgvL7FeABjf8W0RbIPajOap7xFjR6V6DO fLKG974Myt6Y+iVWYQB2IcX9IXAA35teWtRVfmBJiV4xY0Ckz8ogQ6p7TzBWDNpcU8ApHV rTgi+8z27QBVeDkIFPiJnAI8xJbU8G66qcel0ZnQ9km3VhViIbzZS5hC6vr2KbeKuThqLM 7hPjtuTcdWd8LL7q9NZR0MMSCf4+IX/nQ9GdJnpQCnyX7+qDOHXYhsljk8g86A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657599665; a=rsa-sha256; cv=none; b=qEsA/3xx5xrW4KaxqJ12EQusCjlC/54VX/3LILOMZiCMXcIEa2Ex7/zffa9oR7hIeunQ6Z BeQHvl/wdQ5vxoja+/SLkxyfiZH3l24peJi9zUFtshshK/PMviGA24M0S3mpq7Erkfxwon 4o32J9U3JS1niMpXCB/o9rV+ui9YB+dgpbA+ZkPz1tI/HQt5vtWbUqrb1UPPwvfR8BKGu4 VmOyEd/fHwwb2tON/aU6KRLdz6SRLhItblKXxRO2dzcEdQc04Gl6+HkEKmgVdOREi6l+O/ lOZU1LZAoC5QbhGRRvYfNY53FuoXNCDW8tP5H+gTdcbc54WN3V+sZcjiIzHAxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265162 Bug ID: 265162 Summary: fsck_ffs(8) core dumps with a mangled FS Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pho@FreeBSD.org Created attachment 235202 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235202&action= =3Dedit Mangled disk image root@mercat1:/usr/src/sbin/fsck_ffs # gdb /sbin/fsck_ffs GNU gdb (GDB) 11.2 [GDB v11.2 for FreeBSD] Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd14.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /sbin/fsck_ffs... (gdb) r -fy /work/diskimage Starting program: /sbin/fsck_ffs -fy /work/diskimage warning: Could not load shared library symbols for [vdso]. Do you need "set solib-search-path" or "set sysroot"? /work/diskimage IS NOT A DISK DEVICE CONTINUE? yes ** /work/diskimage ** Last Mounted on /mnt11 ** Phase 1 - Check Blocks and Sizes Program received signal SIGBUS, Bus error. Object-specific hardware error. 0x0000000001038be6 in pass1 () at /usr/src/sbin/fsck_ffs/pass1.c:90 90 setbmap(i); (gdb) l 85 setbmap(i); 86 } 87 i =3D sblock.fs_csaddr; 88 cgd =3D i + howmany(sblock.fs_cssize, sblock.fs_fsize); 89 for (; i < cgd; i++) 90 setbmap(i); 91=20=20=20=20=20=20 92 /* 93 * Find all allocated blocks. 94 */ (gdb) info loc info =3D 0xa90b69adeeb39d9 idesc =3D {id_fix =3D 9, id_func =3D 0x7fffffffe980, id_bp =3D 0x0, id_dp = =3D 0x10564c0 , id_number =3D 0x801298b10, id_parent =3D 0x7fffffffe7c0,=20 id_lbn =3D 0x8011d522e, id_blkno =3D 0x62cc20f8, id_level =3D 0xbd0d614c, id_numfrags =3D 0xf449bf1f, id_lballoc =3D 0xa90b69adeeb39d9, id_filesize = =3D 0x9,=20 id_entryno =3D 0x10564c0, id_loc =3D 0xffffe9a8, id_dirp =3D 0x7fffffffe7= e0,=20 id_name =3D 0x8011d4ea1 "\203\370Nu\016\211\337L\211\366[A^]\351\234\276\t", id_type =3D 0x3} cgbp =3D 0x4328ad3200000001 cgp =3D 0x23a5 inumber =3D 0x8011d5013 inosused =3D 0x7fffffffe780 mininos =3D 0xc490f4 i =3D 0x200000000000028 cgd =3D 0x200000000000029 cp =3D 0x7fffffffe790 "\370 \314b" c =3D 0x4 rebuildcg =3D 0xfffffbe0 (gdb) p sblock No symbol "sblock" in current context. (gdb) p *sblk.b_un.b_fs $1 =3D {fs_firstfield =3D 0x0, fs_unused_1 =3D 0x0, fs_sblkno =3D 0x8, fs_c= blkno =3D 0x10, fs_iblkno =3D 0x18, fs_dblkno =3D 0x28, fs_old_cgoffset =3D 0x0,=20 fs_old_cgmask =3D 0xffffffff, fs_old_time =3D 0x62cc1e2d, fs_old_size =3D= 0xa00, fs_old_dsize =3D 0x977, fs_ncg =3D 0x4, fs_bsize =3D 0x8000,=20 fs_fsize =3D 0x1000, fs_frag =3D 0x8, fs_minfree =3D 0x8, fs_old_rotdelay= =3D 0x0, fs_old_rps =3D 0x3c, fs_bmask =3D 0xffff8000, fs_fmask =3D 0xfffff000,=20 fs_bshift =3D 0xf, fs_fshift =3D 0xc, fs_maxcontig =3D 0x20, fs_maxbpg = =3D 0x1000, fs_fragshift =3D 0x3, fs_fsbtodb =3D 0x3, fs_sbsize =3D 0x1000, fs_spare1 = =3D { 0x0, 0x4000000}, fs_nindir =3D 0x2000, fs_inopb =3D 0x100, fs_old_nspf = =3D 0x8, fs_optim =3D 0x0, fs_old_npsect =3D 0x1440, fs_old_interleave =3D 0x1,=20 fs_old_trackskew =3D 0x0, fs_id =3D {0x62cc1e24, 0xcc40b1d9}, fs_old_csad= dr =3D 0x28, fs_cssize =3D 0x1000, fs_cgsize =3D 0x1000, fs_spare2 =3D 0x0,=20 fs_old_nsect =3D 0x1440, fs_old_spc =3D 0x1440, fs_old_ncyl =3D 0x4, fs_o= ld_cpg =3D 0x1, fs_ipg =3D 0x200, fs_fpg =3D 0x288, fs_old_cstotal =3D {cs_ndir =3D 0x= 3,=20 cs_nbfree =3D 0xb6, cs_nifree =3D 0x63f, cs_nffree =3D 0x11}, fs_fmod = =3D 0x0, fs_clean =3D 0x1, fs_ronly =3D 0x0, fs_old_flags =3D 0x80,=20 fs_fsmnt =3D "/mnt11", '\000' , fs_volname =3D '\000' = , fs_swuid =3D 0x0, fs_pad =3D 0x0, fs_cgrotor =3D 0x0,=20 fs_ocsp =3D {0x0 }, fs_si =3D 0x80182e000, fs_old_cpc = =3D 0x0, fs_maxbsize =3D 0x8000, fs_unrefs =3D 0x0, fs_providersize =3D 0xa00,=20 fs_metaspace =3D 0x18, fs_sparecon64 =3D {0x0 }, fs_sblockactualloc =3D 0x2000, fs_sblockloc =3D 0x2000, fs_cstotal =3D {cs_= ndir =3D 0x3,=20 cs_nbfree =3D 0xb6, cs_nifree =3D 0x63f, cs_nffree =3D 0x11, cs_numclus= ters =3D 0x0, cs_spare =3D {0x0, 0x0, 0x0}}, fs_time =3D 0x62cc1e2d, fs_size =3D 0xa= 00,=20 fs_dsize =3D 0x977, fs_csaddr =3D 0x200000000000028, fs_pendingblocks =3D= 0x0, fs_pendinginodes =3D 0x0, fs_snapinum =3D {0x0 },=20 fs_avgfilesize =3D 0x4000, fs_avgfpdir =3D 0x40, fs_save_cgsize =3D 0x0, = fs_mtime =3D 0x62cc1e2d, fs_sujfree =3D 0x0, fs_sparecon32 =3D { 0x0 }, fs_ckhash =3D 0x0, fs_metackhash =3D 0x0, fs_f= lags =3D 0x0, fs_contigsumsize =3D 0x10, fs_maxsymlinklen =3D 0x3c,=20 fs_old_inodefmt =3D 0x2, fs_maxfilesize =3D 0x4002001005ffff, fs_qbmask = =3D 0x7fff, fs_qfmask =3D 0xfff, fs_state =3D 0x0, fs_old_postblformat =3D 0x1,=20 fs_old_nrpos =3D 0x1, fs_spare5 =3D {0x0, 0x0}, fs_magic =3D 0x11954} (gdb) quit debugging session is active. Inferior 1 [process 98582] will be killed. Quit anyway? (y or n) y root@mercat1:/usr/src/sbin/fsck_ffs # exit exit This on main-n256654-3c9ad9398fcdf. --=20 You are receiving this mail because: You are the assignee for the bug.=