This is the start of the stable review cycle for the 5.10.182 release.
There are 22 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Sat, 03 Jun 2023 13:19:19 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.182-r…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 5.10.182-rc1
Paul Blakey <paulb(a)nvidia.com>
netfilter: ctnetlink: Support offloaded conntrack entry deletion
Nicolas Dichtel <nicolas.dichtel(a)6wind.com>
ipv{4,6}/raw: fix output xfrm lookup wrt protocol
Carlos Llamas <cmllamas(a)google.com>
binder: fix UAF caused by faulty buffer cleanup
Ruihan Li <lrh2000(a)pku.edu.cn>
bluetooth: Add cmd validity checks at the start of hci_sock_ioctl()
David Epping <david.epping(a)missinglinkelectronics.com>
net: phy: mscc: enable VSC8501/2 RGMII RX clock
Shay Drory <shayd(a)nvidia.com>
net/mlx5: Devcom, serialize devcom registration
Mark Bloch <mbloch(a)nvidia.com>
net/mlx5: devcom only supports 2 ports
Alexander Stein <alexander.stein(a)ew.tq-group.com>
regulator: pca9450: Fix BUCK2 enable_mask
Axel Lin <axel.lin(a)ingics.com>
regulator: pca9450: Convert to use regulator_set_ramp_delay_regmap
Matti Vaittinen <matti.vaittinen(a)fi.rohmeurope.com>
regulator: Add regmap helper for ramp-delay setting
Hans de Goede <hdegoede(a)redhat.com>
power: supply: bq24190: Call power_supply_changed() after updating input current
Hans de Goede <hdegoede(a)redhat.com>
power: supply: core: Refactor power_supply_set_input_current_limit_from_supplier()
Hans de Goede <hdegoede(a)redhat.com>
power: supply: bq27xxx: After charger plug in/out wait 0.5s for things to stabilize
Hans de Goede <hdegoede(a)redhat.com>
power: supply: bq27xxx: Ensure power_supply_changed() is called on current sign changes
Hans de Goede <hdegoede(a)redhat.com>
power: supply: bq27xxx: Move bq27xxx_battery_update() down
Sicelo A. Mhlongo <absicsz(a)gmail.com>
power: supply: bq27xxx: expose battery data when CI=1
Hans de Goede <hdegoede(a)redhat.com>
power: supply: bq27xxx: Add cache parameter to bq27xxx_battery_current_and_status()
Matthias Schiffer <matthias.schiffer(a)ew.tq-group.com>
power: supply: bq27xxx: make status more robust
Matthias Schiffer <matthias.schiffer(a)ew.tq-group.com>
power: supply: bq27xxx: fix sign of current_now for newer ICs
Andreas Kemnade <andreas(a)kemnade.info>
power: supply: bq27xxx: fix polarity of current_now
Tony Luck <tony.luck(a)intel.com>
x86/cpu: Drop spurious underscore from RAPTOR_LAKE #define
Tony Luck <tony.luck(a)intel.com>
x86/cpu: Add Raptor Lake to Intel family
-------------
Diffstat:
Makefile | 4 +-
arch/x86/include/asm/intel-family.h | 2 +
drivers/android/binder.c | 26 ++-
.../net/ethernet/mellanox/mlx5/core/lib/devcom.c | 35 ++--
.../net/ethernet/mellanox/mlx5/core/lib/devcom.h | 2 +
drivers/net/phy/mscc/mscc.h | 1 +
drivers/net/phy/mscc/mscc_main.c | 54 ++---
drivers/power/supply/bq24190_charger.c | 13 +-
drivers/power/supply/bq27xxx_battery.c | 224 +++++++++++----------
drivers/power/supply/power_supply_core.c | 57 +++---
drivers/regulator/helpers.c | 65 ++++++
drivers/regulator/pca9450-regulator.c | 55 +++--
include/linux/power/bq27xxx_battery.h | 3 +
include/linux/power_supply.h | 5 +-
include/linux/regulator/driver.h | 5 +
include/net/ip.h | 2 +
include/uapi/linux/in.h | 2 +
net/bluetooth/hci_sock.c | 28 +++
net/ipv4/ip_sockglue.c | 12 +-
net/ipv4/raw.c | 5 +-
net/ipv6/raw.c | 3 +-
net/netfilter/nf_conntrack_netlink.c | 8 -
22 files changed, 387 insertions(+), 224 deletions(-)
This is the start of the stable review cycle for the 5.4.245 release.
There are 16 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Sat, 03 Jun 2023 13:19:19 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.245-rc…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 5.4.245-rc1
Paul Blakey <paulb(a)nvidia.com>
netfilter: ctnetlink: Support offloaded conntrack entry deletion
Nicolas Dichtel <nicolas.dichtel(a)6wind.com>
ipv{4,6}/raw: fix output xfrm lookup wrt protocol
Carlos Llamas <cmllamas(a)google.com>
binder: fix UAF caused by faulty buffer cleanup
Ruihan Li <lrh2000(a)pku.edu.cn>
bluetooth: Add cmd validity checks at the start of hci_sock_ioctl()
Jens Axboe <axboe(a)kernel.dk>
io_uring: have io_kill_timeout() honor the request references
Jens Axboe <axboe(a)kernel.dk>
io_uring: don't drop completion lock before timer is fully initialized
Jens Axboe <axboe(a)kernel.dk>
io_uring: always grab lock in io_cancel_async_work()
Alexander Bersenev <bay(a)hackerdom.ru>
cdc_ncm: Fix the build warning
Shay Drory <shayd(a)nvidia.com>
net/mlx5: Devcom, serialize devcom registration
Mark Bloch <mbloch(a)nvidia.com>
net/mlx5: devcom only supports 2 ports
Hao Ge <gehao(a)kylinos.cn>
fs: fix undefined behavior in bit shift for SB_NOUSER
Hans de Goede <hdegoede(a)redhat.com>
power: supply: bq24190: Call power_supply_changed() after updating input current
Hans de Goede <hdegoede(a)redhat.com>
power: supply: core: Refactor power_supply_set_input_current_limit_from_supplier()
Hans de Goede <hdegoede(a)redhat.com>
power: supply: bq27xxx: After charger plug in/out wait 0.5s for things to stabilize
Tudor Ambarus <tudor.ambarus(a)linaro.org>
net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize
Alexander Bersenev <bay(a)hackerdom.ru>
cdc_ncm: Implement the 32-bit version of NCM Transfer Block
-------------
Diffstat:
Makefile | 4 +-
drivers/android/binder.c | 26 +-
.../net/ethernet/mellanox/mlx5/core/lib/devcom.c | 35 +-
.../net/ethernet/mellanox/mlx5/core/lib/devcom.h | 2 +
drivers/net/usb/cdc_ncm.c | 435 ++++++++++++++++-----
drivers/net/usb/huawei_cdc_ncm.c | 8 +-
drivers/power/supply/bq24190_charger.c | 13 +-
drivers/power/supply/bq27xxx_battery.c | 4 +-
drivers/power/supply/power_supply_core.c | 57 +--
fs/io_uring.c | 8 +-
include/linux/fs.h | 40 +-
include/linux/power_supply.h | 5 +-
include/linux/usb/cdc_ncm.h | 15 +-
include/net/ip.h | 2 +
include/uapi/linux/in.h | 2 +
net/bluetooth/hci_sock.c | 28 ++
net/ipv4/ip_sockglue.c | 12 +-
net/ipv4/raw.c | 5 +-
net/ipv6/raw.c | 3 +-
net/netfilter/nf_conntrack_netlink.c | 8 -
20 files changed, 521 insertions(+), 191 deletions(-)
I'm announcing the release of the 5.10.182 kernel.
All users of the 5.10 kernel series must upgrade.
The updated 5.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2
arch/x86/include/asm/intel-family.h | 2
drivers/android/binder.c | 26 +-
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c | 35 +-
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h | 2
drivers/net/phy/mscc/mscc.h | 1
drivers/net/phy/mscc/mscc_main.c | 54 ++--
drivers/power/supply/bq24190_charger.c | 13 +
drivers/power/supply/bq27xxx_battery.c | 224 +++++++++----------
drivers/power/supply/power_supply_core.c | 57 ++--
drivers/regulator/helpers.c | 65 +++++
drivers/regulator/pca9450-regulator.c | 55 ++--
include/linux/power/bq27xxx_battery.h | 3
include/linux/power_supply.h | 5
include/linux/regulator/driver.h | 5
include/net/ip.h | 2
include/uapi/linux/in.h | 2
net/bluetooth/hci_sock.c | 28 ++
net/ipv4/ip_sockglue.c | 12 -
net/ipv4/raw.c | 5
net/ipv6/raw.c | 3
net/netfilter/nf_conntrack_netlink.c | 8
22 files changed, 386 insertions(+), 223 deletions(-)
Alexander Stein (1):
regulator: pca9450: Fix BUCK2 enable_mask
Andreas Kemnade (1):
power: supply: bq27xxx: fix polarity of current_now
Axel Lin (1):
regulator: pca9450: Convert to use regulator_set_ramp_delay_regmap
Carlos Llamas (1):
binder: fix UAF caused by faulty buffer cleanup
David Epping (1):
net: phy: mscc: enable VSC8501/2 RGMII RX clock
Greg Kroah-Hartman (1):
Linux 5.10.182
Hans de Goede (6):
power: supply: bq27xxx: Add cache parameter to bq27xxx_battery_current_and_status()
power: supply: bq27xxx: Move bq27xxx_battery_update() down
power: supply: bq27xxx: Ensure power_supply_changed() is called on current sign changes
power: supply: bq27xxx: After charger plug in/out wait 0.5s for things to stabilize
power: supply: core: Refactor power_supply_set_input_current_limit_from_supplier()
power: supply: bq24190: Call power_supply_changed() after updating input current
Mark Bloch (1):
net/mlx5: devcom only supports 2 ports
Matthias Schiffer (2):
power: supply: bq27xxx: fix sign of current_now for newer ICs
power: supply: bq27xxx: make status more robust
Matti Vaittinen (1):
regulator: Add regmap helper for ramp-delay setting
Nicolas Dichtel (1):
ipv{4,6}/raw: fix output xfrm lookup wrt protocol
Paul Blakey (1):
netfilter: ctnetlink: Support offloaded conntrack entry deletion
Ruihan Li (1):
bluetooth: Add cmd validity checks at the start of hci_sock_ioctl()
Shay Drory (1):
net/mlx5: Devcom, serialize devcom registration
Sicelo A. Mhlongo (1):
power: supply: bq27xxx: expose battery data when CI=1
Tony Luck (2):
x86/cpu: Add Raptor Lake to Intel family
x86/cpu: Drop spurious underscore from RAPTOR_LAKE #define
I'm announcing the release of the 5.4.245 kernel.
All users of the 5.4 kernel series must upgrade.
The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2
drivers/android/binder.c | 26 -
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c | 35 +
drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.h | 2
drivers/net/usb/cdc_ncm.c | 435 ++++++++++++++-----
drivers/net/usb/huawei_cdc_ncm.c | 8
drivers/power/supply/bq24190_charger.c | 13
drivers/power/supply/bq27xxx_battery.c | 4
drivers/power/supply/power_supply_core.c | 57 +-
fs/io_uring.c | 8
include/linux/fs.h | 40 -
include/linux/power_supply.h | 5
include/linux/usb/cdc_ncm.h | 15
include/net/ip.h | 2
include/uapi/linux/in.h | 2
net/bluetooth/hci_sock.c | 28 +
net/ipv4/ip_sockglue.c | 12
net/ipv4/raw.c | 5
net/ipv6/raw.c | 3
net/netfilter/nf_conntrack_netlink.c | 8
20 files changed, 520 insertions(+), 190 deletions(-)
Alexander Bersenev (2):
cdc_ncm: Implement the 32-bit version of NCM Transfer Block
cdc_ncm: Fix the build warning
Carlos Llamas (1):
binder: fix UAF caused by faulty buffer cleanup
Greg Kroah-Hartman (1):
Linux 5.4.245
Hans de Goede (3):
power: supply: bq27xxx: After charger plug in/out wait 0.5s for things to stabilize
power: supply: core: Refactor power_supply_set_input_current_limit_from_supplier()
power: supply: bq24190: Call power_supply_changed() after updating input current
Hao Ge (1):
fs: fix undefined behavior in bit shift for SB_NOUSER
Jens Axboe (3):
io_uring: always grab lock in io_cancel_async_work()
io_uring: don't drop completion lock before timer is fully initialized
io_uring: have io_kill_timeout() honor the request references
Mark Bloch (1):
net/mlx5: devcom only supports 2 ports
Nicolas Dichtel (1):
ipv{4,6}/raw: fix output xfrm lookup wrt protocol
Paul Blakey (1):
netfilter: ctnetlink: Support offloaded conntrack entry deletion
Ruihan Li (1):
bluetooth: Add cmd validity checks at the start of hci_sock_ioctl()
Shay Drory (1):
net/mlx5: Devcom, serialize devcom registration
Tudor Ambarus (1):
net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize
In I2C_FUNC_SMBUS_BLOCK_DATA case, the I2C Designware driver does not
handle correctly when it receives the length of SMBus block data
response from SMBus slave device, which is outside the range 1-32 bytes.
Consequently, the I2C Designware bus is stuck and cannot recover.
Because if IC_EMPTYFIFO_HOLD_MASTER_EN is set, which cannot be detected
from the registers, the controller can be disabled if the STOP bit is set.
But it is only set after receiving block data response length.
Hence, to prevent the bus from stuck condition, after receiving the
invalid block data response length, the driver will read another byte
with STOP bit set.
Cc: stable(a)vger.kernel.org
Signed-off-by: Tam Nguyen <tamnguyenchi(a)os.amperecomputing.com>
---
drivers/i2c/busses/i2c-designware-master.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busses/i2c-designware-master.c
index 55ea91a63382..94dadd785ed0 100644
--- a/drivers/i2c/busses/i2c-designware-master.c
+++ b/drivers/i2c/busses/i2c-designware-master.c
@@ -527,8 +527,19 @@ i2c_dw_read(struct dw_i2c_dev *dev)
regmap_read(dev->map, DW_IC_DATA_CMD, &tmp);
/* Ensure length byte is a valid value */
- if (flags & I2C_M_RECV_LEN &&
- (tmp & DW_IC_DATA_CMD_DAT) <= I2C_SMBUS_BLOCK_MAX && tmp > 0) {
+ if (flags & I2C_M_RECV_LEN) {
+ /*
+ * if IC_EMPTYFIFO_HOLD_MASTER_EN is set, which cannot be
+ * detected from the registers, the controller can be
+ * disabled if the STOP bit is set. But it is only set
+ * after receiving block data response length in
+ * I2C_FUNC_SMBUS_BLOCK_DATA case. That needs to read
+ * another byte with STOP bit set when the block data
+ * response length is invalid to complete the transaction.
+ */
+ if ((tmp & DW_IC_DATA_CMD_DAT) > I2C_SMBUS_BLOCK_MAX || tmp == 0)
+ tmp = 1;
+
len = i2c_dw_recv_len(dev, tmp);
}
*buf++ = tmp;
--
2.25.1