1. 17 May, 2023 2 commits
    • Ilya Leoshkevich's avatar
      statfs: enforce statfs[64] structure initialization · ed40866e
      Ilya Leoshkevich authored
      s390's struct statfs and struct statfs64 contain padding, which
      field-by-field copying does not set. Initialize the respective structs
      with zeros before filling them and copying them to userspace, like it's
      already done for the compat versions of these structs.
      
      Found by KMSAN.
      
      [agordeev@linux.ibm.com: fixed typo in patch description]
      Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
      Cc: stable@vger.kernel.org # v4.14+
      Signed-off-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
      Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Link: https://lore.kernel.org/r/20230504144021.808932-2-iii@linux.ibm.comSigned-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
      ed40866e
    • Heiko Carstens's avatar
      s390/qdio: fix do_sqbs() inline assembly constraint · 2862a2fd
      Heiko Carstens authored
      Use "a" constraint instead of "d" constraint to pass the state parameter to
      the do_sqbs() inline assembly. This prevents that general purpose register
      zero is used for the state parameter.
      
      If the compiler would select general purpose register zero this would be
      problematic for the used instruction in rsy format: the register used for
      the state parameter is a base register. If the base register is general
      purpose register zero the contents of the register are unexpectedly ignored
      when the instruction is executed.
      
      This only applies to z/VM guests using QIOASSIST with dedicated (pass through)
      QDIO-based devices such as FCP [zfcp driver] as well as real OSA or
      HiperSockets [qeth driver].
      
      A possible symptom for this case using zfcp is the following repeating kernel
      message pattern:
      
      zfcp <devbusid>: A QDIO problem occurred
      zfcp <devbusid>: A QDIO problem occurred
      zfcp <devbusid>: qdio: ZFCP on SC <sc> using AI:1 QEBSM:1 PRI:1 TDD:1 SIGA: W
      zfcp <devbusid>: A QDIO problem occurred
      zfcp <devbusid>: A QDIO problem occurred
      
      Each of the qdio problem message can be accompanied by the following entries
      for the affected subchannel <sc> in
      /sys/kernel/debug/s390dbf/qdio_error/hex_ascii for zfcp or qeth:
      
      <sc> ccq: 69....
      <sc> SQBS ERROR.
      Reviewed-by: default avatarBenjamin Block <bblock@linux.ibm.com>
      Cc: Steffen Maier <maier@linux.ibm.com>
      Fixes: 8129ee16 ("[PATCH] s390: qdio V=V pass-through")
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
      Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
      2862a2fd
  2. 15 May, 2023 6 commits
  3. 14 May, 2023 13 commits
  4. 13 May, 2023 17 commits
  5. 12 May, 2023 2 commits
    • Borislav Petkov (AMD)'s avatar
      x86/retbleed: Fix return thunk alignment · 9a48d604
      Borislav Petkov (AMD) authored
      SYM_FUNC_START_LOCAL_NOALIGN() adds an endbr leading to this layout
      (leaving only the last 2 bytes of the address):
      
        3bff <zen_untrain_ret>:
        3bff:       f3 0f 1e fa             endbr64
        3c03:       f6                      test   $0xcc,%bl
      
        3c04 <__x86_return_thunk>:
        3c04:       c3                      ret
        3c05:       cc                      int3
        3c06:       0f ae e8                lfence
      
      However, "the RET at __x86_return_thunk must be on a 64 byte boundary,
      for alignment within the BTB."
      
      Use SYM_START instead.
      Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9a48d604
    • Linus Torvalds's avatar
      Merge tag 'for-6.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 76c7f887
      Linus Torvalds authored
      Pull more btrfs fixes from David Sterba:
      
       - fix incorrect number of bitmap entries for space cache if loading is
         interrupted by some error
      
       - fix backref walking, this breaks a mode of LOGICAL_INO_V2 ioctl that
         is used in deduplication tools
      
       - zoned mode fixes:
            - properly finish zone reserved for relocation
            - correctly calculate super block zone end on ZNS
            - properly initialize new extent buffer for redirty
      
       - make mount option clear_cache work with block-group-tree, to rebuild
         free-space-tree instead of temporarily disabling it that would lead
         to a forced read-only mount
      
       - fix alignment check for offset when printing extent item
      
      * tag 'for-6.4-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: make clear_cache mount option to rebuild FST without disabling it
        btrfs: zero the buffer before marking it dirty in btrfs_redirty_list_add
        btrfs: zoned: fix full zone super block reading on ZNS
        btrfs: zoned: zone finish data relocation BG with last IO
        btrfs: fix backref walking not returning all inode refs
        btrfs: fix space cache inconsistency after error loading it from disk
        btrfs: print-tree: parent bytenr must be aligned to sector size
      76c7f887