linux-2.6-block.git
10 months agoblock: convert to read/write iterators
Jens Axboe [Wed, 3 Apr 2024 22:57:50 +0000 (16:57 -0600)]
block: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: SOF: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:05:19 +0000 (08:05 -0600)]
ASoC: SOF: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: SOF: Core: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:05:03 +0000 (08:05 -0600)]
ASoC: SOF: Core: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoSoC: SOF: icp4: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:58 +0000 (08:03 -0600)]
SoC: SOF: icp4: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: SOF: icp3-dtrace: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:43 +0000 (08:03 -0600)]
ASoC: SOF: icp3-dtrace: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agosound/oss/dmasound: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:19 +0000 (08:03 -0600)]
sound/oss/dmasound: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoALSA: pcmtest: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:03:00 +0000 (08:03 -0600)]
ALSA: pcmtest: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: fsl: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:02:36 +0000 (08:02 -0600)]
ASoC: fsl: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoASoC: Intel: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:02:10 +0000 (08:02 -0600)]
ASoC: Intel: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoALSA: core: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 14:01:16 +0000 (08:01 -0600)]
ALSA: core: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add IOCB_VECTORED flags
Jens Axboe [Sat, 6 Apr 2024 19:34:25 +0000 (13:34 -0600)]
fs: add IOCB_VECTORED flags

This allows a user of ->read_iter() or ->write_iter() to tell if this
request originally came as a readv/writev, or if it was a normal
read/write operation.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: l2tp: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:46:15 +0000 (11:46 -0600)]
net: l2tp: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: rfkill: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:46:00 +0000 (11:46 -0600)]
net: rfkill: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: wireless: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:45:49 +0000 (11:45 -0600)]
net: wireless: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: sunrpc: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:42:32 +0000 (11:42 -0600)]
net: sunrpc: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: 6lowpan: convert debugfs to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:41:35 +0000 (11:41 -0600)]
net: 6lowpan: convert debugfs to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agonet: mac80211: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:41:21 +0000 (11:41 -0600)]
net: mac80211: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoBluetooth: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 17:32:18 +0000 (11:32 -0600)]
Bluetooth: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agostaging: convert drivers to read/write iterators
Jens Axboe [Wed, 3 Apr 2024 18:10:24 +0000 (12:10 -0600)]
staging: convert drivers to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs/fuse: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:39:13 +0000 (07:39 -0600)]
fs/fuse: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoubifs: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:39:01 +0000 (07:39 -0600)]
ubifs: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agotracefs: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:51 +0000 (07:38 -0600)]
tracefs: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agodlm: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:40 +0000 (07:38 -0600)]
dlm: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoorangefs: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:24 +0000 (07:38 -0600)]
orangefs: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoocfs2: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:38:10 +0000 (07:38 -0600)]
ocfs2: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoecryptfs: miscdev: convert to read/write iterators
Jens Axboe [Wed, 10 Apr 2024 13:37:32 +0000 (07:37 -0600)]
ecryptfs: miscdev: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoceph: convert read_dir handler to read_iter()
Jens Axboe [Wed, 3 Apr 2024 17:44:16 +0000 (11:44 -0600)]
ceph: convert read_dir handler to read_iter()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: convert any user of fops->read() for seq_read to read_iter
Jens Axboe [Wed, 3 Apr 2024 17:37:13 +0000 (11:37 -0600)]
fs: convert any user of fops->read() for seq_read to read_iter

There's a seq_read_iter that can be used, do that.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: convert generic_read_dir() to ->read_iter()
Jens Axboe [Wed, 3 Apr 2024 17:32:14 +0000 (11:32 -0600)]
fs: convert generic_read_dir() to ->read_iter()

No functional changes here, just a straight forward mechanical
conversion.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolibfs: switch to read iter and add copy helpers
Jens Axboe [Wed, 3 Apr 2024 22:43:35 +0000 (16:43 -0600)]
libfs: switch to read iter and add copy helpers

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agodebugfs: convert to ->read_iter()
Jens Axboe [Wed, 3 Apr 2024 17:13:04 +0000 (11:13 -0600)]
debugfs: convert to ->read_iter()

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/xillybus: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:48:26 +0000 (10:48 -0600)]
char/xillybus: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/xilinx_hwicap: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:48:11 +0000 (10:48 -0600)]
char/xilinx_hwicap: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/tlclk: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:48:02 +0000 (10:48 -0600)]
char/tlclk: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/sonypi: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:47:52 +0000 (10:47 -0600)]
char/sonypi: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/scx200_gpio: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:47:39 +0000 (10:47 -0600)]
char/scx200_gpio: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/ps3flash: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:43:22 +0000 (10:43 -0600)]
char/ps3flash: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/ppdev: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:43:11 +0000 (10:43 -0600)]
char/ppdev: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/powernv-op-panel: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:59 +0000 (10:42 -0600)]
char/powernv-op-panel: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/pc8736x_gpio: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:46 +0000 (10:42 -0600)]
char/pc8736x_gpio: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nwflash: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:35 +0000 (10:42 -0600)]
char/nwflash: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nwbutton: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:23 +0000 (10:42 -0600)]
char/nwbutton: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nvram: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:11 +0000 (10:42 -0600)]
char/nvram: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/mwave: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:42:02 +0000 (10:42 -0600)]
char/mwave: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/mem: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:50 +0000 (10:41 -0600)]
char/mem: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/lp: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:40 +0000 (10:41 -0600)]
char/lp: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/tpm: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:27 +0000 (10:41 -0600)]
char/tpm: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/ipmi: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:41:08 +0000 (10:41 -0600)]
char/ipmi: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/hw_random: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:55 +0000 (10:40 -0600)]
char/hw_random: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/hpet: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:43 +0000 (10:40 -0600)]
char/hpet: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/dtlk: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:33 +0000 (10:40 -0600)]
char/dtlk: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/dsp56k: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:21 +0000 (10:40 -0600)]
char/dsp56k: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/dsp1620: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:40:08 +0000 (10:40 -0600)]
char/dsp1620: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/nsc_gpio: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:39:49 +0000 (10:39 -0600)]
char/nsc_gpio: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/applicom: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:39:24 +0000 (10:39 -0600)]
char/applicom: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/apm-emulation: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:39:09 +0000 (10:39 -0600)]
char/apm-emulation: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agochar/adi: convert to read/write iterators
Jens Axboe [Tue, 9 Apr 2024 16:38:48 +0000 (10:38 -0600)]
char/adi: convert to read/write iterators

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agovirtio_console: convert to read/write iterator helpers
Jens Axboe [Wed, 3 Apr 2024 15:56:29 +0000 (09:56 -0600)]
virtio_console: convert to read/write iterator helpers

Add stub read/write iterators which just use the VFS helpers, and
kill the ->read() and ->write() usage.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoseq_file: switch to using ->read_iter()
Jens Axboe [Wed, 3 Apr 2024 16:49:53 +0000 (10:49 -0600)]
seq_file: switch to using ->read_iter()

There's a seq_read_iter() helper already, use it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolib/string_helpers: add parse_int_array_iter()
Jens Axboe [Tue, 9 Apr 2024 16:20:08 +0000 (10:20 -0600)]
lib/string_helpers: add parse_int_array_iter()

Works just like parse_int_array_user(), except it takes and iov_iter
instead of a ubuf + length.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agolib/string_helpers: split __parse_int_array() into a helper
Jens Axboe [Tue, 9 Apr 2024 16:17:03 +0000 (10:17 -0600)]
lib/string_helpers: split __parse_int_array() into a helper

No functional changes, just in preparation for providing an iter based
version.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agokstrtox: add iov_iter versions of the string conversion helpers
Jens Axboe [Mon, 8 Apr 2024 14:46:58 +0000 (08:46 -0600)]
kstrtox: add iov_iter versions of the string conversion helpers

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agomm/util: add iterdup_nul() and iterdup() helpers
Jens Axboe [Mon, 8 Apr 2024 13:54:40 +0000 (07:54 -0600)]
mm/util: add iterdup_nul() and iterdup() helpers

This is identical to the memdup variants, except it operates on a struct
iov_iter rather than a direct user pointer.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add uio.h to fs.h
Jens Axboe [Sun, 7 Apr 2024 03:06:10 +0000 (21:06 -0600)]
fs: add uio.h to fs.h

Most conversions will end up pulling in fs.h already, but not uio.h.
As the fs iterators will need that, just include it from fs.h rather
than need to add it everywhere. It's pretty natural to need user copy
helpers for read/write operators anyway.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agouio: add get/put_iter helpers
Jens Axboe [Tue, 9 Apr 2024 17:02:00 +0000 (11:02 -0600)]
uio: add get/put_iter helpers

For users that currently do put_user(val, uaddr) or get_user(val, uaddr),
add iterator versions that do the same thing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add simple_copy_{to,from}_iter() helpers
Jens Axboe [Thu, 4 Apr 2024 14:21:24 +0000 (08:21 -0600)]
fs: add simple_copy_{to,from}_iter() helpers

While doing so, rename the networking helper that has the same name.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add helpers for defining read/write iterator helpers
Jens Axboe [Thu, 4 Apr 2024 13:02:36 +0000 (07:02 -0600)]
fs: add helpers for defining read/write iterator helpers

To ease conversion for drivers, add helpers that allow a driver to simply
wrap their existing read/write file_operations hook and turn it into one
that is appropriate for ->read_iter() or ->write_iter().

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: add generic read/write iterator helpers
Jens Axboe [Thu, 4 Apr 2024 12:58:30 +0000 (06:58 -0600)]
fs: add generic read/write iterator helpers

We already do this internally for vfs_readv() and vfs_writev(), which
need to check what method to use. Add generic helpers for this so that
drivers can do this themselves, if they haven't converted to using the
read/write iterator file_operations hooks just yet.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agofs: split do_loop_readv_writev() into separate read/write side helpers
Jens Axboe [Thu, 4 Apr 2024 12:57:44 +0000 (06:57 -0600)]
fs: split do_loop_readv_writev() into separate read/write side helpers

No functional changes, just in preparation for using these separately.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
10 months agoLinux 6.12-rc3 v6.12-rc3
Linus Torvalds [Sun, 13 Oct 2024 21:33:32 +0000 (14:33 -0700)]
Linux 6.12-rc3

10 months agoMerge tag '6.12-rc2-cifs-fixes' of git://git.samba.org/sfrench/cifs-2.6
Linus Torvalds [Sun, 13 Oct 2024 17:52:39 +0000 (10:52 -0700)]
Merge tag '6.12-rc2-cifs-fixes' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fixes from Steve French:
 "Two fixes for Windows symlink handling"

* tag '6.12-rc2-cifs-fixes' of git://git.samba.org/sfrench/cifs-2.6:
  cifs: Fix creating native symlinks pointing to current or parent directory
  cifs: Improve creating native symlinks pointing to directory

10 months agoMerge tag 'usb-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Linus Torvalds [Sun, 13 Oct 2024 16:21:36 +0000 (09:21 -0700)]
Merge tag 'usb-6.12-rc3' of git://git./linux/kernel/git/gregkh/usb

Pull USB fixes from Greg KH:
 "Here are some small USB fixes for some reported problems for 6.12-rc3.
  Include in here is:

   - fix for yurex driver that was caused in -rc1

   - build error fix for usbg network filesystem code

   - onboard_usb_dev build fix

   - dwc3 driver fixes for reported errors

   - gadget driver fix

   - new USB storage driver quirk

   - xhci resume bugfix

  All of these have been in linux-next for a while with no reported
  issues"

* tag 'usb-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
  net/9p/usbg: Fix build error
  USB: yurex: kill needless initialization in yurex_read
  Revert "usb: yurex: Replace snprintf() with the safer scnprintf() variant"
  usb: xhci: Fix problem with xhci resume from suspend
  usb: misc: onboard_usb_dev: introduce new config symbol for usb5744 SMBus support
  usb: dwc3: core: Stop processing of pending events if controller is halted
  usb: dwc3: re-enable runtime PM after failed resume
  usb: storage: ignore bogus device raised by JieLi BR21 USB sound chip
  usb: gadget: core: force synchronous registration

10 months agoMerge tag 'driver-core-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Sun, 13 Oct 2024 16:10:52 +0000 (09:10 -0700)]
Merge tag 'driver-core-6.12-rc3' of git://git./linux/kernel/git/gregkh/driver-core

Pull driver core fixes from Greg KH:
 "Here is a single driver core fix, and a .mailmap update.

  The fix is for the rust driver core bindings, turned out that the
  from_raw binding wasn't a good idea (don't want to pass a pointer to a
  reference counted object without actually incrementing the pointer.)
  So this change fixes it up as the from_raw binding came in in -rc1.

  The other change is a .mailmap update.

  Both have been in linux-next for a while with no reported issues"

* tag 'driver-core-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
  mailmap: update mail for Fiona Behrens
  rust: device: change the from_raw() function

10 months agoMerge tag 'powerpc-6.12-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
Linus Torvalds [Sun, 13 Oct 2024 00:16:21 +0000 (17:16 -0700)]
Merge tag 'powerpc-6.12-4' of git://git./linux/kernel/git/powerpc/linux

Pull powerpc fix from Michael Ellerman:

 - Fix crash in memcpy on 8xx due to dcbz workaround since recent
   changes

Thanks to Christophe Leroy.

* tag 'powerpc-6.12-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
  powerpc/8xx: Fix kernel DTLB miss on dcbz

10 months agoMerge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Linus Torvalds [Sat, 12 Oct 2024 16:24:13 +0000 (09:24 -0700)]
Merge tag 'scsi-fixes' of git://git./linux/kernel/git/jejb/scsi

Pull SCSI fixes from James Bottomley:
 "Four small fixes, three in drivers and one in the FC transport class
  to add idempotence to state setting"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
  scsi: scsi_transport_fc: Allow setting rport state to current state
  scsi: wd33c93: Don't use stale scsi_pointer value
  scsi: fnic: Move flush_work initialization out of if block
  scsi: ufs: Use pre-calculated offsets in ufshcd_init_lrb()

10 months agoMerge tag 'hwmon-for-v6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Sat, 12 Oct 2024 16:09:04 +0000 (09:09 -0700)]
Merge tag 'hwmon-for-v6.12-rc3' of git://git./linux/kernel/git/groeck/linux-staging

Pull hwmon fixes from Guenter Roeck:

 - Add missing dependencies on REGMAP_I2C for several drivers

 - Fix memory leak in adt7475 driver

 - Relabel Columbiaville temperature sensor in intel-m10-bmc-hwmon
   driver to match other sensor labels

* tag 'hwmon-for-v6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
  hwmon: (max1668) Add missing dependency on REGMAP_I2C
  hwmon: (ltc2991) Add missing dependency on REGMAP_I2C
  hwmon: (adt7470) Add missing dependency on REGMAP_I2C
  hwmon: (adm9240) Add missing dependency on REGMAP_I2C
  hwmon: (mc34vr500) Add missing dependency on REGMAP_I2C
  hwmon: (tmp513) Add missing dependency on REGMAP_I2C
  hwmon: (adt7475) Fix memory leak in adt7475_fan_pwm_config()
  hwmon: intel-m10-bmc-hwmon: relabel Columbiaville to CVL Die Temperature

10 months agoMerge tag 'linux_kselftest-fixes-6.12-rc3' of git://git.kernel.org/pub/scm/linux...
Linus Torvalds [Fri, 11 Oct 2024 23:12:45 +0000 (16:12 -0700)]
Merge tag 'linux_kselftest-fixes-6.12-rc3' of git://git./linux/kernel/git/shuah/linux-kselftest

Pull kselftest fixes from Shuah Khan:
 "Fixes for build, run-time errors, and reporting errors:

   - ftrace: regression test for a kernel crash when running function
     graph tracing and then enabling function profiler.

   - rseq: fix for mm_cid test failure.

   - vDSO:
      - fixes to reporting skip and other error conditions
      - changes unconditionally build chacha and getrandom tests on all
        architectures to make it easier for them to run in CIs
      - build error when sched.h to bring in CLONE_NEWTIME define"

* tag 'linux_kselftest-fixes-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
  ftrace/selftest: Test combination of function_graph tracer and function profiler
  selftests/rseq: Fix mm_cid test failure
  selftests: vDSO: Explicitly include sched.h
  selftests: vDSO: improve getrandom and chacha error messages
  selftests: vDSO: unconditionally build getrandom test
  selftests: vDSO: unconditionally build chacha test

10 months agoMerge tag 'devicetree-fixes-for-6.12-1' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 11 Oct 2024 23:07:15 +0000 (16:07 -0700)]
Merge tag 'devicetree-fixes-for-6.12-1' of git://git./linux/kernel/git/robh/linux

Pull devicetree fixes from Rob Herring:

 - Disable kunit tests for arm64+ACPI

 - Fix refcount issue in kunit tests

 - Drop constraints on non-conformant 'interrupt-map' in fsl,ls-extirq

 - Drop type ref on 'msi-parent in fsl,qoriq-mc binding

 - Move elgin,jg10309-01 to its own binding from trivial-devices

* tag 'devicetree-fixes-for-6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
  of: Skip kunit tests when arm64+ACPI doesn't populate root node
  of: Fix unbalanced of node refcount and memory leaks
  dt-bindings: interrupt-controller: fsl,ls-extirq: workaround wrong interrupt-map number
  dt-bindings: misc: fsl,qoriq-mc: remove ref for msi-parent
  dt-bindings: display: elgin,jg10309-01: Add own binding

10 months agoMerge tag 'fbdev-for-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/delle...
Linus Torvalds [Fri, 11 Oct 2024 22:56:02 +0000 (15:56 -0700)]
Merge tag 'fbdev-for-6.12-rc3' of git://git./linux/kernel/git/deller/linux-fbdev

Pull fbdev platform driver fix from Helge Deller:
 "Switch fbdev drivers back to struct platform_driver::remove()

  Now that 'remove()' has been converted to the sane new API, there's
  no reason for the 'remove_new()' use, so this converts back to the
  traditional and simpler name.

  See commits

     5c5a7680e67b ("platform: Provide a remove callback that returns no value")
     0edb555a65d1 ("platform: Make platform_driver::remove() return void")

  for background to this all"

* tag 'fbdev-for-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
  fbdev: Switch back to struct platform_driver::remove()

10 months agoMerge tag 'gpio-fixes-for-v6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 11 Oct 2024 22:42:26 +0000 (15:42 -0700)]
Merge tag 'gpio-fixes-for-v6.12-rc3' of git://git./linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:

 - fix clock handle leak in probe() error path in gpio-aspeed

 - add a dummy register read to ensure the write actually completed

* tag 'gpio-fixes-for-v6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
  gpio: aspeed: Use devm_clk api to manage clock source
  gpio: aspeed: Add the flush write to ensure the write complete.

10 months agoMerge tag 'nfs-for-6.12-2' of git://git.linux-nfs.org/projects/anna/linux-nfs
Linus Torvalds [Fri, 11 Oct 2024 22:37:15 +0000 (15:37 -0700)]
Merge tag 'nfs-for-6.12-2' of git://git.linux-nfs.org/projects/anna/linux-nfs

Pull NFS client fixes from Anna Schumaker:
 "Localio Bugfixes:
   - remove duplicated include in localio.c
   - fix race in NFS calls to nfsd_file_put_local() and nfsd_serv_put()
   - fix Kconfig for NFS_COMMON_LOCALIO_SUPPORT
   - fix nfsd_file tracepoints to handle NULL rqstp pointers

  Other Bugfixes:
   - fix program selection loop in svc_process_common
   - fix integer overflow in decode_rc_list()
   - prevent NULL-pointer dereference in nfs42_complete_copies()
   - fix CB_RECALL performance issues when using a large number of
     delegations"

* tag 'nfs-for-6.12-2' of git://git.linux-nfs.org/projects/anna/linux-nfs:
  NFS: remove revoked delegation from server's delegation list
  nfsd/localio: fix nfsd_file tracepoints to handle NULL rqstp
  nfs_common: fix Kconfig for NFS_COMMON_LOCALIO_SUPPORT
  nfs_common: fix race in NFS calls to nfsd_file_put_local() and nfsd_serv_put()
  NFSv4: Prevent NULL-pointer dereference in nfs42_complete_copies()
  SUNRPC: Fix integer overflow in decode_rc_list()
  sunrpc: fix prog selection loop in svc_process_common
  nfs: Remove duplicated include in localio.c

10 months agoMerge tag 'rcu.fixes.6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rcu...
Linus Torvalds [Fri, 11 Oct 2024 21:42:27 +0000 (14:42 -0700)]
Merge tag 'rcu.fixes.6.12-rc3' of git://git./linux/kernel/git/rcu/linux

Pull RCU fix from Neeraj Upadhyay:
 "Fix rcuog kthread wakeup invocation from softirq context on a CPU
  which has been marked offline.

  This can happen when new callbacks are enqueued from a softirq on an
  offline CPU before it calls rcutree_report_cpu_dead(). When this
  happens on NOCB configuration, the rcuog wake-up is deferred through
  an IPI to an online CPU. This is done to avoid call into the scheduler
  which can risk arming the RT-bandwidth after hrtimers have been
  migrated out and disabled.

  However, doing IPI call from softirq is not allowed: Fix this by
  forcing deferred rcuog wakeup through the NOCB timer when the CPU is
  offline"

* tag 'rcu.fixes.6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux:
  rcu/nocb: Fix rcuog wake-up from offline softirq

10 months agoMerge tag 'for-linus-6.12a-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Fri, 11 Oct 2024 21:34:18 +0000 (14:34 -0700)]
Merge tag 'for-linus-6.12a-rc3-tag' of git://git./linux/kernel/git/xen/tip

Pull xen fix from Juergen Gross:
 "A fix for topology information of Xen PV guests"

* tag 'for-linus-6.12a-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
  x86/xen: mark boot CPU of PV guest in MSR_IA32_APICBASE

10 months agoftrace/selftest: Test combination of function_graph tracer and function profiler
Steven Rostedt [Thu, 10 Oct 2024 20:52:35 +0000 (16:52 -0400)]
ftrace/selftest: Test combination of function_graph tracer and function profiler

Masami reported a bug when running function graph tracing then the
function profiler. The following commands would cause a kernel crash:

  # cd /sys/kernel/tracing/
  # echo function_graph > current_tracer
  # echo 1 > function_profile_enabled

In that order. Create a test to test this two to make sure this does not
come back as a regression.

Link: https://lore.kernel.org/172398528350.293426.8347220120333730248.stgit@devnote2
Link: https://lore.kernel.org/all/20241010165235.35122877@gandalf.local.home/
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
10 months agoselftests/rseq: Fix mm_cid test failure
Mathieu Desnoyers [Wed, 9 Oct 2024 01:28:01 +0000 (21:28 -0400)]
selftests/rseq: Fix mm_cid test failure

Adapt the rseq.c/rseq.h code to follow GNU C library changes introduced by:

glibc commit 2e456ccf0c34 ("Linux: Make __rseq_size useful for feature detection (bug 31965)")

Without this fix, rseq selftests for mm_cid fail:

./run_param_test.sh
Default parameters
Running test spinlock
Running compare-twice test spinlock
Running mm_cid test spinlock
Error: cpu id getter unavailable

Fixes: 18c2355838e7 ("selftests/rseq: Implement rseq mm_cid field support")
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
CC: Boqun Feng <boqun.feng@gmail.com>
CC: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
CC: Carlos O'Donell <carlos@redhat.com>
CC: Florian Weimer <fweimer@redhat.com>
CC: linux-kselftest@vger.kernel.org
CC: stable@vger.kernel.org
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
10 months agoMerge tag 'io_uring-6.12-20241011' of git://git.kernel.dk/linux
Linus Torvalds [Fri, 11 Oct 2024 19:00:21 +0000 (12:00 -0700)]
Merge tag 'io_uring-6.12-20241011' of git://git.kernel.dk/linux

Pull io_uring fixes from Jens Axboe:

 - Explicitly have a mshot_finished condition for IORING_OP_RECV in
   multishot mode, similarly to what IORING_OP_RECVMSG has. This doesn't
   fix a bug right now, but it makes it harder to actually have a bug
   here if a request takes multiple iterations to finish.

 - Fix handling of retry of read/write of !FMODE_NOWAIT files. If they
   are pollable, that's all we need.

* tag 'io_uring-6.12-20241011' of git://git.kernel.dk/linux:
  io_uring/rw: allow pollable non-blocking attempts for !FMODE_NOWAIT
  io_uring/rw: fix cflags posting for single issue multishot read

10 months agoMerge tag 'pm-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Linus Torvalds [Fri, 11 Oct 2024 18:41:20 +0000 (11:41 -0700)]
Merge tag 'pm-6.12-rc3' of git://git./linux/kernel/git/rafael/linux-pm

Pull power management fixes from Rafael Wysocki:
 "These address two issues in the TPMI module of the Intel RAPL power
  capping driver and one issue in the processor part of the Intel
  int340x thermal driver, update a CPU ID list and register definitions
  needed for RAPL PL4 support and remove some unused code.

  Specifics:

   - Fix the TPMI_RAPL_REG_DOMAIN_INFO register offset in the TPMI part
     of the Intel RAPL power capping driver, make it ignore minor
     hardware version mismatches (which only indicate exposing
     additional features) and update register definitions in it to
     enable PL4 support (Zhang Rui)

   - Add Arrow Lake-U to the list of processors supporting PL4 in the
     MSR part of the Intel RAPL power capping driver (Sumeet Pawnikar)

   - Remove excess pci_disable_device() calls from the processor part of
     the int340x thermal driver to address a warning triggered during
     module unload and remove unused CPU hotplug code related to RAPL
     support from it (Zhang Rui)"

* tag 'pm-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  thermal: intel: int340x: processor: Add MMIO RAPL PL4 support
  thermal: intel: int340x: processor: Remove MMIO RAPL CPU hotplug support
  powercap: intel_rapl_msr: Add PL4 support for Arrowlake-U
  powercap: intel_rapl_tpmi: Ignore minor version change
  thermal: intel: int340x: processor: Fix warning during module unload
  powercap: intel_rapl_tpmi: Fix bogus register reading

10 months agoMerge tag 'thermal-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
Linus Torvalds [Fri, 11 Oct 2024 18:35:30 +0000 (11:35 -0700)]
Merge tag 'thermal-6.12-rc3' of git://git./linux/kernel/git/rafael/linux-pm

Pull thermal control fixes from Rafael Wysocki:
 "Address possible use-after-free scenarios during the processing of
  thermal netlink commands and during thermal zone removal (Rafael
  Wysocki)"

* tag 'thermal-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  thermal: core: Free tzp copy along with the thermal zone
  thermal: core: Reference count the zone in thermal_zone_get_by_id()

10 months agoMerge tag 'acpi-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
Linus Torvalds [Fri, 11 Oct 2024 18:32:10 +0000 (11:32 -0700)]
Merge tag 'acpi-6.12-rc3' of git://git./linux/kernel/git/rafael/linux-pm

Pull ACPI fixes from Rafael Wysocki:
 "Reduce the number of ACPI IRQ override DMI quirks by combining quirks
  that cover similar systems while making them cover additional models
  at the same time (Hans de Goede)"

* tag 'acpi-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  ACPI: resource: Fold Asus Vivobook Pro N6506M* DMI quirks together
  ACPI: resource: Fold Asus ExpertBook B1402C* and B1502C* DMI quirks together
  ACPI: resource: Make Asus ExpertBook B2502 matches cover more models
  ACPI: resource: Make Asus ExpertBook B2402 matches cover more models

10 months agoMerge tag 'pmdomain-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh...
Linus Torvalds [Fri, 11 Oct 2024 18:26:15 +0000 (11:26 -0700)]
Merge tag 'pmdomain-v6.12-rc1' of git://git./linux/kernel/git/ulfh/linux-pm

Pull pmdomain fixes from Ulf Hansson:
 "pmdomain core:
   - Fix alloc/free in dev_pm_domain_attach|detach_list()

  pmdomain providers:
   - qcom: Fix the return of uninitialized variable

  pmdomain consumers:
   - drm/tegra/gr3d: Revert conversion to dev_pm_domain_attach|detach_list()

  OPP core:
   - Fix error code in dev_pm_opp_set_config()"

* tag 'pmdomain-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm:
  PM: domains: Fix alloc/free in dev_pm_domain_attach|detach_list()
  Revert "drm/tegra: gr3d: Convert into dev_pm_domain_attach|detach_list()"
  pmdomain: qcom-cpr: Fix the return of uninitialized variable
  OPP: fix error code in dev_pm_opp_set_config()

10 months agoMerge tag 'mmc-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Linus Torvalds [Fri, 11 Oct 2024 18:23:21 +0000 (11:23 -0700)]
Merge tag 'mmc-v6.12-rc1' of git://git./linux/kernel/git/ulfh/mmc

Pull MMC fixes from Ulf Hansson:
 "MMC core:
   - Prevent splat from warning when setting maximum DMA segment

  MMC host:
   - mvsdio: Drop sg_miter support for PIO as it didn't work
   - sdhci-of-dwcmshc: Prevent stale interrupt for the T-Head 1520
     variant"

* tag 'mmc-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
  mmc: sdhci-of-dwcmshc: Prevent stale command interrupt handling
  Revert "mmc: mvsdio: Use sg_miter for PIO"
  mmc: core: Only set maximum DMA segment size if DMA is supported

10 months agoMerge tag 'ata-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/libata...
Linus Torvalds [Fri, 11 Oct 2024 18:18:31 +0000 (11:18 -0700)]
Merge tag 'ata-6.12-rc3' of git://git./linux/kernel/git/libata/linux

Pull ata fixes from Niklas Cassel:

 - Fix a hibernate regression where the disk was needlessly spun down
   and then immediately spun up both when entering and when resuming
   from hibernation (me)

 - Update the MAINTAINERS file to remove remnants from Jens
   maintainership of libata (Damien)

* tag 'ata-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
  ata: libata: Update MAINTAINERS file
  ata: libata: avoid superfluous disk spin down + spin up during hibernation

10 months agoMerge tag 'drm-fixes-2024-10-11' of https://gitlab.freedesktop.org/drm/kernel
Linus Torvalds [Fri, 11 Oct 2024 18:13:05 +0000 (11:13 -0700)]
Merge tag 'drm-fixes-2024-10-11' of https://gitlab.freedesktop.org/drm/kernel

Pull drm fixes from Dave Airlie:
 "Weekly fixes haul for drm, lots of small fixes all over, amdgpu, xe
  lead the way, some minor nouveau and radeon fixes, and then a bunch of
  misc all over.

  Nothing too scary or out of the unusual.

  sched:
   - Avoid leaking lockdep map

  fbdev-dma:
   - Only clean up deferred I/O if instanciated

  amdgpu:
   - Fix invalid UBSAN warnings
   - Fix artifacts in MPO transitions
   - Hibernation fix

  amdkfd:
   - Fix an eviction fence leak

  radeon:
   - Add late register for connectors
   - Always set GEM function pointers

  i915:
   - HDCP refcount fix

  nouveau:
   - dmem: Fix privileged error in copy engine channel; Fix possible
     data leak in migrate_to_ram()
   - gsp: Fix coding style

  v3d:
   - Stop active perfmon before destroying it

  vc4:
   - Stop active perfmon before destroying it

  xe:
   - Drop GuC submit_wq pool
   - Fix error checking with xa_store()
   - Fix missing freq restore on GSC load error
   - Fix wedged_mode file permission
   - Fix use-after-free in ct communication"

* tag 'drm-fixes-2024-10-11' of https://gitlab.freedesktop.org/drm/kernel:
  drm/fbdev-dma: Only cleanup deferred I/O if necessary
  drm/xe: Make wedged_mode debugfs writable
  drm/xe: Restore GT freq on GSC load error
  drm/xe/guc_submit: fix xa_store() error checking
  drm/xe/ct: fix xa_store() error checking
  drm/xe/ct: prevent UAF in send_recv()
  drm/radeon: always set GEM function pointer
  nouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error
  nouveau/dmem: Fix privileged error in copy engine channel
  drm/amd/display: fix hibernate entry for DCN35+
  drm/amd/display: Clear update flags after update has been applied
  drm/amdgpu: partially revert powerplay `__counted_by` changes
  drm/radeon: add late_register for connector
  drm/amdkfd: Fix an eviction fence leak
  drm/vc4: Stop the active perfmon before being destroyed
  drm/v3d: Stop the active perfmon before being destroyed
  drm/i915/hdcp: fix connector refcounting
  drm/nouveau/gsp: remove extraneous ; after mutex
  drm/xe: Drop GuC submit_wq pool
  drm/sched: Use drm sched lockdep map for submit_wq

10 months agopowerpc/8xx: Fix kernel DTLB miss on dcbz
Christophe Leroy [Sat, 5 Oct 2024 08:53:29 +0000 (10:53 +0200)]
powerpc/8xx: Fix kernel DTLB miss on dcbz

Following OOPS is encountered while loading test_bpf module
on powerpc 8xx:

[  218.835567] BUG: Unable to handle kernel data access on write at 0xcb000000
[  218.842473] Faulting instruction address: 0xc0017a80
[  218.847451] Oops: Kernel access of bad area, sig: 11 [#1]
[  218.852854] BE PAGE_SIZE=16K PREEMPT CMPC885
[  218.857207] SAF3000 DIE NOTIFICATION
[  218.860713] Modules linked in: test_bpf(+) test_module
[  218.865867] CPU: 0 UID: 0 PID: 527 Comm: insmod Not tainted 6.11.0-s3k-dev-09856-g3de3d71ae2e6-dirty #1280
[  218.875546] Hardware name: MIAE 8xx 0x500000 CMPC885
[  218.880521] NIP:  c0017a80 LR: beab859c CTR: 000101d4
[  218.885584] REGS: cac2bc90 TRAP: 0300   Not tainted  (6.11.0-s3k-dev-09856-g3de3d71ae2e6-dirty)
[  218.894308] MSR:  00009032 <EE,ME,IR,DR,RI>  CR: 55005555  XER: a0007100
[  218.901290] DAR: cb000000 DSISR: c2000000
[  218.901290] GPR00: 000185d1 cac2bd50 c21b9580 caf7c030 c3883fcc 00000008 cafffffc 00000000
[  218.901290] GPR08: 00040000 18300000 20000000 00000004 99005555 100d815e ca669d08 00000369
[  218.901290] GPR16: ca730000 00000000 ca2c004c 00000000 00000000 0000035d 00000311 00000369
[  218.901290] GPR24: ca732240 00000001 00030ba3 c3800000 00000000 00185d48 caf7c000 ca2c004c
[  218.941087] NIP [c0017a80] memcpy+0x88/0xec
[  218.945277] LR [beab859c] test_bpf_init+0x22c/0x3c90 [test_bpf]
[  218.951476] Call Trace:
[  218.953916] [cac2bd50] [beab8570] test_bpf_init+0x200/0x3c90 [test_bpf] (unreliable)
[  218.962034] [cac2bde0] [c0004c04] do_one_initcall+0x4c/0x1fc
[  218.967706] [cac2be40] [c00a2ec4] do_init_module+0x68/0x360
[  218.973292] [cac2be60] [c00a5194] init_module_from_file+0x8c/0xc0
[  218.979401] [cac2bed0] [c00a5568] sys_finit_module+0x250/0x3f0
[  218.985248] [cac2bf20] [c000e390] system_call_exception+0x8c/0x15c
[  218.991444] [cac2bf30] [c00120a8] ret_from_syscall+0x0/0x28

This happens in the main loop of memcpy()

  ==> c0017a80: 7c 0b 37 ec  dcbz    r11,r6
c0017a84: 80 e4 00 04  lwz     r7,4(r4)
c0017a88: 81 04 00 08  lwz     r8,8(r4)
c0017a8c: 81 24 00 0c  lwz     r9,12(r4)
c0017a90: 85 44 00 10  lwzu    r10,16(r4)
c0017a94: 90 e6 00 04  stw     r7,4(r6)
c0017a98: 91 06 00 08  stw     r8,8(r6)
c0017a9c: 91 26 00 0c  stw     r9,12(r6)
c0017aa0: 95 46 00 10  stwu    r10,16(r6)
c0017aa4: 42 00 ff dc  bdnz    c0017a80 <memcpy+0x88>

Commit ac9f97ff8b32 ("powerpc/8xx: Inconditionally use task PGDIR in
DTLB misses") relies on re-reading DAR register to know if an error is
due to a missing copy of a PMD entry in task's PGDIR, allthough DAR
was already read in the exception prolog and copied into thread
struct. This is because is it done very early in the exception and
there are not enough registers available to keep a pointer to thread
struct.

However, dcbz instruction is buggy and doesn't update DAR register on
fault. That is detected and generates a call to FixupDAR workaround
which updates DAR copy in thread struct but doesn't fix DAR register.

Let's fix DAR in addition to the update of DAR copy in thread struct.

Fixes: ac9f97ff8b32 ("powerpc/8xx: Inconditionally use task PGDIR in DTLB misses")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/2b851399bd87e81c6ccb87ea3a7a6b32c7aa04d7.1728118396.git.christophe.leroy@csgroup.eu
10 months agoMerge tag 'drm-xe-fixes-2024-10-10' of https://gitlab.freedesktop.org/drm/xe/kernel...
Dave Airlie [Fri, 11 Oct 2024 03:54:05 +0000 (13:54 +1000)]
Merge tag 'drm-xe-fixes-2024-10-10' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes

Driver Changes:
- Fix error checking with xa_store() (Matthe Auld)
- Fix missing freq restore on GSC load error (Vinay)
- Fix wedged_mode file permission (Matt Roper)
- Fix use-after-free in ct communication (Matthew Auld)

Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/jri65tmv3bjbhqhxs5smv45nazssxzhtwphojem4uufwtjuliy@gsdhlh6kzsdy
10 months agoMerge tag 'drm-misc-fixes-2024-10-10' of https://gitlab.freedesktop.org/drm/misc...
Dave Airlie [Thu, 10 Oct 2024 23:03:20 +0000 (09:03 +1000)]
Merge tag 'drm-misc-fixes-2024-10-10' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes

Short summary of fixes pull:

fbdev-dma:
- Only clean up deferred I/O if instanciated

nouveau:
- dmem: Fix privileged error in copy engine channel; Fix possible
data leak in migrate_to_ram()
- gsp: Fix coding style

sched:
- Avoid leaking lockdep map

v3d:
- Stop active perfmon before destroying it

vc4:
- Stop active perfmon before destroying it

xe:
- Drop GuC submit_wq pool

Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241010133708.GA461532@localhost.localdomain
10 months agoMerge tag 'drm-intel-fixes-2024-10-10' of https://gitlab.freedesktop.org/drm/i915...
Dave Airlie [Thu, 10 Oct 2024 22:55:26 +0000 (08:55 +1000)]
Merge tag 'drm-intel-fixes-2024-10-10' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes

- HDCP refcount fix

Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Zwd78Tnw8t3w9F16@jlahtine-mobl.ger.corp.intel.com
10 months agoMerge tag 'net-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Linus Torvalds [Thu, 10 Oct 2024 19:36:35 +0000 (12:36 -0700)]
Merge tag 'net-6.12-rc3' of git://git./linux/kernel/git/netdev/net

Pull networking fixes from Jakub Kicinski:
 "Including fixes from bluetooth and netfilter.

  Current release - regressions:

   - dsa: sja1105: fix reception from VLAN-unaware bridges

   - Revert "net: stmmac: set PP_FLAG_DMA_SYNC_DEV only if XDP is
     enabled"

   - eth: fec: don't save PTP state if PTP is unsupported

  Current release - new code bugs:

   - smc: fix lack of icsk_syn_mss with IPPROTO_SMC, prevent null-deref

   - eth: airoha: update Tx CPU DMA ring idx at the end of xmit loop

   - phy: aquantia: AQR115c fix up PMA capabilities

  Previous releases - regressions:

   - tcp: 3 fixes for retrans_stamp and undo logic

  Previous releases - always broken:

   - net: do not delay dst_entries_add() in dst_release()

   - netfilter: restrict xtables extensions to families that are safe,
     syzbot found a way to combine ebtables with extensions that are
     never used by userspace tools

   - sctp: ensure sk_state is set to CLOSED if hashing fails in
     sctp_listen_start

   - mptcp: handle consistently DSS corruption, and prevent corruption
     due to large pmtu xmit"

* tag 'net-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (87 commits)
  MAINTAINERS: Add headers and mailing list to UDP section
  MAINTAINERS: consistently exclude wireless files from NETWORKING [GENERAL]
  slip: make slhc_remember() more robust against malicious packets
  net/smc: fix lacks of icsk_syn_mss with IPPROTO_SMC
  ppp: fix ppp_async_encode() illegal access
  docs: netdev: document guidance on cleanup patches
  phonet: Handle error of rtnl_register_module().
  mpls: Handle error of rtnl_register_module().
  mctp: Handle error of rtnl_register_module().
  bridge: Handle error of rtnl_register_module().
  vxlan: Handle error of rtnl_register_module().
  rtnetlink: Add bulk registration helpers for rtnetlink message handlers.
  net: do not delay dst_entries_add() in dst_release()
  mptcp: pm: do not remove closing subflows
  mptcp: fallback when MPTCP opts are dropped after 1st data
  tcp: fix mptcp DSS corruption due to large pmtu xmit
  mptcp: handle consistently DSS corruption
  net: netconsole: fix wrong warning
  net: dsa: refuse cross-chip mirroring operations
  net: fec: don't save PTP state if PTP is unsupported
  ...

10 months agoMerge tag 'trace-ringbuffer-v6.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Thu, 10 Oct 2024 19:25:32 +0000 (12:25 -0700)]
Merge tag 'trace-ringbuffer-v6.12-rc2' of git://git./linux/kernel/git/trace/linux-trace

Pull tracing fix from Steven Rostedt:
 "Ring-buffer fix: do not have boot-mapped buffers use CPU hotplug
  callbacks

  When a ring buffer is mapped to memory assigned at boot, it also
  splits it up evenly between the possible CPUs. But the allocation code
  still attached a CPU notifier callback to this ring buffer. When a CPU
  is added, the callback will happen and another per-cpu buffer is
  created for the ring buffer.

  But for boot mapped buffers, there is no room to add another one (as
  they were all created already). The result of calling the CPU hotplug
  notifier on a boot mapped ring buffer is unpredictable and could lead
  to a system crash.

  If the ring buffer is boot mapped simply do not attach the CPU
  notifier to it"

* tag 'trace-ringbuffer-v6.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  ring-buffer: Do not have boot mapped buffers hook to CPU hotplug

10 months agoof: Skip kunit tests when arm64+ACPI doesn't populate root node
Stephen Boyd [Wed, 9 Oct 2024 20:41:31 +0000 (13:41 -0700)]
of: Skip kunit tests when arm64+ACPI doesn't populate root node

A root node is required to apply DT overlays. A root node is usually
present after commit 7b937cc243e5 ("of: Create of_root if no dtb
provided by firmware"), except for on arm64 systems booted with ACPI
tables. In that case, the root node is intentionally not populated
because it would "allow DT devices to be instantiated atop an ACPI base
system"[1].

Introduce an OF function that skips the kunit test if the root node
isn't populated. Limit the test to when both CONFIG_ARM64 and
CONFIG_ACPI are set, because otherwise the lack of a root node is a bug.
Make the function private and take a kunit test parameter so that it
can't be abused to test for the presence of the root node in non-test
code.

Use this function to skip tests that require the root node. Currently
that's the DT tests and any tests that apply overlays.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/r/6cd337fb-38f0-41cb-b942-5844b84433db@roeck-us.net
Link: https://lore.kernel.org/r/Zd4dQpHO7em1ji67@FVFF77S0Q05N.cambridge.arm.com
Fixes: 893ecc6d2d61 ("of: Add KUnit test to confirm DTB is loaded")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20241009204133.1169931-1-sboyd@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>