linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status
@ 2022-02-23  2:31 Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 02/13] mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work Sasha Levin
                   ` (11 more replies)
  0 siblings, 12 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Benjamin Beichler, Johannes Berg, Sasha Levin, johannes, kvalo,
	davem, kuba, linux-wireless, netdev

From: Benjamin Beichler <benjamin.beichler@uni-rostock.de>

[ Upstream commit 42a79960ffa50bfe9e0bf5d6280be89bf563a5dd ]

Add IEEE80211_TX_STAT_NOACK_TRANSMITTED to tx_status flags to have proper
statistics for non-acked frames.

Signed-off-by: Benjamin Beichler <benjamin.beichler@uni-rostock.de>
Link: https://lore.kernel.org/r/20220111221327.1499881-1-benjamin.beichler@uni-rostock.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/mac80211_hwsim.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 3564f5869b444..6cd9a8b610107 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -3176,6 +3176,10 @@ static int hwsim_tx_info_frame_received_nl(struct sk_buff *skb_2,
 		}
 		txi->flags |= IEEE80211_TX_STAT_ACK;
 	}
+
+	if (hwsim_flags & HWSIM_TX_CTL_NO_ACK)
+		txi->flags |= IEEE80211_TX_STAT_NOACK_TRANSMITTED;
+
 	ieee80211_tx_status_irqsafe(data2->hw, skb);
 	return 0;
 out:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 02/13] mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 03/13] i2c: bcm2835: Avoid clock stretching timeouts Sasha Levin
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: JaeMan Park, Johannes Berg, Sasha Levin, johannes, kvalo, davem,
	kuba, linux-wireless, netdev

From: JaeMan Park <jaeman@google.com>

[ Upstream commit cacfddf82baf1470e5741edeecb187260868f195 ]

In mac80211_hwsim, the probe_req frame is created and sent while
scanning. It is sent with ieee80211_tx_info which is not initialized.
Uninitialized ieee80211_tx_info can cause problems when using
mac80211_hwsim with wmediumd. wmediumd checks the tx_rates field of
ieee80211_tx_info and doesn't relay probe_req frame to other clients
even if it is a broadcasting message.

Call ieee80211_tx_prepare_skb() to initialize ieee80211_tx_info for
the probe_req that is created by hw_scan_work in mac80211_hwsim.

Signed-off-by: JaeMan Park <jaeman@google.com>
Link: https://lore.kernel.org/r/20220113060235.546107-1-jaeman@google.com
[fix memory leak]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/wireless/mac80211_hwsim.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 6cd9a8b610107..c84ee5ba53812 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -2082,6 +2082,15 @@ static void hw_scan_work(struct work_struct *work)
 			if (req->ie_len)
 				skb_put_data(probe, req->ie, req->ie_len);
 
+			if (!ieee80211_tx_prepare_skb(hwsim->hw,
+						      hwsim->hw_scan_vif,
+						      probe,
+						      hwsim->tmp_chan->band,
+						      NULL)) {
+				kfree_skb(probe);
+				continue;
+			}
+
 			local_bh_disable();
 			mac80211_hwsim_tx_frame(hwsim->hw, probe,
 						hwsim->tmp_chan);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 03/13] i2c: bcm2835: Avoid clock stretching timeouts
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 02/13] mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 04/13] ASoC: rt5668: do not block workqueue if card is unbound Sasha Levin
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Eric Anholt, Stefan Wahren, Wolfram Sang, Sasha Levin, nsaenz,
	f.fainelli, rjui, sbranden, bcm-kernel-feedback-list,
	prabhakar.mahadev-lad.rj, linux-i2c, linux-rpi-kernel,
	linux-arm-kernel

From: Eric Anholt <eric@anholt.net>

[ Upstream commit 9495b9b31abe525ebd93da58de2c88b9f66d3a0e ]

The CLKT register contains at poweron 0x40, which at our typical 100kHz
bus rate means .64ms. But there is no specified limit to how long devices
should be able to stretch the clocks, so just disable the timeout. We
still have a timeout wrapping the entire transfer.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
BugLink: https://github.com/raspberrypi/linux/issues/3064
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/i2c/busses/i2c-bcm2835.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c
index 4d19254f78c8a..db1ab9ccc30e7 100644
--- a/drivers/i2c/busses/i2c-bcm2835.c
+++ b/drivers/i2c/busses/i2c-bcm2835.c
@@ -28,6 +28,11 @@
 #define BCM2835_I2C_FIFO	0x10
 #define BCM2835_I2C_DIV		0x14
 #define BCM2835_I2C_DEL		0x18
+/*
+ * 16-bit field for the number of SCL cycles to wait after rising SCL
+ * before deciding the slave is not responding. 0 disables the
+ * timeout detection.
+ */
 #define BCM2835_I2C_CLKT	0x1c
 
 #define BCM2835_I2C_C_READ	BIT(0)
@@ -398,6 +403,12 @@ static int bcm2835_i2c_probe(struct platform_device *pdev)
 	adap->dev.of_node = pdev->dev.of_node;
 	adap->quirks = &bcm2835_i2c_quirks;
 
+	/*
+	 * Disable the hardware clock stretching timeout. SMBUS
+	 * specifies a limit for how long the device can stretch the
+	 * clock, but core I2C doesn't.
+	 */
+	bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_CLKT, 0);
 	bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_C, 0);
 
 	ret = i2c_add_adapter(adap);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 04/13] ASoC: rt5668: do not block workqueue if card is unbound
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 02/13] mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 03/13] i2c: bcm2835: Avoid clock stretching timeouts Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 05/13] ASoC: rt5682: " Sasha Levin
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Kai Vehmanen, Bard Liao, Ranjani Sridharan, Pierre-Louis Bossart,
	Péter Ujfalusi, Shuming Fan, Mark Brown, Sasha Levin,
	oder_chiou, lgirdwood, perex, tiwai, alsa-devel

From: Kai Vehmanen <kai.vehmanen@linux.intel.com>

[ Upstream commit a6d78661dc903d90a327892bbc34268f3a5f4b9c ]

The current rt5668_jack_detect_handler() assumes the component
and card will always show up and implements an infinite usleep
loop waiting for them to show up.

This does not hold true if a codec interrupt (or other
event) occurs when the card is unbound. The codec driver's
remove  or shutdown functions cannot cancel the workqueue due
to the wait loop. As a result, code can either end up blocking
the workqueue, or hit a kernel oops when the card is freed.

Fix the issue by rescheduling the jack detect handler in
case the card is not ready. In case card never shows up,
the shutdown/remove/suspend calls can now cancel the detect
task.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20220207153000.3452802-2-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 sound/soc/codecs/rt5668.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/sound/soc/codecs/rt5668.c b/sound/soc/codecs/rt5668.c
index 3c19d03f2446b..a78503f24aa8a 100644
--- a/sound/soc/codecs/rt5668.c
+++ b/sound/soc/codecs/rt5668.c
@@ -1025,11 +1025,13 @@ static void rt5668_jack_detect_handler(struct work_struct *work)
 		container_of(work, struct rt5668_priv, jack_detect_work.work);
 	int val, btn_type;
 
-	while (!rt5668->component)
-		usleep_range(10000, 15000);
-
-	while (!rt5668->component->card->instantiated)
-		usleep_range(10000, 15000);
+	if (!rt5668->component || !rt5668->component->card ||
+	    !rt5668->component->card->instantiated) {
+		/* card not yet ready, try later */
+		mod_delayed_work(system_power_efficient_wq,
+				 &rt5668->jack_detect_work, msecs_to_jiffies(15));
+		return;
+	}
 
 	mutex_lock(&rt5668->calibrate_mutex);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 05/13] ASoC: rt5682: do not block workqueue if card is unbound
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (2 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 04/13] ASoC: rt5668: do not block workqueue if card is unbound Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 06/13] Input: clear BTN_RIGHT/MIDDLE on buttonpads Sasha Levin
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Kai Vehmanen, Bard Liao, Ranjani Sridharan, Pierre-Louis Bossart,
	Péter Ujfalusi, Shuming Fan, Mark Brown, Sasha Levin,
	oder_chiou, lgirdwood, perex, tiwai, alsa-devel

From: Kai Vehmanen <kai.vehmanen@linux.intel.com>

[ Upstream commit 4c33de0673ced9c7c37b3bbd9bfe0fda72340b2a ]

The current rt5682_jack_detect_handler() assumes the component
and card will always show up and implements an infinite usleep
loop waiting for them to show up.

This does not hold true if a codec interrupt (or other
event) occurs when the card is unbound. The codec driver's
remove  or shutdown functions cannot cancel the workqueue due
to the wait loop. As a result, code can either end up blocking
the workqueue, or hit a kernel oops when the card is freed.

Fix the issue by rescheduling the jack detect handler in
case the card is not ready. In case card never shows up,
the shutdown/remove/suspend calls can now cancel the detect
task.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Shuming Fan <shumingf@realtek.com>
Link: https://lore.kernel.org/r/20220207153000.3452802-3-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 sound/soc/codecs/rt5682.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c
index 7a78bb00f874d..5979165ac37cf 100644
--- a/sound/soc/codecs/rt5682.c
+++ b/sound/soc/codecs/rt5682.c
@@ -1039,11 +1039,13 @@ static void rt5682_jack_detect_handler(struct work_struct *work)
 		container_of(work, struct rt5682_priv, jack_detect_work.work);
 	int val, btn_type;
 
-	while (!rt5682->component)
-		usleep_range(10000, 15000);
-
-	while (!rt5682->component->card->instantiated)
-		usleep_range(10000, 15000);
+	if (!rt5682->component || !rt5682->component->card ||
+	    !rt5682->component->card->instantiated) {
+		/* card not yet ready, try later */
+		mod_delayed_work(system_power_efficient_wq,
+				 &rt5682->jack_detect_work, msecs_to_jiffies(15));
+		return;
+	}
 
 	mutex_lock(&rt5682->calibrate_mutex);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 06/13] Input: clear BTN_RIGHT/MIDDLE on buttonpads
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (3 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 05/13] ASoC: rt5682: " Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 07/13] cifs: fix double free race when mount fails in cifs_get_root() Sasha Levin
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: José Expósito, Peter Hutterer, Benjamin Tissoires,
	Jiri Kosina, Dmitry Torokhov, Sasha Levin, linux-input

From: José Expósito <jose.exposito89@gmail.com>

[ Upstream commit 37ef4c19b4c659926ce65a7ac709ceaefb211c40 ]

Buttonpads are expected to map the INPUT_PROP_BUTTONPAD property bit
and the BTN_LEFT key bit.

As explained in the specification, where a device has a button type
value of 0 (click-pad) or 1 (pressure-pad) there should not be
discrete buttons:
https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/touchpad-windows-precision-touchpad-collection#device-capabilities-feature-report

However, some drivers map the BTN_RIGHT and/or BTN_MIDDLE key bits even
though the device is a buttonpad and therefore does not have those
buttons.

This behavior has forced userspace applications like libinput to
implement different workarounds and quirks to detect buttonpads and
offer to the user the right set of features and configuration options.
For more information:
https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/726

In order to avoid this issue clear the BTN_RIGHT and BTN_MIDDLE key
bits when the input device is register if the INPUT_PROP_BUTTONPAD
property bit is set.

Notice that this change will not affect udev because it does not check
for buttons. See systemd/src/udev/udev-builtin-input_id.c.

List of known affected hardware:

 - Chuwi AeroBook Plus
 - Chuwi Gemibook
 - Framework Laptop
 - GPD Win Max
 - Huawei MateBook 2020
 - Prestigio Smartbook 141 C2
 - Purism Librem 14v1
 - StarLite Mk II   - AMI firmware
 - StarLite Mk II   - Coreboot firmware
 - StarLite Mk III  - AMI firmware
 - StarLite Mk III  - Coreboot firmware
 - StarLabTop Mk IV - AMI firmware
 - StarLabTop Mk IV - Coreboot firmware
 - StarBook Mk V

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://lore.kernel.org/r/20220208174806.17183-1-jose.exposito89@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/input/input.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/input/input.c b/drivers/input/input.c
index a0d90022fcf73..b031174c8d7f7 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -2118,6 +2118,12 @@ int input_register_device(struct input_dev *dev)
 	/* KEY_RESERVED is not supposed to be transmitted to userspace. */
 	__clear_bit(KEY_RESERVED, dev->keybit);
 
+	/* Buttonpads should not map BTN_RIGHT and/or BTN_MIDDLE. */
+	if (test_bit(INPUT_PROP_BUTTONPAD, dev->propbit)) {
+		__clear_bit(BTN_RIGHT, dev->keybit);
+		__clear_bit(BTN_MIDDLE, dev->keybit);
+	}
+
 	/* Make sure that bitmasks not mentioned in dev->evbit are clean. */
 	input_cleanse_bitmasks(dev);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 07/13] cifs: fix double free race when mount fails in cifs_get_root()
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (4 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 06/13] Input: clear BTN_RIGHT/MIDDLE on buttonpads Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 08/13] USB: zaurus: support another broken Zaurus Sasha Levin
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Ronnie Sahlberg, Shyam Prasad N, Steve French, Sasha Levin,
	sfrench, linux-cifs, samba-technical

From: Ronnie Sahlberg <lsahlber@redhat.com>

[ Upstream commit 3d6cc9898efdfb062efb74dc18cfc700e082f5d5 ]

When cifs_get_root() fails during cifs_smb3_do_mount() we call
deactivate_locked_super() which eventually will call delayed_free() which
will free the context.
In this situation we should not proceed to enter the out: section in
cifs_smb3_do_mount() and free the same resources a second time.

[Thu Feb 10 12:59:06 2022] BUG: KASAN: use-after-free in rcu_cblist_dequeue+0x32/0x60
[Thu Feb 10 12:59:06 2022] Read of size 8 at addr ffff888364f4d110 by task swapper/1/0

[Thu Feb 10 12:59:06 2022] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G           OE     5.17.0-rc3+ #4
[Thu Feb 10 12:59:06 2022] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.0 12/17/2019
[Thu Feb 10 12:59:06 2022] Call Trace:
[Thu Feb 10 12:59:06 2022]  <IRQ>
[Thu Feb 10 12:59:06 2022]  dump_stack_lvl+0x5d/0x78
[Thu Feb 10 12:59:06 2022]  print_address_description.constprop.0+0x24/0x150
[Thu Feb 10 12:59:06 2022]  ? rcu_cblist_dequeue+0x32/0x60
[Thu Feb 10 12:59:06 2022]  kasan_report.cold+0x7d/0x117
[Thu Feb 10 12:59:06 2022]  ? rcu_cblist_dequeue+0x32/0x60
[Thu Feb 10 12:59:06 2022]  __asan_load8+0x86/0xa0
[Thu Feb 10 12:59:06 2022]  rcu_cblist_dequeue+0x32/0x60
[Thu Feb 10 12:59:06 2022]  rcu_core+0x547/0xca0
[Thu Feb 10 12:59:06 2022]  ? call_rcu+0x3c0/0x3c0
[Thu Feb 10 12:59:06 2022]  ? __this_cpu_preempt_check+0x13/0x20
[Thu Feb 10 12:59:06 2022]  ? lock_is_held_type+0xea/0x140
[Thu Feb 10 12:59:06 2022]  rcu_core_si+0xe/0x10
[Thu Feb 10 12:59:06 2022]  __do_softirq+0x1d4/0x67b
[Thu Feb 10 12:59:06 2022]  __irq_exit_rcu+0x100/0x150
[Thu Feb 10 12:59:06 2022]  irq_exit_rcu+0xe/0x30
[Thu Feb 10 12:59:06 2022]  sysvec_hyperv_stimer0+0x9d/0xc0
...
[Thu Feb 10 12:59:07 2022] Freed by task 58179:
[Thu Feb 10 12:59:07 2022]  kasan_save_stack+0x26/0x50
[Thu Feb 10 12:59:07 2022]  kasan_set_track+0x25/0x30
[Thu Feb 10 12:59:07 2022]  kasan_set_free_info+0x24/0x40
[Thu Feb 10 12:59:07 2022]  ____kasan_slab_free+0x137/0x170
[Thu Feb 10 12:59:07 2022]  __kasan_slab_free+0x12/0x20
[Thu Feb 10 12:59:07 2022]  slab_free_freelist_hook+0xb3/0x1d0
[Thu Feb 10 12:59:07 2022]  kfree+0xcd/0x520
[Thu Feb 10 12:59:07 2022]  cifs_smb3_do_mount+0x149/0xbe0 [cifs]
[Thu Feb 10 12:59:07 2022]  smb3_get_tree+0x1a0/0x2e0 [cifs]
[Thu Feb 10 12:59:07 2022]  vfs_get_tree+0x52/0x140
[Thu Feb 10 12:59:07 2022]  path_mount+0x635/0x10c0
[Thu Feb 10 12:59:07 2022]  __x64_sys_mount+0x1bf/0x210
[Thu Feb 10 12:59:07 2022]  do_syscall_64+0x5c/0xc0
[Thu Feb 10 12:59:07 2022]  entry_SYSCALL_64_after_hwframe+0x44/0xae

[Thu Feb 10 12:59:07 2022] Last potentially related work creation:
[Thu Feb 10 12:59:07 2022]  kasan_save_stack+0x26/0x50
[Thu Feb 10 12:59:07 2022]  __kasan_record_aux_stack+0xb6/0xc0
[Thu Feb 10 12:59:07 2022]  kasan_record_aux_stack_noalloc+0xb/0x10
[Thu Feb 10 12:59:07 2022]  call_rcu+0x76/0x3c0
[Thu Feb 10 12:59:07 2022]  cifs_umount+0xce/0xe0 [cifs]
[Thu Feb 10 12:59:07 2022]  cifs_kill_sb+0xc8/0xe0 [cifs]
[Thu Feb 10 12:59:07 2022]  deactivate_locked_super+0x5d/0xd0
[Thu Feb 10 12:59:07 2022]  cifs_smb3_do_mount+0xab9/0xbe0 [cifs]
[Thu Feb 10 12:59:07 2022]  smb3_get_tree+0x1a0/0x2e0 [cifs]
[Thu Feb 10 12:59:07 2022]  vfs_get_tree+0x52/0x140
[Thu Feb 10 12:59:07 2022]  path_mount+0x635/0x10c0
[Thu Feb 10 12:59:07 2022]  __x64_sys_mount+0x1bf/0x210
[Thu Feb 10 12:59:07 2022]  do_syscall_64+0x5c/0xc0
[Thu Feb 10 12:59:07 2022]  entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 fs/cifs/cifsfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index bc906fcf3f6db..baa1713d66958 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -779,6 +779,7 @@ cifs_smb3_do_mount(struct file_system_type *fs_type,
 
 out_super:
 	deactivate_locked_super(sb);
+	return root;
 out:
 	cifs_cleanup_volume_info(volume_info);
 	return root;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 08/13] USB: zaurus: support another broken Zaurus
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (5 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 07/13] cifs: fix double free race when mount fails in cifs_get_root() Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 09/13] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Sasha Levin
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Oliver Neukum, Ross Maynard, David S . Miller, Sasha Levin,
	oliver, kuba, linux-usb, netdev

From: Oliver Neukum <oneukum@suse.com>

[ Upstream commit 6605cc67ca18b9d583eb96e18a20f5f4e726103c ]

This SL-6000 says Direct Line, not Ethernet

v2: added Reporter and Link

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-by: Ross Maynard <bids.7405@bigpond.com>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=215361
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/usb/cdc_ether.c | 12 ++++++++++++
 drivers/net/usb/zaurus.c    | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 529c8fac15314..778bd9aaba9f1 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -584,6 +584,11 @@ static const struct usb_device_id	products[] = {
 	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
 	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
 
+#define ZAURUS_FAKE_INTERFACE \
+	.bInterfaceClass	= USB_CLASS_COMM, \
+	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
+	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
+
 /* SA-1100 based Sharp Zaurus ("collie"), or compatible;
  * wire-incompatible with true CDC Ethernet implementations.
  * (And, it seems, needlessly so...)
@@ -637,6 +642,13 @@ static const struct usb_device_id	products[] = {
 	.idProduct              = 0x9032,	/* SL-6000 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info		= 0,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+		 | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor               = 0x04DD,
+	.idProduct              = 0x9032,	/* SL-6000 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info		= 0,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 		 | USB_DEVICE_ID_MATCH_DEVICE,
diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c
index 9c2196c3fd113..1f19fc5e6117e 100644
--- a/drivers/net/usb/zaurus.c
+++ b/drivers/net/usb/zaurus.c
@@ -268,6 +268,11 @@ static const struct usb_device_id	products [] = {
 	.bInterfaceSubClass	= USB_CDC_SUBCLASS_ETHERNET, \
 	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
 
+#define ZAURUS_FAKE_INTERFACE \
+	.bInterfaceClass	= USB_CLASS_COMM, \
+	.bInterfaceSubClass	= USB_CDC_SUBCLASS_MDLM, \
+	.bInterfaceProtocol	= USB_CDC_PROTO_NONE
+
 /* SA-1100 based Sharp Zaurus ("collie"), or compatible. */
 {
 	.match_flags	=   USB_DEVICE_ID_MATCH_INT_INFO
@@ -325,6 +330,13 @@ static const struct usb_device_id	products [] = {
 	.idProduct              = 0x9032,	/* SL-6000 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info = ZAURUS_PXA_INFO,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+			    | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor		= 0x04DD,
+	.idProduct		= 0x9032,	/* SL-6000 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info = (unsigned long)&bogus_mdlm_info,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 		 | USB_DEVICE_ID_MATCH_DEVICE,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 09/13] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (6 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 08/13] USB: zaurus: support another broken Zaurus Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-24 22:46   ` Pavel Machek
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 10/13] dmaengine: shdma: Fix runtime PM imbalance on error Sasha Levin
                   ` (3 subsequent siblings)
  11 siblings, 1 reply; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Krzysztof Kozlowski, Shuah Khan, Sebastian Andrzej Siewior,
	Steven Rostedt, Sasha Levin, mingo, shuah, linux-kselftest

From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>

[ Upstream commit 6fec1ab67f8d60704cc7de64abcfd389ab131542 ]

The PREEMPT_RT patchset does not use do_softirq() function thus trying
to filter for do_softirq fails for such kernel:

  echo do_softirq
  ftracetest: 81: echo: echo: I/O error

Choose some other visible function for the test.  The function does not
have to be actually executed during the test, because it is only testing
filter API interface.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 .../selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc
index 68e7a48f5828e..412e5c1f13ca6 100644
--- a/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc
+++ b/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc
@@ -33,7 +33,7 @@ do_reset
 
 FILTER=set_ftrace_filter
 FUNC1="schedule"
-FUNC2="do_softirq"
+FUNC2="scheduler_tick"
 
 ALL_FUNCS="#### all functions enabled ####"
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 10/13] dmaengine: shdma: Fix runtime PM imbalance on error
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (7 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 09/13] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 11/13] i2c: cadence: allow COMPILE_TEST Sasha Levin
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Yongzhi Liu, Vinod Koul, Sasha Levin, arnd, christophe.jaillet,
	laurent.pinchart, dmaengine

From: Yongzhi Liu <lyz_cs@pku.edu.cn>

[ Upstream commit 455896c53d5b803733ddd84e1bf8a430644439b6 ]

pm_runtime_get_() increments the runtime PM usage counter even
when it returns an error code, thus a matching decrement is needed on
the error handling path to keep the counter balanced.

Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Link: https://lore.kernel.org/r/1642311296-87020-1-git-send-email-lyz_cs@pku.edu.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/dma/sh/shdma-base.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/sh/shdma-base.c b/drivers/dma/sh/shdma-base.c
index 6b5626e299b22..419c841aef34d 100644
--- a/drivers/dma/sh/shdma-base.c
+++ b/drivers/dma/sh/shdma-base.c
@@ -118,8 +118,10 @@ static dma_cookie_t shdma_tx_submit(struct dma_async_tx_descriptor *tx)
 		ret = pm_runtime_get(schan->dev);
 
 		spin_unlock_irq(&schan->chan_lock);
-		if (ret < 0)
+		if (ret < 0) {
 			dev_err(schan->dev, "%s(): GET = %d\n", __func__, ret);
+			pm_runtime_put(schan->dev);
+		}
 
 		pm_runtime_barrier(schan->dev);
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 11/13] i2c: cadence: allow COMPILE_TEST
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (8 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 10/13] dmaengine: shdma: Fix runtime PM imbalance on error Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 12/13] i2c: qup: " Sasha Levin
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 13/13] net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990 Sasha Levin
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Wolfram Sang, Michal Simek, Sasha Levin, krzysztof.kozlowski,
	robh, semen.protsenko, yangyicong, geert+renesas, jie.deng, sven,
	bence98, lukas.bulwahn, linux-i2c

From: Wolfram Sang <wsa@kernel.org>

[ Upstream commit 0b0dcb3882c8f08bdeafa03adb4487e104d26050 ]

Driver builds fine with COMPILE_TEST. Enable it for wider test coverage
and easier maintenance.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 017aec34a238d..3a2f85d811f75 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -445,7 +445,7 @@ config I2C_BRCMSTB
 
 config I2C_CADENCE
 	tristate "Cadence I2C Controller"
-	depends on ARCH_ZYNQ || ARM64 || XTENSA
+	depends on ARCH_ZYNQ || ARM64 || XTENSA || COMPILE_TEST
 	help
 	  Say yes here to select Cadence I2C Host Controller. This controller is
 	  e.g. used by Xilinx Zynq.
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 12/13] i2c: qup: allow COMPILE_TEST
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (9 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 11/13] i2c: cadence: allow COMPILE_TEST Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  2022-02-24 22:41   ` Pavel Machek
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 13/13] net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990 Sasha Levin
  11 siblings, 1 reply; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Wolfram Sang, Sasha Levin, krzysztof.kozlowski, semen.protsenko,
	robh, yangyicong, geert+renesas, sven, jie.deng, bence98,
	lukas.bulwahn, linux-i2c

From: Wolfram Sang <wsa@kernel.org>

[ Upstream commit 5de717974005fcad2502281e9f82e139ca91f4bb ]

Driver builds fine with COMPILE_TEST. Enable it for wider test coverage
and easier maintenance.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 3a2f85d811f75..165c112bc5b9a 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -849,7 +849,7 @@ config I2C_QCOM_GENI
 
 config I2C_QUP
 	tristate "Qualcomm QUP based I2C controller"
-	depends on ARCH_QCOM
+	depends on ARCH_QCOM || COMPILE_TEST
 	help
 	  If you say yes to this option, support will be included for the
 	  built-in I2C interface on the Qualcomm SoCs.
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH AUTOSEL 4.19 13/13] net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990
  2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
                   ` (10 preceding siblings ...)
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 12/13] i2c: qup: " Sasha Levin
@ 2022-02-23  2:31 ` Sasha Levin
  11 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-02-23  2:31 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Daniele Palmas, David S . Miller, Sasha Levin, oliver, kuba,
	linux-usb, netdev

From: Daniele Palmas <dnlplm@gmail.com>

[ Upstream commit 21e8a96377e6b6debae42164605bf9dcbe5720c5 ]

Add quirk CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE for Telit FN990
0x1071 composition in order to avoid bind error.

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/net/usb/cdc_mbim.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/usb/cdc_mbim.c b/drivers/net/usb/cdc_mbim.c
index cdd1b193fd4fe..41bac861ca99d 100644
--- a/drivers/net/usb/cdc_mbim.c
+++ b/drivers/net/usb/cdc_mbim.c
@@ -660,6 +660,11 @@ static const struct usb_device_id mbim_devs[] = {
 	  .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle,
 	},
 
+	/* Telit FN990 */
+	{ USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x1071, USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE),
+	  .driver_info = (unsigned long)&cdc_mbim_info_avoid_altsetting_toggle,
+	},
+
 	/* default entry */
 	{ USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_MBIM, USB_CDC_PROTO_NONE),
 	  .driver_info = (unsigned long)&cdc_mbim_info_zlp,
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH AUTOSEL 4.19 12/13] i2c: qup: allow COMPILE_TEST
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 12/13] i2c: qup: " Sasha Levin
@ 2022-02-24 22:41   ` Pavel Machek
  2022-03-02 21:01     ` Sasha Levin
  0 siblings, 1 reply; 17+ messages in thread
From: Pavel Machek @ 2022-02-24 22:41 UTC (permalink / raw)
  To: Sasha Levin
  Cc: linux-kernel, stable, Wolfram Sang, krzysztof.kozlowski,
	semen.protsenko, robh, yangyicong, geert+renesas, sven, jie.deng,
	bence98, lukas.bulwahn, linux-i2c

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Hi!

> [ Upstream commit 5de717974005fcad2502281e9f82e139ca91f4bb ]
> 
> Driver builds fine with COMPILE_TEST. Enable it for wider test coverage
> and easier maintenance.

I believe this does not fix a bug and so is not suitable for stable.

Best regards,
								Pavel
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH AUTOSEL 4.19 09/13] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT
  2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 09/13] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Sasha Levin
@ 2022-02-24 22:46   ` Pavel Machek
  2022-03-02 21:01     ` Sasha Levin
  0 siblings, 1 reply; 17+ messages in thread
From: Pavel Machek @ 2022-02-24 22:46 UTC (permalink / raw)
  To: Sasha Levin
  Cc: linux-kernel, stable, Krzysztof Kozlowski, Shuah Khan,
	Sebastian Andrzej Siewior, Steven Rostedt, mingo, shuah,
	linux-kselftest

[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]

On Tue 2022-02-22 21:31:48, Sasha Levin wrote:
> From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
> 
> [ Upstream commit 6fec1ab67f8d60704cc7de64abcfd389ab131542 ]
> 
> The PREEMPT_RT patchset does not use do_softirq() function thus trying
> to filter for do_softirq fails for such kernel:
> 
>   echo do_softirq
>   ftracetest: 81: echo: echo: I/O error
> 
> Choose some other visible function for the test.  The function does not
> have to be actually executed during the test, because it is only testing
> filter API interface.

This needs -rt patch even on mainline, right?

It is certainly not needed in -stable branches.

Best regards,

								Pavel


> +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc
> @@ -33,7 +33,7 @@ do_reset
>  
>  FILTER=set_ftrace_filter
>  FUNC1="schedule"
> -FUNC2="do_softirq"
> +FUNC2="scheduler_tick"
>  
>  ALL_FUNCS="#### all functions enabled ####"


-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH AUTOSEL 4.19 09/13] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT
  2022-02-24 22:46   ` Pavel Machek
@ 2022-03-02 21:01     ` Sasha Levin
  0 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-03-02 21:01 UTC (permalink / raw)
  To: Pavel Machek
  Cc: linux-kernel, stable, Krzysztof Kozlowski, Shuah Khan,
	Sebastian Andrzej Siewior, Steven Rostedt, mingo, shuah,
	linux-kselftest

On Thu, Feb 24, 2022 at 11:46:22PM +0100, Pavel Machek wrote:
>On Tue 2022-02-22 21:31:48, Sasha Levin wrote:
>> From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
>>
>> [ Upstream commit 6fec1ab67f8d60704cc7de64abcfd389ab131542 ]
>>
>> The PREEMPT_RT patchset does not use do_softirq() function thus trying
>> to filter for do_softirq fails for such kernel:
>>
>>   echo do_softirq
>>   ftracetest: 81: echo: echo: I/O error
>>
>> Choose some other visible function for the test.  The function does not
>> have to be actually executed during the test, because it is only testing
>> filter API interface.
>
>This needs -rt patch even on mainline, right?
>
>It is certainly not needed in -stable branches.

I'll drop it, thanks.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH AUTOSEL 4.19 12/13] i2c: qup: allow COMPILE_TEST
  2022-02-24 22:41   ` Pavel Machek
@ 2022-03-02 21:01     ` Sasha Levin
  0 siblings, 0 replies; 17+ messages in thread
From: Sasha Levin @ 2022-03-02 21:01 UTC (permalink / raw)
  To: Pavel Machek
  Cc: linux-kernel, stable, Wolfram Sang, krzysztof.kozlowski,
	semen.protsenko, robh, yangyicong, geert+renesas, sven, jie.deng,
	bence98, lukas.bulwahn, linux-i2c

On Thu, Feb 24, 2022 at 11:41:26PM +0100, Pavel Machek wrote:
>Hi!
>
>> [ Upstream commit 5de717974005fcad2502281e9f82e139ca91f4bb ]
>>
>> Driver builds fine with COMPILE_TEST. Enable it for wider test coverage
>> and easier maintenance.
>
>I believe this does not fix a bug and so is not suitable for stable.

It does not, but it helps us catch bugs we otherwise wouldn't have.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-03-02 21:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-23  2:31 [PATCH AUTOSEL 4.19 01/13] mac80211_hwsim: report NOACK frames in tx_status Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 02/13] mac80211_hwsim: initialize ieee80211_tx_info at hw_scan_work Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 03/13] i2c: bcm2835: Avoid clock stretching timeouts Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 04/13] ASoC: rt5668: do not block workqueue if card is unbound Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 05/13] ASoC: rt5682: " Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 06/13] Input: clear BTN_RIGHT/MIDDLE on buttonpads Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 07/13] cifs: fix double free race when mount fails in cifs_get_root() Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 08/13] USB: zaurus: support another broken Zaurus Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 09/13] selftests/ftrace: Do not trace do_softirq because of PREEMPT_RT Sasha Levin
2022-02-24 22:46   ` Pavel Machek
2022-03-02 21:01     ` Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 10/13] dmaengine: shdma: Fix runtime PM imbalance on error Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 11/13] i2c: cadence: allow COMPILE_TEST Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 12/13] i2c: qup: " Sasha Levin
2022-02-24 22:41   ` Pavel Machek
2022-03-02 21:01     ` Sasha Levin
2022-02-23  2:31 ` [PATCH AUTOSEL 4.19 13/13] net: usb: cdc_mbim: avoid altsetting toggling for Telit FN990 Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).