]>
git.proxmox.com Git - grub2.git/log
Vladimir Serbinenko [Thu, 26 Feb 2015 21:20:59 +0000 (22:20 +0100)]
emu/cache: Change declaration of __clear_cache to match builtin declaration.
Fixes compile of arm64-emu.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:10:29 +0000 (22:10 +0100)]
arm/dl: Fix handling of nonstandard relocation sizes
Vladimir Serbinenko [Thu, 26 Feb 2015 21:10:09 +0000 (22:10 +0100)]
gzio: Optimize by removing division.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:07:22 +0000 (22:07 +0100)]
raid6: Optimize by removing division.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:06:19 +0000 (22:06 +0100)]
dmraid_nvidia: Fix division by 0 and missing byte-swap.
Vladimir Serbinenko [Thu, 26 Feb 2015 21:04:40 +0000 (22:04 +0100)]
crypto: restrict cipher block size to power of 2.
All current ciphers have blocks which are power of 2 and it's
unlikely to change. Other block length would be tricky to handle anyway.
This restriction allows avoiding extra divisions.
Vladimir Serbinenko [Thu, 26 Feb 2015 20:27:32 +0000 (21:27 +0100)]
jpeg: Optimise by replacing division with shifts.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:27:43 +0000 (18:27 +0100)]
png: Optimize by avoiding divisions.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:22:40 +0000 (18:22 +0100)]
Add missing lib/division.c
Vladimir Serbinenko [Thu, 26 Feb 2015 17:14:28 +0000 (18:14 +0100)]
fbblit: Optimize by replacing division with additions and shifts.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:13:36 +0000 (18:13 +0100)]
bitmap_scale: Optimize by moving division out of the loop.
Vladimir Serbinenko [Thu, 26 Feb 2015 17:11:53 +0000 (18:11 +0100)]
minilzo: Skip parts tha we don't need.
Vladimir Serbinenko [Mon, 23 Feb 2015 21:33:28 +0000 (22:33 +0100)]
mips: Fix soft-float handling.
Add -msoft-float alongside clang arguments to specify ABI.
Specify ABI in asm files explicitly.
This trigers asm warning due to gcc failing to propagate -msoft-float
but it's tolerable.
Vladimir Serbinenko [Sun, 22 Feb 2015 18:34:46 +0000 (19:34 +0100)]
Add missing grub_ prefix in memcpy invocation
Vladimir Serbinenko [Sun, 22 Feb 2015 16:45:30 +0000 (17:45 +0100)]
Allow clang compilation for thumb with -mthumb-interwork.
clang already uses -mthumb-interwork behaviour even thout it doesn't
support the option.
Vladimir Serbinenko [Sun, 22 Feb 2015 16:41:12 +0000 (17:41 +0100)]
arm64: Fix compilation failure.
Don't supply +nosimd to asm files.
Otherwise +nosimd coming from flags forbids some of instructions
used in cache_flush.
Vladimir Serbinenko [Sun, 22 Feb 2015 16:24:28 +0000 (17:24 +0100)]
Supply signed division to fix ARM compilation.
Previously we supplied only unsigned divisions on platforms that need software
division.
Yet compiler may itself use a signed division. A typical example would be a
difference between 2 pointers which involves division by object size.
Vladimir Serbinenko [Sun, 22 Feb 2015 13:42:43 +0000 (14:42 +0100)]
acpi: Fix unused function warning.
Vladimir Serbinenko [Sun, 22 Feb 2015 13:42:19 +0000 (14:42 +0100)]
configure.ac: Add ia64-specific way to disable floats.
Vladimir Serbinenko [Sun, 22 Feb 2015 12:12:44 +0000 (13:12 +0100)]
i386/tsc: Fix unused function warning on xen.
Vladimir Serbinenko [Sun, 22 Feb 2015 00:53:00 +0000 (01:53 +0100)]
Experimental support for clang for sparc64.
Automatically discover command line options to make clang and
gcc behave in same way.
Tested with qemu.
Vladimir Serbinenko [Sat, 21 Feb 2015 22:46:47 +0000 (23:46 +0100)]
Discover which option provides soft-float on configure stage.
Deals with clang needing other arguments to stop issuing floating
instructions than gcc.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:43:57 +0000 (20:43 +0100)]
mips: Switch to more portable .org
Binary is unchanged.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:32:03 +0000 (20:32 +0100)]
sparc64: Switch to more portable .org.
Binaries are unchanged.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:24:59 +0000 (20:24 +0100)]
kernel-8086: Switch to more portable .org.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:18:18 +0000 (20:18 +0100)]
Relax requirements on asm for non-BIOS i386 platforms.
These platforms don't have a hard limit on size of resulting code16
code, so we don't care if assembly is bigger than necessarry.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:13:58 +0000 (20:13 +0100)]
qemu: Switch to more portable .org
Binary is checked identical.
Vladimir Serbinenko [Sat, 21 Feb 2015 19:00:18 +0000 (20:00 +0100)]
qemu: Fix GateA20 enabling.
GateA20 code was inactive due to address error.
Vladimir Serbinenko [Sat, 21 Feb 2015 18:55:53 +0000 (19:55 +0100)]
qemu: Fix compilation
Vladimir Serbinenko [Sat, 21 Feb 2015 18:53:18 +0000 (19:53 +0100)]
Remove realmode.S from coreboot and qemu.
It's not used there.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:44:41 +0000 (17:44 +0100)]
Remove obsolete ADDR32 and DATA32 checks.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:38:56 +0000 (17:38 +0100)]
i386: Remove needless ADDR32 prefixes when address is known and fixed.
Shaves off 6 bytes in lzma_decompress.img.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:20:10 +0000 (17:20 +0100)]
i386-pc/boot: Explicitly mark kernel_address[_high] as local.
Otherwise apple asm might try to make accesses relocatable.
Vladimir Serbinenko [Sat, 21 Feb 2015 16:19:01 +0000 (17:19 +0100)]
Change dot assignmnet to more portable .org.
Binary is unchanged (verified)
Vladimir Serbinenko [Sat, 21 Feb 2015 16:13:23 +0000 (17:13 +0100)]
i386: Move from explicit ADDR32/DATA32 prefixes to instruction suffixes.
Is more portable.
Binary is unchanged (verified).
Vladimir Serbinenko [Sat, 21 Feb 2015 15:29:28 +0000 (16:29 +0100)]
Test which flags make our asm compile.
Previously we relied on assumption that clang always needs -no-integrated-as
but it's not always true.
Vladimir Serbinenko [Sat, 21 Feb 2015 15:22:48 +0000 (16:22 +0100)]
INSTALL: clarify that clang support is experimental
Vladimir Serbinenko [Sat, 21 Feb 2015 15:22:01 +0000 (16:22 +0100)]
zfs/mzap_lookup: Fix argument types
Vladimir Serbinenko [Sat, 21 Feb 2015 15:19:09 +0000 (16:19 +0100)]
wildcard: Mark unused argument as such.
Vladimir Serbinenko [Sat, 21 Feb 2015 15:16:48 +0000 (16:16 +0100)]
ofdisk: Exclude floppies from scanning.
It causes similar hang as CD on at least the qemu.
Vladimir Serbinenko [Sat, 21 Feb 2015 15:13:11 +0000 (16:13 +0100)]
configure: Add -msoft-float to CCASFLAGS
Otherwise mismatch between API flags triggers linker failure
Vladimir Serbinenko [Sat, 21 Feb 2015 15:09:46 +0000 (16:09 +0100)]
mips/startup_raw: Use more portable .asciz
Vladimir Serbinenko [Sat, 21 Feb 2015 15:07:59 +0000 (16:07 +0100)]
Provide __aeabi_mem{cpy,set}
Fixes ARM compilation
Vladimir Serbinenko [Sat, 21 Feb 2015 15:05:45 +0000 (16:05 +0100)]
div_test: Don't try to divide by zero
Vladimir Serbinenko [Sat, 21 Feb 2015 15:03:11 +0000 (16:03 +0100)]
INSTALL: Fix names of host flags to match actual behaviour
Vladimir Serbinenko [Sat, 21 Feb 2015 15:01:53 +0000 (16:01 +0100)]
Strip .MIPS.abiflags which causes compile failure
Vladimir Serbinenko [Fri, 20 Feb 2015 20:30:34 +0000 (21:30 +0100)]
configure: Move adding of include options to the very end to avoid subshell.
Vladimir Serbinenko [Fri, 20 Feb 2015 20:29:35 +0000 (21:29 +0100)]
configure: Add missing comma.
Vladimir Serbinenko [Mon, 16 Feb 2015 20:08:37 +0000 (21:08 +0100)]
ext2: Ignore INCOMPAT_MMP.
It's not really incompatible as long as driver never writes to FS.
Vladimir Serbinenko [Mon, 16 Feb 2015 19:53:26 +0000 (20:53 +0100)]
ext2: Support META_BG.
This fixes bug that system would become unbootable after ext*
online resize if no resize_inode was created at ext* format time.
Andrei Borzenkov [Mon, 16 Feb 2015 19:07:33 +0000 (22:07 +0300)]
tests: remove hardcoded paths from syslinux_test
abs_top_srcdir appeared in Autoconf 2.52f. Minimal grub requirement
is 2.60 so we should be good here.
Andrei Borzenkov [Mon, 16 Feb 2015 17:31:22 +0000 (20:31 +0300)]
build-sys: add syslinux test files to tarball
Vladimir Serbinenko [Mon, 16 Feb 2015 14:58:59 +0000 (15:58 +0100)]
Add test for syslinux converter
Vladimir Serbinenko [Mon, 16 Feb 2015 14:56:26 +0000 (15:56 +0100)]
Don't remove initrd= parameter.
Based on simplified patch by Lunar.
Reported by: Lunar
Vladimir Serbinenko [Mon, 16 Feb 2015 09:54:20 +0000 (10:54 +0100)]
syslinux_parse: Always output comments even if no entries are found.
Andrei Borzenkov [Sun, 15 Feb 2015 07:10:03 +0000 (10:10 +0300)]
diskfilter_make_raid: more memory leaks in failure path
Vladimir Serbinenko [Sat, 14 Feb 2015 19:31:00 +0000 (20:31 +0100)]
disk/lvm: Use zalloc to ensure that segments are initialised to sane value.
Reported by: EmanueL Czirai.
Daniel Kiper [Fri, 30 Jan 2015 17:59:24 +0000 (18:59 +0100)]
multiboot2: Fix information request tag size calculation
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Andrei Borzenkov [Sat, 14 Feb 2015 16:08:58 +0000 (19:08 +0300)]
diskfilter: fix double free of lv names for mdraid
Avoid micro-optimization in grub_diskfilter_make_raid and make sure
name and fullname are independent strings. This avoids need to special
case it everywhere else.
Also fix memory leak in failure case in grub_diskfilter_make_raid.
Closes: 41582
Andrei Borzenkov [Sat, 14 Feb 2015 14:55:35 +0000 (17:55 +0300)]
diskfilter: fix crash in validate_lv for mdraid arrays
Commit
750f4bacd3262376ced3f837d8dc78f834ca233a put LV validation before
actual vg assignment. Make grub_diskfilter_make_raid to assign ->vg as
happens in other cases for consistency. Also clean up redundant code and add
explicit NULL lv->vg check in validate_lv.
Also fix segment validation in validate_lv; it became obvious when crash
was fixed.
Closes: 44199
Jiri Slaby [Thu, 12 Feb 2015 10:02:09 +0000 (11:02 +0100)]
util: mkimage, fix gcc5 build failure
gcc5 reports:
../util/mkimage.c: In function 'grub_install_get_image_target':
../util/mkimage.c:954:5: error: loop exit may only be reached after undefined behavior [-Werror=aggressive-loop-optimizations]
&& j < ARRAY_SIZE (image_targets[i].names); j++)
^
../util/mkimage.c:953:39: note: possible undefined statement is here
for (j = 0; image_targets[i].names[j]
^
Well, let's move the index 'j' test before accesing the array to:
1) make the loop obvious
2) make gcc happy
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Leif Lindholm [Tue, 3 Feb 2015 21:16:36 +0000 (21:16 +0000)]
arm: implement additional relocations generated by gcc 4.9 at -O3
GCC 4.9 also generates R_ARM_THM_MOVW_ABS_NC and R_ARM_THM_MOVT_ABS,
as an alternative to ABS32.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Andrei Borzenkov [Fri, 30 Jan 2015 19:57:39 +0000 (22:57 +0300)]
setup: fix blocklist size calculation
Found by: Coverity scan.
Andrei Borzenkov [Fri, 30 Jan 2015 19:45:58 +0000 (22:45 +0300)]
grub-fstest: fix descriptor leak
Found by: Coverity scan.
Andrei Borzenkov [Fri, 30 Jan 2015 19:39:11 +0000 (22:39 +0300)]
net/pxe: fix error condition
Test return value of grub_netbuff_reserve(), buf itself cannot be
NULL here.
Found by: Coverity scan.
Andrei Borzenkov [Fri, 30 Jan 2015 19:26:05 +0000 (22:26 +0300)]
grub-mkimage: fix potential NULL pointer dereference
Move fatal check whether symtab_section is NULL before first reference.
Found by: Coverity scan.
Andrei Borzenkov [Fri, 30 Jan 2015 19:09:51 +0000 (22:09 +0300)]
net/ip: check result of grub_netbuff_push
Found by: Coverity scan.
Andrei Borzenkov [Fri, 30 Jan 2015 18:42:46 +0000 (21:42 +0300)]
tests: add test command file tests
This requires access to files in both host and grub image, so
implementing as separate test unit instead of script test was
more easy.
Andrei Borzenkov [Fri, 30 Jan 2015 17:31:20 +0000 (20:31 +0300)]
test: consistently use TMPDIR and same name pattern for temp files
Andrei Borzenkov [Fri, 30 Jan 2015 17:21:56 +0000 (20:21 +0300)]
test: fix previous commit - we need to return from subexpression
( ... ) was processed recursively, we need to return from it. Revert
this change.
Andrei Borzenkov [Fri, 30 Jan 2015 17:10:43 +0000 (20:10 +0300)]
test: do not stop after first file test or closing bracket
Closes: 44115
Leif Lindholm [Wed, 28 Jan 2015 20:17:18 +0000 (20:17 +0000)]
configure.ac: don't use -msoft-float for arm64
aarch64 toolchains do not support the -msoft-float option added by
commit
3661261f . Insted, for arm64 use -march=armv8-a+nofp+nosimd.
Reported-by: Ryan Harkin <ryan.harkin@linaro.org>
Andrei Borzenkov [Wed, 28 Jan 2015 17:35:28 +0000 (20:35 +0300)]
script/execute.c: fix memory leak.
Make sure to continue loop over array after failure to free
allocated strings.
Found by: Coverity scan.
Andrei Borzenkov [Wed, 28 Jan 2015 17:09:25 +0000 (20:09 +0300)]
syslinux_parse: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Tue, 27 Jan 2015 19:34:50 +0000 (22:34 +0300)]
Change quotes to match overall style in NEWS
Andrei Borzenkov [Tue, 27 Jan 2015 18:49:45 +0000 (21:49 +0300)]
loader/xnu: fix memory leak.
Foound by: Coverity scan.
Andrei Borzenkov [Tue, 27 Jan 2015 18:29:55 +0000 (21:29 +0300)]
util/grub-probe: fix memory leaks.
Found by: Coverity scan.
Andrei Borzenkov [Tue, 27 Jan 2015 18:19:28 +0000 (21:19 +0300)]
fs/hfsplus: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Tue, 27 Jan 2015 18:13:10 +0000 (21:13 +0300)]
fs/zfs/zfscrypt.c: fix indentation.
Andrei Borzenkov [Tue, 27 Jan 2015 18:12:19 +0000 (21:12 +0300)]
fs/zfs/zfscrypt.c: fix memory leaks.
Found by: Coverity scan.
Andrei Borzenkov [Tue, 27 Jan 2015 17:55:25 +0000 (20:55 +0300)]
commands/parttool: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Tue, 27 Jan 2015 17:52:27 +0000 (20:52 +0300)]
fs/zfs/zfs.c: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Tue, 27 Jan 2015 17:29:00 +0000 (20:29 +0300)]
linux/ofpath: fix descriptor leak
Found by: Coverity scan
Andrei Borzenkov [Tue, 27 Jan 2015 17:00:23 +0000 (20:00 +0300)]
linux/hostdisk: use strncpy instead of strlcpy
strlcpy is not available on Linux as part of standard libraries.
It probably is not worth extra configure checks espicially as we
need to handle missing function anyway.
Vladimir Serbinenko [Tue, 27 Jan 2015 16:17:58 +0000 (17:17 +0100)]
Document intentional fallthroughs.
Found by: Coverity scan.
Vladimir Serbinenko [Tue, 27 Jan 2015 15:49:49 +0000 (16:49 +0100)]
linux/ofpath: Fix error handling.
Found by: Coverity Scan.
Vladimir Serbinenko [Tue, 27 Jan 2015 15:48:53 +0000 (16:48 +0100)]
linux/hostdisk: Limit strcpy size to buffer size.
Found by: Coverity scan.
Vladimir Serbinenko [Tue, 27 Jan 2015 15:35:37 +0000 (16:35 +0100)]
fs/zfscrypt: Add missing explicit cast.
Found by: Coverity scan.
Vladimir Serbinenko [Tue, 27 Jan 2015 15:31:35 +0000 (16:31 +0100)]
fs/zfs: Fix error handling.
Found by: Coverity Scan.
Vladimir Serbinenko [Tue, 27 Jan 2015 09:30:43 +0000 (10:30 +0100)]
fs/{cbfs,cpio}: Remove useless check if mode is NULL.
Callers already ensure that it's not null.
Found by: Coverity Scan.
Vladimir Serbinenko [Tue, 27 Jan 2015 09:20:54 +0000 (10:20 +0100)]
commands/acpi: Use ALIGN_UP rather than manual expression.
Improves readability and hopefully automatic scanning.
Found by: Coverity Scan.
Andrei Borzenkov [Mon, 26 Jan 2015 19:44:45 +0000 (22:44 +0300)]
util/setup: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 19:39:08 +0000 (22:39 +0300)]
util/mkimage: fix memory leaks.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 19:24:28 +0000 (22:24 +0300)]
util/grub-mount: fix descriptor leak.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 19:20:51 +0000 (22:20 +0300)]
util/grub-mkstandalone: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 19:17:31 +0000 (22:17 +0300)]
util/grub-install: rearrange code to avoid memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 19:08:13 +0000 (22:08 +0300)]
linux/getroot: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 18:11:32 +0000 (21:11 +0300)]
util/install: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 18:07:19 +0000 (21:07 +0300)]
util/setup: fix memory leak.
Found by: Coverity scan.
Andrei Borzenkov [Mon, 26 Jan 2015 18:41:29 +0000 (21:41 +0300)]
linux/ofpath: fix various memory leaks.
Found by: Coverity scan.