1. 16 Jul, 2024 2 commits
  2. 12 Jul, 2024 1 commit
  3. 10 Jul, 2024 1 commit
  4. 19 Jun, 2024 2 commits
  5. 07 Jun, 2024 8 commits
  6. 06 Jun, 2024 5 commits
    • Jeff Johnson's avatar
      HID: add missing MODULE_DESCRIPTION() macros · 9d262f35
      Jeff Johnson authored
      make allmodconfig && make W=1 C=1 reports:
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-a4tech.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-apple.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-aureal.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-belkin.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-betopff.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-bigbenff.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-cherry.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-chicony.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-cypress.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-dr.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-emsff.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-elecom.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-elo.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-evision.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-ezkey.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-vivaldi-common.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-google-hammer.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-google-stadiaff.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-gyration.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-holtek-kbd.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-holtek-mouse.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-ite.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-kensington.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-keytouch.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-kye.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-lcpower.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-lenovo.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-logitech.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-magicmouse.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-maltron.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-mf.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-megaworld.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-microsoft.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-monterey.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-ntrig.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-ortek.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-prodikeys.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-pl.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-petalynx.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-primax.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-razer.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-redragon.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-retrode.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-saitek.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-samsung.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-semitek.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-sjoy.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-sony.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-speedlink.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-steam.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-steelseries.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-sunplus.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-gaff.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-tmff.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-tivo.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-topseed.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-twinhan.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-uclogic.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-xinmo.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-zpff.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-zydacron.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-viewsonic.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-waltop.o
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-winwing.o
      
      Add the missing invocations of the MODULE_DESCRIPTION() macro.
      
      Note: All HID drivers that had explicit entries in the MAINTAINERS
      file were fixed individually. This patch fixes all remaining HID
      drivers that fall under the generic "HID CORE LAYER" entry in the
      MAINTAINERS file.  Almost all descriptions were taken from the header
      comment in each file.
      Signed-off-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
      Link: https://lore.kernel.org/r/20240604-md-hid-misc-v1-1-4f9560796f3c@quicinc.comSigned-off-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
      9d262f35
    • Jeff Johnson's avatar
      HID: logitech-dj: add missing MODULE_DESCRIPTION() macro · ece39418
      Jeff Johnson authored
      make allmodconfig && make W=1 C=1 reports:
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-logitech-dj.o
      
      Add the missing invocation of the MODULE_DESCRIPTION() macro.
      Signed-off-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
      Link: https://lore.kernel.org/r/20240604-md-hid-logitech-dj-v1-1-560f6b3cb54b@quicinc.comSigned-off-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
      ece39418
    • Jeff Johnson's avatar
      HID: lg-g15: add missing MODULE_DESCRIPTION() macro · e52a7d05
      Jeff Johnson authored
      make allmodconfig && make W=1 C=1 reports:
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-lg-g15.o
      
      Add the missing invocation of the MODULE_DESCRIPTION() macro.
      Signed-off-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20240604-md-hid-lg-g15-v1-1-265b094db089@quicinc.comSigned-off-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
      e52a7d05
    • Jeff Johnson's avatar
      HID: letsketch: add missing MODULE_DESCRIPTION() macro · fae5d843
      Jeff Johnson authored
      make allmodconfig && make W=1 C=1 reports:
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-letsketch.o
      
      Add the missing invocation of the MODULE_DESCRIPTION() macro.
      Signed-off-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
      Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Link: https://lore.kernel.org/r/20240604-md-hid-letsketch-v1-1-ff38ae7b4cb0@quicinc.comSigned-off-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
      fae5d843
    • Danny Kaehn's avatar
      HID: usbhid: Share USB device firmware node with child HID device · b81881b9
      Danny Kaehn authored
      USB HID core now shares its fwnode with its child HID device.
      Since there can only be one HID device on a USB interface, it is redundant
      to specify a hid node under the USB device. This allows usb HID device
      drivers to be described in firmware and make use of device properties.
      Signed-off-by: default avatarDanny Kaehn <danny.kaehn@plexus.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20240605-cp2112-dt-v11-2-d55f0f945a62@plexus.comSigned-off-by: default avatarBenjamin Tissoires <bentiss@kernel.org>
      b81881b9
  7. 04 Jun, 2024 6 commits
    • Jeff Johnson's avatar
      HID: logitech-hidpp: add missing MODULE_DESCRIPTION() macro · 9c8f05cf
      Jeff Johnson authored
      make allmodconfig && make W=1 C=1 reports:
      WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-logitech-hidpp.o
      
      Add the missing invocation of the MODULE_DESCRIPTION() macro.
      Signed-off-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      9c8f05cf
    • Arnd Bergmann's avatar
      HID: intel-ish-hid: fix endian-conversion · 9e438fe3
      Arnd Bergmann authored
      The newly added file causes a ton of sparse warnings about the
      incorrect use of __le32 and similar types:
      
      drivers/hid/intel-ish-hid/ishtp/loader.h:41:23: error: invalid bitfield specifier for type restricted __le32.
      drivers/hid/intel-ish-hid/ishtp/loader.h:42:27: error: invalid bitfield specifier for type restricted __le32.
      drivers/hid/intel-ish-hid/ishtp/loader.h:43:24: error: invalid bitfield specifier for type restricted __le32.
      drivers/hid/intel-ish-hid/ishtp/loader.h:44:24: error: invalid bitfield specifier for type restricted __le32.
      drivers/hid/intel-ish-hid/ishtp/loader.h:45:22: error: invalid bitfield specifier for type restricted __le32.
      drivers/hid/intel-ish-hid/ishtp/loader.c:172:33: warning: restricted __le32 degrades to integer
      drivers/hid/intel-ish-hid/ishtp/loader.c:178:50: warning: incorrect type in assignment (different base types)
      drivers/hid/intel-ish-hid/ishtp/loader.c:178:50:    expected restricted __le32 [usertype] length
      drivers/hid/intel-ish-hid/ishtp/loader.c:178:50:    got unsigned long
      drivers/hid/intel-ish-hid/ishtp/loader.c:179:50: warning: incorrect type in assignment (different base types)
      drivers/hid/intel-ish-hid/ishtp/loader.c:179:50:    expected restricted __le32 [usertype] fw_off
      drivers/hid/intel-ish-hid/ishtp/loader.c:179:50:    got unsigned int [usertype] offset
      drivers/hid/intel-ish-hid/ishtp/loader.c:180:17: warning: cast from restricted __le32
      drivers/hid/intel-ish-hid/ishtp/loader.c:183:24: warning: invalid assignment: +=
      drivers/hid/intel-ish-hid/ishtp/loader.c:183:24:    left side has type unsigned int
      drivers/hid/intel-ish-hid/ishtp/loader.c:183:24:    right side has type restricted __le32
      
      Add the necessary conversions and use temporary variables where appropriate
      to avoid converting back.
      
      Fixes: 579a267e ("HID: intel-ish-hid: Implement loading firmware from host feature")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarZhang Lixu <lixu.zhang@intel.com>
      Tested-by: default avatarZhang Lixu <lixu.zhang@intel.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      9e438fe3
    • Christophe JAILLET's avatar
      HID: nintendo: Fix an error handling path in nintendo_hid_probe() · 655a8a76
      Christophe JAILLET authored
      joycon_leds_create() has a ida_alloc() call. So if an error occurs after
      it, a corresponding ida_free() call is needed, as already done in the
      .remove function.
      
      This is not 100% perfect, because if ida_alloc() fails, then
      'ctlr->player_id' will forced to be U32_MAX, and an error will be logged
      when ida_free() is called.
      
      Considering that this can't happen in real life, no special handling is
      done to handle it.
      
      Fixes: 5307de63 ("HID: nintendo: use ida for LED player id")
      Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
      Reviewed-by: default avatarSilvan Jegen <s.jegen@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      655a8a76
    • José Expósito's avatar
      HID: logitech-dj: Fix memory leak in logi_dj_recv_switch_to_dj_mode() · ce3af2ee
      José Expósito authored
      Fix a memory leak on logi_dj_recv_send_report() error path.
      
      Fixes: 6f20d326 ("HID: logitech-dj: Fix error handling in logi_dj_recv_switch_to_dj_mode()")
      Signed-off-by: default avatarJosé Expósito <jose.exposito89@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      ce3af2ee
    • Hailong.Liu's avatar
      HID: Use kvzalloc instead of kzalloc in hid_register_field() · 748fe439
      Hailong.Liu authored
      The function hid_register_field() might allocate more than 32k, which
      would use order-4 contiguous memory if the parameter usage exceeds
      1024. However, after the system runs for a while, the memory can
      become heavily fragmented. This increases the likelihood of order-4 page
      allocation failure. Here’s the relevant log.
      
      [71553.093623]kworker/1: 0: page allocation failure: order:4, mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0
      [71553.093669]Workqueue: events uhid_device_add_worker
      [71553.093683]Call trace:
      [71553.093687]: dump_backtrace+0xf4/0x118
      [71553.093696]: show_stack+0x18/0x24
      [71553.093702]: dump_stack_lvl+0x60/0x7c
      [71553.093710]: dump_stack+0x18/0x3c
      [71553.093717]: warn_alloc+0xf4/0x174
      [71553.093725]: __alloc_pages_slowpath+0x1ba0/0x1cac
      [71553.093732]: __alloc_pages+0x460/0x560
      [71553.093738]: __kmalloc_large_node+0xbc/0x1f8
      [71553.093746]: __kmalloc+0x144/0x254
      [71553.093752]: hid_add_field+0x13c/0x308
      [71553.093758]: hid_parser_main+0x250/0x298
      [71553.093765]: hid_open_report+0x214/0x30c
      [71553.093771]: mt_probe+0x130/0x258
      [71553.093778]: hid_device_probe+0x11c/0x1e4
      [71553.093784]: really_probe+0xe4/0x388
      [71553.093791]: __driver_probe_device+0xa0/0x12c
      [71553.093798]: driver_probe_device+0x44/0x214
      [71553.093804]: __device_attach_driver+0xdc/0x124
      [71553.093812]: bus_for_each_drv+0x88/0xec
      [71553.093818]: __device_attach+0x84/0x170
      [71553.093824]: device_initial_probe+0x14/0x20
      [71553.093831]: bus_probe_device+0x48/0xd0
      [71553.093836]: device_add+0x248/0x928
      [71553.093844]: hid_add_device+0xf8/0x1a4
      [71553.093850]: uhid_device_add_worker+0x24/0x144
      [71553.093857]: process_one_work+0x158/0x804
      [71553.093865]: worker_thread+0x15c/0x494
      [71553.093872]: kthread+0xf4/0x1e4
      [71553.093880]: ret_from_fork+0x10/0x20
      
      To fix the allocation failure, use kvzalloc() instead of kzalloc().
      Signed-off-by: default avatarHailong.Liu <hailong.liu@oppo.com>
      Acked-by: default avatarBarry Song <baohua@kernel.org>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      748fe439
    • Nikita Zhandarovich's avatar
      HID: core: remove unnecessary WARN_ON() in implement() · 4aa2dcfb
      Nikita Zhandarovich authored
      Syzkaller hit a warning [1] in a call to implement() when trying
      to write a value into a field of smaller size in an output report.
      
      Since implement() already has a warn message printed out with the
      help of hid_warn() and value in question gets trimmed with:
      	...
      	value &= m;
      	...
      WARN_ON may be considered superfluous. Remove it to suppress future
      syzkaller triggers.
      
      [1]
      WARNING: CPU: 0 PID: 5084 at drivers/hid/hid-core.c:1451 implement drivers/hid/hid-core.c:1451 [inline]
      WARNING: CPU: 0 PID: 5084 at drivers/hid/hid-core.c:1451 hid_output_report+0x548/0x760 drivers/hid/hid-core.c:1863
      Modules linked in:
      CPU: 0 PID: 5084 Comm: syz-executor424 Not tainted 6.9.0-rc7-syzkaller-00183-gcf87f46f #0
      Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
      RIP: 0010:implement drivers/hid/hid-core.c:1451 [inline]
      RIP: 0010:hid_output_report+0x548/0x760 drivers/hid/hid-core.c:1863
      ...
      Call Trace:
       <TASK>
       __usbhid_submit_report drivers/hid/usbhid/hid-core.c:591 [inline]
       usbhid_submit_report+0x43d/0x9e0 drivers/hid/usbhid/hid-core.c:636
       hiddev_ioctl+0x138b/0x1f00 drivers/hid/usbhid/hiddev.c:726
       vfs_ioctl fs/ioctl.c:51 [inline]
       __do_sys_ioctl fs/ioctl.c:904 [inline]
       __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890
       do_syscall_x64 arch/x86/entry/common.c:52 [inline]
       do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
       entry_SYSCALL_64_after_hwframe+0x77/0x7f
      ...
      
      Fixes: 95d1c895 ("HID: simplify implement() a bit")
      Reported-by: <syzbot+5186630949e3c55f0799@syzkaller.appspotmail.com>
      Suggested-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarNikita Zhandarovich <n.zhandarovich@fintech.ru>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      4aa2dcfb
  8. 23 May, 2024 2 commits
  9. 20 May, 2024 13 commits
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest-next-6.10-rc1-fixes' of... · 70ec81c2
      Linus Torvalds authored
      Merge tag 'linux_kselftest-next-6.10-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull kselftest fixes from Shuah Khan:
       "Revert framework change to add D_GNU_SOURCE to KHDR_INCLUDES to
        Makefile, lib.mk, and kselftest_harness.h and follow-on changes to
        cgroup and sgx test as they are causing build failures and warnings"
      
      * tag 'linux_kselftest-next-6.10-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        Revert "selftests/cgroup: Drop define _GNU_SOURCE"
        Revert "selftests/sgx: Include KHDR_INCLUDES in Makefile"
        Revert "selftests: Compile kselftest headers with -D_GNU_SOURCE"
      70ec81c2
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-6.10.rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · 72ece201
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "In this round, we've tried to address some performance issues on zoned
        storage such as direct IO and write_hints. In addition, we've migrated
        some IO paths using folio. Meanwhile, there are multiple bug fixes in
        the compression paths, sanity check conditions, and error handlers.
      
        Enhancements:
         - allow direct io of pinned files for zoned storage
         - assign the write hint per stream by default
         - convert read paths and test_writeback to folio
         - avoid allocating WARM_DATA segment for direct IO
      
        Bug fixes:
         - fix false alarm on invalid block address
         - fix to add missing iput() in gc_data_segment()
         - fix to release node block count in error path of
           f2fs_new_node_page()
         - compress:
             - don't allow unaligned truncation on released compress inode
             - cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
             - fix error path of inc_valid_block_count()
             - fix to update i_compr_blocks correctly
         - fix block migration when section is not aligned to pow2
         - don't trigger OPU on pinfile for direct IO
         - fix to do sanity check on i_xattr_nid in sanity_check_inode()
         - write missing last sum blk of file pinning section
         - clear writeback when compression failed
         - fix to adjust appropirate defragment pg_end
      
        As usual, there are several minor code clean-ups, and fixes to manage
        missing corner cases in the error paths"
      
      * tag 'f2fs-for-6.10.rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (50 commits)
        f2fs: initialize last_block_in_bio variable
        f2fs: Add inline to f2fs_build_fault_attr() stub
        f2fs: fix some ambiguous comments
        f2fs: fix to add missing iput() in gc_data_segment()
        f2fs: allow dirty sections with zero valid block for checkpoint disabled
        f2fs: compress: don't allow unaligned truncation on released compress inode
        f2fs: fix to release node block count in error path of f2fs_new_node_page()
        f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock
        f2fs: compress: fix error path of inc_valid_block_count()
        f2fs: compress: fix typo in f2fs_reserve_compress_blocks()
        f2fs: compress: fix to update i_compr_blocks correctly
        f2fs: check validation of fault attrs in f2fs_build_fault_attr()
        f2fs: fix to limit gc_pin_file_threshold
        f2fs: remove unused GC_FAILURE_PIN
        f2fs: use f2fs_{err,info}_ratelimited() for cleanup
        f2fs: fix block migration when section is not aligned to pow2
        f2fs: zone: fix to don't trigger OPU on pinfile for direct IO
        f2fs: fix to do sanity check on i_xattr_nid in sanity_check_inode()
        f2fs: fix to avoid allocating WARM_DATA segment for direct IO
        f2fs: remove redundant parameter in is_next_segment_free()
        ...
      72ece201
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.10-merge-6' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 119d1b8a
      Linus Torvalds authored
      Pull xfs updates from Chandan Babu:
       "Online repair feature continues to be expanded. Also, we now support
        delayed allocation for realtime devices which have an extent size that
        is equal to filesystem's block size.
      
        New code:
      
         - Introduce Parent Pointer extended attribute for inodes
      
         - Bring back delalloc support for realtime devices which have an
           extent size that is equal to filesystem's block size
      
         - Improve performance of log incompat feature handling
      
        Online Repair:
      
         - Implement atomic file content exchanges i.e. exchange ranges of
           bytes between two files atomically
      
         - Create temporary files to repair file-based metadata. This uses
           atomic file content exchange facility to swap file fork mappings
           between the temporary file and the metadata inode
      
         - Allow callers of directory/xattr code to set an explicit owner
           number to be written into the header fields of any new blocks that
           are created. This is required to avoid walking every block of the
           new structure and modify their ownership during online repair
      
         - Repair more data structures:
             - Extended attributes
             - Inode unlinked state
             - Directories
             - Symbolic links
             - AGI's unlinked inode list
             - Parent pointers
      
         - Move Orphan files to lost and found directory
      
         - Fixes for Inode repair functionality
      
         - Introduce a new sub-AG FITRIM implementation to reduce the duration
           for which the AGF lock is held
      
         - Updates for the design documentation
      
         - Use Parent Pointers to assist in checking directories, parent
           pointers, extended attributes, and link counts
      
        Fixes:
      
         - Prevent userspace from reading invalid file data due to incorrect.
           updation of file size when performing a non-atomic clone operation
      
         - Minor fixes to online repair
      
         - Fix confusing return values from xfs_bmapi_write()
      
         - Fix an out of bounds access due to incorrect h_size during log
           recovery
      
         - Defer upgrading the extent counters in xfs_reflink_end_cow_extent()
           until we know we are going to modify the extent mapping
      
         - Remove racy access to if_bytes check in
           xfs_reflink_end_cow_extent()
      
         - Fix sparse warnings
      
        Cleanups:
      
         - Hold inode locks on all files involved in a rename until the
           completion of the operation. This is in preparation for the parent
           pointers patchset where parent pointers are applied in a separate
           chained update from the actual directory update
      
         - Compile out v4 support when disabled
      
         - Cleanup xfs_extent_busy_clear()
      
         - Remove unused flags and fields from struct xfs_da_args
      
         - Remove definitions of unused functions
      
         - Improve extended attribute validation
      
         - Add higher level directory operations helpers to remove duplication
           of code
      
         - Cleanup quota (un)reservation interfaces"
      
      * tag 'xfs-6.10-merge-6' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (221 commits)
        xfs: simplify iext overflow checking and upgrade
        xfs: remove a racy if_bytes check in xfs_reflink_end_cow_extent
        xfs: upgrade the extent counters in xfs_reflink_end_cow_extent later
        xfs: xfs_quota_unreserve_blkres can't fail
        xfs: consolidate the xfs_quota_reserve_blkres definitions
        xfs: clean up buffer allocation in xlog_do_recovery_pass
        xfs: fix log recovery buffer allocation for the legacy h_size fixup
        xfs: widen flags argument to the xfs_iflags_* helpers
        xfs: minor cleanups of xfs_attr3_rmt_blocks
        xfs: create a helper to compute the blockcount of a max sized remote value
        xfs: turn XFS_ATTR3_RMT_BUF_SPACE into a function
        xfs: use unsigned ints for non-negative quantities in xfs_attr_remote.c
        xfs: do not allocate the entire delalloc extent in xfs_bmapi_write
        xfs: fix xfs_bmap_add_extent_delay_real for partial conversions
        xfs: remove the xfs_iext_peek_prev_extent call in xfs_bmapi_allocate
        xfs: pass the actual offset and len to allocate to xfs_bmapi_allocate
        xfs: don't open code XFS_FILBLKS_MIN in xfs_bmapi_write
        xfs: lift a xfs_valid_startblock into xfs_bmapi_allocate
        xfs: remove the unusued tmp_logflags variable in xfs_bmapi_allocate
        xfs: fix error returns from xfs_bmapi_write
        ...
      119d1b8a
    • Linus Torvalds's avatar
      Merge tag 'fs_for_v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · bb6b2062
      Linus Torvalds authored
      Pull isofs, udf, quota, ext2, and reiserfs updates from Jan Kara:
      
       - convert isofs to the new mount API
      
       - cleanup isofs Makefile
      
       - udf conversion to folios
      
       - some other small udf cleanups and fixes
      
       - ext2 cleanups
      
       - removal of reiserfs .writepage method
      
       - update reiserfs README file
      
      * tag 'fs_for_v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        isofs: Use *-y instead of *-objs in Makefile
        ext2: Remove LEGACY_DIRECT_IO dependency
        isofs: Remove calls to set/clear the error flag
        ext2: Remove call to folio_set_error()
        udf: Use a folio in udf_write_end()
        udf: Convert udf_page_mkwrite() to use a folio
        udf: Convert udf_symlink_getattr() to use a folio
        udf: Convert udf_adinicb_readpage() to udf_adinicb_read_folio()
        udf: Convert udf_expand_file_adinicb() to use a folio
        udf: Convert udf_write_begin() to use a folio
        udf: Convert udf_symlink_filler() to use a folio
        reiserfs: Trim some README bits
        quota: fix to propagate error of mark_dquot_dirty() to caller
        reiserfs: Convert to writepages
        udf: udftime: prevent overflow in udf_disk_stamp_to_time()
        ext2: set FMODE_CAN_ODIRECT instead of a dummy direct_IO method
        udf: replace deprecated strncpy/strcpy with strscpy
        udf: Remove second semicolon
        isofs: convert isofs to use the new mount API
        fs: quota: use group allocation of per-cpu counters API
      bb6b2062
    • Linus Torvalds's avatar
      Revert "fanotify: remove unneeded sub-zero check for unsigned value" · d0e71e23
      Linus Torvalds authored
      This reverts commit e6595224.
      
      These kinds of patches are only making the code worse.
      
      Compilers don't care about the unnecessary check, but removing it makes
      the code less obvious to a human.  The declaration of 'len' is more than
      80 lines earlier, so a human won't easily see that 'len' is of an
      unsigned type, so to a human the range check that checks against zero is
      much more explicit and obvious.
      
      Any tool that complains about a range check like this just because the
      variable is unsigned is actively detrimental, and should be ignored.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d0e71e23
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 5af9d1cf
      Linus Torvalds authored
      Pull fsnotify updates from Jan Kara:
      
       - reduce overhead of fsnotify infrastructure when no permission events
         are in use
      
       - a few small cleanups
      
      * tag 'fsnotify_for_v6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fsnotify: fix UAF from FS_ERROR event on a shutting down filesystem
        fsnotify: optimize the case of no permission event watchers
        fsnotify: use an enum for group priority constants
        fsnotify: move s_fsnotify_connectors into fsnotify_sb_info
        fsnotify: lazy attach fsnotify_sb_info state to sb
        fsnotify: create helper fsnotify_update_sb_watchers()
        fsnotify: pass object pointer and type to fsnotify mark helpers
        fanotify: merge two checks regarding add of ignore mark
        fsnotify: create a wrapper fsnotify_find_inode_mark()
        fsnotify: create helpers to get sb and connp from object
        fsnotify: rename fsnotify_{get,put}_sb_connectors()
        fsnotify: Avoid -Wflex-array-member-not-at-end warning
        fanotify: remove unneeded sub-zero check for unsigned value
      5af9d1cf
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-6.10-2024-05-20' of git://git.infradead.org/users/hch/dma-mapping · daa12112
      Linus Torvalds authored
      Pull dma-mapping updates from Christoph Hellwig:
      
       - optimize DMA sync calls when they are no-ops (Alexander Lobakin)
      
       - fix swiotlb padding for untrusted devices (Michael Kelley)
      
       - add documentation for swiotb (Michael Kelley)
      
      * tag 'dma-mapping-6.10-2024-05-20' of git://git.infradead.org/users/hch/dma-mapping:
        dma: fix DMA sync for drivers not calling dma_set_mask*()
        xsk: use generic DMA sync shortcut instead of a custom one
        page_pool: check for DMA sync shortcut earlier
        page_pool: don't use driver-set flags field directly
        page_pool: make sure frag API fields don't span between cachelines
        iommu/dma: avoid expensive indirect calls for sync operations
        dma: avoid redundant calls for sync operations
        dma: compile-out DMA sync op calls when not used
        iommu/dma: fix zeroing of bounce buffer padding used by untrusted devices
        swiotlb: remove alloc_size argument to swiotlb_tbl_map_single()
        Documentation/core-api: add swiotlb documentation
      daa12112
    • Linus Torvalds's avatar
      Merge tag 'mips_6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · 6e51b4b5
      Linus Torvalds authored
      Pull MIPS updates from Thomas Bogendoerfer:
       "Just cleanups and fixes"
      
      * tag 'mips_6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (24 commits)
        MIPS: Take in account load hazards for HI/LO restoring
        MIPS: SGI-IP27: use WARN_ON() output
        MIPS: SGI-IP27: fix -Wunused-variable in arch_init_irq()
        MIPS: SGI-IP27: micro-optimize arch_init_irq()
        mips: dts: ralink: mt7621: reorder the attributes of the root node
        mips: dts: ralink: mt7621: reorder pci?_phy attributes
        mips: dts: ralink: mt7621: reorder pcie node attributes and children
        mips: dts: ralink: mt7621: reorder ethernet node attributes and kids
        mips: dts: ralink: mt7621: reorder gic node attributes
        mips: dts: ralink: mt7621: reorder mmc node attributes
        mips: dts: ralink: mt7621: move pinctrl and sort its children
        mips: dts: ralink: mt7621: reorder spi0 node attributes
        mips: dts: ralink: mt7621: reorder i2c node attributes
        mips: dts: ralink: mt7621: reorder gpio node attributes
        mips: dts: ralink: mt7621: reorder sysc node attributes
        mips: dts: ralink: mt7621: reorder mmc regulator attributes
        mips: dts: ralink: mt7621: reorder cpuintc node attributes
        mips: dts: ralink: mt7621: reorder cpu node attributes
        MIPS: Add prototypes for plat_post_relocation() and relocate_kernel()
        MIPS: Octeon: Add PCIe link status check
        ...
      6e51b4b5
    • Linus Torvalds's avatar
      Merge tag 'dmi-for-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging · 80f9d902
      Linus Torvalds authored
      Pull dmi updates from Jean Delvare:
       "Bug fixes:
      
         - KCFI violation in dmi-id
      
         - stop decoding on broken (short) DMI table entry
      
        New features:
      
         - print info about populated memory slots at boot"
      
      * tag 'dmi-for-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
        firmware: dmi: Add info message for number of populated and total memory slots
        firmware: dmi: Stop decoding on broken entry
        firmware: dmi-id: add a release callback function
      80f9d902
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-6.10-rc1' of git://www.linux-watchdog.org/linux-watchdog · a913d94e
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - Add Lenovo SE10 platform Watchdog Driver
      
       - Other small fixes and improvements
      
      * tag 'linux-watchdog-6.10-rc1' of git://www.linux-watchdog.org/linux-watchdog:
        watchdog: LENOVO_SE10_WDT should depend on X86 && DMI
        watchdog: sa1100: Fix PTR_ERR_OR_ZERO() vs NULL check in sa1100dog_probe()
        watchdog: rti_wdt: Set min_hw_heartbeat_ms to accommodate a safety margin
        watchdog: add HAS_IOPORT dependencies
        watchdog/wdt-main: Use cpumask_of() to avoid cpumask var on stack
        watchdog: bd9576: Drop "always-running" property
        watchdog: mtx-1: drop driver owner assignment
        watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger
        watchdog: lenovo_se10_wdt: Watchdog driver for Lenovo SE10 platform
      a913d94e
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 0a07e090
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "i2c core removes an argument from the i2c_mux_add_adapter() call to
        further deprecate class based I2C device instantiation. All users are
        converted, too.
      
        Other that that, Andi collected a number if I2C host driver patches.
        Those merges have their own description"
      
      * tag 'i2c-for-6.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (72 commits)
        power: supply: sbs-manager: Remove class argument from i2c_mux_add_adapter()
        i2c: mux: Remove class argument from i2c_mux_add_adapter()
        i2c: synquacer: Fix an error handling path in synquacer_i2c_probe()
        i2c: acpi: Unbind mux adapters before delete
        i2c: designware: Replace MODULE_ALIAS() with MODULE_DEVICE_TABLE()
        i2c: pxa: use 'time_left' variable with wait_event_timeout()
        i2c: s3c2410: use 'time_left' variable with wait_event_timeout()
        i2c: rk3x: use 'time_left' variable with wait_event_timeout()
        i2c: qcom-geni: use 'time_left' variable with wait_for_completion_timeout()
        i2c: jz4780: use 'time_left' variable with wait_for_completion_timeout()
        i2c: synquacer: use 'time_left' variable with wait_for_completion_timeout()
        i2c: stm32f7: use 'time_left' variable with wait_for_completion_timeout()
        i2c: stm32f4: use 'time_left' variable with wait_for_completion_timeout()
        i2c: st: use 'time_left' variable with wait_for_completion_timeout()
        i2c: omap: use 'time_left' variable with wait_for_completion_timeout()
        i2c: imx-lpi2c: use 'time_left' variable with wait_for_completion_timeout()
        i2c: hix5hd2: use 'time_left' variable with wait_for_completion_timeout()
        i2c: exynos5: use 'time_left' variable with wait_for_completion_timeout()
        i2c: digicolor: use 'time_left' variable with wait_for_completion_timeout()
        i2c: amd-mp2-plat: use 'time_left' variable with wait_for_completion_timeout()
        ...
      0a07e090
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 2de68638
      Linus Torvalds authored
      Pull pin control updates from Linus Walleij:
       "Core changes:
      
         - Use DEFINE_SHOW_STORE_ATTRIBUTE() in debugfs entries
      
        New drivers:
      
         - Qualcomm PMIH0108, PMD8028, PMXR2230 and PM6450 pin control support
      
        Improvements:
      
         - Serious cleanup of the recently merged aw9523 driver
      
         - Fix PIN_CONFIG_BIAS_DISABLE handling in pinctrl-single
      
         - A slew of device tree binding cleanups
      
         - Support a bus clock in the Samsung driver"
      
      * tag 'pinctrl-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (48 commits)
        pinctrl: bcm2835: Make pin freeing behavior configurable
        dt-bindings: pinctrl: qcom,pmic-gpio: Fix "comptaible" typo for PMIH0108
        pinctrl: qcom: pinctrl-sm7150: Fix sdc1 and ufs special pins regs
        dt-bindings: pinctrl: mediatek: mt7622: add "antsel" function
        dt-bindings: pinctrl: mediatek: mt7622: fix array properties
        pinctrl: samsung: drop redundant drvdata assignment
        pinctrl: samsung: support a bus clock
        dt-bindings: pinctrl: samsung: google,gs101-pinctrl needs a clock
        pinctrl: renesas: rzg2l: Limit 2.5V power supply to Ethernet interfaces
        pinctrl: renesas: r8a779h0: Add INTC-EX pins, groups, and function
        pinctrl: renesas: r8a779h0: Fix IRQ suffixes
        pinctrl: renesas: rzg2l: Remove extra space in function parameter
        dt-bindings: pinctrl: qcom,pmic-mpp: add support for PM8901
        pinctrl: pinconf-generic: print hex value
        pinctrl: realtek: fix module autoloading
        pinctrl: qcom: sm7150: fix module autoloading
        pinctrl: loongson2: fix module autoloading
        pinctrl: mediatek: fix module autoloading
        pinctrl: freescale: imx8ulp: fix module autoloading
        dt-bindings: pinctrl: qcom,pmic-gpio: Allow gpio-hog nodes
        ...
      2de68638
    • Linus Torvalds's avatar
      Merge tag 'v6.10-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 568c98a0
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
       "Fix a bug in the new ecc P521 code as well as a buggy fix in qat"
      
      * tag 'v6.10-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: ecc - Prevent ecc_digits_from_bytes from reading too many bytes
        crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
      568c98a0