From nobody Thu Feb 10 07:19:35 2022 X-Original-To: fs@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 9D4A719C5162 for ; Thu, 10 Feb 2022 07:19:35 +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 4JvSml1Bpcz3LpB for ; Thu, 10 Feb 2022 07:19:35 +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 052C81C611 for ; Thu, 10 Feb 2022 07:19:35 +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 21A7JYZU040087 for ; Thu, 10 Feb 2022 07:19:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21A7JY5g040086 for fs@FreeBSD.org; Thu, 10 Feb 2022 07:19:34 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: fs@FreeBSD.org Subject: [Bug 261850] fs/ext2fs: Fix bug in disk data block allocation Date: Thu, 10 Feb 2022 07:19:35 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: chenguang.wang@terapines.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? maintainer-feedback? mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: 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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644477575; 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: in-reply-to:in-reply-to:references:references; bh=6kTnEJvz1V/DAD9BYXHRy0JkyAtOfISAaHA+xQslVh8=; b=wugoDbbraMI/IerxOc0Zx03Znxeo8S8XGOmqY5WPEJYnrJIXbremFpCLqoNvLJxvTwmcl6 WrN/CSVxMmzvpSLqbHpLpIop8eHpxV73TZwCBXpoFORj7XlMOtn+Qb9UwJjyVKhUjuxPpD Q7DUJyovkx3fia2hRiDQpzVbwgGgWvUl7ikqC0q0xNt3dEBaOQgFoIRZyUlZTNkoQN+ulT JOj5Imz4+vpMth8u40jPknw5uHptKiktkb5YP8rRaDHytzK1MQyeOtk0vqy6Z6ELrh4as9 YNZiPC9w7tZfn4yAFXZQ/UzZIFV86rctg7zF/RFlO4W7mJcvz9i6cJJgoAO0Ow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644477575; a=rsa-sha256; cv=none; b=PQHYs1wyTNaJZiNnb0T81nrodPmxnKsOE9Me+RuC9GWcHuVDMcLyrr8xgN2tMmyIGh+Cu8 ATO6vxW2qVIN1d5hu/yNBHRtYr0WATB9D6F+bKPD8/No0NOkjJwUgaov5goguH0N5pJLgg GD+Ak8hQyZyo4EHi1N0rH6Akh4P8u2PQrEEycykG3lVV36ju/q3QX+rMRSQEdKZTLDOZ/a AIImIE0CwgxjFzZviJnzaECxScTBq+LJ2vWBekwRlj+P1zVhSd/aq2L/z2cmmZp6j59qzk g/fWx9TBeJuTs1pwgLdCfrdTF7bNiSR3A4wmAmmK6vSoTZ0wqy9Be17D0c2Y3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261850 --- Comment #3 from chenguang.wang --- Created attachment 231702 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231702&action= =3Dedit fs/ext2fs: Fix bug in disk data block allocation. git diff fs/ext2fs/ext2_alloc.c diff --git a/fs/ext2fs/ext2_alloc.c b/fs/ext2fs/ext2_alloc.c index 4c265a1a8..9e05d02de 100644 --- a/fs/ext2fs/ext2_alloc.c +++ b/fs/ext2fs/ext2_alloc.c @@ -1067,7 +1067,7 @@ ext2_alloccg(struct inode *ip, int cg, daddr_t bpref,= int size) start =3D dtogd(fs, bpref) / NBBY; else start =3D 0; - end =3D howmany(fs->e2fs_fpg, NBBY) - start; + end =3D howmany(fs->e2fs_fpg, NBBY); retry: runlen =3D 0; runstart =3D 0; --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=