Skip to content
Permalink
Dov-Murik/Allo…
Switch branches/tags

Commits on Oct 14, 2021

  1. virt: Add efi_secret module to expose confidential computing secrets

    The new efi_secret module exposes the confidential computing (coco)
    EFI secret area via securityfs interface.
    
    When the module is loaded (and securityfs is mounted, typically under
    /sys/kernel/security), a "coco/efi_secret" directory is created in
    securityfs.  In it, a file is created for each secret entry.  The name
    of each such file is the GUID of the secret entry, and its content is
    the secret data.
    
    This allows applications running in a confidential computing setting to
    read secrets provided by the guest owner via a secure secret injection
    mechanism (such as AMD SEV's LAUNCH_SECRET command).
    
    Removing (unlinking) files in the "coco/efi_secret" directory will zero
    out the secret in memory, and remove the filesystem entry.  If the
    module is removed and loaded again, that secret will not appear in the
    filesystem.
    
    Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
    dubek authored and intel-lab-lkp committed Oct 14, 2021
  2. efi: Reserve confidential computing secret area

    When efi-stub copies an EFI-provided confidential computing (coco)
    secret area, reserve that memory block for future use within the kernel.
    
    Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
    dubek authored and intel-lab-lkp committed Oct 14, 2021
  3. efi/libstub: Copy confidential computing secret area

    Confidential computing (coco) hardware such as AMD SEV (Secure Encrypted
    Virtualization) allows a guest owner to inject secrets into the VMs
    memory without the host/hypervisor being able to read them.
    
    Firmware support for secret injection is available in OVMF, which
    reserves a memory area for secret injection and includes a pointer to it
    the in EFI config table entry LINUX_EFI_COCO_SECRET_TABLE_GUID.
    However, OVMF doesn't force the guest OS to keep this memory area
    reserved.
    
    If EFI exposes such a table entry, efi/libstub will copy this area to a
    reserved memory for future use inside the kernel.
    
    A pointer to the new copy is kept in the EFI table under
    LINUX_EFI_COCO_SECRET_AREA_GUID.
    
    Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
    dubek authored and intel-lab-lkp committed Oct 14, 2021

Commits on Oct 5, 2021

  1. Merge tag 'warning-fixes-20211005' of git://git.kernel.org/pub/scm/li…

    …nux/kernel/git/dhowells/linux-fs
    
    Pull misc fs warning fixes from David Howells:
     "The first four patches fix kerneldoc warnings in fscache, afs, 9p and
      nfs - they're mostly just comment changes, though there's one place in
      9p where a comment got detached from the function it was attached to
      (v9fs_fid_add) and has to switch places with a function that got
      inserted between (__add_fid).
    
      The patch on the end removes an unused symbol in fscache"
    
    * tag 'warning-fixes-20211005' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
      fscache: Remove an unused static variable
      fscache: Fix some kerneldoc warnings shown up by W=1
      9p: Fix a bunch of kerneldoc warnings shown up by W=1
      afs: Fix kerneldoc warning shown up by W=1
      nfs: Fix kerneldoc warning shown up by W=1
    torvalds committed Oct 5, 2021

Commits on Oct 4, 2021

  1. Merge tag 'linux-kselftest-fixes-5.15-rc5' of git://git.kernel.org/pu…

    …b/scm/linux/kernel/git/shuah/linux-kselftest
    
    Pull Kselftest fixes from Shuah Khan:
     "A fix to implicit declaration warns in drivers/dma-buf test"
    
    * tag 'linux-kselftest-fixes-5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
      selftests: drivers/dma-buf: Fix implicit declaration warns
    torvalds committed Oct 4, 2021
  2. fscache: Remove an unused static variable

    The fscache object CREATE_OBJECT work state isn't ever referred to, so
    remove it and avoid the unused variable warning caused by W=1.
    
    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    cc: linux-fsdevel@vger.kernel.org
    cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/163214005516.2945267.7000234432243167892.stgit@warthog.procyon.org.uk/ # rfc v1
    Link: https://lore.kernel.org/r/163281899704.2790286.9177774252843775348.stgit@warthog.procyon.org.uk/ # rfc v2
    dhowells committed Oct 4, 2021
  3. fscache: Fix some kerneldoc warnings shown up by W=1

    Fix some kerneldoc warnings in the fscache driver that are shown up by W=1.
    
    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    cc: Mauro Carvalho Chehab <mchehab@kernel.org>
    cc: linux-fsdevel@vger.kernel.org
    cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/163214005516.2945267.7000234432243167892.stgit@warthog.procyon.org.uk/ # rfc v1
    Link: https://lore.kernel.org/r/163281899704.2790286.9177774252843775348.stgit@warthog.procyon.org.uk/ # rfc v2
    dhowells committed Oct 4, 2021
  4. 9p: Fix a bunch of kerneldoc warnings shown up by W=1

    Fix a bunch of kerneldoc warnings shown up by W=1 in the 9p filesystem:
    
     (1) Add/remove/fix kerneldoc parameters descriptions.
    
     (2) Move __add_fid() from between v9fs_fid_add() and its comment.
    
     (3) 9p's caches_show() doesn't really make sense as an API function, so
         remove the kerneldoc annotation.  It's also not prefixed with 'v9fs_'.
         Also remove the kerneldoc markers from the 9p fscache wrappers.
    
    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    cc: Mauro Carvalho Chehab <mchehab@kernel.org>
    cc: v9fs-developer@lists.sourceforge.net
    cc: linux-fsdevel@vger.kernel.org
    cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/163214005516.2945267.7000234432243167892.stgit@warthog.procyon.org.uk/ # rfc v1
    Link: https://lore.kernel.org/r/163281899704.2790286.9177774252843775348.stgit@warthog.procyon.org.uk/ # rfc v2
    dhowells committed Oct 4, 2021
  5. afs: Fix kerneldoc warning shown up by W=1

    Fix a kerneldoc warning in afs due to a partially documented internal
    function by removing the kerneldoc marker.
    
    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    cc: linux-fsdevel@vger.kernel.org
    cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/163214005516.2945267.7000234432243167892.stgit@warthog.procyon.org.uk/ # rfc v1
    Link: https://lore.kernel.org/r/163281899704.2790286.9177774252843775348.stgit@warthog.procyon.org.uk/ # rfc v2
    dhowells committed Oct 4, 2021
  6. nfs: Fix kerneldoc warning shown up by W=1

    Fix a kerneldoc warning in nfs due to documentation for a parameter that
    isn't present.
    
    Signed-off-by: David Howells <dhowells@redhat.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    cc: Trond Myklebust <trond.myklebust@hammerspace.com>
    cc: Anna Schumaker <anna.schumaker@netapp.com>
    cc: Mauro Carvalho Chehab <mchehab@kernel.org>
    cc: linux-nfs@vger.kernel.org
    cc: linux-fsdevel@vger.kernel.org
    cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/163214005516.2945267.7000234432243167892.stgit@warthog.procyon.org.uk/ # rfc v1
    Link: https://lore.kernel.org/r/163281899704.2790286.9177774252843775348.stgit@warthog.procyon.org.uk/ # rfc v2
    dhowells committed Oct 4, 2021
  7. Merge tag 'media/v5.15-3' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/mchehab/linux-media
    
    Pull media fix from Mauro Carvalho Chehab:
     "There's just one patch here, fixing a -Werror issue at
      staging/atomisp"
    
    * tag 'media/v5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
      media: atomisp: restore missing 'return' statement
    torvalds committed Oct 4, 2021
  8. Merge tag 'ovl-fixes-5.15-rc5' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/mszeredi/vfs
    
    Pull overlayfs fixes from Miklos Szeredi:
     "Fix two bugs, both of them corner cases not affecting most users"
    
    * tag 'ovl-fixes-5.15-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
      ovl: fix IOCB_DIRECT if underlying fs doesn't support direct IO
      ovl: fix missing negative dentry check in ovl_rename()
    torvalds committed Oct 4, 2021
  9. Merge tag 'mips-fixes_5.15_1' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/mips/linux
    
    Pull MIPS fix from Thomas Bogendoerfer:
     "Revert workaround for buggy cpu detection because regressions"
    
    * tag 'mips-fixes_5.15_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
      MIPS: Revert "add support for buggy MT7621S core detection"
    torvalds committed Oct 4, 2021
  10. media: atomisp: restore missing 'return' statement

    The input_system_configure_channel_sensor() function lost its final
    return code in a previous patch:
    
    drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c: In function 'input_system_configure_channel_sensor':
    drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1649:1: error: control reaches end of non-void function [-Werror=return-type]
    
    Restore what was there originally.
    
    Link: https://lore.kernel.org/linux-media/20210802143820.1150099-1-arnd@kernel.org
    Fixes: 728a5c6 ("media: atomisp: remove dublicate code")
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    arndb authored and mchehab committed Oct 4, 2021

Commits on Oct 3, 2021

  1. Linux 5.15-rc4

    torvalds committed Oct 3, 2021
  2. elf: don't use MAP_FIXED_NOREPLACE for elf interpreter mappings

    In commit b212921 ("elf: don't use MAP_FIXED_NOREPLACE for elf
    executable mappings") we still leave MAP_FIXED_NOREPLACE in place for
    load_elf_interp.
    
    Unfortunately, this will cause kernel to fail to start with:
    
        1 (init): Uhuuh, elf segment at 00003ffff7ffd000 requested but the memory is mapped already
        Failed to execute /init (error -17)
    
    The reason is that the elf interpreter (ld.so) has overlapping segments.
    
      readelf -l ld-2.31.so
      Program Headers:
        Type           Offset             VirtAddr           PhysAddr
                       FileSiz            MemSiz              Flags  Align
        LOAD           0x0000000000000000 0x0000000000000000 0x0000000000000000
                       0x000000000002c94c 0x000000000002c94c  R E    0x10000
        LOAD           0x000000000002dae0 0x000000000003dae0 0x000000000003dae0
                       0x00000000000021e8 0x0000000000002320  RW     0x10000
        LOAD           0x000000000002fe00 0x000000000003fe00 0x000000000003fe00
                       0x00000000000011ac 0x0000000000001328  RW     0x10000
    
    The reason for this problem is the same as described in commit
    ad55eac ("elf: enforce MAP_FIXED on overlaying elf segments").
    
    Not only executable binaries, elf interpreters (e.g. ld.so) can have
    overlapping elf segments, so we better drop MAP_FIXED_NOREPLACE and go
    back to MAP_FIXED in load_elf_interp.
    
    Fixes: 4ed2863 ("fs, elf: drop MAP_FIXED usage from elf_map")
    Cc: <stable@vger.kernel.org> # v4.19
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Michal Hocko <mhocko@suse.com>
    Signed-off-by: Chen Jingwen <chenjingwen6@huawei.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Chen Jingwen authored and torvalds committed Oct 3, 2021
  3. Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/tytso/ext4
    
    Pull ext4 fixes from Ted Ts'o:
     "Fix a number of ext4 bugs in fast_commit, inline data, and delayed
      allocation.
    
      Also fix error handling code paths in ext4_dx_readdir() and
      ext4_fill_super().
    
      Finally, avoid a grabbing a journal head in the delayed allocation
      write in the common cases where we are overwriting a pre-existing
      block or appending to an inode"
    
    * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
      ext4: recheck buffer uptodate bit under buffer lock
      ext4: fix potential infinite loop in ext4_dx_readdir()
      ext4: flush s_error_work before journal destroy in ext4_fill_super
      ext4: fix loff_t overflow in ext4_max_bitmap_size()
      ext4: fix reserved space counter leakage
      ext4: limit the number of blocks in one ADD_RANGE TLV
      ext4: enforce buffer head state assertion in ext4_da_map_blocks
      ext4: remove extent cache entries when truncating inline data
      ext4: drop unnecessary journal handle in delalloc write
      ext4: factor out write end code of inline file
      ext4: correct the error path of ext4_write_inline_data_end()
      ext4: check and update i_disksize properly
      ext4: add error checking to ext4_ext_replay_set_iblocks()
    torvalds committed Oct 3, 2021
  4. objtool: print out the symbol type when complaining about it

    The objtool warning that the kvm instruction emulation code triggered
    wasn't very useful:
    
        arch/x86/kvm/emulate.o: warning: objtool: __ex_table+0x4: don't know how to handle reloc symbol type: kvm_fastop_exception
    
    in that it helpfully tells you which symbol name it had trouble figuring
    out the relocation for, but it doesn't actually say what the unknown
    symbol type was that triggered it all.
    
    In this case it was because of missing type information (type 0, aka
    STT_NOTYPE), but on the whole it really should just have printed that
    out as part of the message.
    
    Because if this warning triggers, that's very much the first thing you
    want to know - why did reloc2sec_off() return failure for that symbol?
    
    So rather than just saying you can't handle some type of symbol without
    saying what the type _was_, just print out the type number too.
    
    Fixes: 24ff652 ("objtool: Teach get_alt_entry() about more relocation types")
    Link: https://lore.kernel.org/lkml/CAHk-=wiZwq-0LknKhXN4M+T8jbxn_2i9mcKpO+OaBSSq_Eh7tg@mail.gmail.com/
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed Oct 3, 2021
  5. kvm: fix objtool relocation warning

    The recent change to make objtool aware of more symbol relocation types
    (commit 24ff652: "objtool: Teach get_alt_entry() about more
    relocation types") also added another check, and resulted in this
    objtool warning when building kvm on x86:
    
        arch/x86/kvm/emulate.o: warning: objtool: __ex_table+0x4: don't know how to handle reloc symbol type: kvm_fastop_exception
    
    The reason seems to be that kvm_fastop_exception() is marked as a global
    symbol, which causes the relocation to ke kept around for objtool.  And
    at the same time, the kvm_fastop_exception definition (which is done as
    an inline asm statement) doesn't actually set the type of the global,
    which then makes objtool unhappy.
    
    The minimal fix is to just not mark kvm_fastop_exception as being a
    global symbol.  It's only used in that one compilation unit anyway, so
    it was always pointless.  That's how all the other local exception table
    labels are done.
    
    I'm not entirely happy about the kinds of games that the kvm code plays
    with doing its own exception handling, and the fact that it confused
    objtool is most definitely a symptom of the code being a bit too subtle
    and ad-hoc.  But at least this trivial one-liner makes objtool no longer
    upset about what is going on.
    
    Fixes: 24ff652 ("objtool: Teach get_alt_entry() about more relocation types")
    Link: https://lore.kernel.org/lkml/CAHk-=wiZwq-0LknKhXN4M+T8jbxn_2i9mcKpO+OaBSSq_Eh7tg@mail.gmail.com/
    Cc: Borislav Petkov <bp@suse.de>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Sean Christopherson <seanjc@google.com>
    Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
    Cc: Wanpeng Li <wanpengli@tencent.com>
    Cc: Jim Mattson <jmattson@google.com>
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Nathan Chancellor <nathan@kernel.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    torvalds committed Oct 3, 2021
  6. Merge tag 'char-misc-5.15-rc4' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/gregkh/char-misc
    
    Pull char/misc driver fixes from Greg KH:
     "Here are some small misc driver fixes for 5.15-rc4. They are in two
      "groups":
    
       - ipack driver fixes for issues found by Johan Hovold
    
       - interconnect driver fixes for reported problems
    
      All of these have been in linux-next for a while with no reported
      issues"
    
    * tag 'char-misc-5.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
      ipack: ipoctal: fix module reference leak
      ipack: ipoctal: fix missing allocation-failure check
      ipack: ipoctal: fix tty-registration error handling
      ipack: ipoctal: fix tty registration race
      ipack: ipoctal: fix stack information leak
      interconnect: qcom: sdm660: Add missing a2noc qos clocks
      dt-bindings: interconnect: sdm660: Add missing a2noc qos clocks
      interconnect: qcom: sdm660: Correct NOC_QOS_PRIORITY shift and mask
      interconnect: qcom: sdm660: Fix id of slv_cnoc_mnoc_cfg
    torvalds committed Oct 3, 2021
  7. Merge tag 'driver-core-5.15-rc4' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/gregkh/driver-core
    
    Pull driver core fixes from Greg KH:
     "Here are some driver core and kernfs fixes for reported issues for
      5.15-rc4. These fixes include:
    
       - kernfs positive dentry bugfix
    
       - debugfs_create_file_size error path fix
    
       - cpumask sysfs file bugfix to preserve the user/kernel abi (has been
         reported multiple times.)
    
       - devlink fixes for mdiobus devices as reported by the subsystem
         maintainers.
    
      Also included in here are some devlink debugging changes to make it
      easier for people to report problems when asked. They have already
      helped with the mdiobus and other subsystems reporting issues.
    
      All of these have been linux-next for a while with no reported issues"
    
    * tag 'driver-core-5.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
      kernfs: also call kernfs_set_rev() for positive dentry
      driver core: Add debug logs when fwnode links are added/deleted
      driver core: Create __fwnode_link_del() helper function
      driver core: Set deferred probe reason when deferred by driver core
      net: mdiobus: Set FWNODE_FLAG_NEEDS_CHILD_BOUND_ON_ADD for mdiobus parents
      driver core: fw_devlink: Add support for FWNODE_FLAG_NEEDS_CHILD_BOUND_ON_ADD
      driver core: fw_devlink: Improve handling of cyclic dependencies
      cpumask: Omit terminating null byte in cpumap_print_{list,bitmask}_to_buf
      debugfs: debugfs_create_file_size(): use IS_ERR to check for error
    torvalds committed Oct 3, 2021
  8. Merge tag 'sched_urgent_for_v5.15_rc4' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/tip/tip
    
    Pull scheduler fixes from Borislav Petkov:
    
     - Tell the compiler to always inline is_percpu_thread()
    
     - Make sure tunable_scaling buffer is null-terminated after an update
       in sysfs
    
     - Fix LTP named regression due to cgroup list ordering
    
    * tag 'sched_urgent_for_v5.15_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      sched: Always inline is_percpu_thread()
      sched/fair: Null terminate buffer when updating tunable_scaling
      sched/fair: Add ancestors of unthrottled undecayed cfs_rq
    torvalds committed Oct 3, 2021
  9. Merge tag 'perf_urgent_for_v5.15_rc4' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/tip/tip
    
    Pull perf fixes from Borislav Petkov:
    
     - Make sure the destroy callback is reset when a event initialization
       fails
    
     - Update the event constraints for Icelake
    
     - Make sure the active time of an event is updated even for inactive
       events
    
    * tag 'perf_urgent_for_v5.15_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      perf/core: fix userpage->time_enabled of inactive events
      perf/x86/intel: Update event constraints for ICX
      perf/x86: Reset destroy callback on event init failure
    torvalds committed Oct 3, 2021
  10. Merge tag 'objtool_urgent_for_v5.15_rc4' of git://git.kernel.org/pub/…

    …scm/linux/kernel/git/tip/tip
    
    Pull objtool fix from Borislav Petkov:
    
     - Handle symbol relocations properly due to changes in the toolchains
       which remove section symbols now
    
    * tag 'objtool_urgent_for_v5.15_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      objtool: Teach get_alt_entry() about more relocation types
    torvalds committed Oct 3, 2021
  11. Merge tag 'hwmon-for-v5.15-rc4' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/groeck/linux-staging
    
    Pull hwmon fixes from Guenter Roeck:
    
     - Fixed various potential NULL pointer accesses in w8379* drivers
    
     - Improved error handling, fault reporting, and fixed rounding in
       thmp421 driver
    
     - Fixed error handling in ltc2947 driver
    
     - Added missing attribute to pmbus/mp2975 driver
    
     - Fixed attribute values in pbus/ibm-cffps, occ, and mlxreg-fan
       drivers
    
     - Removed unused residual code from k10temp driver
    
    * tag 'hwmon-for-v5.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
      hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary structure field
      hwmon: (w83792d) Fix NULL pointer dereference by removing unnecessary structure field
      hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure field
      hwmon: (pmbus/mp2975) Add missed POUT attribute for page 1 mp2975 controller
      hwmon: (pmbus/ibm-cffps) max_power_out swap changes
      hwmon: (occ) Fix P10 VRM temp sensors
      hwmon: (ltc2947) Properly handle errors when looking for the external clock
      hwmon: (tmp421) fix rounding for negative values
      hwmon: (tmp421) report /PVLD condition as fault
      hwmon: (tmp421) handle I2C errors
      hwmon: (mlxreg-fan) Return non-zero value when fan current state is enforced from sysfs
      hwmon: (k10temp) Remove residues of current and voltage
    torvalds committed Oct 3, 2021
  12. Merge tag '5.15-rc3-ksmbd-fixes' of git://git.samba.org/ksmbd

    Pull ksmbd server fixes from Steve French:
     "Eleven fixes for the ksmbd kernel server, mostly security related:
    
       - an important fix for disabling weak NTLMv1 authentication
    
       - seven security (improved buffer overflow checks) fixes
    
       - fix for wrong infolevel struct used in some getattr/setattr paths
    
       - two small documentation fixes"
    
    * tag '5.15-rc3-ksmbd-fixes' of git://git.samba.org/ksmbd:
      ksmbd: missing check for NULL in convert_to_nt_pathname()
      ksmbd: fix transform header validation
      ksmbd: add buffer validation for SMB2_CREATE_CONTEXT
      ksmbd: add validation in smb2 negotiate
      ksmbd: add request buffer validation in smb2_set_info
      ksmbd: use correct basic info level in set_file_basic_info()
      ksmbd: remove NTLMv1 authentication
      ksmbd: fix documentation for 2 functions
      MAINTAINERS: rename cifs_common to smbfs_common in cifs and ksmbd entry
      ksmbd: fix invalid request buffer access in compound
      ksmbd: remove RFC1002 check in smb2 request
    torvalds committed Oct 3, 2021

Commits on Oct 2, 2021

  1. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Five fairly minor fixes and spelling updates, all in drivers. Even
      though the ufs fix is in tracing, it's a potentially exploitable use
      beyond end of array bug"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: csiostor: Add module softdep on cxgb4
      scsi: qla2xxx: Fix excessive messages during device logout
      scsi: virtio_scsi: Fix spelling mistake "Unsupport" -> "Unsupported"
      scsi: ses: Fix unsigned comparison with less than zero
      scsi: ufs: Fix illegal offset in UPIU event trace
    torvalds committed Oct 2, 2021
  2. Merge tag 'block-5.15-2021-10-01' of git://git.kernel.dk/linux-block

    Pull block fixes from Jens Axboe:
     "A few block fixes for this release:
    
       - Revert a BFQ commit that causes breakage for people. Unfortunately
         it was auto-selected for stable as well, so now 5.14.7 suffers from
         it too. Hopefully stable will pick up this revert quickly too, so
         we can remove the issue on that end as well.
    
       - Add a quirk for Apple NVMe controllers, which due to their
         non-compliance broke due to the introduction of command sequences
         (Keith)
    
       - Use shifts in nbd, fixing a __divdi3 issue (Nick)"
    
    * tag 'block-5.15-2021-10-01' of git://git.kernel.dk/linux-block:
      nbd: use shifts rather than multiplies
      Revert "block, bfq: honor already-setup queue merges"
      nvme: add command id quirk for apple controllers
    torvalds committed Oct 2, 2021
  3. Merge tag 'io_uring-5.15-2021-10-01' of git://git.kernel.dk/linux-block

    Pull io_uring fixes from Jens Axboe:
     "Two fixes in here:
    
       - The signal issue that was discussed start of this week (me).
    
       - Kill dead fasync support in io_uring. Looks like it was broken
         since io_uring was initially merged, and given that nobody has ever
         complained about it, let's just kill it (Pavel)"
    
    * tag 'io_uring-5.15-2021-10-01' of git://git.kernel.dk/linux-block:
      io_uring: kill fasync
      io-wq: exclusively gate signal based exit on get_signal() return
    torvalds committed Oct 2, 2021
  4. Merge tag 'libnvdimm-fixes-5.15-rc4' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/nvdimm/nvdimm
    
    Pull libnvdimm fixes from Dan Williams:
     "A fix for a regression added this cycle in the pmem driver, and for a
      long standing bug for failed NUMA node lookups on ARM64.
    
      This has appeared in -next for several days with no reported issues.
    
      Summary:
    
       - Fix a regression that caused the sysfs ABI for pmem block devices
         to not be registered. This fails the nvdimm unit tests and dax
         xfstests.
    
       - Fix numa node lookups for dax-kmem memory (device-dax memory
         assigned to the page allocator) on ARM64"
    
    * tag 'libnvdimm-fixes-5.15-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
      nvdimm/pmem: fix creating the dax group
      ACPI: NFIT: Use fallback node id when numa info in NFIT table is incorrect
    torvalds committed Oct 2, 2021
  5. cachefiles: Fix oops in trace_cachefiles_mark_buried due to NULL object

    In cachefiles_mark_object_buried, the dentry in question may not have an
    owner, and thus our cachefiles_object pointer may be NULL when calling
    the tracepoint, in which case we will also not have a valid debug_id to
    print in the tracepoint.
    
    Check for NULL object in the tracepoint and if so, just set debug_id to
    MAX_UINT as was done in 2908f5e ("fscache: Add a cookie debug ID
    and use that in traces").
    
    This fixes the following oops:
    
        FS-Cache: Cache "mycache" added (type cachefiles)
        CacheFiles: File cache on vdc registered
        ...
        Workqueue: fscache_object fscache_object_work_func [fscache]
        RIP: 0010:trace_event_raw_event_cachefiles_mark_buried+0x4e/0xa0 [cachefiles]
        ....
        Call Trace:
         cachefiles_mark_object_buried+0xa5/0xb0 [cachefiles]
         cachefiles_bury_object+0x270/0x430 [cachefiles]
         cachefiles_walk_to_object+0x195/0x9c0 [cachefiles]
         cachefiles_lookup_object+0x5a/0xc0 [cachefiles]
         fscache_look_up_object+0xd7/0x160 [fscache]
         fscache_object_work_func+0xb2/0x340 [fscache]
         process_one_work+0x1f1/0x390
         worker_thread+0x53/0x3e0
         kthread+0x127/0x150
    
    Fixes: 2908f5e ("fscache: Add a cookie debug ID and use that in traces")
    Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
    Signed-off-by: David Howells <dhowells@redhat.com>
    cc: linux-cachefs@redhat.com
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    DaveWysochanskiRH authored and torvalds committed Oct 2, 2021
  6. drm/i915: fix blank screen booting crashes

    5.15-rc1 crashes with blank screen when booting up on two ThinkPads
    using i915.  Bisections converge convincingly, but arrive at different
    and suprising "culprits", none of them the actual culprit.
    
    netconsole (with init_netconsole() hacked to call i915_init() when
    logging has started, instead of by module_init()) tells the story:
    
    kernel BUG at drivers/gpu/drm/i915/i915_sw_fence.c:245!
    with RSI: ffffffff814d408b pointing to sw_fence_dummy_notify().
    I've been building with CONFIG_CC_OPTIMIZE_FOR_SIZE=y, and that
    function needs to be 4-byte aligned.
    
    Fixes: 62eaf0a ("drm/i915/guc: Support request cancellation")
    Signed-off-by: Hugh Dickins <hughd@google.com>
    Tested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Hugh Dickins authored and torvalds committed Oct 2, 2021
  7. hwmon: (w83793) Fix NULL pointer dereference by removing unnecessary …

    …structure field
    
    If driver read tmp value sufficient for
    (tmp & 0x08) && (!(tmp & 0x80)) && ((tmp & 0x7) == ((tmp >> 4) & 0x7))
    from device then Null pointer dereference occurs.
    (It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers)
    Also lm75[] does not serve a purpose anymore after switching to
    devm_i2c_new_dummy_device() in w83791d_detect_subclients().
    
    The patch fixes possible NULL pointer dereference by removing lm75[].
    
    Found by Linux Driver Verification project (linuxtesting.org).
    
    Cc: stable@vger.kernel.org
    Signed-off-by: Nadezda Lutovinova <lutovinova@ispras.ru>
    Link: https://lore.kernel.org/r/20210921155153.28098-3-lutovinova@ispras.ru
    [groeck: Dropped unnecessary continuation lines, fixed multi-line alignments]
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Nadezda Lutovinova authored and groeck committed Oct 2, 2021
  8. hwmon: (w83792d) Fix NULL pointer dereference by removing unnecessary…

    … structure field
    
    If driver read val value sufficient for
    (val & 0x08) && (!(val & 0x80)) && ((val & 0x7) == ((val >> 4) & 0x7))
    from device then Null pointer dereference occurs.
    (It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers)
    Also lm75[] does not serve a purpose anymore after switching to
    devm_i2c_new_dummy_device() in w83791d_detect_subclients().
    
    The patch fixes possible NULL pointer dereference by removing lm75[].
    
    Found by Linux Driver Verification project (linuxtesting.org).
    
    Cc: stable@vger.kernel.org
    Signed-off-by: Nadezda Lutovinova <lutovinova@ispras.ru>
    Link: https://lore.kernel.org/r/20210921155153.28098-2-lutovinova@ispras.ru
    [groeck: Dropped unnecessary continuation lines, fixed multipline alignment]
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Nadezda Lutovinova authored and groeck committed Oct 2, 2021
  9. hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary…

    … structure field
    
    If driver read val value sufficient for
    (val & 0x08) && (!(val & 0x80)) && ((val & 0x7) == ((val >> 4) & 0x7))
    from device then Null pointer dereference occurs.
    (It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers)
    Also lm75[] does not serve a purpose anymore after switching to
    devm_i2c_new_dummy_device() in w83791d_detect_subclients().
    
    The patch fixes possible NULL pointer dereference by removing lm75[].
    
    Found by Linux Driver Verification project (linuxtesting.org).
    
    Cc: stable@vger.kernel.org
    Signed-off-by: Nadezda Lutovinova <lutovinova@ispras.ru>
    Link: https://lore.kernel.org/r/20210921155153.28098-1-lutovinova@ispras.ru
    [groeck: Dropped unnecessary continuation lines, fixed multi-line alignment]
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Nadezda Lutovinova authored and groeck committed Oct 2, 2021
Older