diff --git a/ABOUT-NLS b/ABOUT-NLS
new file mode 100644
index 0000000..b1de1b6
--- /dev/null
+++ b/ABOUT-NLS
@@ -0,0 +1,1282 @@
+1 Notes on the Free Translation Project
+***************************************
+
+Free software is going international! The Free Translation Project is
+a way to get maintainers of free software, translators, and users all
+together, so that free software will gradually become able to speak many
+languages. A few packages already provide translations for their
+messages.
+
+ If you found this `ABOUT-NLS' file inside a distribution, you may
+assume that the distributed package does use GNU `gettext' internally,
+itself available at your nearest GNU archive site. But you do _not_
+need to install GNU `gettext' prior to configuring, installing or using
+this package with messages translated.
+
+ Installers will find here some useful hints. These notes also
+explain how users should proceed for getting the programs to use the
+available translations. They tell how people wanting to contribute and
+work on translations can contact the appropriate team.
+
+1.1 INSTALL Matters
+===================
+
+Some packages are "localizable" when properly installed; the programs
+they contain can be made to speak your own native language. Most such
+packages use GNU `gettext'. Other packages have their own ways to
+internationalization, predating GNU `gettext'.
+
+ By default, this package will be installed to allow translation of
+messages. It will automatically detect whether the system already
+provides the GNU `gettext' functions. Installers may use special
+options at configuration time for changing the default behaviour. The
+command:
+
+ ./configure --disable-nls
+
+will _totally_ disable translation of messages.
+
+ When you already have GNU `gettext' installed on your system and run
+configure without an option for your new package, `configure' will
+probably detect the previously built and installed `libintl' library
+and will decide to use it. If not, you may have to to use the
+`--with-libintl-prefix' option to tell `configure' where to look for it.
+
+ Internationalized packages usually have many `po/LL.po' files, where
+LL gives an ISO 639 two-letter code identifying the language. Unless
+translations have been forbidden at `configure' time by using the
+`--disable-nls' switch, all available translations are installed
+together with the package. However, the environment variable `LINGUAS'
+may be set, prior to configuration, to limit the installed set.
+`LINGUAS' should then contain a space separated list of two-letter
+codes, stating which languages are allowed.
+
+1.2 Using This Package
+======================
+
+As a user, if your language has been installed for this package, you
+only have to set the `LANG' environment variable to the appropriate
+`LL_CC' combination. If you happen to have the `LC_ALL' or some other
+`LC_xxx' environment variables set, you should unset them before
+setting `LANG', otherwise the setting of `LANG' will not have the
+desired effect. Here `LL' is an ISO 639 two-letter language code, and
+`CC' is an ISO 3166 two-letter country code. For example, let's
+suppose that you speak German and live in Germany. At the shell
+prompt, merely execute `setenv LANG de_DE' (in `csh'),
+`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash').
+This can be done from your `.login' or `.profile' file, once and for
+all.
+
+ You might think that the country code specification is redundant.
+But in fact, some languages have dialects in different countries. For
+example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The
+country code serves to distinguish the dialects.
+
+ The locale naming convention of `LL_CC', with `LL' denoting the
+language and `CC' denoting the country, is the one use on systems based
+on GNU libc. On other systems, some variations of this scheme are
+used, such as `LL' or `LL_CC.ENCODING'. You can get the list of
+locales supported by your system for your language by running the
+command `locale -a | grep '^LL''.
+
+ Not all programs have translations for all languages. By default, an
+English message is shown in place of a nonexistent translation. If you
+understand other languages, you can set up a priority list of languages.
+This is done through a different environment variable, called
+`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG'
+for the purpose of message handling, but you still need to have `LANG'
+set to the primary language; this is required by other parts of the
+system libraries. For example, some Swedish users who would rather
+read translations in German than English for when Swedish is not
+available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'.
+
+ Special advice for Norwegian users: The language code for Norwegian
+bokma*l changed from `no' to `nb' recently (in 2003). During the
+transition period, while some message catalogs for this language are
+installed under `nb' and some older ones under `no', it's recommended
+for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and
+older translations are used.
+
+ In the `LANGUAGE' environment variable, but not in the `LANG'
+environment variable, `LL_CC' combinations can be abbreviated as `LL'
+to denote the language's main dialect. For example, `de' is equivalent
+to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT'
+(Portuguese as spoken in Portugal) in this context.
+
+1.3 Translating Teams
+=====================
+
+For the Free Translation Project to be a success, we need interested
+people who like their own language and write it well, and who are also
+able to synergize with other translators speaking the same language.
+Each translation team has its own mailing list. The up-to-date list of
+teams can be found at the Free Translation Project's homepage,
+`http://translationproject.org/', in the "Teams" area.
+
+ If you'd like to volunteer to _work_ at translating messages, you
+should become a member of the translating team for your own language.
+The subscribing address is _not_ the same as the list itself, it has
+`-request' appended. For example, speakers of Swedish can send a
+message to `sv-request@li.org', having this message body:
+
+ subscribe
+
+ Keep in mind that team members are expected to participate
+_actively_ in translations, or at solving translational difficulties,
+rather than merely lurking around. If your team does not exist yet and
+you want to start one, or if you are unsure about what to do or how to
+get started, please write to `coordinator@translationproject.org' to
+reach the coordinator for all translator teams.
+
+ The English team is special. It works at improving and uniformizing
+the terminology in use. Proven linguistic skills are praised more than
+programming skills, here.
+
+1.4 Available Packages
+======================
+
+Languages are not equally supported in all packages. The following
+matrix shows the current state of internationalization, as of June
+2010. The matrix shows, in regard of each package, for which languages
+PO files have been submitted to translation coordination, with a
+translation percentage of at least 50%.
+
+ Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca
+ +--------------------------------------------------+
+ a2ps | [] [] |
+ aegis | |
+ ant-phone | |
+ anubis | |
+ aspell | [] [] |
+ bash | |
+ bfd | |
+ bibshelf | [] |
+ binutils | |
+ bison | |
+ bison-runtime | [] |
+ bluez-pin | [] [] |
+ bombono-dvd | |
+ buzztard | |
+ cflow | |
+ clisp | |
+ coreutils | [] [] |
+ cpio | |
+ cppi | |
+ cpplib | [] |
+ cryptsetup | |
+ dfarc | |
+ dialog | [] [] |
+ dico | |
+ diffutils | [] |
+ dink | |
+ doodle | |
+ e2fsprogs | [] |
+ enscript | [] |
+ exif | |
+ fetchmail | [] |
+ findutils | [] |
+ flex | [] |
+ freedink | |
+ gas | |
+ gawk | [] [] |
+ gcal | [] |
+ gcc | |
+ gettext-examples | [] [] [] [] |
+ gettext-runtime | [] [] |
+ gettext-tools | [] [] |
+ gip | [] |
+ gjay | |
+ gliv | [] |
+ glunarclock | [] [] |
+ gnubiff | |
+ gnucash | [] |
+ gnuedu | |
+ gnulib | |
+ gnunet | |
+ gnunet-gtk | |
+ gnutls | |
+ gold | |
+ gpe-aerial | |
+ gpe-beam | |
+ gpe-bluetooth | |
+ gpe-calendar | |
+ gpe-clock | [] |
+ gpe-conf | |
+ gpe-contacts | |
+ gpe-edit | |
+ gpe-filemanager | |
+ gpe-go | |
+ gpe-login | |
+ gpe-ownerinfo | [] |
+ gpe-package | |
+ gpe-sketchbook | |
+ gpe-su | [] |
+ gpe-taskmanager | [] |
+ gpe-timesheet | [] |
+ gpe-today | [] |
+ gpe-todo | |
+ gphoto2 | |
+ gprof | [] |
+ gpsdrive | |
+ gramadoir | |
+ grep | |
+ grub | [] [] |
+ gsasl | |
+ gss | |
+ gst-plugins-bad | [] |
+ gst-plugins-base | [] |
+ gst-plugins-good | [] |
+ gst-plugins-ugly | [] |
+ gstreamer | [] [] [] |
+ gtick | |
+ gtkam | [] |
+ gtkorphan | [] |
+ gtkspell | [] [] [] |
+ gutenprint | |
+ hello | [] |
+ help2man | |
+ hylafax | |
+ idutils | |
+ indent | [] [] |
+ iso_15924 | |
+ iso_3166 | [] [] [] [] [] [] [] |
+ iso_3166_2 | |
+ iso_4217 | |
+ iso_639 | [] [] [] [] |
+ iso_639_3 | |
+ jwhois | |
+ kbd | |
+ keytouch | [] |
+ keytouch-editor | |
+ keytouch-keyboa... | [] |
+ klavaro | [] |
+ latrine | |
+ ld | [] |
+ leafpad | [] [] |
+ libc | [] [] |
+ libexif | () |
+ libextractor | |
+ libgnutls | |
+ libgpewidget | |
+ libgpg-error | |
+ libgphoto2 | |
+ libgphoto2_port | |
+ libgsasl | |
+ libiconv | [] |
+ libidn | |
+ lifelines | |
+ liferea | [] [] |
+ lilypond | |
+ linkdr | [] |
+ lordsawar | |
+ lprng | |
+ lynx | [] |
+ m4 | |
+ mailfromd | |
+ mailutils | |
+ make | |
+ man-db | |
+ man-db-manpages | |
+ minicom | |
+ mkisofs | |
+ myserver | |
+ nano | [] [] |
+ opcodes | |
+ parted | |
+ pies | |
+ popt | |
+ psmisc | |
+ pspp | [] |
+ pwdutils | |
+ radius | [] |
+ recode | [] [] |
+ rosegarden | |
+ rpm | |
+ rush | |
+ sarg | |
+ screem | |
+ scrollkeeper | [] [] [] |
+ sed | [] [] |
+ sharutils | [] [] |
+ shishi | |
+ skencil | |
+ solfege | |
+ solfege-manual | |
+ soundtracker | |
+ sp | |
+ sysstat | |
+ tar | [] |
+ texinfo | |
+ tin | |
+ unicode-han-tra... | |
+ unicode-transla... | |
+ util-linux-ng | [] |
+ vice | |
+ vmm | |
+ vorbis-tools | |
+ wastesedge | |
+ wdiff | |
+ wget | [] [] |
+ wyslij-po | |
+ xchat | [] [] [] [] |
+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] |
+ xkeyboard-config | [] [] |
+ +--------------------------------------------------+
+ af am an ar as ast az be be@latin bg bn_IN bs ca
+ 6 0 1 2 3 19 1 10 3 28 3 1 38
+
+ crh cs da de el en en_GB en_ZA eo es et eu fa
+ +-------------------------------------------------+
+ a2ps | [] [] [] [] [] [] [] |
+ aegis | [] [] [] |
+ ant-phone | [] () |
+ anubis | [] [] |
+ aspell | [] [] [] [] [] |
+ bash | [] [] [] |
+ bfd | [] |
+ bibshelf | [] [] [] |
+ binutils | [] |
+ bison | [] [] |
+ bison-runtime | [] [] [] [] |
+ bluez-pin | [] [] [] [] [] [] |
+ bombono-dvd | [] |
+ buzztard | [] [] [] |
+ cflow | [] [] |
+ clisp | [] [] [] [] |
+ coreutils | [] [] [] [] |
+ cpio | |
+ cppi | |
+ cpplib | [] [] [] |
+ cryptsetup | [] |
+ dfarc | [] [] [] |
+ dialog | [] [] [] [] [] |
+ dico | |
+ diffutils | [] [] [] [] [] [] |
+ dink | [] [] [] |
+ doodle | [] |
+ e2fsprogs | [] [] [] |
+ enscript | [] [] [] |
+ exif | () [] [] |
+ fetchmail | [] [] () [] [] [] |
+ findutils | [] [] [] |
+ flex | [] [] |
+ freedink | [] [] [] |
+ gas | [] |
+ gawk | [] [] [] |
+ gcal | [] |
+ gcc | [] [] |
+ gettext-examples | [] [] [] [] |
+ gettext-runtime | [] [] [] [] |
+ gettext-tools | [] [] [] |
+ gip | [] [] [] [] |
+ gjay | [] |
+ gliv | [] [] [] |
+ glunarclock | [] [] |
+ gnubiff | () |
+ gnucash | [] () () () () |
+ gnuedu | [] [] |
+ gnulib | [] [] |
+ gnunet | |
+ gnunet-gtk | [] |
+ gnutls | [] [] |
+ gold | [] |
+ gpe-aerial | [] [] [] [] |
+ gpe-beam | [] [] [] [] |
+ gpe-bluetooth | [] [] |
+ gpe-calendar | [] |
+ gpe-clock | [] [] [] [] |
+ gpe-conf | [] [] [] |
+ gpe-contacts | [] [] [] |
+ gpe-edit | [] [] |
+ gpe-filemanager | [] [] [] |
+ gpe-go | [] [] [] [] |
+ gpe-login | [] [] |
+ gpe-ownerinfo | [] [] [] [] |
+ gpe-package | [] [] [] |
+ gpe-sketchbook | [] [] [] [] |
+ gpe-su | [] [] [] [] |
+ gpe-taskmanager | [] [] [] [] |
+ gpe-timesheet | [] [] [] [] |
+ gpe-today | [] [] [] [] |
+ gpe-todo | [] [] [] |
+ gphoto2 | [] [] () [] [] [] |
+ gprof | [] [] [] |
+ gpsdrive | [] [] [] |
+ gramadoir | [] [] [] |
+ grep | [] |
+ grub | [] [] |
+ gsasl | [] |
+ gss | |
+ gst-plugins-bad | [] [] [] [] [] |
+ gst-plugins-base | [] [] [] [] [] |
+ gst-plugins-good | [] [] [] [] [] [] |
+ gst-plugins-ugly | [] [] [] [] [] [] |
+ gstreamer | [] [] [] [] [] |
+ gtick | [] () [] |
+ gtkam | [] [] () [] [] |
+ gtkorphan | [] [] [] [] |
+ gtkspell | [] [] [] [] [] [] [] |
+ gutenprint | [] [] [] |
+ hello | [] [] [] [] |
+ help2man | [] |
+ hylafax | [] [] |
+ idutils | [] [] |
+ indent | [] [] [] [] [] [] [] |
+ iso_15924 | [] () [] [] |
+ iso_3166 | [] [] [] [] () [] [] [] () |
+ iso_3166_2 | () |
+ iso_4217 | [] [] [] () [] [] |
+ iso_639 | [] [] [] [] () [] [] |
+ iso_639_3 | [] |
+ jwhois | [] |
+ kbd | [] [] [] [] [] |
+ keytouch | [] [] |
+ keytouch-editor | [] [] |
+ keytouch-keyboa... | [] |
+ klavaro | [] [] [] [] |
+ latrine | [] () |
+ ld | [] [] |
+ leafpad | [] [] [] [] [] [] |
+ libc | [] [] [] [] |
+ libexif | [] [] () |
+ libextractor | |
+ libgnutls | [] |
+ libgpewidget | [] [] |
+ libgpg-error | [] [] |
+ libgphoto2 | [] () |
+ libgphoto2_port | [] () [] |
+ libgsasl | |
+ libiconv | [] [] [] [] [] |
+ libidn | [] [] [] |
+ lifelines | [] () |
+ liferea | [] [] [] [] [] |
+ lilypond | [] [] [] |
+ linkdr | [] [] [] |
+ lordsawar | [] |
+ lprng | |
+ lynx | [] [] [] [] |
+ m4 | [] [] [] [] |
+ mailfromd | |
+ mailutils | [] |
+ make | [] [] [] |
+ man-db | |
+ man-db-manpages | |
+ minicom | [] [] [] [] |
+ mkisofs | |
+ myserver | |
+ nano | [] [] [] |
+ opcodes | [] [] |
+ parted | [] [] |
+ pies | |
+ popt | [] [] [] [] [] |
+ psmisc | [] [] [] |
+ pspp | [] |
+ pwdutils | [] |
+ radius | [] |
+ recode | [] [] [] [] [] [] |
+ rosegarden | () () () |
+ rpm | [] [] [] |
+ rush | |
+ sarg | |
+ screem | |
+ scrollkeeper | [] [] [] [] [] |
+ sed | [] [] [] [] [] [] |
+ sharutils | [] [] [] [] |
+ shishi | |
+ skencil | [] () [] |
+ solfege | [] [] [] |
+ solfege-manual | [] [] |
+ soundtracker | [] [] [] |
+ sp | [] |
+ sysstat | [] [] [] |
+ tar | [] [] [] [] |
+ texinfo | [] [] [] |
+ tin | [] [] |
+ unicode-han-tra... | |
+ unicode-transla... | |
+ util-linux-ng | [] [] [] [] |
+ vice | () () |
+ vmm | [] |
+ vorbis-tools | [] [] |
+ wastesedge | [] |
+ wdiff | [] [] |
+ wget | [] [] [] |
+ wyslij-po | |
+ xchat | [] [] [] [] [] |
+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] |
+ xkeyboard-config | [] [] [] [] [] [] |
+ +-------------------------------------------------+
+ crh cs da de el en en_GB en_ZA eo es et eu fa
+ 5 64 105 117 18 1 8 0 28 89 18 19 0
+
+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn
+ +----------------------------------------------------+
+ a2ps | [] [] [] [] |
+ aegis | [] [] |
+ ant-phone | [] [] |
+ anubis | [] [] [] [] |
+ aspell | [] [] [] [] |
+ bash | [] [] [] [] |
+ bfd | [] [] [] |
+ bibshelf | [] [] [] [] [] |
+ binutils | [] [] [] |
+ bison | [] [] [] [] |
+ bison-runtime | [] [] [] [] [] [] |
+ bluez-pin | [] [] [] [] [] [] [] [] |
+ bombono-dvd | [] |
+ buzztard | [] |
+ cflow | [] [] [] |
+ clisp | [] |
+ coreutils | [] [] [] [] [] |
+ cpio | [] [] [] [] |
+ cppi | [] [] |
+ cpplib | [] [] [] |
+ cryptsetup | [] [] [] |
+ dfarc | [] [] [] |
+ dialog | [] [] [] [] [] [] [] |
+ dico | |
+ diffutils | [] [] [] [] [] [] [] [] [] |
+ dink | [] |
+ doodle | [] [] |
+ e2fsprogs | [] [] |
+ enscript | [] [] [] [] |
+ exif | [] [] [] [] [] [] |
+ fetchmail | [] [] [] [] |
+ findutils | [] [] [] [] [] [] |
+ flex | [] [] [] |
+ freedink | [] [] [] |
+ gas | [] [] |
+ gawk | [] [] [] [] () [] |
+ gcal | [] |
+ gcc | [] |
+ gettext-examples | [] [] [] [] [] [] [] |
+ gettext-runtime | [] [] [] [] [] [] |
+ gettext-tools | [] [] [] [] |
+ gip | [] [] [] [] [] [] |
+ gjay | [] |
+ gliv | [] () |
+ glunarclock | [] [] [] [] |
+ gnubiff | () [] () |
+ gnucash | () () () () () [] |
+ gnuedu | [] [] |
+ gnulib | [] [] [] [] [] [] |
+ gnunet | |
+ gnunet-gtk | [] |
+ gnutls | [] [] |
+ gold | [] [] |
+ gpe-aerial | [] [] [] |
+ gpe-beam | [] [] [] [] |
+ gpe-bluetooth | [] [] [] [] |
+ gpe-calendar | [] [] |
+ gpe-clock | [] [] [] [] [] |
+ gpe-conf | [] [] [] [] |
+ gpe-contacts | [] [] [] [] |
+ gpe-edit | [] [] [] |
+ gpe-filemanager | [] [] [] [] |
+ gpe-go | [] [] [] [] [] |
+ gpe-login | [] [] [] |
+ gpe-ownerinfo | [] [] [] [] [] |
+ gpe-package | [] [] [] |
+ gpe-sketchbook | [] [] [] [] |
+ gpe-su | [] [] [] [] [] [] |
+ gpe-taskmanager | [] [] [] [] [] |
+ gpe-timesheet | [] [] [] [] [] |
+ gpe-today | [] [] [] [] [] [] [] |
+ gpe-todo | [] [] [] |
+ gphoto2 | [] [] [] [] [] [] |
+ gprof | [] [] [] [] |
+ gpsdrive | [] [] [] |
+ gramadoir | [] [] [] |
+ grep | [] [] |
+ grub | [] [] [] [] |
+ gsasl | [] [] [] [] [] |
+ gss | [] [] [] [] [] |
+ gst-plugins-bad | [] [] [] [] [] [] |
+ gst-plugins-base | [] [] [] [] [] [] |
+ gst-plugins-good | [] [] [] [] [] [] |
+ gst-plugins-ugly | [] [] [] [] [] [] |
+ gstreamer | [] [] [] [] [] |
+ gtick | [] [] [] [] [] |
+ gtkam | [] [] [] [] [] |
+ gtkorphan | [] [] [] |
+ gtkspell | [] [] [] [] [] [] [] [] [] |
+ gutenprint | [] [] [] [] |
+ hello | [] [] [] |
+ help2man | [] [] |
+ hylafax | [] |
+ idutils | [] [] [] [] [] [] |
+ indent | [] [] [] [] [] [] [] [] |
+ iso_15924 | [] () [] [] |
+ iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] |
+ iso_3166_2 | () [] [] [] |
+ iso_4217 | [] () [] [] [] [] |
+ iso_639 | [] () [] [] [] [] [] [] [] |
+ iso_639_3 | () [] [] |
+ jwhois | [] [] [] [] [] |
+ kbd | [] [] |
+ keytouch | [] [] [] [] [] [] |
+ keytouch-editor | [] [] [] [] [] |
+ keytouch-keyboa... | [] [] [] [] [] |
+ klavaro | [] [] |
+ latrine | [] [] [] |
+ ld | [] [] [] [] |
+ leafpad | [] [] [] [] [] [] [] () |
+ libc | [] [] [] [] [] |
+ libexif | [] |
+ libextractor | |
+ libgnutls | [] [] |
+ libgpewidget | [] [] [] [] |
+ libgpg-error | [] [] |
+ libgphoto2 | [] [] [] |
+ libgphoto2_port | [] [] [] |
+ libgsasl | [] [] [] [] [] |
+ libiconv | [] [] [] [] [] [] |
+ libidn | [] [] [] [] |
+ lifelines | () |
+ liferea | [] [] [] [] |
+ lilypond | [] [] |
+ linkdr | [] [] [] [] [] |
+ lordsawar | |
+ lprng | [] |
+ lynx | [] [] [] [] [] |
+ m4 | [] [] [] [] [] [] |
+ mailfromd | |
+ mailutils | [] [] |
+ make | [] [] [] [] [] [] [] [] [] |
+ man-db | [] [] |
+ man-db-manpages | [] |
+ minicom | [] [] [] [] [] |
+ mkisofs | [] [] [] [] |
+ myserver | |
+ nano | [] [] [] [] [] [] |
+ opcodes | [] [] [] [] |
+ parted | [] [] [] [] |
+ pies | |
+ popt | [] [] [] [] [] [] [] [] [] |
+ psmisc | [] [] [] |
+ pspp | |
+ pwdutils | [] [] |
+ radius | [] [] |
+ recode | [] [] [] [] [] [] [] [] |
+ rosegarden | () () () () () |
+ rpm | [] [] |
+ rush | |
+ sarg | [] |
+ screem | [] [] |
+ scrollkeeper | [] [] [] [] |
+ sed | [] [] [] [] [] [] [] [] |
+ sharutils | [] [] [] [] [] [] [] |
+ shishi | [] |
+ skencil | [] |
+ solfege | [] [] [] [] |
+ solfege-manual | [] [] |
+ soundtracker | [] [] |
+ sp | [] () |
+ sysstat | [] [] [] [] [] |
+ tar | [] [] [] [] [] [] [] |
+ texinfo | [] [] [] [] |
+ tin | [] |
+ unicode-han-tra... | |
+ unicode-transla... | [] [] |
+ util-linux-ng | [] [] [] [] [] [] |
+ vice | () () () |
+ vmm | [] |
+ vorbis-tools | [] |
+ wastesedge | () () |
+ wdiff | [] |
+ wget | [] [] [] [] [] [] [] [] |
+ wyslij-po | [] [] [] |
+ xchat | [] [] [] [] [] [] [] [] [] |
+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] |
+ xkeyboard-config | [] [] [] [] [] |
+ +----------------------------------------------------+
+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn
+ 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4
+
+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne
+ +-----------------------------------------------+
+ a2ps | [] |
+ aegis | |
+ ant-phone | |
+ anubis | [] [] |
+ aspell | [] |
+ bash | |
+ bfd | |
+ bibshelf | [] [] |
+ binutils | |
+ bison | [] |
+ bison-runtime | [] [] [] [] [] |
+ bluez-pin | [] [] [] [] [] |
+ bombono-dvd | |
+ buzztard | |
+ cflow | |
+ clisp | |
+ coreutils | [] |
+ cpio | |
+ cppi | |
+ cpplib | |
+ cryptsetup | |
+ dfarc | [] |
+ dialog | [] [] [] [] [] |
+ dico | |
+ diffutils | [] [] |
+ dink | |
+ doodle | |
+ e2fsprogs | |
+ enscript | |
+ exif | [] |
+ fetchmail | |
+ findutils | |
+ flex | |
+ freedink | [] |
+ gas | |
+ gawk | |
+ gcal | |
+ gcc | |
+ gettext-examples | [] [] [] [] |
+ gettext-runtime | [] |
+ gettext-tools | [] |
+ gip | [] [] |
+ gjay | |
+ gliv | |
+ glunarclock | [] |
+ gnubiff | |
+ gnucash | () () () () |
+ gnuedu | |
+ gnulib | |
+ gnunet | |
+ gnunet-gtk | |
+ gnutls | [] |
+ gold | |
+ gpe-aerial | [] |
+ gpe-beam | [] |
+ gpe-bluetooth | [] [] |
+ gpe-calendar | [] |
+ gpe-clock | [] [] [] [] [] |
+ gpe-conf | [] [] |
+ gpe-contacts | [] [] |
+ gpe-edit | [] |
+ gpe-filemanager | [] [] |
+ gpe-go | [] [] [] |
+ gpe-login | [] |
+ gpe-ownerinfo | [] [] |
+ gpe-package | [] [] |
+ gpe-sketchbook | [] [] |
+ gpe-su | [] [] [] [] [] [] |
+ gpe-taskmanager | [] [] [] [] [] [] |
+ gpe-timesheet | [] [] |
+ gpe-today | [] [] [] [] |
+ gpe-todo | [] [] |
+ gphoto2 | |
+ gprof | [] |
+ gpsdrive | |
+ gramadoir | |
+ grep | |
+ grub | |
+ gsasl | |
+ gss | |
+ gst-plugins-bad | [] [] [] [] |
+ gst-plugins-base | [] [] |
+ gst-plugins-good | [] [] |
+ gst-plugins-ugly | [] [] [] [] [] |
+ gstreamer | |
+ gtick | |
+ gtkam | [] |
+ gtkorphan | [] [] |
+ gtkspell | [] [] [] [] [] [] [] |
+ gutenprint | |
+ hello | [] [] [] |
+ help2man | |
+ hylafax | |
+ idutils | |
+ indent | |
+ iso_15924 | [] [] |
+ iso_3166 | [] [] () [] [] [] [] [] |
+ iso_3166_2 | |
+ iso_4217 | [] [] |
+ iso_639 | [] [] |
+ iso_639_3 | [] |
+ jwhois | [] |
+ kbd | |
+ keytouch | [] |
+ keytouch-editor | [] |
+ keytouch-keyboa... | [] |
+ klavaro | [] |
+ latrine | [] |
+ ld | |
+ leafpad | [] [] [] |
+ libc | [] |
+ libexif | |
+ libextractor | |
+ libgnutls | [] |
+ libgpewidget | [] [] |
+ libgpg-error | |
+ libgphoto2 | |
+ libgphoto2_port | |
+ libgsasl | |
+ libiconv | |
+ libidn | |
+ lifelines | |
+ liferea | |
+ lilypond | |
+ linkdr | |
+ lordsawar | |
+ lprng | |
+ lynx | |
+ m4 | |
+ mailfromd | |
+ mailutils | |
+ make | [] |
+ man-db | |
+ man-db-manpages | |
+ minicom | [] |
+ mkisofs | |
+ myserver | |
+ nano | [] [] |
+ opcodes | |
+ parted | |
+ pies | |
+ popt | [] [] [] |
+ psmisc | |
+ pspp | |
+ pwdutils | |
+ radius | |
+ recode | |
+ rosegarden | |
+ rpm | |
+ rush | |
+ sarg | |
+ screem | |
+ scrollkeeper | [] [] |
+ sed | |
+ sharutils | |
+ shishi | |
+ skencil | |
+ solfege | [] |
+ solfege-manual | |
+ soundtracker | |
+ sp | |
+ sysstat | [] |
+ tar | [] |
+ texinfo | [] |
+ tin | |
+ unicode-han-tra... | |
+ unicode-transla... | |
+ util-linux-ng | |
+ vice | |
+ vmm | |
+ vorbis-tools | |
+ wastesedge | |
+ wdiff | |
+ wget | [] |
+ wyslij-po | |
+ xchat | [] [] [] |
+ xdg-user-dirs | [] [] [] [] [] [] [] [] |
+ xkeyboard-config | [] [] [] |
+ +-----------------------------------------------+
+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne
+ 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1
+
+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr
+ +---------------------------------------------------+
+ a2ps | [] [] [] [] [] [] [] [] |
+ aegis | [] [] [] |
+ ant-phone | [] [] |
+ anubis | [] [] [] |
+ aspell | [] [] [] [] [] |
+ bash | [] [] |
+ bfd | [] |
+ bibshelf | [] [] |
+ binutils | [] [] |
+ bison | [] [] [] |
+ bison-runtime | [] [] [] [] [] [] [] |
+ bluez-pin | [] [] [] [] [] [] [] [] |
+ bombono-dvd | [] () |
+ buzztard | [] [] |
+ cflow | [] |
+ clisp | [] [] |
+ coreutils | [] [] [] [] [] [] |
+ cpio | [] [] [] |
+ cppi | [] |
+ cpplib | [] |
+ cryptsetup | [] |
+ dfarc | [] |
+ dialog | [] [] [] [] |
+ dico | [] |
+ diffutils | [] [] [] [] [] [] |
+ dink | () |
+ doodle | [] [] |
+ e2fsprogs | [] [] |
+ enscript | [] [] [] [] [] |
+ exif | [] [] [] () [] |
+ fetchmail | [] [] [] [] |
+ findutils | [] [] [] [] [] |
+ flex | [] [] [] [] [] |
+ freedink | [] [] |
+ gas | |
+ gawk | [] [] [] [] |
+ gcal | |
+ gcc | [] |
+ gettext-examples | [] [] [] [] [] [] [] [] |
+ gettext-runtime | [] [] [] [] [] [] [] [] [] |
+ gettext-tools | [] [] [] [] [] [] |
+ gip | [] [] [] [] [] |
+ gjay | |
+ gliv | [] [] [] [] [] [] |
+ glunarclock | [] [] [] [] [] |
+ gnubiff | [] () |
+ gnucash | [] () () () |
+ gnuedu | [] |
+ gnulib | [] [] [] [] |
+ gnunet | |
+ gnunet-gtk | |
+ gnutls | [] [] |
+ gold | |
+ gpe-aerial | [] [] [] [] [] [] [] |
+ gpe-beam | [] [] [] [] [] [] [] |
+ gpe-bluetooth | [] [] |
+ gpe-calendar | [] [] [] [] |
+ gpe-clock | [] [] [] [] [] [] [] [] |
+ gpe-conf | [] [] [] [] [] [] [] |
+ gpe-contacts | [] [] [] [] [] |
+ gpe-edit | [] [] [] |
+ gpe-filemanager | [] [] [] |
+ gpe-go | [] [] [] [] [] [] [] [] |
+ gpe-login | [] [] |
+ gpe-ownerinfo | [] [] [] [] [] [] [] [] |
+ gpe-package | [] [] |
+ gpe-sketchbook | [] [] [] [] [] [] [] |
+ gpe-su | [] [] [] [] [] [] [] [] |
+ gpe-taskmanager | [] [] [] [] [] [] [] [] |
+ gpe-timesheet | [] [] [] [] [] [] [] [] |
+ gpe-today | [] [] [] [] [] [] [] [] |
+ gpe-todo | [] [] [] [] [] |
+ gphoto2 | [] [] [] [] [] [] [] [] |
+ gprof | [] [] [] |
+ gpsdrive | [] [] |
+ gramadoir | [] [] |
+ grep | [] [] [] [] |
+ grub | [] [] [] |
+ gsasl | [] [] [] [] |
+ gss | [] [] [] |
+ gst-plugins-bad | [] [] [] [] [] [] |
+ gst-plugins-base | [] [] [] [] [] |
+ gst-plugins-good | [] [] [] [] [] |
+ gst-plugins-ugly | [] [] [] [] [] [] |
+ gstreamer | [] [] [] [] [] |
+ gtick | [] [] [] |
+ gtkam | [] [] [] [] [] [] |
+ gtkorphan | [] |
+ gtkspell | [] [] [] [] [] [] [] [] [] [] |
+ gutenprint | [] [] |
+ hello | [] [] [] [] |
+ help2man | [] [] |
+ hylafax | [] |
+ idutils | [] [] [] [] [] |
+ indent | [] [] [] [] [] [] [] |
+ iso_15924 | [] [] [] [] |
+ iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] |
+ iso_3166_2 | [] [] [] |
+ iso_4217 | [] [] [] [] [] [] [] [] |
+ iso_639 | [] [] [] [] [] [] [] [] [] |
+ iso_639_3 | [] [] |
+ jwhois | [] [] [] [] |
+ kbd | [] [] [] |
+ keytouch | [] [] [] |
+ keytouch-editor | [] [] [] |
+ keytouch-keyboa... | [] [] [] |
+ klavaro | [] [] |
+ latrine | [] [] |
+ ld | |
+ leafpad | [] [] [] [] [] [] [] [] [] |
+ libc | [] [] [] [] |
+ libexif | [] [] () [] |
+ libextractor | |
+ libgnutls | [] [] |
+ libgpewidget | [] [] [] |
+ libgpg-error | [] [] |
+ libgphoto2 | [] [] |
+ libgphoto2_port | [] [] [] [] [] |
+ libgsasl | [] [] [] [] [] |
+ libiconv | [] [] [] [] [] |
+ libidn | [] [] |
+ lifelines | [] [] |
+ liferea | [] [] [] [] [] () () [] |
+ lilypond | [] |
+ linkdr | [] [] [] |
+ lordsawar | |
+ lprng | [] |
+ lynx | [] [] [] |
+ m4 | [] [] [] [] [] |
+ mailfromd | [] |
+ mailutils | [] |
+ make | [] [] [] [] |
+ man-db | [] [] [] |
+ man-db-manpages | [] [] [] |
+ minicom | [] [] [] [] |
+ mkisofs | [] [] [] |
+ myserver | |
+ nano | [] [] [] [] |
+ opcodes | [] [] |
+ parted | [] [] [] [] |
+ pies | [] |
+ popt | [] [] [] [] |
+ psmisc | [] [] [] |
+ pspp | [] [] |
+ pwdutils | [] |
+ radius | [] [] [] |
+ recode | [] [] [] [] [] [] [] [] |
+ rosegarden | () () |
+ rpm | [] [] [] |
+ rush | [] [] |
+ sarg | |
+ screem | |
+ scrollkeeper | [] [] [] [] [] [] [] [] |
+ sed | [] [] [] [] [] [] [] [] [] |
+ sharutils | [] [] [] [] |
+ shishi | [] |
+ skencil | [] [] |
+ solfege | [] [] [] [] |
+ solfege-manual | [] [] [] |
+ soundtracker | [] |
+ sp | |
+ sysstat | [] [] [] [] |
+ tar | [] [] [] [] |
+ texinfo | [] [] [] [] |
+ tin | [] |
+ unicode-han-tra... | |
+ unicode-transla... | |
+ util-linux-ng | [] [] [] [] [] |
+ vice | [] |
+ vmm | [] |
+ vorbis-tools | [] [] |
+ wastesedge | [] |
+ wdiff | [] [] |
+ wget | [] [] [] [] [] [] [] |
+ wyslij-po | [] [] [] |
+ xchat | [] [] [] [] [] [] [] [] [] |
+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] |
+ xkeyboard-config | [] [] [] |
+ +---------------------------------------------------+
+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr
+ 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37
+
+ sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW
+ +---------------------------------------------------+
+ a2ps | [] [] [] [] [] | 27
+ aegis | [] | 9
+ ant-phone | [] [] [] [] | 9
+ anubis | [] [] [] [] | 15
+ aspell | [] [] [] | 20
+ bash | [] [] [] | 12
+ bfd | [] | 6
+ bibshelf | [] [] [] | 16
+ binutils | [] [] | 8
+ bison | [] [] | 12
+ bison-runtime | [] [] [] [] [] [] | 29
+ bluez-pin | [] [] [] [] [] [] [] [] | 37
+ bombono-dvd | [] | 4
+ buzztard | [] | 7
+ cflow | [] [] [] | 9
+ clisp | | 10
+ coreutils | [] [] [] [] | 22
+ cpio | [] [] [] [] [] [] | 13
+ cppi | [] [] | 5
+ cpplib | [] [] [] [] [] [] | 14
+ cryptsetup | [] [] | 7
+ dfarc | [] | 9
+ dialog | [] [] [] [] [] [] [] | 30
+ dico | [] | 2
+ diffutils | [] [] [] [] [] [] | 30
+ dink | | 4
+ doodle | [] [] | 7
+ e2fsprogs | [] [] [] | 11
+ enscript | [] [] [] [] | 17
+ exif | [] [] [] | 16
+ fetchmail | [] [] [] | 17
+ findutils | [] [] [] [] [] | 20
+ flex | [] [] [] [] | 15
+ freedink | [] | 10
+ gas | [] | 4
+ gawk | [] [] [] [] | 18
+ gcal | [] [] | 5
+ gcc | [] [] [] | 7
+ gettext-examples | [] [] [] [] [] [] [] | 34
+ gettext-runtime | [] [] [] [] [] [] [] | 29
+ gettext-tools | [] [] [] [] [] [] | 22
+ gip | [] [] [] [] | 22
+ gjay | [] | 3
+ gliv | [] [] [] | 14
+ glunarclock | [] [] [] [] [] | 19
+ gnubiff | [] [] | 4
+ gnucash | () [] () [] () | 10
+ gnuedu | [] [] | 7
+ gnulib | [] [] [] [] | 16
+ gnunet | [] | 1
+ gnunet-gtk | [] [] [] | 5
+ gnutls | [] [] [] | 10
+ gold | [] | 4
+ gpe-aerial | [] [] [] | 18
+ gpe-beam | [] [] [] | 19
+ gpe-bluetooth | [] [] [] | 13
+ gpe-calendar | [] [] [] [] | 12
+ gpe-clock | [] [] [] [] [] | 28
+ gpe-conf | [] [] [] [] | 20
+ gpe-contacts | [] [] [] | 17
+ gpe-edit | [] [] [] | 12
+ gpe-filemanager | [] [] [] [] | 16
+ gpe-go | [] [] [] [] [] | 25
+ gpe-login | [] [] [] | 11
+ gpe-ownerinfo | [] [] [] [] [] | 25
+ gpe-package | [] [] [] | 13
+ gpe-sketchbook | [] [] [] | 20
+ gpe-su | [] [] [] [] [] | 30
+ gpe-taskmanager | [] [] [] [] [] | 29
+ gpe-timesheet | [] [] [] [] [] | 25
+ gpe-today | [] [] [] [] [] [] | 30
+ gpe-todo | [] [] [] [] | 17
+ gphoto2 | [] [] [] [] [] | 24
+ gprof | [] [] [] | 15
+ gpsdrive | [] [] [] | 11
+ gramadoir | [] [] [] | 11
+ grep | [] [] [] | 10
+ grub | [] [] [] | 14
+ gsasl | [] [] [] [] | 14
+ gss | [] [] [] | 11
+ gst-plugins-bad | [] [] [] [] | 26
+ gst-plugins-base | [] [] [] [] [] | 24
+ gst-plugins-good | [] [] [] [] | 24
+ gst-plugins-ugly | [] [] [] [] [] | 29
+ gstreamer | [] [] [] [] | 22
+ gtick | [] [] [] | 13
+ gtkam | [] [] [] | 20
+ gtkorphan | [] [] [] | 14
+ gtkspell | [] [] [] [] [] [] [] [] [] | 45
+ gutenprint | [] | 10
+ hello | [] [] [] [] [] [] | 21
+ help2man | [] [] | 7
+ hylafax | [] | 5
+ idutils | [] [] [] [] | 17
+ indent | [] [] [] [] [] [] | 30
+ iso_15924 | () [] () [] [] | 16
+ iso_3166 | [] [] () [] [] () [] [] [] () | 53
+ iso_3166_2 | () [] () [] | 9
+ iso_4217 | [] () [] [] () [] [] | 26
+ iso_639 | [] [] [] () [] () [] [] [] [] | 38
+ iso_639_3 | [] () | 8
+ jwhois | [] [] [] [] [] | 16
+ kbd | [] [] [] [] [] | 15
+ keytouch | [] [] [] | 16
+ keytouch-editor | [] [] [] | 14
+ keytouch-keyboa... | [] [] [] | 14
+ klavaro | [] | 11
+ latrine | [] [] [] | 10
+ ld | [] [] [] [] | 11
+ leafpad | [] [] [] [] [] [] | 33
+ libc | [] [] [] [] [] | 21
+ libexif | [] () | 7
+ libextractor | [] | 1
+ libgnutls | [] [] [] | 9
+ libgpewidget | [] [] [] | 14
+ libgpg-error | [] [] [] | 9
+ libgphoto2 | [] [] | 8
+ libgphoto2_port | [] [] [] [] | 14
+ libgsasl | [] [] [] | 13
+ libiconv | [] [] [] [] | 21
+ libidn | () [] [] | 11
+ lifelines | [] | 4
+ liferea | [] [] [] | 21
+ lilypond | [] | 7
+ linkdr | [] [] [] [] [] | 17
+ lordsawar | | 1
+ lprng | [] | 3
+ lynx | [] [] [] [] | 17
+ m4 | [] [] [] [] | 19
+ mailfromd | [] [] | 3
+ mailutils | [] | 5
+ make | [] [] [] [] | 21
+ man-db | [] [] [] | 8
+ man-db-manpages | | 4
+ minicom | [] [] | 16
+ mkisofs | [] [] | 9
+ myserver | | 0
+ nano | [] [] [] [] | 21
+ opcodes | [] [] [] | 11
+ parted | [] [] [] [] [] | 15
+ pies | [] [] | 3
+ popt | [] [] [] [] [] [] | 27
+ psmisc | [] [] | 11
+ pspp | | 4
+ pwdutils | [] [] | 6
+ radius | [] [] | 9
+ recode | [] [] [] [] | 28
+ rosegarden | () | 0
+ rpm | [] [] [] | 11
+ rush | [] [] | 4
+ sarg | | 1
+ screem | [] | 3
+ scrollkeeper | [] [] [] [] [] | 27
+ sed | [] [] [] [] [] | 30
+ sharutils | [] [] [] [] [] | 22
+ shishi | [] | 3
+ skencil | [] [] | 7
+ solfege | [] [] [] [] | 16
+ solfege-manual | [] | 8
+ soundtracker | [] [] [] | 9
+ sp | [] | 3
+ sysstat | [] [] | 15
+ tar | [] [] [] [] [] [] | 23
+ texinfo | [] [] [] [] [] | 17
+ tin | | 4
+ unicode-han-tra... | | 0
+ unicode-transla... | | 2
+ util-linux-ng | [] [] [] [] | 20
+ vice | () () | 1
+ vmm | [] | 4
+ vorbis-tools | [] | 6
+ wastesedge | | 2
+ wdiff | [] [] | 7
+ wget | [] [] [] [] [] | 26
+ wyslij-po | [] [] | 8
+ xchat | [] [] [] [] [] [] | 36
+ xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63
+ xkeyboard-config | [] [] [] | 22
+ +---------------------------------------------------+
+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW
+ 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618
+
+ Some counters in the preceding matrix are higher than the number of
+visible blocks let us expect. This is because a few extra PO files are
+used for implementing regional variants of languages, or language
+dialects.
+
+ For a PO file in the matrix above to be effective, the package to
+which it applies should also have been internationalized and
+distributed as such by its maintainer. There might be an observable
+lag between the mere existence a PO file and its wide availability in a
+distribution.
+
+ If June 2010 seems to be old, you may fetch a more recent copy of
+this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date
+matrix with full percentage details can be found at
+`http://translationproject.org/extra/matrix.html'.
+
+1.5 Using `gettext' in new packages
+===================================
+
+If you are writing a freely available program and want to
+internationalize it you are welcome to use GNU `gettext' in your
+package. Of course you have to respect the GNU Library General Public
+License which covers the use of the GNU `gettext' library. This means
+in particular that even non-free programs can use `libintl' as a shared
+library, whereas only free software can use `libintl' as a static
+library or use modified versions of `libintl'.
+
+ Once the sources are changed appropriately and the setup can handle
+the use of `gettext' the only thing missing are the translations. The
+Free Translation Project is also available for packages which are not
+developed inside the GNU project. Therefore the information given above
+applies also for every other Free Software Project. Contact
+`coordinator@translationproject.org' to make the `.pot' files available
+to the translation teams.
+
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..8de5c4d
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,23 @@
+The following authors assigned copyright on their work to the Free
+Software Foundation:
+
+Yoshinori K. Okuji designed and implemented the initial version.
+
+Jeroen Dekkers added initrd support, Multiboot support, and fixed bugs
+in ext2fs.
+
+Marco Gerards added ext2fs support, grub-emu, a new command-line
+engine, and fixed many bugs.
+
+Omniflux added terminfo and serial support.
+
+Vincent Pelletier added Sparc64 support.
+
+Hollis Blanchard implemented many parts of PowerPC support.
+
+Tomas Ebenlendr added the command chainloader into the normal mode,
+fixed some bugs.
+
+Guillem Jover merged architecture-independent ELF support code.
+
+Vesa Jaaskelainen added VBE support.
diff --git a/BUGS b/BUGS
new file mode 100644
index 0000000..46faa64
--- /dev/null
+++ b/BUGS
@@ -0,0 +1,7 @@
+GRUB team is aware of following problems:
+ - Currently search and assembling multidevice abstractions scans
+ all the devices which can be slow.
+ - Cache isn't used correctly for video which results in slowness.
+
+While these are bugs their solution has a potential of breaking more and more
+seriously. So it was decided for 1.99 that they aren't fixed.
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..f33a8db
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,23168 @@
+2023-12-20 Daniel Kiper
+
+ Release 2.12
+
+2023-12-20 Glenn Washburn
+
+ efi: Add support for reproducible builds
+ Having randomly generated bytes in the binary output breaks reproducible
+ builds. Since build timestamps are usually the source of irreproducibility
+ there is a standard which defines an environment variable SOURCE_DATE_EPOCH
+ to be used when set for build timestamps. According to the standard [1], the
+ value of SOURCE_DATE_EPOCH is a base-10 integer of the number of seconds
+ since the UNIX epoch. Currently, this is a 10 digit number that fits into
+ 32-bits, but will not shortly after the year 2100. So to be future-proof
+ only use the least significant 32-bits. On 64-bit architectures, where the
+ canary is also 64-bits, there is an extra 32-bits that can be filled to
+ provide more entropy. The first byte is NUL to filter out string buffer
+ overflow attacks and the remaining 24-bits are set to static random bytes.
+
+ [1] https://reproducible-builds.org/specs/source-date-epoch
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-20 Glenn Washburn
+
+ efi: Generate stack protector canary at build time if urandom is available
+ Generating the canary at build time allows the canary to be different for
+ every build which could limit the effectiveness of certain exploits.
+ Fallback to the statically generated random bytes if /dev/urandom is not
+ readable, e.g. Windows.
+
+ On 32-bit architectures, which use a 32-bit canary, reduce the canary to
+ 4 bytes with one byte being NUL to filter out string buffer overflow attacks.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-20 Glenn Washburn
+
+ efi: Initialize canary to non-zero value
+ The canary, __stack_chk_guard, is in the BSS and so will get initialized to
+ zero if it is not explicitly initialized. If the UEFI firmware does not
+ support the RNG protocol, then the canary will not be randomized and will
+ be zero. This seems like a possibly easier value to write by an attacker.
+ Initialize canary to static random bytes, so that it is still random when
+ there is no RNG protocol. Set at least one byte to NUL to protect against
+ string buffer overflow attacks [1]. Code that writes NUL terminated strings
+ will terminate when a NUL is encountered in the input byte stream. So the
+ attacker will not be able to forge the canary by including it in the input
+ stream without terminating the string operation and thus limiting the
+ stack corruption.
+
+ [1] https://www.sans.org/blog/stack-canaries-gingerly-sidestepping-the-cage/
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-14 Alec Brown
+
+ gfxmenu/gui_image: Fix double free of bitmap
+ In grub-core/gfxmenu/gui_image.c, Coverity detected a double free in the
+ function load_image(). The function checks if self->bitmap and self->raw_bitmap
+ aren't NULL and then frees them. In the case self->bitmap and self->raw_bitmap
+ are the same, only self->raw_bitmap is freed which would also free the memory
+ used by self->bitmap. However, in this case self->bitmap isn't being set to NULL
+ which could lead to a double free later in the code. After self->raw_bitmap is
+ freed, it gets set to the variable bitmap. If this variable is NULL, the code
+ could have a path that would free self->bitmap a second time in the function
+ rescale_image().
+
+ Fixes: CID 292472
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-13 Qiumiao Zhang
+
+ commands/acpi: Fix calculation of ACPI tables addresses when processing RSDT and XSDT
+ According to the ACPI specification the XSDT Entry field contains an array
+ of 64-bit physical addresses which points to other DESCRIPTION_HEADERs. However,
+ the entry_ptr iterator is defined as a 32-bit pointer. It means each 64-bit
+ entry in the XSDT table is treated as two separate 32-bit entries then. Fix the
+ issue by using correct addresses sizes when processing RSDT and XSDT tables.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-13 Vladimir Serbinenko
+
+ libnvpair: Support prefixed nvlist symbol names as found on NetBSD
+ NetBSD uses slightly different function names for the same functions.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-13 Vladimir Serbinenko
+
+ bootstrap: Don't check gettext version
+ NetBSD gettext is older than the check but we don't actually need 0.18.3,
+ older one works fine. This is needed to make bootstrap work on NetBSD.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-13 Vladimir Serbinenko
+
+ kern/mm: Use %x and cast for displaying sizeof()
+ There is some variance in how compiler treats sizeof() especially
+ on 32-bit platforms where it can be naturally either int or long.
+ Explicit cast solves the issue.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-13 Vladimir Serbinenko
+
+ configure: Add RPATH for freetype on NetBSD
+ Without this build-time mkfont fails dynamic linking. This is not ideal
+ but improves the situation until a better solution is available.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-13 Vladimir Serbinenko
+
+ configure: Add *BSD font paths
+ *BSD puts fonts in other places. Add them to the list.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-13 Vladimir Serbinenko
+
+ autogen: Accept python3.10 as a python alternative
+ NetBSD doesn't provide python or python3.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ build: Rename HAVE_LIBZFS to USE_LIBZFS
+ The HAVE_LIBZFS is defined by libzfs test and hence conflicts with
+ manual definition. On NetBSD it ends up detecting zfs but not detecting
+ nvpair and creates confusion. Split them.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ gnulib: Tolerate always_inline attribute being ignored
+ It's not critical, -Werror on it is inappropriate. We don't want to
+ modify gnulib too much. This warning is pretty much irrelevant.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ util/editenv: Don't use %m formatter
+ It's not available on NetBSD outside of syslog. Using strerror() is more
+ reliable as we retrieve errno immediately rather than down the stack.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ osdep/bsd/hostdisk: Fix NetBSD compilation
+ Wrong function and variable name cause a stupid compilation error on
+ NetBSD and OpenBSD. Only NetBSD and OpenBSD use this file. No other
+ platform is affected.
+
+ Additionally, define RAW_FLOPPY_MAJOR constant if it is missing.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ osdep/generic/blocklist: Fix compilation
+ After recent change in blocklist types we have a type mismatch. Fixing it
+ requires a wrapper or large changes. I feel like wrapper makes more sense.
+
+ Without this patch we end up with a compilation problem and without wrapping
+ callback data is not passed properly anymore.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ disk/diskfilter: Remove unused variable
+ Variable e is set but never used. We can just remove it now.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ build: Tolerate unused-but-set in generated lexer/bison files
+ We don't really control the small aspects of generated files and NetBSD
+ version has an unused variable that is then detected by gcc as warning
+ that is then promoted to error.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Vladimir Serbinenko
+
+ loader/i386/bsdXX: Fix loading after unaligned module
+ Current code implicitly assumes that aligning chunk_size + *kern_end is
+ the same as aligning on curload which is not the case because
+ chunk_size starts at zero even if *kern_end is unaligned and ALIGN_PAGE
+ moved curload to an aligned position but not *kern_end + chunk_size.
+
+ This fixes booting of FreeBSD with zfs module.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Mate Kukri
+
+ grub-core/Makefile.am: Make path to extra_deps.lst relative to $(top_srcdir)/grub-core
+ The commit 154dcb1ae (build: Allow explicit module dependencies) broke
+ out of tree builds by introducing the extra_deps.lst file into the
+ source tree but referencing it just by name in grub-core/Makefile.am.
+ Fix it by adding $(top_srcdir)/grub-core to the path.
+
+ Fixes: 154dcb1ae (build: Allow explicit module dependencies)
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Mate Kukri
+
+ util/grub-install: Move platdir path canonicalization after files were copied to grubdir
+ The commit 3f9eace2d (util/grub-install: Delay copying files to
+ {grubdir,platdir} after install_device was validated) delaying
+ copying of files caused a regression when installing without an
+ existing directory structure.
+
+ This patch ensures that the platform directory actually exists by the
+ time the code tries to canonicalize its filename.
+
+ Fixes: 3f9eace2d (util/grub-install: Delay copying files to {grubdir,platdir} after install_device was validated)
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Michael Chang
+
+ util/grub-mkstandalone: Ensure deterministic tar file creation by sorting contents
+ The add_tar_files() function currently iterates through a directory's
+ content using readdir(), which doesn't guarantee a specific order. This
+ lack of deterministic behavior impacts reproducibility in the build process.
+
+ This commit resolves the issue by introducing sorting functionality.
+ The list retrieved by readdir() is now sorted alphabetically before
+ incorporation into the tar archive, ensuring consistent and predictable
+ file ordering within the archive.
+
+ On the occasion fix tfp memory leak.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-12 Michael Chang
+
+ util/grub-mkstandalone: Ensure stable timestamps for generated images
+ This change mirrors a previous fix [1] but is specific to images
+ generated by grub-mkstandalone.
+
+ The former fix, commit 85a7be241 (util/mkimage: Use stable timestamp
+ when generating binaries.), focused on utilizing a stable timestamp
+ during binary generation in the util/mkimage context. This commit
+ extends that approach to the images produced by grub-mkstandalone,
+ ensuring consistency and stability in timestamps across all generated
+ binaries.
+
+ [1] 85a7be241 util/mkimage: Use stable timestamp when generating binaries.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Mate Kukri
+
+ net/http: Fix gcc-13 errors relating to type signedness
+ Replace definition of HTTP_PORT with a pre-processor macro that converts
+ the constant to the correct grub_uint16_t type.
+
+ Change "port" local variable definition in http_establish() to have the
+ same type.
+
+ Reviewed-by: Daniel Kiper
+
+ templates: Reinstate unused version comparison functions with warning
+ Revert the commit a79c567f6 (templates: Remove unused version comparison
+ functions) and add a warning to the functions that they are deprecated.
+
+ Removing the functions directly caused a lot of upgrade issues
+ with custom user scripts that called the functions. In Debian and
+ Ubuntu, grub-mkconfig is invoked as a post-installation script
+ and would fail, causing upgrades to fail halfway through and
+ putting the package manager into an inconsistent state.
+
+ FWIW, we get one bug per 2 weeks basically, for an interim Ubuntu
+ release which generally does not receive much usage, that is a high
+ number.
+
+ The proposal is to pick this for 2.12 and directly after the release
+ remove it again. Then users will have time to fix their scripts without
+ systems breaking immediately.
+
+ This reverts commit a79c567f6 (templates: Remove unused version
+ comparison functions).
+
+ Cc: Mathieu Desnoyers
+ Cc: Daniel Kiper
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Mate Kukri
+
+ util/grub-install: Delay copying files to {grubdir,platdir} after install_device was validated
+ Previously grub-install copied modules to grubdir before doing any
+ validation on the install_device.
+
+ When grub-install was called with an invalid install_device, modules
+ were already copied to /boot before it found out and was forced to rely
+ on atexit() rollback.
+
+ This patch delays copying the modules after at least some install_device
+ validation was done, and thus reduces reliance on successful rollback.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Julian Andres Klode
+
+ efi: Set shim_lock_enabled even if validation is disabled
+ If validation has been disabled via MokSbState, secure boot on the
+ firmware is still enabled, and the kernel fails to boot.
+
+ This is a bit hacky, because shim_lock is not *fully* enabled, but
+ it triggers the right code paths.
+
+ Ultimately, all this will be resolved by shim gaining it's own image
+ loading and starting protocol, so this is more a temporary workaround.
+
+ Fixes: 6425c12cd (efi: Fallback to legacy mode if shim is loaded on x86 archs)
+
+ Cc: Peter Jones
+ Cc: Michael Chang
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Oliver Steffen
+
+ docs: Improve bli module documentation
+ Improve the documentation of the bli module and explain in more detail what
+ it does. Make clear that GPT formatted drives are expected and other
+ partition formats are ignored. Also reorder and reword this section a bit.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Oliver Steffen
+
+ bli: Add explicit dependency on the part_gpt module
+ The bli module has a "hidden" dependency on the part_gpt module, which
+ is not picked up automatically by the build system. One purpose of the
+ bli module is to communicate the GPT UUID of the partition GRUB was
+ launched from to Linux user-space (systemd-gpt-auto-generator).
+ Without the part_gpt module, bli is not able to obtain the UUID. Since
+ bli does its work in the module initialization function, the order in
+ which the modules are loaded is also important: part_gpt needs to be
+ loaded before the bli module.
+
+ To solve this, track this dependency explicitly.
+
+ Note that the Boot Loader Interface specification, which bli aims to
+ implement, requires GPT formatted drives. The bli module ignores all
+ other partition formats.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Oliver Steffen
+
+ build: Allow explicit module dependencies
+ The build system deduces inter-module dependencies from the symbols
+ required and exported by the modules. This works well, except for some
+ rare cases where the dependency is indirect or hidden. A module might
+ not make use of any function of some other module, but still expect its
+ functionality to be available to GRUB.
+
+ To solve this, introduce a new file, currently empty, called extra_deps.lst
+ to track these cases manually. This file gets processed in the same way
+ as the automatically generated syminfo.lst, making it possible to inject
+ data into the dependency resolver.
+
+ Since *.lst files are set to be ignored by git, add an exception for
+ extra_deps.lst.
+
+ Additionally, introduce a new keyword for the syminfo.lst syntax:
+ "depends" allows specifying a module dependency directly:
+
+ depends ...
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/init/ppc64: Display upper_mem_limit when debugging
+ Display upper_mem_limit and its rounded-down value in MiB.
+
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/init/ppc64: Fix a comment
+ Reviewed-by: Daniel Kiper
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/ieee1275: Display successful memory claims when debugging
+ Display successful memory claims with exact address and rounded-down
+ MiB location and rounded-up size in MiB.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Eric Snowberg
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-12-05 Stefan Berger
+
+ loader/powerpc/ieee1275: Use new allocation function for kernel and initrd
+ On PowerVM and KVM on Power use the new memory allocation function that
+ honors restrictions on which memory GRUB can actually use. In the request
+ structure indicate the request for a single memory block along with
+ address alignment restrictions. Request direct usage of the memory block
+ by setting init_region to false (prevent it from being added to GRUB's
+ heap). Initialize the found addr to -1, so that -1 will be returned
+ to the loader in case no memory could be allocated.
+
+ Report an out-of-memory error in case the initrd could not be loaded.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/cmain/ppc64: Introduce flags to identify KVM and PowerVM
+ Introduce flags to identify PowerVM and KVM on Power and set them where
+ each type of host has been detected.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/init/ppc64: Rename regions_claim() to grub_regions_claim()
+ Rename regions_claim() to grub_regions_claim() to make it available for
+ memory allocation. The ieee1275 loader will use this function on PowerVM
+ and KVM on Power and thus avoid usage of memory that it is not allowed
+ to use.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/init/ppc64: Add support for alignment requirements
+ Add support for memory alignment requirements and adjust a candidate
+ address to it before checking whether the block is large enough. This
+ must be done in this order since the alignment adjustment can make
+ a block smaller than what was requested.
+
+ None of the current callers has memory alignment requirements but the
+ ieee1275 loader for kernel and initrd will use it to convey them.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/init/ppc64: Return allocated address using context
+ Return the allocated address of the memory block in the request structure
+ if a memory allocation was actually done. Leave the address untouched
+ otherwise. This enables a caller who wants to use the allocated memory
+ directly, rather than adding the memory to the heap, to see where memory
+ was allocated. None of the current callers need this but the converted
+ ieee1275 loader will make use of it.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/init/ppc64: Decide by request whether to initialize region
+ Let the regions_claim() request structure's init_region determine whether
+ to call grub_mm_init_region() on it. This allows for adding memory to
+ GRUB's memory heap if init_region is set to true, or direct usage of the
+ memory otherwise. Set all current callers' init_region to true since they
+ want to add memory regions to GRUB's heap.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-12-05 Stefan Berger
+
+ kern/ieee1275/init/ppc64: Introduce a request for regions_claim()
+ The regions_claim() function limits the allocation of memory regions
+ by excluding certain memory areas from being used by GRUB. This for
+ example includes a gap between 640MB and 768MB as well as an upper
+ limit beyond which no memory may be used when an fadump is present.
+ However, the ieee1275 loader for kernel and initrd currently does not
+ use regions_claim() for memory allocation on PowerVM and KVM on Power
+ and therefore may allocate memory in those areas that it should not use.
+
+ To make the regions_claim() function more flexible and ultimately usable
+ for the ieee1275 loader, introduce a request structure to pass various
+ parameters to the regions_claim() function that describe the properties
+ of requested memory chunks. In a first step, move the total and flags
+ variables into this structure.
+
+ Reviewed-by: Daniel Kiper
+ Cc: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+
+2023-11-22 Anthony Iliopoulos
+
+ fs/xfs: Add large extent counters incompat feature support
+ XFS introduced 64-bit extent counters for inodes via a series of
+ upstream commits and the feature was marked as stable in v6.5 via
+ commit 61d7e8274cd8 (xfs: drop EXPERIMENTAL tag for large extent
+ counts).
+
+ Further, xfsprogs release v6.5.0 switched this feature on by default
+ in mkfs.xfs via commit e5b18d7d1d96 (mkfs: enable large extent counts
+ by default).
+
+ Filesystems formatted with large extent count support, nrext64=1, are
+ thus currently not recognizable by GRUB, since this is an incompat
+ feature. Add the required support so that those filesystems and inodes
+ with large extent counters can be read by GRUB.
+
+ Reviewed-by: Andrey Albershteyn
+ Reviewed-by: Daniel Kiper
+ Tested-by: Marta Lewandowska
+ Tested-by: Sebastian Andrzej Siewior
+
+2023-11-08 Vladimir Serbinenko
+
+ gpt: Add compile time asserts for guid and gpt_partentry sizes
+ With new alignment specification it's easy to screw up. Fortunately if it
+ happens the size will be bigger than intended. Compile time assert will catch
+ this.
+
+ Reviewed-by: Daniel Kiper
+
+2023-11-08 Vladimir Serbinenko
+
+ types: Split aligned and packed guids
+ On ia64 alignment requirements are strict. When we pass a pointer to
+ UUID it needs to be at least 4-byte aligned or EFI will crash.
+ On the other hand in device path there is no padding for UUID, so we
+ need 2 types in one formor another. Make 4-byte aligned and unaligned types
+
+ The code is structured in a way to accept unaligned inputs
+ in most cases and supply 4-byte aligned outputs.
+
+ Efiemu case is a bit ugly because there inputs and outputs are
+ reversed and so we need careful casts to account for this
+ inversion.
+
+ Reviewed-by: Daniel Kiper
+
+2023-11-06 Vladimir Serbinenko
+
+ gpt_partition: Mark grub_gpt_partentry as having natural alignment
+ gpt_partition contains grub_guid. We need to decide whether the whole
+ structure is unaligned and then we need to use packed_guid. But we never
+ have unaligned part entries as we read them in an aligned buffer from disk.
+ Hence just make it all aligned.
+
+2023-11-06 Vladimir Serbinenko
+
+ efi: Deduplicate configuration table search function
+ We do table search in many places doing exactly the same algorithm.
+ The only minor variance in users is which table is used if several entries
+ are present. As specification mandates uniqueness and even if it ever isn't,
+ first entry is good enough, unify this code and always use the first entry.
+
+ Reviewed-by: Daniel Kiper
+
+2023-11-06 Vladimir Serbinenko
+
+ lsefi: Add missing static qualifier
+ known_protocols isn't used anywhere else and even misses grub_ prefix, so
+ let's make it local (static).
+
+ Reviewed-by: Daniel Kiper
+
+2023-11-06 Vladimir Serbinenko
+
+ types: Fix typo
+ Just a small grammar mistake.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-30 Qiumiao Zhang
+
+ util/grub-mount: Check file path sanity
+ The function argp_parser() in util/grub-mount.c lacks a check on the
+ sanity of the file path when parsing parameters. This results in
+ a segmentation fault if a partition is mounted to a non-existent path.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-30 Richard Marko
+
+ configure: Make the DJVU_FONT_SOURCE configurable with --with-dejavufont=FILE
+ Font might be located in different location, the default font might
+ not be available on all systems or other font might be preferred.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-30 Mads Kiilerich
+
+ configure: Make the Unifont FONT_SOURCE configurable with --with-unifont=FILE
+ Font might be located in different location, the default font might
+ not be available on all systems or other font might be preferred.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-30 Jon DeVree
+
+ fs/xfs: Fix XFS directory extent parsing
+ The XFS directory entry parsing code has never been completely correct
+ for extent based directories. The parser correctly handles the case
+ where the directory is contained in a single extent, but then mistakenly
+ assumes the data blocks for the multiple extent case are each identical
+ to the single extent case. The difference in the format of the data
+ blocks between the two cases is tiny enough that its gone unnoticed for
+ a very long time.
+
+ A recent change introduced some additional bounds checking into the XFS
+ parser. Like GRUB's existing parser, it is correct for the single extent
+ case but incorrect for the multiple extent case. When parsing a directory
+ with multiple extents, this new bounds checking is sometimes (but not
+ always) tripped and triggers an "invalid XFS directory entry" error. This
+ probably would have continued to go unnoticed but the /boot/grub/
+ directory is large enough that it often has multiple extents.
+
+ The difference between the two cases is that when there are multiple
+ extents, the data blocks do not contain a trailer nor do they contain
+ any leaf information. That information is stored in a separate set of
+ extents dedicated to just the leaf information. These extents come after
+ the directory entry extents and are not included in the inode size. So
+ the existing parser already ignores the leaf extents.
+
+ The only reason to read the trailer/leaf information at all is so that
+ the parser can avoid misinterpreting that data as directory entries. So
+ this updates the parser as follows:
+
+ For the single extent case the parser doesn't change much:
+ 1. Read the size of the leaf information from the trailer
+ 2. Set the end pointer for the parser to the start of the leaf
+ information. (The previous bounds checking set the end pointer to the
+ start of the trailer, so this is actually a small improvement.)
+ 3. Set the entries variable to the expected number of directory entries.
+
+ For the multiple extent case:
+ 1. Set the end pointer to the end of the block.
+ 2. Do not set up the entries variable. Figuring out how many entries are
+ in each individual block is complex and does not seem worth it when
+ it appears to be safe to just iterate over the entire block.
+
+ The bounds check itself was also dependent upon the faulty XFS parser
+ because it accidentally used "filename + length - 1". Presumably this
+ was able to pass the fuzzer because in the old parser there was always
+ 8 bytes of slack space between the tail pointer and the actual end of
+ the block. Since this is no longer the case the bounds check needs to be
+ updated to "filename + length + 1" in order to prevent a regression in
+ the handling of corrupt fliesystems.
+
+ Notes:
+ * When there is only one extent there will only ever be one block. If
+ more than one block is required then XFS will always switch to holding
+ leaf information in a separate extent.
+ * B-tree based directories seems to be parsed properly by the same code
+ that handles multiple extents. This is unlikely to ever occur within
+ /boot though because its only used when there are an extremely large
+ number of directory entries.
+
+ Fixes: ef7850c75 (fs/xfs: Fix issues found while fuzzing the XFS filesystem)
+ Fixes: b2499b29c (Adds support for the XFS filesystem.)
+ Fixes: https://savannah.gnu.org/bugs/?64376
+
+ Reviewed-by: Daniel Kiper
+ Tested-by: Sebastian Andrzej Siewior
+ Tested-by: Marta Lewandowska
+
+2023-10-30 Lidong Chen
+
+ fs/xfs: Incorrect short form directory data boundary check
+ After parsing of the current entry, the entry pointer is advanced
+ to the next entry at the end of the "for" loop. In case where the
+ last entry is at the end of the data boundary, the advanced entry
+ pointer can point off the data boundary. The subsequent boundary
+ check for the advanced entry pointer can cause a failure.
+
+ The fix is to include the boundary check into the "for" loop
+ condition.
+
+ Reviewed-by: Daniel Kiper
+ Tested-by: Sebastian Andrzej Siewior
+ Tested-by: Marta Lewandowska
+
+2023-10-12 Vladimir 'phcoder' Serbinenko
+
+ Revert "zfsinfo: Correct a check for error allocating memory"
+ Original commit is wrong because grub_file_get_device_name() may return NULL
+ if we use implicit $root. Additionally, the grub_errno is guaranteed to be
+ GRUB_ERR_NONE at the beginning of a command. So, everything should work as
+ expected and Coverity report, CID 73668, WRT to this code should be treated
+ as false positive.
+
+ This reverts commit 7aab03418 (zfsinfo: Correct a check for error allocating memory).
+
+ Fixes: 7aab03418 (zfsinfo: Correct a check for error allocating memory)
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 ValdikSS
+
+ disk/i386/pc/biosdisk: Read up to 63 sectors in LBA mode
+ Current code imposes limitations on the amount of sectors read in
+ a single call according to CHS layout of the disk even in LBA
+ read mode. There's no need to obey CHS layout restrictions for
+ LBA reads on LBA disks. It only slows down booting process.
+
+ See: https://lore.kernel.org/grub-devel/d42a11fa-2a59-b5e7-08b1-d2c60444bb99@valdikss.org.ru/
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 ValdikSS
+
+ kern/i386/pc/init: Flush cache only on VIA C3 and earlier
+ The code flushes the cache on VIA processors unconditionally which
+ is excessive. Check for cpuid family and execute wbinvd only on C3
+ and earlier.
+
+ Fixes: https://savannah.gnu.org/bugs/?45149
+ Fixes: 25492a0f0 (Add wbinvd around bios call.)
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 Fabian Vogt
+
+ fs/btrfs: Zero file data not backed by extents
+ Implicit holes in file data need to be zeroed explicitly, instead of
+ just leaving the data in the buffer uninitialized.
+
+ This led to kernels randomly failing to boot in "fun" ways when loaded
+ from btrfs with the no_holes feature enabled, because large blocks of
+ zeros in the kernel file contained random data instead.
+
+ Reviewed-by: Daniel Kiper
+ Reviewed-by: Qu Wenruo
+
+2023-10-12 Stefan Berger
+
+ kern/ieee1275/init: Restrict high memory in presence of fadump on ppc64
+ When a kernel dump is present then restrict the high memory regions to
+ avoid allocating memory where the kernel dump resides. Use the
+ ibm,kernel-dump node under /rtas to determine whether a kernel dump
+ exists and up to which limit GRUB can use available memory. Set the
+ upper_mem_limit to the size of the kernel dump section of type
+ REAL_MODE_REGION and therefore only allow GRUB's memory usage for high
+ addresses from RMO_ADDR_MAX to upper_mem_limit. This means that GRUB can
+ use high memory in the range of RMO_ADDR_MAX (768MB) to upper_mem_limit
+ and the kernel-dump memory regions above upper_mem_limit remain
+ untouched. This change has no effect on memory allocations below
+ linux_rmo_save (typically at 640MB).
+
+ Also, fall back to allocating below rmo_linux_save in case the chunk of
+ memory there would be larger than the chunk of memory above RMO_ADDR_MAX.
+ This can for example occur if a free memory area is found starting at 300MB
+ extending up to 1GB but a kernel dump is located at 768MB and therefore
+ does not allow the allocation of the high memory area but requiring to use
+ the chunk starting at 300MB to avoid an unnecessary out-of-memory condition.
+
+ Reviewed-by: Hari Bathini
+ Cc: Pavithra Prakash
+ Cc: Michael Ellerman
+ Cc: Carolyn Scherrer
+ Cc: Mahesh Salgaonkar
+ Cc: Sourabh Jain
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 Glenn Washburn
+
+ tests/util/grub-shell: Enable RNG device to better test stack smashing
+ In certain firmwares, e.g. OVMF, the RNG protocol is not enabled unless
+ there is an RNG device. When not enabled, GRUB fails to initialize the
+ stack guard with random bytes. For testing, this is not a big issue, but
+ there have been bugs found in the initialization. So turn this on for EFI
+ platforms to catch any regressions.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 Glenn Washburn
+
+ kern/efi/init: Disable stack smashing protection on grub_efi_init()
+ GCC is electing to instrument grub_efi_init() to give it stack smashing
+ protection when configuring with --enable-stack-protector on the x86_64-efi
+ target. In the function prologue, the canary at the top of the stack frame
+ is set to the value of the stack guard. And in the epilogue, the canary is
+ checked to verify if it is equal to the guard and if not to call the stack
+ check fail function. The issue is that grub_efi_init() sets up the guard
+ by initializing it with random bytes, if the firmware supports the RNG
+ protocol. So in its prologue the canary will be set with the value of the
+ uninitialized guard, likely NUL bytes. Then the guard is initialized, and
+ finally the epilogue checks the canary against the guard, which will almost
+ certainly be different. This causes the code path for a smashed stack to be
+ taken, causing the machine to print out a message that stack smashing was
+ detected, wait 5 seconds, and then reboot. Disable grub_efi_init()
+ instrumentation so there is no stack smashing false positive generated.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 Glenn Washburn
+
+ disk/cryptodisk: Add support for LUKS2 in (proc)/luks_script
+ The sector size in bytes is added to each line and it is allowed to be
+ 6 decimal digits long, which covers the most common cases of 512 and 4096
+ byte sectors with space for two additional digits as future-proofing. The
+ size allocation is updated to reflect this additional field. Also make
+ clearer the size allocation calculation.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 Glenn Washburn
+
+ disk/cryptodisk: Optimize luks_script_get()
+ Use the return value of grub_snprintf() to move the string pointer forward,
+ instead of incrementing the string pointer iteratively until a NULL byte is
+ reached. Move the space out of the format string argument, a small
+ optimization, but also makes the spacing clearer. Also, use the new
+ PRIxGRUB_OFFSET instead of PRIuGRUB_UINT64_T to accurately reflect the
+ format string for this type.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 Glenn Washburn
+
+ term/serial: Ensure proper NULL termination after grub_strncpy()
+ A large enough argument to the --port option could cause a string buffer
+ to be not NULL terminated because grub_strncpy() does not guarantee NULL
+ termination if copied string is longer than max characters to copy.
+
+ Fixes: 712309eaae04 (term/serial: Use grub_strncpy() instead of grub_snprintf() when only copying string)
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-12 Heinrich Schuchardt
+
+ commands/efi/lsefisystab: Print the UEFI specification revision in human readable form
+ E.g. 2.10 instead of 00020064 and 2.3.1 instead of 0002001f.
+
+ See UEFI 2.10 specification, chapter 4.2.1 EFI_TABLE_HEADER.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Maxim Suhanov
+
+ fs/ntfs: Make code more readable
+ Move some calls used to access NTFS attribute header fields into
+ functions with human-readable names.
+
+ Suggested-by: Daniel Kiper
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Maxim Suhanov
+
+ fs/ntfs: Fix an OOB read when parsing a volume label
+ This fix introduces checks to ensure that an NTFS volume label is always
+ read from the corresponding file record segment.
+
+ The current NTFS code allows the volume label string to be read from an
+ arbitrary, attacker-chosen memory location. However, the bytes read are
+ always treated as UTF-16LE. So, the final string displayed is mostly
+ unreadable and it can't be easily converted back to raw bytes.
+
+ The lack of this check is a minor issue, likely not causing a significant
+ data leak.
+
+ Reported-by: Maxim Suhanov
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Maxim Suhanov
+
+ fs/ntfs: Fix an OOB read when parsing bitmaps for index attributes
+ This fix introduces checks to ensure that bitmaps for directory indices
+ are never read beyond their actual sizes.
+
+ The lack of this check is a minor issue, likely not exploitable in any way.
+
+ Reported-by: Maxim Suhanov
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Maxim Suhanov
+
+ fs/ntfs: Fix an OOB read when parsing directory entries from resident and non-resident index attributes
+ This fix introduces checks to ensure that index entries are never read
+ beyond the corresponding directory index.
+
+ The lack of this check is a minor issue, likely not exploitable in any way.
+
+ Reported-by: Maxim Suhanov
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Maxim Suhanov
+
+ fs/ntfs: Fix an OOB read when reading data from the resident $DATA attribute
+ When reading a file containing resident data, i.e., the file data is stored in
+ the $DATA attribute within the NTFS file record, not in external clusters,
+ there are no checks that this resident data actually fits the corresponding
+ file record segment.
+
+ When parsing a specially-crafted file system image, the current NTFS code will
+ read the file data from an arbitrary, attacker-chosen memory offset and of
+ arbitrary, attacker-chosen length.
+
+ This allows an attacker to display arbitrary chunks of memory, which could
+ contain sensitive information like password hashes or even plain-text,
+ obfuscated passwords from BS EFI variables.
+
+ This fix implements a check to ensure that resident data is read from the
+ corresponding file record segment only.
+
+ Fixes: CVE-2023-4693
+
+ Reported-by: Maxim Suhanov
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Maxim Suhanov
+
+ fs/ntfs: Fix an OOB write when parsing the $ATTRIBUTE_LIST attribute for the $MFT file
+ When parsing an extremely fragmented $MFT file, i.e., the file described
+ using the $ATTRIBUTE_LIST attribute, current NTFS code will reuse a buffer
+ containing bytes read from the underlying drive to store sector numbers,
+ which are consumed later to read data from these sectors into another buffer.
+
+ These sectors numbers, two 32-bit integers, are always stored at predefined
+ offsets, 0x10 and 0x14, relative to first byte of the selected entry within
+ the $ATTRIBUTE_LIST attribute. Usually, this won't cause any problem.
+
+ However, when parsing a specially-crafted file system image, this may cause
+ the NTFS code to write these integers beyond the buffer boundary, likely
+ causing the GRUB memory allocator to misbehave or fail. These integers contain
+ values which are controlled by on-disk structures of the NTFS file system.
+
+ Such modification and resulting misbehavior may touch a memory range not
+ assigned to the GRUB and owned by firmware or another EFI application/driver.
+
+ This fix introduces checks to ensure that these sector numbers are never
+ written beyond the boundary.
+
+ Fixes: CVE-2023-4692
+
+ Reported-by: Maxim Suhanov
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Michael Chang
+
+ kern/acpi: Skip NULL entries in RSDT and XSDT
+ During attempts to configure a serial console, a Page Fault Exception
+ and system reset were encountered, specifically on release 2.12~rc1.
+ This issue was not present in prior versions and seemed to affect only
+ a specific machine, potentially pointing to hardware or firmware flaw.
+
+ After investigation, it was discovered that the invalid page access
+ occurred during the discovery of serial MMIO ports as specified by
+ ACPI's SPCR table [1]. The recent change uncovered an issue in GRUB's
+ ACPI driver.
+
+ In certain cases, the XSDT/RSDT root table might contain a NULL entry as
+ a terminator, depending on how the tables are assembled. GRUB cannot
+ blindly trust the address in the root table to be valid and should
+ perform a sanity check for NULL entries. This patch introduces this
+ simple check.
+
+ This fix is also inspired by a related Linux kernel fix [2].
+
+ [1] 7b192ec4c term/ns8250: Use ACPI SPCR table when available to configure serial
+ [2] 0f929fbf0 ACPICA: Tables: Add new mechanism to skip NULL entries in RSDT and XSDT.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Glenn Washburn
+
+ util/grub-install-common: Print usable grub-mkimage command
+ When grub-install is run with the verbose option, it will print a log
+ message indicating the grub-mkimage command and arguments used.
+ GRUB no longer calls the grub-mkimage binary internally, however the
+ command logged is a command that if run should effectively be what
+ grub-install used. However, as this has changed some of the newer
+ options have been incorrectly added so that the printed command fails
+ when run separately. This change makes the displayed command run as
+ intended.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Glenn Washburn
+
+ util/grub-install-common: Minor improvements to printing of grub-mkimage command
+ This is a preparatory patch to make the following patch less cluttered. The
+ only visible change made here is to not print extra spaces when either or
+ both --note or --disable-shim-lock are not given and to not print an extra
+ space at the end of the command. The latter is done by constructing the
+ trailing argument string with spaces in front of each argument rather than
+ trailing. The allocation of the argument string is made precise, which has
+ the benefit of saving a few bytes, but more importantly self-documenting
+ what the needed allocated bytes are. Also, unneeded braces are removed from
+ an if block.
+
+ Reviewed-by: Daniel Kiper
+
+2023-10-03 Vladimir 'phcoder' Serbinenko
+
+ lib/i386/relocator64: Fix 64-bit FreeBSD boot on BIOS
+ The commit 80948f532d (lib/i386/relocator64: Build fixes for i386) has
+ broken 64-bit FreeBSD boot on BIOS. This patch fixes the issue.
+
+ Fixes: 80948f532d (lib/i386/relocator64: Build fixes for i386)
+
+ Reviewed-by: Daniel Kiper
+
+2023-09-22 Anthony PERARD
+
+ templates/linux_xen: Fix XSM entries generation
+ It turns out that setting $xen_version in linux_entry_xsm() override
+ $xen_version in the loop over $reverse_sorted_xen_list. This means
+ that only one entry per Xen version is going to enable XSM, but all
+ further entries are going to have "(XSM enabled)" in their titles
+ without enabling XSM.
+
+ When a "xenpolicy-$xen_version" file was found for the current
+ $xen_version, it would overwrite $xen_version to add "(XSM enabled)" to
+ the menu entry title. Once updated, the next call to linux_entry_xsm()
+ would also have this modified $xen_version and would look for the file
+ "xenpolicy-*(XSM enabled)" and fail.
+
+ Reviewed-by: Daniel Kiper
+
+2023-09-22 Xiaotian Wu
+
+ loongarch: Eliminate cmodel compilation warnings
+ In the configure phase, the "-mcmodel=large" CFLAGS passed the test, but
+ because it has not been implemented in gcc, the following warning will
+ appear when compiling:
+
+ gcc: warning: 'large' is not supported, now cmodel is set to 'normal'
+
+ Reviewed-by: Daniel Kiper
+
+2023-09-22 Glenn Washburn
+
+ configure: Enable -fno-omit-frame-pointer for backtrace module
+ The backtrace module is written assuming that the frame pointer is in %ebp.
+ By default, -Os optimization level is used, which enables the gcc option
+ -fomit-frame-pointer. This breaks the backtrace functionality. Enabling
+ this may cause an unnoticeable performance cost and virtually no size increase.
+
+ The backtrace command on x86_64 and probably i386 is broken due to the
+ above rationale. I've not verified, but presumably the backtrace that used
+ to be printed for an unhandled CPU exception is also broken. Do any distros
+ handle this?
+
+ Considering that, to my knowledge, no one has complained about this in the
+ over 13 years that -Os has been used, has this code actually been useful?
+ Is it worth disabling -fomit-frame-pointer? Though, I don't see much downside
+ right now in disabling it. Alternatively, we could disable/remove the
+ backtrace code. I think it would be nice to keep it and have it working.
+
+ Nowadays, presumably QEMU makes the GDB stub rarely used as I imagine most
+ are developing in a virtual machines. Also, the GDB stub does not work in UEFI.
+ So, if anyone is using it on real hardware, they are doing so on pretty old
+ machines. The lack of a GDB stub does not seem to be a pain point because
+ no one has got it working on UEFI.
+
+ This patch gets the backtrace command working on x86_64-efi in QEMU for me.
+ However, it hangs when run on my laptop. Not sure what's going on there.
+
+ Reviewed-by: Daniel Kiper
+
+2023-09-22 Ard Biesheuvel
+
+ loader/efi/linux: Implement x86 mixed mode using legacy boot
+ Recent mixed-mode Linux kernels, i.e., v4.0 or newer, can access EFI
+ runtime services at OS runtime even when the OS was not entered via the
+ EFI stub. This is because, instead of reverting back to the firmware's
+ segment selectors, GDTs and IDTs, the 64-bit kernel simply calls 32-bit
+ runtime services using compatibility mode, i.e., the same mode used for
+ 32-bit user space, without taking down all interrupt handling, exception
+ handling, etc.
+
+ This means that GRUB's legacy x86 boot mode is sufficient to make use of
+ this: 32-bit i686 builds of GRUB can already boot 64-bit kernels in EFI
+ enlightened mode, but without going via the EFI stub, and provide all
+ the metadata that the OS needs to map the EFI runtime regions and call
+ EFI runtime services successfully.
+
+ It does mean that GRUB should not attempt to invoke the firmware's
+ LoadImage()/StartImage() methods on kernel builds that it knows cannot
+ be started natively. So, add a check for this in the native EFI boot
+ path and fall back to legacy x86 mode in such cases.
+
+ Note that in the general case, booting non-native images of the same
+ native word size, e.g., x64 EFI apps on arm64 firmware, might be
+ supported by means of emulation. So, let's only disallow images that use
+ a non-native word size. This will also permit booting i686 kernels on
+ x86_64 builds, although without access to runtime services, as this is
+ not supported by Linux.
+
+ This change on top of 2.12-rc1 is sufficient to boot ordinary Linux
+ mixed mode builds and get full access to the EFI runtime services.
+
+ Cc: Daniel Kiper
+ Cc: Steve McIntyre
+ Cc: Julian Andres Klode
+ Acked-by: Dimitri John Ledkov
+ Reviewed-by: Daniel Kiper
+
+2023-09-22 Ard Biesheuvel
+
+ loader/i386/linux: Prefer entry in long mode when booting via EFI
+ The x86_64 Linux kernel can be booted in 32-bit mode, in which case the
+ startup code creates a set of preliminary page tables that map the first
+ 4 GiB of physical memory 1:1 and enables paging. This is a prerequisite
+ for 64-bit execution and can therefore only be implemented in 32-bit code.
+
+ The x86_64 Linux kernel can also be booted in 64-bit mode directly: this
+ implies that paging is already enabled and it is the responsibility of
+ the bootloader to ensure that the active page tables cover the entire
+ loaded image, including its BSS space, the size of which is described in
+ the image's setup header.
+
+ Given that the EFI spec mandates execution in long mode for x86_64 and
+ stipulates that all system memory is mapped 1:1, the Linux/x86
+ requirements for 64-bit entry can be met trivially when booting on
+ x86_64 via EFI. So, enter via the 64-bit entry point in this case.
+
+ This involves inspecting the xloadflags field in the setup header to
+ check whether the 64-bit entry point is supported. This field was
+ introduced in Linux version v3.8 (early 2013).
+
+ This change ensures that all EFI firmware tables and other assets passed
+ by the firmware or bootloader in memory remain mapped and accessible
+ throughout the early startup code.
+
+ Avoiding the drop out of long mode will also be needed to support
+ upcoming CPU designs that no longer implement 32-bit mode at all
+ (as recently announced by Intel [0]).
+
+ [0] https://www.intel.com/content/www/us/en/developer/articles/technical/envisioning-future-simplified-architecture.html
+
+ Cc: Daniel Kiper
+ Cc: Julian Andres Klode
+ Reviewed-by: Daniel Kiper
+
+2023-09-18 Vladimir Serbinenko
+
+ ZFS: Check bonustype in addition to dnode type
+ Some dnodes are shared with properties zap. This is used
+ e.g. for quotas. Then dnode type is 0xc4 and GRUB stumbles on
+ this. Check bonus type and if it's ok then ignore dnode type mismatch
+
+ Reviewed-by: Daniel Kiper
+
+2023-09-18 Vladimir Serbinenko
+
+ ZFS: Don't iterate over null objsets
+ Reading them is harmless but useless as they are empty by definition
+
+ Reviewed-by: Daniel Kiper
+
+2023-09-18 Vladimir Serbinenko
+
+ ZFS: Fix invalid memcmp
+ We ended up comparing over unset values as we had dnode_phys on one side
+ and dnode on another
+
+ Reviewed-by: Daniel Kiper
+
+2023-09-18 Vladimir Serbinenko
+
+ ZFS: support inode type embed into its ID
+ This is a speedup used in some ZFS version. This trips GRUB and makes it
+ unable to access directories. Just skip it for now and revisit
+ if we ever need this speedup.
+
+ Reviewed-by: Daniel Kiper
+
+2023-08-31 Heinrich Schuchardt
+
+ video/efi_gop: Require shadow if PixelBltOnly
+ If the EFI graphics pixel format is PixelBltOnly, we cannot write directly
+ to the frame buffer. We need the shadow frame buffer which we copy via
+ the BitBlt operation to the hardware.
+
+ If the pixel format is PixelBltOnly and allocation of the shadow frame
+ buffer fails, we must raise an error to signal that the EFI GOP protocol
+ is not usable.
+
+ Reviewed-by: Daniel Kiper
+
+2023-08-31 Glenn Washburn