From: Greg Kroah-Hartman Date: Thu, 25 Feb 2021 09:09:53 +0000 (+0100) Subject: 4.9-stable patches X-Git-Tag: v5.11.2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8992275b70b4712cd66849faf94377d3782cc824;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: arm64-tegra-add-power-domain-for-tegra210-hda.patch igb-remove-incorrect-unexpected-sys-wrap-log-message.patch ntfs-check-for-valid-standard-information-attribute.patch --- diff --git a/queue-4.9/arm64-tegra-add-power-domain-for-tegra210-hda.patch b/queue-4.9/arm64-tegra-add-power-domain-for-tegra210-hda.patch new file mode 100644 index 00000000000..f9b6ca77bba --- /dev/null +++ b/queue-4.9/arm64-tegra-add-power-domain-for-tegra210-hda.patch @@ -0,0 +1,46 @@ +From 1e0ca5467445bc1f41a9e403d6161a22f313dae7 Mon Sep 17 00:00:00 2001 +From: Sameer Pujar +Date: Thu, 7 Jan 2021 10:36:10 +0530 +Subject: arm64: tegra: Add power-domain for Tegra210 HDA + +From: Sameer Pujar + +commit 1e0ca5467445bc1f41a9e403d6161a22f313dae7 upstream. + +HDA initialization is failing occasionally on Tegra210 and following +print is observed in the boot log. Because of this probe() fails and +no sound card is registered. + + [16.800802] tegra-hda 70030000.hda: no codecs found! + +Codecs request a state change and enumeration by the controller. In +failure cases this does not seem to happen as STATETS register reads 0. + +The problem seems to be related to the HDA codec dependency on SOR +power domain. If it is gated during HDA probe then the failure is +observed. Building Tegra HDA driver into kernel image avoids this +failure but does not completely address the dependency part. Fix this +problem by adding 'power-domains' DT property for Tegra210 HDA. Note +that Tegra186 and Tegra194 HDA do this already. + +Fixes: 742af7e7a0a1 ("arm64: tegra: Add Tegra210 support") +Depends-on: 96d1f078ff0 ("arm64: tegra: Add SOR power-domain for Tegra210") +Cc: +Signed-off-by: Sameer Pujar +Acked-by: Jon Hunter +Signed-off-by: Thierry Reding +Signed-off-by: Greg Kroah-Hartman +--- + arch/arm64/boot/dts/nvidia/tegra210.dtsi | 1 + + 1 file changed, 1 insertion(+) + +--- a/arch/arm64/boot/dts/nvidia/tegra210.dtsi ++++ b/arch/arm64/boot/dts/nvidia/tegra210.dtsi +@@ -727,6 +727,7 @@ + <&tegra_car 128>, /* hda2hdmi */ + <&tegra_car 111>; /* hda2codec_2x */ + reset-names = "hda", "hda2hdmi", "hda2codec_2x"; ++ power-domains = <&pd_sor>; + status = "disabled"; + }; + diff --git a/queue-4.9/igb-remove-incorrect-unexpected-sys-wrap-log-message.patch b/queue-4.9/igb-remove-incorrect-unexpected-sys-wrap-log-message.patch new file mode 100644 index 00000000000..f768bb88b3f --- /dev/null +++ b/queue-4.9/igb-remove-incorrect-unexpected-sys-wrap-log-message.patch @@ -0,0 +1,44 @@ +From 2643e6e90210e16c978919617170089b7c2164f7 Mon Sep 17 00:00:00 2001 +From: Corinna Vinschen +Date: Fri, 23 Jun 2017 14:26:30 +0200 +Subject: igb: Remove incorrect "unexpected SYS WRAP" log message + +From: Corinna Vinschen + +commit 2643e6e90210e16c978919617170089b7c2164f7 upstream. + +TSAUXC.DisableSystime is never set, so SYSTIM runs into a SYS WRAP +every 1100 secs on 80580/i350/i354 (40 bit SYSTIM) and every 35000 +secs on 80576 (45 bit SYSTIM). + +This wrap event sets the TSICR.SysWrap bit unconditionally. + +However, checking TSIM at interrupt time shows that this event does not +actually cause the interrupt. Rather, it's just bycatch while the +actual interrupt is caused by, for instance, TSICR.TXTS. + +The conclusion is that the SYS WRAP is actually expected, so the +"unexpected SYS WRAP" message is entirely bogus and just helps to +confuse users. Drop it. + +Signed-off-by: Corinna Vinschen +Acked-by: Jacob Keller +Tested-by: Aaron Brown +Signed-off-by: Jeff Kirsher +Cc: Punit Agrawal +Signed-off-by: Greg Kroah-Hartman +--- + drivers/net/ethernet/intel/igb/igb_main.c | 2 -- + 1 file changed, 2 deletions(-) + +--- a/drivers/net/ethernet/intel/igb/igb_main.c ++++ b/drivers/net/ethernet/intel/igb/igb_main.c +@@ -5665,8 +5665,6 @@ static void igb_tsync_interrupt(struct i + event.type = PTP_CLOCK_PPS; + if (adapter->ptp_caps.pps) + ptp_clock_event(adapter->ptp_clock, &event); +- else +- dev_err(&adapter->pdev->dev, "unexpected SYS WRAP"); + ack |= TSINTR_SYS_WRAP; + } + diff --git a/queue-4.9/ntfs-check-for-valid-standard-information-attribute.patch b/queue-4.9/ntfs-check-for-valid-standard-information-attribute.patch new file mode 100644 index 00000000000..48d732338f3 --- /dev/null +++ b/queue-4.9/ntfs-check-for-valid-standard-information-attribute.patch @@ -0,0 +1,43 @@ +From 4dfe6bd94959222e18d512bdf15f6bf9edb9c27c Mon Sep 17 00:00:00 2001 +From: Rustam Kovhaev +Date: Wed, 24 Feb 2021 12:00:30 -0800 +Subject: ntfs: check for valid standard information attribute + +From: Rustam Kovhaev + +commit 4dfe6bd94959222e18d512bdf15f6bf9edb9c27c upstream. + +Mounting a corrupted filesystem with NTFS resulted in a kernel crash. + +We should check for valid STANDARD_INFORMATION attribute offset and length +before trying to access it + +Link: https://lkml.kernel.org/r/20210217155930.1506815-1-rkovhaev@gmail.com +Link: https://syzkaller.appspot.com/bug?extid=c584225dabdea2f71969 +Signed-off-by: Rustam Kovhaev +Reported-by: syzbot+c584225dabdea2f71969@syzkaller.appspotmail.com +Tested-by: syzbot+c584225dabdea2f71969@syzkaller.appspotmail.com +Acked-by: Anton Altaparmakov +Cc: +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds +Signed-off-by: Greg Kroah-Hartman +--- + fs/ntfs/inode.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +--- a/fs/ntfs/inode.c ++++ b/fs/ntfs/inode.c +@@ -661,6 +661,12 @@ static int ntfs_read_locked_inode(struct + } + a = ctx->attr; + /* Get the standard information attribute value. */ ++ if ((u8 *)a + le16_to_cpu(a->data.resident.value_offset) ++ + le32_to_cpu(a->data.resident.value_length) > ++ (u8 *)ctx->mrec + vol->mft_record_size) { ++ ntfs_error(vi->i_sb, "Corrupt standard information attribute in inode."); ++ goto unm_err_out; ++ } + si = (STANDARD_INFORMATION*)((u8*)a + + le16_to_cpu(a->data.resident.value_offset)); + diff --git a/queue-4.9/series b/queue-4.9/series index 2c5690f80ee..e15bd26ddae 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -1,2 +1,5 @@ hid-make-arrays-usage-and-value-to-be-the-same.patch usb-quirks-add-quirk-to-start-video-capture-on-elmo-l-12f-document-camera-reliable.patch +ntfs-check-for-valid-standard-information-attribute.patch +igb-remove-incorrect-unexpected-sys-wrap-log-message.patch +arm64-tegra-add-power-domain-for-tegra210-hda.patch