Skip to content
Permalink
Christoph-Hell…
Switch branches/tags

Commits on Jul 12, 2021

  1. scsi: unexport sg_scsi_ioctl

    Just call scsi_ioctl in sg as that has the same effect.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  2. scsi: factor SG_IO handling into a helper

    Split the SG_IO handler from the main scsi_ioctl routine.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  3. scsi: factor SCSI_IOCTL_GET_IDLUN handling into a helper

    Split the SCSI_IOCTL_GET_IDLUN handler from the main scsi_ioctl routine.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  4. scsi: consolidate the START STOP UNIT handling

    Factor out a helper for the various flavors of START STOP UNIT
    command ioctls.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  5. scsi: remove a very misleading comment

    Remove the comment above ioctl_internal_command, which doesn't
    document this function at all.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  6. scsi: rename CONFIG_BLK_SCSI_REQUEST to CONFIG_SCSI_COMMON

    CONFIG_BLK_SCSI_REQUEST is rather misnamed now as it just enabled
    building a small amount of code shared by the scsi initiator, target
    and consumers of the scsi_request passthrough API.  Rename it and
    also allow building it as a module.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  7. scsi_ioctl: move all "block layer" SCSI ioctl handling to drivers/scsi

    Merge the ioctl handling in block/scsi_ioctl.c into its only caller in
    drivers/scsi/scsi_ioctl.c.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  8. scsi_ioctl: simplify SCSI passthrough permission checking

    Remove the separate command filter structure and just use a switch
    statement (which also cought two duplicate commands), return a bool
    and give the function a sensible name.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  9. scsi_ioctl: move scsi_command_size_tbl to scsi_common.c

    Move the SCSI command size table towards the rest of the common SCSI
    code.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  10. scsi_ioctl: remove scsi_req_init

    Merge scsi_req_init into its only caller.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  11. bsg: move bsg_scsi_ops to drivers/scsi/

    Move the SCSI-specific bsg code in the SCSI midlayer instead of in the
    common bsg code.  This just keeps the common bsg code block/ and also
    allows building it as a module.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  12. bsg: decouple from scsi_cmd_ioctl

    Decouple bsg from scsi_cmd_ioctl.  This requires a small amount of
    code duplication, but will allow moving ll SCSI ioctl handling into
    SCSI midlayer.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  13. block: add a queue_max_sectors_bytes helper

    Return the max_sectors value in bytes.  Lifted from scsi_ioctl.c.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  14. scsi: call scsi_cmd_ioctl from scsi_ioctl

    Ensure SCSI ULD only have to call a single ioctl helper.  This also adds
    a bunch of missing ioctls to the ch driver, and removes the need for a
    duplicate implementation of  SCSI_IOCTL_SEND_COMMAND command.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  15. scsi_ioctl: remove scsi_verify_blk_ioctl

    Just verify that the device is no a partition or the caller has admin
    privіleges at the beginning of the sr ioctl method manually and open
    code the trivial check for sd as well.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  16. scsi_ioctl: remove scsi_cmd_blk_ioctl

    Open code scsi_cmd_blk_ioctl in its two callers.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  17. cdrom: remove the call to scsi_cmd_blk_ioctl from cdrom_ioctl

    Only the sr driver can handle SCSI passthrough requests, so move the
    call to scsi_cmd_blk_ioctl there.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  18. st: simplify ioctl handling

    Merge st_ioctl_common into st_ioctl and streamline the invocation
    of the common ioctl helpers.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  19. scsi: remove scsi_compat_ioctl

    Just handle the compat case in scsi_ioctl using in_compat_syscall().
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  20. cg: consolidate compat ioctl handling

    Merge the native and compat ioctl handlers into a single one using
    in_compat_syscall().
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  21. ch: consolidate compat ioctl handling

    Merge the native and compat ioctl handlers into a single one using
    in_compat_syscall().
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  22. sd: consolidate compat ioctl handling

    Merge the native and compat ioctl handlers into a single one using
    in_compat_syscall(), and also simplify the calling conventions
    by mergin sd_ioctl_common into sd_ioctl.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  23. sr: consolidate compat ioctl handling

    Merge the native and compat ioctl handlers into a single one using
    in_compat_syscall().
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021
  24. bsg: remove support for SCSI_IOCTL_SEND_COMMAND

    SCSI_IOCTL_SEND_COMMAND has been deprecated longer than bsg exists
    and has been warning for just as long.  More importantly it harcodes
    SCSI CDBs and thus will do the wrong thing on non-scsi bsg nodes.
    
    Fixes: aa387cc ("block: add bsg helper library")
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and intel-lab-lkp committed Jul 12, 2021

Commits on Jul 9, 2021

  1. Merge tag 'io_uring-5.14-2021-07-09' of git://git.kernel.dk/linux-block

    Pull io_uring fixes from Jens Axboe:
     "A few fixes that should go into this merge.
    
      One fixes a regression introduced in this release, others are just
      generic fixes, mostly related to handling fallback task_work"
    
    * tag 'io_uring-5.14-2021-07-09' of git://git.kernel.dk/linux-block:
      io_uring: remove dead non-zero 'poll' check
      io_uring: mitigate unlikely iopoll lag
      io_uring: fix drain alloc fail return code
      io_uring: fix exiting io_req_task_work_add leaks
      io_uring: simplify task_work func
      io_uring: fix stuck fallback reqs
    torvalds committed Jul 9, 2021
  2. Merge tag 'block-5.14-2021-07-08' of git://git.kernel.dk/linux-block

    Pull more block updates from Jens Axboe:
     "A combination of changes that ended up depending on both the driver
      and core branch (and/or the IDE removal), and a few late arriving
      fixes. In detail:
    
       - Fix io ticks wrap-around issue (Chunguang)
    
       - nvme-tcp sock locking fix (Maurizio)
    
       - s390-dasd fixes (Kees, Christoph)
    
       - blk_execute_rq polling support (Keith)
    
       - blk-cgroup RCU iteration fix (Yu)
    
       - nbd backend ID addition (Prasanna)
    
       - Partition deletion fix (Yufen)
    
       - Use blk_mq_alloc_disk for mmc, mtip32xx, ubd (Christoph)
    
       - Removal of now dead block request types due to IDE removal
         (Christoph)
    
       - Loop probing and control device cleanups (Christoph)
    
       - Device uevent fix (Christoph)
    
       - Misc cleanups/fixes (Tetsuo, Christoph)"
    
    * tag 'block-5.14-2021-07-08' of git://git.kernel.dk/linux-block: (34 commits)
      blk-cgroup: prevent rcu_sched detected stalls warnings while iterating blkgs
      block: fix the problem of io_ticks becoming smaller
      nvme-tcp: can't set sk_user_data without write_lock
      loop: remove unused variable in loop_set_status()
      block: remove the bdgrab in blk_drop_partitions
      block: grab a device refcount in disk_uevent
      s390/dasd: Avoid field over-reading memcpy()
      dasd: unexport dasd_set_target_state
      block: check disk exist before trying to add partition
      ubd: remove dead code in ubd_setup_common
      nvme: use return value from blk_execute_rq()
      block: return errors from blk_execute_rq()
      nvme: use blk_execute_rq() for passthrough commands
      block: support polling through blk_execute_rq
      block: remove REQ_OP_SCSI_{IN,OUT}
      block: mark blk_mq_init_queue_data static
      loop: rewrite loop_exit using idr_for_each_entry
      loop: split loop_lookup
      loop: don't allow deleting an unspecified loop device
      loop: move loop_ctl_mutex locking into loop_add
      ...
    torvalds committed Jul 9, 2021
  3. Merge tag 'sound-fix-5.14-rc1' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "Just a collection of small fixes here: the most outstanding one is the
      re-application of USB-audio lowlatency support that was reverted in
      the previous PR. The rest are device-specific quirks/fixes, spelling
      fixes and a regression fix for the old intel8x0 driver"
    
    * tag 'sound-fix-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
      ALSA: intel8x0: Fix breakage at ac97 clock measurement
      ALSA: usb-audio: Reduce latency at playback start, take#2
      ALSA: isa: Fix error return code in snd_cmi8330_probe()
      ALSA: emux: fix spelling mistakes
      ALSA: usb-audio: fix spelling mistakes
      ALSA: bebob: correct duplicated entries with TerraTec OUI
      ALSA: usx2y: fix spelling mistakes
      ALSA: x86: fix spelling mistakes
      ALSA: hda/realtek: fix mute led of the HP Pavilion 15-eh1xxx series
    torvalds committed Jul 9, 2021
  4. Merge tag 'trace-v5.14-2' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/rostedt/linux-trace
    
    Pull tracing fix and cleanup from Steven Rostedt:
     "Tracing fix for histograms and a clean up in ftrace:
    
       - Fixed a bug that broke the .sym-offset modifier and added a test to
         make sure nothing breaks it again.
    
       - Replace a list_del/list_add() with a list_move()"
    
    * tag 'trace-v5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
      ftrace: Use list_move instead of list_del/list_add
      tracing/selftests: Add tests to test histogram sym and sym-offset modifiers
      tracing/histograms: Fix parsing of "sym-offset" modifier
    torvalds committed Jul 9, 2021
  5. Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/mst/vhost
    
    Pull virtio,vhost,vdpa updates from Michael Tsirkin:
    
     - Doorbell remapping for ifcvf, mlx5
    
     - virtio_vdpa support for mlx5
    
     - Validate device input in several drivers (for SEV and friends)
    
     - ZONE_MOVABLE aware handling in virtio-mem
    
     - Misc fixes, cleanups
    
    * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (48 commits)
      virtio-mem: prioritize unplug from ZONE_MOVABLE in Big Block Mode
      virtio-mem: simplify high-level unplug handling in Big Block Mode
      virtio-mem: prioritize unplug from ZONE_MOVABLE in Sub Block Mode
      virtio-mem: simplify high-level unplug handling in Sub Block Mode
      virtio-mem: simplify high-level plug handling in Sub Block Mode
      virtio-mem: use page_zonenum() in virtio_mem_fake_offline()
      virtio-mem: don't read big block size in Sub Block Mode
      virtio/vdpa: clear the virtqueue state during probe
      vp_vdpa: allow set vq state to initial state after reset
      virtio-pci library: introduce vp_modern_get_driver_features()
      vdpa: support packed virtqueue for set/get_vq_state()
      virtio-ring: store DMA metadata in desc_extra for split virtqueue
      virtio: use err label in __vring_new_virtqueue()
      virtio_ring: introduce virtqueue_desc_add_split()
      virtio_ring: secure handling of mapping errors
      virtio-ring: factor out desc_extra allocation
      virtio_ring: rename vring_desc_extra_packed
      virtio-ring: maintain next in extra state for packed virtqueue
      vdpa/mlx5: Clear vq ready indication upon device reset
      vdpa/mlx5: Add support for doorbell bypassing
      ...
    torvalds committed Jul 9, 2021
  6. Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/herbert/crypto-2.6
    
    Pull crypto fixes from Herbert Xu:
    
     - Regression fix in drbg due to missing self-test for new default
       algorithm
    
     - Add ratelimit on user-triggerable message in qat
    
     - Fix build failure due to missing dependency in sl3516
    
     - Remove obsolete PageSlab checks
    
     - Fix bogus hardware register writes on Kunpeng920 in hisilicon/sec
    
    * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
      crypto: hisilicon/sec - fix the process of disabling sva prefetching
      crypto: sl3516 - Add dependency on ARCH_GEMINI
      crypto: sl3516 - Typo s/Stormlink/Storlink/
      crypto: drbg - self test for HMAC(SHA-512)
      crypto: omap - Drop obsolete PageSlab check
      crypto: scatterwalk - Remove obsolete PageSlab check
      crypto: qat - ratelimit invalid ioctl message and print the invalid cmd
    torvalds committed Jul 9, 2021
  7. Merge tag 'riscv-for-linus-5.14-mw0' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/riscv/linux
    
    Pull RISC-V updates from Palmer Dabbelt:
     "We have a handful of new features for 5.14:
    
       - Support for transparent huge pages.
    
       - Support for generic PCI resources mapping.
    
       - Support for the mem= kernel parameter.
    
       - Support for KFENCE.
    
       - A handful of fixes to avoid W+X mappings in the kernel.
    
       - Support for VMAP_STACK based overflow detection.
    
       - An optimized copy_{to,from}_user"
    
    * tag 'riscv-for-linus-5.14-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (37 commits)
      riscv: xip: Fix duplicate included asm/pgtable.h
      riscv: Fix PTDUMP output now BPF region moved back to module region
      riscv: __asm_copy_to-from_user: Optimize unaligned memory access and pipeline stall
      riscv: add VMAP_STACK overflow detection
      riscv: ptrace: add argn syntax
      riscv: mm: fix build errors caused by mk_pmd()
      riscv: Introduce structure that group all variables regarding kernel mapping
      riscv: Map the kernel with correct permissions the first time
      riscv: Introduce set_kernel_memory helper
      riscv: Enable KFENCE for riscv64
      RISC-V: Use asm-generic for {in,out}{bwlq}
      riscv: add ASID-based tlbflushing methods
      riscv: pass the mm_struct to __sbi_tlb_flush_range
      riscv: Add mem kernel parameter support
      riscv: Simplify xip and !xip kernel address conversion macros
      riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED
      riscv: Only initialize swiotlb when necessary
      riscv: fix typo in init.c
      riscv: Cleanup unused functions
      riscv: mm: Use better bitmap_zalloc()
      ...
    torvalds committed Jul 9, 2021
  8. Merge tag 'powerpc-5.14-2' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/powerpc/linux
    
    Pull powerpc fixes from Michael Ellerman:
     "Fix crashes on 64-bit Book3E due to use of Book3S only mtmsrd
      instruction.
    
      Fix "scheduling while atomic" warnings at boot due to preempt count
      underflow.
    
      Two commits fixing our handling of BPF atomic instructions.
    
      Fix error handling in xive when allocating an IPI.
    
      Fix lockup on kernel exec fault on 603.
    
      Thanks to Bharata B Rao, Cédric Le Goater, Christian Zigotzky,
      Christophe Leroy, Guenter Roeck, Jiri Olsa, Naveen N. Rao, Nicholas
      Piggin, and Valentin Schneider"
    
    * tag 'powerpc-5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      powerpc/preempt: Don't touch the idle task's preempt_count during hotplug
      powerpc/64e: Fix system call illegal mtmsrd instruction
      powerpc/xive: Fix error handling when allocating an IPI
      powerpc/bpf: Reject atomic ops in ppc32 JIT
      powerpc/bpf: Fix detecting BPF atomic instructions
      powerpc/mm: Fix lockup on kernel exec fault
    torvalds committed Jul 9, 2021
  9. Merge tag 'for-linus-5.14-rc1' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/rw/uml
    
    Pull UML updates from Richard Weinberger:
    
     - Support for optimized routines based on the host CPU
    
     - Support for PCI via virtio
    
     - Various fixes
    
    * tag 'for-linus-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
      um: remove unneeded semicolon in um_arch.c
      um: Remove the repeated declaration
      um: fix error return code in winch_tramp()
      um: fix error return code in slip_open()
      um: Fix stack pointer alignment
      um: implement flush_cache_vmap/flush_cache_vunmap
      um: add a UML specific futex implementation
      um: enable the use of optimized xor routines in UML
      um: Add support for host CPU flags and alignment
      um: allow not setting extra rpaths in the linux binary
      um: virtio/pci: enable suspend/resume
      um: add PCI over virtio emulation driver
      um: irqs: allow invoking time-travel handler multiple times
      um: time-travel/signals: fix ndelay() in interrupt
      um: expose time-travel mode to userspace side
      um: export signals_enabled directly
      um: remove unused smp_sigio_handler() declaration
      lib: add iomem emulation (logic_iomem)
      um: allow disabling NO_IOMEM
    torvalds committed Jul 9, 2021
  10. Merge tag 'for-linus-5.14-rc1' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/rw/ubifs
    
    Pull UBIFS updates from Richard Weinberger:
    
     - Fix for a race xattr list and modification
    
     - Various minor fixes (spelling, return codes, ...)
    
    * tag 'for-linus-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
      ubifs: Set/Clear I_LINKABLE under i_lock for whiteout inode
      ubifs: Fix spelling mistakes
      ubifs: Remove ui_mutex in ubifs_xattr_get and change_xattr
      ubifs: Fix races between xattr_{set|get} and listxattr operations
      ubifs: fix snprintf() checking
      ubifs: journal: Fix error return code in ubifs_jnl_write_inode()
    torvalds committed Jul 9, 2021
  11. Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/tytso/ext4
    
    Pull ext4 updates from Ted Ts'o:
     "Ext4 regression and bug fixes"
    
    * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
      ext4: inline jbd2_journal_[un]register_shrinker()
      ext4: fix flags validity checking for EXT4_IOC_CHECKPOINT
      ext4: fix possible UAF when remounting r/o a mmp-protected file system
      ext4: use ext4_grp_locked_error in mb_find_extent
      ext4: fix WARN_ON_ONCE(!buffer_uptodate) after an error writing the superblock
      Revert "ext4: consolidate checks for resize of bigalloc into ext4_resize_begin"
    torvalds committed Jul 9, 2021
Older