1. 20 May, 2023 6 commits
    • Helge Deller's avatar
      fbdev: stifb: Whitespace cleanups · d9a45969
      Helge Deller authored
      Missed whitespace cleanups in stifb.
      
      Fixes: 80004257 ("fbdev: stifb: Remove trailing whitespaces")
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      d9a45969
    • Helge Deller's avatar
      fbdev: udlfb: Use usb_control_msg_send() · 537adba4
      Helge Deller authored
      Use the newly introduced usb_control_msg_send() instead of usb_control_msg()
      when selecting the channel.
      Reviewed-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      537adba4
    • Alan Stern's avatar
      fbdev: udlfb: Fix endpoint check · ed9de4ed
      Alan Stern authored
      The syzbot fuzzer detected a problem in the udlfb driver, caused by an
      endpoint not having the expected type:
      
      usb 1-1: Read EDID byte 0 failed: -71
      usb 1-1: Unable to get valid EDID from device/display
      ------------[ cut here ]------------
      usb 1-1: BOGUS urb xfer, pipe 3 != type 1
      WARNING: CPU: 0 PID: 9 at drivers/usb/core/urb.c:504 usb_submit_urb+0xed6/0x1880
      drivers/usb/core/urb.c:504
      Modules linked in:
      CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted
      6.4.0-rc1-syzkaller-00016-ga4422ff2 #0
      Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google
      04/28/2023
      Workqueue: usb_hub_wq hub_event
      RIP: 0010:usb_submit_urb+0xed6/0x1880 drivers/usb/core/urb.c:504
      ...
      Call Trace:
       <TASK>
       dlfb_submit_urb+0x92/0x180 drivers/video/fbdev/udlfb.c:1980
       dlfb_set_video_mode+0x21f0/0x2950 drivers/video/fbdev/udlfb.c:315
       dlfb_ops_set_par+0x2a7/0x8d0 drivers/video/fbdev/udlfb.c:1111
       dlfb_usb_probe+0x149a/0x2710 drivers/video/fbdev/udlfb.c:1743
      
      The current approach for this issue failed to catch the problem
      because it only checks for the existence of a bulk-OUT endpoint; it
      doesn't check whether this endpoint is the one that the driver will
      actually use.
      
      We can fix the problem by instead checking that the endpoint used by
      the driver does exist and is bulk-OUT.
      
      Reported-and-tested-by: syzbot+0e22d63dcebb802b9bc8@syzkaller.appspotmail.com
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      CC: Pavel Skripkin <paskripkin@gmail.com>
      Fixes: aaf7dbe0 ("video: fbdev: udlfb: properly check endpoint type")
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      ed9de4ed
    • Niklas Schnelle's avatar
      fbdev: atyfb: Remove unused clock determination · 93f57c7a
      Niklas Schnelle authored
      Just below the removed lines par->clk_wr_offset is hard coded to 3 so
      there is no use in determining a different clock just to then ignore it
      anyway. This also removes the only I/O port use remaining in the driver
      allowing it to be built without CONFIG_HAS_IOPORT.
      
      Link: https://lore.kernel.org/all/ZBx5aLo5h546BzBt@intel.com/Suggested-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      93f57c7a
    • Arnd Bergmann's avatar
      fbdev: i810: include i810_main.h in i810_dvt.c · f6cd4c96
      Arnd Bergmann authored
      Building with W=1 shows that a header needs to be included to
      make the prototypes visible:
      
      drivers/video/fbdev/i810/i810_dvt.c:194:6: error: no previous prototype for 'round_off_xres' [-Werror=missing-prototypes]
      drivers/video/fbdev/i810/i810_dvt.c:233:6: error: no previous prototype for 'i810fb_encode_registers' [-Werror=missing-prototypes]
      drivers/video/fbdev/i810/i810_dvt.c:245:6: error: no previous prototype for 'i810fb_fill_var_timings' [-Werror=missing-prototypes]
      drivers/video/fbdev/i810/i810_dvt.c:279:5: error: no previous prototype for 'i810_get_watermark' [-Werror=missing-prototypes]
      
      Adding the header leads to another warning from a mismatched
      prototype, so fix this as well:
      
      drivers/video/fbdev/i810/i810_dvt.c:280:5: error: conflicting types for 'i810_get_watermark'; have 'u32(struct fb_var_screeninfo *,
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      f6cd4c96
    • Arnd Bergmann's avatar
      fbdev: fbmem: mark get_fb_unmapped_area() static · 19abb458
      Arnd Bergmann authored
      There is a global function with this name on sparc, but no
      global declaration:
      
      drivers/video/fbdev/core/fbmem.c:1469:15: error: no previous prototype for 'get_fb_unmapped_area'
      
      Make the generic definition static to avoid this warning. On
      sparc, this is never seen.
      
      Edit by Helge:
      Update Kconfig text as suggested by Geert Uytterhoeven.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      19abb458
  2. 19 May, 2023 1 commit
  3. 14 May, 2023 13 commits
  4. 13 May, 2023 17 commits
  5. 12 May, 2023 3 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
    • Linus Torvalds's avatar
      Merge tag '6.4-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · fd88f147
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
      
       - fix for copy_file_range bug for very large files that are multiples
         of rsize
      
       - do not ignore "isolated transport" flag if set on share
      
       - set rasize default better
      
       - three fixes related to shutdown and freezing (fixes 4 xfstests, and
         closes deferred handles faster in some places that were missed)
      
      * tag '6.4-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: release leases for deferred close handles when freezing
        smb3: fix problem remounting a share after shutdown
        SMB3: force unmount was failing to close deferred close files
        smb3: improve parallel reads of large files
        do not reuse connection if share marked as isolated
        cifs: fix pcchunk length type in smb2_copychunk_range
      fd88f147