summaryrefslogtreecommitdiff
path: root/usr/src/boot/lib/libstand
AgeCommit message (Collapse)AuthorFilesLines
2020-05-1112710 loader: vdev_read() can corrupt memoryToomas Soome1-6/+15
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Igor Kozhukhov <igor@dilos.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-02-2712333 loader: replace zfs_alloc/zfs_free with malloc/freeToomas Soome1-46/+30
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: John Levon <john.levon@joyent.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-02-0712266 loader: rewrite zfs reader zap code to use mallocToomas Soome1-163/+273
Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-01-1712154 loader: readudp() does convert pointers with different alignment ↵Toomas Soome1-1/+1
(missed sizeof struct ip) Reviewed by: Matthias Scheler <mscheler@tintri.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-01-1712154 loader: readudp() does convert pointers with different alignmentToomas Soome1-17/+23
Reviewed by: Matthias Scheler <mscheler@tintri.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-01-0612078 loader: rewrite zfs vdev initializationToomas Soome1-248/+412
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Dan McDonald <danmcd@joyent.com>
2019-12-1612074 loader: cd9660_open() warn: is 'buf' large enough for 'struct ↵Toomas Soome1-4/+4
iso_primary_descriptor'? Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-12-1611055 loader: zfs reader cstyle cleanupToomas Soome1-137/+157
Reviewed by: Rob Johnston <rob.johnston@joyent.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1411935 loader: fix memory corruption bug in vdev_readToomas Soome1-30/+80
Reviewed by: Matthias Scheler <matthias.scheler@wdc.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1411933 loader: we can not read log device but we need to know aboutToomas Soome1-6/+14
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1311930 loader: factor out label and uberblock load from vdev_probe, add MMP ↵Toomas Soome1-90/+166
checks Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1011923 loader: zfs.c cstyle cleanupToomas Soome1-45/+29
Reviewed by: Matthias Scheler <matthias.scheler@wdc.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-0511914 loader: zfs.c is missing malloc checks, fix itToomas Soome1-197/+13
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Matthias Scheler <matthias.scheler@wdc.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-0411888 loader: calculate physical vdev psize from asizeToomas Soome1-6/+23
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-10-2911882 loader: rs_alloc() may return NULLToomas Soome1-5/+22
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2019-10-2811881 loader: zfs_fmtdev can crash when pool discovery did fail and we have ↵Toomas Soome1-3/+8
no spa Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Garrett D'Amore <garrett@damore.org>
2019-10-0411740 loader: warning: unused parameterToomas Soome11-22/+31
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-09-2711667 remove duplicate lz4 implementationsToomas Soome2-1/+6
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-09-2711716 loader: add memalign()Toomas Soome4-12/+57
Reviewed by: Jason King <jason.king@joyent.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
2019-09-2011702 loader: zalloc cstyle cleanupToomas Soome5-266/+271
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-08-1911565 loader: this statement may fall throughToomas Soome1-25/+27
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-08-1510166 loader: support com.delphix:removingToomas Soome2-17/+715
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-08-1211506 smatch resyncJohn Levon1-0/+4
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Robert Mustacchi <rm@joyent.com>
2019-06-2811277 Loader cannot boot from root pool with encryption enabledAndy Fiddaman1-2/+9
Reviewed by: Dan McDonald <danmcd@joyent.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
2019-06-1811182 loader: Distinguish between "no partition" and "choose best partition" ↵Toomas Soome1-1/+1
with a constant. Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2019-06-0411082 loader: Unexpand be32dec()Toomas Soome1-8/+3
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Rob Johnston <rob.johnston@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-3111054 loader: malloc+memset is calloc in spa_createToomas Soome1-2/+1
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-3111053 loader: zfs_alloc and zfs_free should use panicToomas Soome1-4/+2
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-2111045 libstand: smatch errors in dosfs and zfs readerToomas Soome2-4/+4
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-1010930 libstand: fix copyright numberingToomas Soome26-26/+26
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Rob Johnston <rob.johnston@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-0810906 loader: non-ANSI definition of functionToomas Soome13-216/+138
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-04-2110696 loader: use zlib-1.2.11Toomas Soome1-12/+14
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-03-0710454 loader: panic does add newline for usToomas Soome5-11/+12
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-03-0510457 libstand: bzipfs.c cstyle cleanupToomas Soome1-265/+282
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-03-0110459 libstand: stand.h cstyle cleanupToomas Soome1-95/+101
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-03-0110458 libstand: assert.c cstyle cleanupToomas Soome1-2/+1
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-03-0110456 libstand: arp.c cstyle cleanupToomas Soome1-36/+31
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-02-2710455 libstand: cstyle cleanup of sbrk.cToomas Soome1-17/+15
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-02-2710446 loader: split panic routineToomas Soome2-6/+15
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: John Levon <john.levon@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-02-2510443 loader: move panic.c to libstandToomas Soome2-1/+59
Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-02-2310414 loader: move libzfs to libstand and clean up MakefilesToomas Soome7-59/+3884
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: John Levon <john.levon@joyent.com> Approved by: Robert Mustacchi <rm@joyent.com>
2019-02-2210428 loader: really fix cd9660 dirmatchToomas Soome1-4/+30
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@joyent.com>
2019-02-1810412 cd9660: dirmatch fails to unmatch when name is prefix for directory recordToomas Soome1-1/+7
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2019-01-0910066 loader: Add isoboot(5) for booting BIOS systems from HDDs containing ↵Toomas Soome1-0/+1
ISO images. Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Andy Fiddaman <af@citrus-it.net> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
2019-01-0710028 loader: implement framebuffer consoleToomas Soome1-9/+10
10029 common/font: create shared font.c 10030 import pnglite into usr/src/common/pnglite 8918 loader.efi: add vesa edid support 10031 loader: import tem for loader console 10032 loader: implement tem utf-8 support 10033 ficl: add simple gfx words 10034 loader: use term-drawrect for menu frame 10035 loader: add alpha blending for gfx_fb 10036 ficl: add fb-putimage 10037 loader: add illumos.png logo 10038 loader: replace gop and vesa with framebuffer 10039 loader: build rules for new font setup 10040 loader: gfx use GOP Blt() function in visual_io callbacks Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
2018-12-1110053 loader: rework cd9660 header paths and update headerToomas Soome1-2/+2
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@joyent.com>
2018-11-3010008 libstand: gets.c cstyle cleanupToomas Soome1-65/+63
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Joshua M. Clulow <josh@sysmgr.org>
2018-11-259982 libstand: exit on EOF in ngetsToomas Soome1-2/+6
Reviewed by: Andy Fiddaman <omnios@citrus-it.net> Approved by: Dan McDonald <danmcd@joyent.com>
2018-11-099947 loader: Remove unnecessary include from libstand.Toomas Soome3-5/+2
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
2018-09-219799 libstand: tftp.c cstyle cleanupToomas Soome1-115/+117
Reviewed by: Jason King <jason.king@joyent.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Robert Mustacchi <rm@joyent.com>