1. 05 Dec, 2023 1 commit
  2. 29 Nov, 2023 1 commit
  3. 28 Nov, 2023 2 commits
  4. 27 Nov, 2023 1 commit
  5. 24 Nov, 2023 1 commit
  6. 23 Nov, 2023 1 commit
    • Arnd Bergmann's avatar
      EDAC/thunderx: Fix possible out-of-bounds string access · 475c58e1
      Arnd Bergmann authored
      Enabling -Wstringop-overflow globally exposes a warning for a common bug
      in the usage of strncat():
      
        drivers/edac/thunderx_edac.c: In function 'thunderx_ocx_com_threaded_isr':
        drivers/edac/thunderx_edac.c:1136:17: error: 'strncat' specified bound 1024 equals destination size [-Werror=stringop-overflow=]
         1136 |                 strncat(msg, other, OCX_MESSAGE_SIZE);
              |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         ...
         1145 |                                 strncat(msg, other, OCX_MESSAGE_SIZE);
         ...
         1150 |                                 strncat(msg, other, OCX_MESSAGE_SIZE);
      
         ...
      
      Apparently the author of this driver expected strncat() to behave the
      way that strlcat() does, which uses the size of the destination buffer
      as its third argument rather than the length of the source buffer. The
      result is that there is no check on the size of the allocated buffer.
      
      Change it to strlcat().
      
        [ bp: Trim compiler output, fixup commit message. ]
      
      Fixes: 41003396 ("EDAC, thunderx: Add Cavium ThunderX EDAC driver")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Reviewed-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
      Link: https://lore.kernel.org/r/20231122222007.3199885-1-arnd@kernel.org
      475c58e1
  7. 20 Nov, 2023 23 commits
  8. 19 Nov, 2023 8 commits
  9. 18 Nov, 2023 2 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 037266a5
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Seven small fixes, six in drivers and one in sd.
      
        The sd fix is so large because it changes a struct pointer to a struct
        but otherwise is fairly simple"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ufs: qcom-ufs: dt-bindings: Document the SM8650 UFS Controller
        scsi: sd: Fix sshdr use in sd_suspend_common()
        scsi: scsi_debug: Delete some bogus error checking
        scsi: scsi_debug: Fix some bugs in sdebug_error_write()
        scsi: ufs: core: Fix racing issue between ufshcd_mcq_abort() and ISR
        scsi: ufs: core: Expand MCQ queue slot to DeviceQueueDepth + 1
        scsi: qla2xxx: Fix system crash due to bad pointer access
      037266a5
    • Linus Torvalds's avatar
      Merge tag 'parisc-for-6.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 2254005e
      Linus Torvalds authored
      Pull parisc fixes from Helge Deller:
       "On parisc we still sometimes need writeable stacks, e.g. if programs
        aren't compiled with gcc-14. To avoid issues with the upcoming
        systemd-254 we therefore have to disable prctl(PR_SET_MDWE) for now
        (for parisc only).
      
        The other two patches are minor: a bugfix for the soft power-off on
        qemu with 64-bit kernel and prefer strscpy() over strlcpy():
      
         - Fix power soft-off on qemu
      
         - Disable prctl(PR_SET_MDWE) since parisc sometimes still needs
           writeable stacks
      
         - Use strscpy instead of strlcpy in show_cpuinfo()"
      
      * tag 'parisc-for-6.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        prctl: Disable prctl(PR_SET_MDWE) on parisc
        parisc/power: Fix power soft-off when running on qemu
        parisc: Replace strlcpy() with strscpy()
      2254005e