Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2017 19:48:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 216964] boot1.efi: can't boot from ZFS on 4kn HDD
Message-ID:  <bug-216964-3630-j8qyjty5CE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216964-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216964-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216964

--- Comment #9 from commit-hook@freebsd.org ---
A commit references this bug:

Author: tsoome
Date: Wed Mar 15 19:48:22 UTC 2017
New revision: 315326
URL: https://svnweb.freebsd.org/changeset/base/315326

Log:
  boot1.efi: can't boot from ZFS on 4kn HDD

  The boot1.efi immediate issue from PR216964 is that we are reading into
  too small buffer, from UEFI spec 2.6:

  The size of the Buffer in bytes. This must be a multiple of the intrinsic
block size of the device.

  The secondary issue is that LBA calculation does not check reminder from
  division.

  This fix does check the provided buffer size and if we read less than
  media sector size or the read offset is not aligned to sector boundary,
  we allocate bounce buffer and perform the read by single sector.

  PR:           216964
  Reported by:  Sergey Kozlov
  Reviewed by:  allanjude, Sergey Kozlov
  Approved by:  allanjude (mentor)
  MFC after:    2 weeks
  Differential Revision:        https://reviews.freebsd.org/D9870

Changes:
  head/sys/boot/efi/boot1/zfs_module.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216964-3630-j8qyjty5CE>