1. 30 7月, 2021 1 次提交
  2. 28 7月, 2021 11 次提交
  3. 27 7月, 2021 2 次提交
    • R
      efi: sysfb_efi: fix build when EFI is not set · 15d27b15
      Randy Dunlap 提交于
      When # CONFIG_EFI is not set, there are 2 definitions of
      sysfb_apply_efi_quirks(). The stub from sysfb.h should be used
      and the __init function from sysfb_efi.c should not be used.
      
      ../drivers/firmware/efi/sysfb_efi.c:337:13: error: redefinition of ‘sysfb_apply_efi_quirks’
       __init void sysfb_apply_efi_quirks(struct platform_device *pd)
                   ^~~~~~~~~~~~~~~~~~~~~~
      In file included from ../drivers/firmware/efi/sysfb_efi.c:26:0:
      ../include/linux/sysfb.h:65:20: note: previous definition of ‘sysfb_apply_efi_quirks’ was here
       static inline void sysfb_apply_efi_quirks(struct platform_device *pd)
                          ^~~~~~~~~~~~~~~~~~~~~~
      Reviewed-by: NJavier Martinez Canillas <javierm@redhat.com>
      Fixes: 8633ef82 ("drivers/firmware: consolidate EFI framebuffer setup for all arches")
      Acked-by: NArd Biesheuvel <ardb@kernel.org>
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Ard Biesheuvel <ardb@kernel.org>
      Cc: linux-efi@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: Javier Martinez Canillas <javierm@redhat.com>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Mark Brown <broonie@kernel.org>
      Cc: linux-next@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210727050447.7339-1-rdunlap@infradead.org
      15d27b15
    • J
      drivers/firmware: fix SYSFB depends to prevent build failures · 71260b9a
      Javier Martinez Canillas 提交于
      The Generic System Framebuffers support is built when the COMPILE_TEST
      option is enabled. But this wrongly assumes that all the architectures
      declare a struct screen_info.
      
      This is true for most architectures, but at least the following do not:
      arc, m68k, microblaze, openrisc, parisc and s390.
      
      By attempting to make this compile testeable on all architectures, it
      leads to linking errors as reported by the kernel test robot for parisc:
      
        All errors (new ones prefixed by >>):
      
           hppa-linux-ld: drivers/firmware/sysfb.o: in function `sysfb_init':
           (.init.text+0x24): undefined reference to `screen_info'
        >> hppa-linux-ld: (.init.text+0x28): undefined reference to `screen_info'
      
      To prevent these errors only allow sysfb to be built on systems that are
      going to need it, which are x86 BIOS and EFI.
      
      The EFI Kconfig symbol is used instead of (ARM || ARM64 || RISC) because
      some of these architectures only declare a struct screen_info if EFI is
      enabled. And also, because the SYSFB code is only used for EFI on these
      architectures. For !EFI the "simple-framebuffer" device is registered by
      OF when parsing the Device Tree Blob (if a DT node for this was defined).
      
      Fixes: d391c582 ("drivers/firmware: move x86 Generic System Framebuffers support")
      Reported-by: Nkernel test robot <lkp@intel.com>
      Signed-off-by: NJavier Martinez Canillas <javierm@redhat.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210727093015.1225107-1-javierm@redhat.com
      71260b9a
  4. 26 7月, 2021 9 次提交
  5. 25 7月, 2021 8 次提交
    • L
      Merge tag '5.14-rc2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · d8079fac
      Linus Torvalds 提交于
      Pull cifs fixes from Steve French:
       "Five cifs/smb3 fixes, including a DFS failover fix, two fallocate
        fixes, and two trivial coverity cleanups"
      
      * tag '5.14-rc2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix fallocate when trying to allocate a hole.
        CIFS: Clarify SMB1 code for POSIX delete file
        CIFS: Clarify SMB1 code for POSIX Create
        cifs: support share failover when remounting
        cifs: only write 64kb at a time when fallocating a small region of a file
      d8079fac
    • L
      Merge tag 'riscv-for-linus-5.14-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 6498f615
      Linus Torvalds 提交于
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - properly set the memory size, which fixes 32-bit systems
      
       - allow initrd to load anywhere in memory, rather that restricting it
         to the first 256MiB
      
       - fix the 'mem=' parameter on 64-bit systems to properly account for
         the maximum supported memory now that the kernel is outside the
         linear map
      
       - avoid installing mappings into the last 4KiB of memory, which
         conflicts with error values
      
       - avoid the stack from being freed while it is being walked
      
       - a handful of fixes to the new copy to/from user routines
      
      * tag 'riscv-for-linus-5.14-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: __asm_copy_to-from_user: Fix: Typos in comments
        riscv: __asm_copy_to-from_user: Remove unnecessary size check
        riscv: __asm_copy_to-from_user: Fix: fail on RV32
        riscv: __asm_copy_to-from_user: Fix: overrun copy
        riscv: stacktrace: pin the task's stack in get_wchan
        riscv: Make sure the kernel mapping does not overlap with IS_ERR_VALUE
        riscv: Make sure the linear mapping does not use the kernel mapping
        riscv: Fix memory_limit for 64-bit kernel
        RISC-V: load initrd wherever it fits into memory
        riscv: Fix 32-bit RISC-V boot failure
      6498f615
    • L
      ACPI: fix NULL pointer dereference · fc68f42a
      Linus Torvalds 提交于
      Commit 71f64283 ("ACPI: utils: Fix reference counting in
      for_each_acpi_dev_match()") started doing "acpi_dev_put()" on a pointer
      that was possibly NULL.  That fails miserably, because that helper
      inline function is not set up to handle that case.
      
      Just make acpi_dev_put() silently accept a NULL pointer, rather than
      calling down to put_device() with an invalid offset off that NULL
      pointer.
      
      Link: https://lore.kernel.org/lkml/a607c149-6bf6-0fd0-0e31-100378504da2@kernel.dk/Reported-and-tested-by: NJens Axboe <axboe@kernel.dk>
      Tested-by: NDaniel Scally <djrscally@gmail.com>
      Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fc68f42a
    • L
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 7ffca2bb
      Linus Torvalds 提交于
      Pull SCSI fixes from James Bottomley:
       "Four fixes, all in drivers, all of which can lead to user visible
        problems in certain situations"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: target: Fix NULL dereference on XCOPY completion
        scsi: mpt3sas: Transition IOC to Ready state during shutdown
        scsi: target: Fix protect handling in WRITE SAME(32)
        scsi: iscsi: Fix iface sysfs attr detection
      7ffca2bb
    • L
      Merge tag 'io_uring-5.14-2021-07-24' of git://git.kernel.dk/linux-block · 0ee818c3
      Linus Torvalds 提交于
      Pull io_uring fixes from Jens Axboe:
      
       - Fix a memory leak due to a race condition in io_init_wq_offload
         (Yang)
      
       - Poll error handling fixes (Pavel)
      
       - Fix early fdput() regression (me)
      
       - Don't reissue iopoll requests off release path (me)
      
       - Add a safety check for io-wq queue off wrong path (me)
      
      * tag 'io_uring-5.14-2021-07-24' of git://git.kernel.dk/linux-block:
        io_uring: explicitly catch any illegal async queue attempt
        io_uring: never attempt iopoll reissue from release path
        io_uring: fix early fdput() of file
        io_uring: fix memleak in io_init_wq_offload()
        io_uring: remove double poll entry on arm failure
        io_uring: explicitly count entries for poll reqs
      0ee818c3
    • L
      Merge tag 'block-5.14-2021-07-24' of git://git.kernel.dk/linux-block · 4d4a60ce
      Linus Torvalds 提交于
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request (Christoph):
          - tracing fix (Keith Busch)
          - fix multipath head refcounting (Hannes Reinecke)
          - Write Zeroes vs PI fix (me)
          - drop a bogus WARN_ON (Zhihao Cheng)
      
       - Increase max blk-cgroup policy size, now that mq-deadline
         uses it too (Oleksandr)
      
      * tag 'block-5.14-2021-07-24' of git://git.kernel.dk/linux-block:
        nvme: set the PRACT bit when using Write Zeroes with T10 PI
        nvme: fix nvme_setup_command metadata trace event
        nvme: fix refcounting imbalance when all paths are down
        nvme-pci: don't WARN_ON in nvme_reset_work if ctrl.state is not RESETTING
        block: increase BLKCG_MAX_POLS
      4d4a60ce
    • L
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 0823baef
      Linus Torvalds 提交于
      Pull i2c fixes from Wolfram Sang:
       "Two bugfixes for the I2C subsystem"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: mpc: Poll for MCF
        misc: eeprom: at24: Always append device id even if label property is set.
      0823baef
    • L
      Merge branch 'akpm' (patches from Andrew) · bca1d4de
      Linus Torvalds 提交于
      Merge misc mm fixes from Andrew Morton:
       "15 patches.
      
        VM subsystems affected by this patch series: userfaultfd, kfence,
        highmem, pagealloc, memblock, pagecache, secretmem, pagemap, and
        hugetlbfs"
      
      * akpm:
        hugetlbfs: fix mount mode command line processing
        mm: fix the deadlock in finish_fault()
        mm: mmap_lock: fix disabling preemption directly
        mm/secretmem: wire up ->set_page_dirty
        writeback, cgroup: do not reparent dax inodes
        writeback, cgroup: remove wb from offline list before releasing refcnt
        memblock: make for_each_mem_range() traverse MEMBLOCK_HOTPLUG regions
        mm: page_alloc: fix page_poison=1 / INIT_ON_ALLOC_DEFAULT_ON interaction
        mm: use kmap_local_page in memzero_page
        mm: call flush_dcache_page() in memcpy_to_page() and memzero_page()
        kfence: skip all GFP_ZONEMASK allocations
        kfence: move the size check to the beginning of __kfence_alloc()
        kfence: defer kfence_test_init to ensure that kunit debugfs is created
        selftest: use mmap instead of posix_memalign to allocate memory
        userfaultfd: do not untag user pointers
      bca1d4de
  6. 24 7月, 2021 9 次提交