Skip to content
Snippets Groups Projects
  1. Aug 16, 2016
  2. Aug 05, 2016
    • Tom Rini's avatar
      ext4: Refuse to mount filesystems with 64bit feature set · 6f94ab66
      Tom Rini authored
      
      With e2fsprogs after 1.43 the 64bit and metadata_csum features are
      enabled by default.  The metadata_csum feature changes how
      ext4_group_desc->bg_checksum is calculated, which would break write
      support.  The 64bit feature however introduces changes such that it
      cannot be read by implementations that do not support it.  Since we do
      not support this, we must not mount it.
      
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Stefan Roese <sr@denx.de>
      Reported-by: default avatarAndrew Bradford <andrew.bradford@kodakalaris.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      6f94ab66
  3. Jun 19, 2016
    • Guillaume GARDET's avatar
      fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bit · 7a77e909
      Guillaume GARDET authored
      
      Fix the following build errors when building sandbox on x86 32-bit:
      
      	In file included from fs/cbfs/cbfs.c:8:0:
      	include/malloc.h:364:7: error: conflicting types for 'memset'
      	void* memset(void*, int, size_t);
      	^
      	In file included from include/compiler.h:123:0,
      			from include/cbfs.h:10,
      			from fs/cbfs/cbfs.c:7:
      	include/linux/string.h:78:15: note: previous declaration of 'memset' was here
      	extern void * memset(void *,int,__kernel_size_t);
      		^
      	In file included from fs/cbfs/cbfs.c:8:0:
      	include/malloc.h:365:7: error: conflicting types for 'memcpy'
      	void* memcpy(void*, const void*, size_t);
      	^
      	In file included from include/compiler.h:123:0,
      			from include/cbfs.h:10,
      			from fs/cbfs/cbfs.c:7:
      	include/linux/string.h:81:15: note: previous declaration of 'memcpy' was here
      	extern void * memcpy(void *,const void *,__kernel_size_t);
      		^
      	scripts/Makefile.build:280: recipe for target 'fs/cbfs/cbfs.o' failed
      
      Signed-off-by: default avatarGuillaume GARDET <guillaume.gardet@free.fr>
      Cc: Tom Rini <trini@konsulko.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      7a77e909
  4. Jun 04, 2016
  5. May 17, 2016
  6. May 02, 2016
  7. Apr 22, 2016
    • Heiko Schocher's avatar
      ubifs: fix memory corruption in super.c · b1d6590d
      Heiko Schocher authored
      
      In list "super_blocks" ubifs collects allocated super_block
      structs. U-Boot frees on unmount the allocated struct,
      so the pointer stored in this list is free after the umount.
      On a new ubifs mount, the new allocated super_block struct
      get inserted into the super_blocks list ... which contains
      now a freed pointer, and the list_add_tail() corrupts the
      freed memory ...
      
      2 solutions are possible:
      - remove the super_block from the super_blocks list
        on umount
      
      - as U-Boot does not use the super_blocks list ...
        remove it complete for U-Boot.
      
      Both solutions should not introduce problems for porting
      to newer linux version, so this patch removes the unused
      super_blocks list, as it saves code size and execution
      time.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      b1d6590d
  8. Apr 01, 2016
  9. Mar 22, 2016
  10. Mar 14, 2016
  11. Jan 25, 2016
  12. Jan 19, 2016
  13. Jan 14, 2016
  14. Jan 08, 2016
  15. Nov 23, 2015
    • Thomas Fitzsimmons's avatar
      fs: ext4: Prevent infinite loop in ext4fs_iterate_dir · 54d68e93
      Thomas Fitzsimmons authored
      
      If the ext3 journal gets out of sync with what is written on disk, for
      example because of an unexpected power cut, ext4fs_read_file can
      return an all-zero directory entry.  In that case, ext4fs_iterate_dir
      would infinite loop.
      
      This patch detects when a directory entry's direntlen member is 0 and
      returns a failure status, which breaks out of the infinite loop.  As a
      result, U-Boot will not find files that may subsequently be recovered
      when the journal is replayed.
      
      This is better behaviour than hanging in an infinite loop, but as a
      further improvement maybe U-Boot could interpret the ext3 journal and
      actually find the unsynced entries.
      
      Signed-off-by: default avatarThomas Fitzsimmons <fitzsim@cisco.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      54d68e93
  16. Nov 10, 2015
    • Tom Rini's avatar
      Various Makefiles: Add SPDX-License-Identifier tags · da58dec8
      Tom Rini authored
      
      After consulting with some of the SPDX team, the conclusion is that
      Makefiles are worth adding SPDX-License-Identifier tags too, and most of
      ours have one.  This adds tags to ones that lack them and converts a few
      that had full (or in one case, very partial) license blobs into the
      equivalent tag.
      
      Cc: Kate Stewart <kstewart@linuxfoundation.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      da58dec8
  17. Nov 05, 2015
  18. Oct 26, 2015
  19. Oct 24, 2015
  20. Oct 11, 2015
  21. Sep 11, 2015
Loading