]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: F_READ/F_WRITE should be checked against masked flag
authortsoome <tsoome@FreeBSD.org>
Tue, 18 Apr 2017 18:07:54 +0000 (18:07 +0000)
committertsoome <tsoome@FreeBSD.org>
Tue, 18 Apr 2017 18:07:54 +0000 (18:07 +0000)
commit49928d46fb4c1cf09254a3c357a58c94b1743f4b
treed3af4c26660dec91519954637d6e0efb8c17b209
parent9fa93c7957534ac152295d73f84dbf4c7f9281f0
loader: F_READ/F_WRITE should be checked against masked flag

The work to make it possible to avoid bcache via using F_NORA modifier did
miss the fact that not all loader platforms are using the bcache, and so
it is possible the modifier is not cleared, as bcache strategy function is
not used.

For fix, we make sure the checks are dont with masked flag.

This patch does fix boot for platforms which do not use bcache.

Reported by: emaste
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D10422
sys/boot/common/md.c
sys/boot/efi/libefi/efipart.c
sys/boot/i386/libi386/bioscd.c
sys/boot/i386/libi386/biosdisk.c
sys/boot/mips/beri/loader/beri_disk_cfi.c
sys/boot/mips/beri/loader/beri_disk_sdcard.c
sys/boot/powerpc/ps3/ps3cdrom.c
sys/boot/powerpc/ps3/ps3disk.c
sys/boot/uboot/lib/disk.c
sys/boot/usb/storage/umass_loader.c
sys/boot/userboot/userboot/userboot_disk.c