All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <f5b597e94de9150ba96e32cc9764bc09b2c298de.camel@mediatek.com>

diff --git a/a/1.txt b/N1/1.txt
index 6bb90a1..78e777b 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -74,3 +74,7 @@ Reviewed-by: CK Hu <ck.hu@mediatek.com>
 >  
 > -- 
 > 2.44.0.396.g6e790dbe36-goog
+_______________________________________________
+linux-arm-kernel mailing list
+linux-arm-kernel@lists.infradead.org
+http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff --git a/a/content_digest b/N1/content_digest
index 30ea2c0..06fbf5c 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -92,6 +92,10 @@
  ">  \t\treturn -ENOMEM;\n"
  ">  \n"
  "> -- \n"
- > 2.44.0.396.g6e790dbe36-goog
+ "> 2.44.0.396.g6e790dbe36-goog\n"
+ "_______________________________________________\n"
+ "linux-arm-kernel mailing list\n"
+ "linux-arm-kernel@lists.infradead.org\n"
+ http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
 
-4172bf37a74c91892e0b0c0e9232b9050549c67629f72dc32096e9e63a6ee05a
+dd9921e9f0d06a4df20ac4524cb377ec01cffcfc5d1d83eb01b87a90b48b1319

diff --git a/N2/2.bin b/N2/2.bin
new file mode 100644
index 0000000..b5b42d8
--- /dev/null
+++ b/N2/2.bin
@@ -0,0 +1,93 @@
+<html><body><p>
+<pre>
+Hi,&#32;Douglas:
+
+On&#32;Thu,&#32;2024-03-28&#32;at&#32;09:22&#32;-0700,&#32;Douglas&#32;Anderson&#32;wrote:
+&gt;&#32;&#32;&#32;
+&gt;&#32;External&#32;email&#32;:&#32;Please&#32;do&#32;not&#32;click&#32;links&#32;or&#32;open&#32;attachments&#32;until
+&gt;&#32;you&#32;have&#32;verified&#32;the&#32;sender&#32;or&#32;the&#32;content.
+&gt;&#32;&#32;In&#32;the&#32;case&#32;where&#32;&#96;conn_routes&#96;&#32;is&#32;true&#32;we&#32;allocate&#32;an&#32;extra&#32;slot&#32;in
+&gt;&#32;the&#32;&#96;ddp_comp&#96;&#32;array&#32;but&#32;mtk_drm_crtc_create()&#32;never&#32;seemed&#32;to
+&gt;&#32;initialize&#32;it&#32;in&#32;the&#32;test&#32;case&#32;I&#32;ran.&#32;For&#32;me,&#32;this&#32;caused&#32;a&#32;later
+&gt;&#32;crash&#32;when&#32;we&#32;looped&#32;through&#32;the&#32;array&#32;in&#32;mtk_drm_crtc_mode_valid().
+&gt;&#32;This&#32;showed&#32;up&#32;for&#32;me&#32;when&#32;I&#32;booted&#32;with&#32;&#96;slub_debug=FZPUA&#96;&#32;which
+&gt;&#32;poisons&#32;the&#32;memory&#32;initially.&#32;Without&#32;&#96;slub_debug&#96;&#32;I&#32;couldn&#39;t
+&gt;&#32;reproduce,&#32;presumably&#32;because&#32;the&#32;later&#32;code&#32;handles&#32;the&#32;value&#32;being
+&gt;&#32;NULL&#32;and&#32;in&#32;most&#32;cases&#32;(not&#32;guaranteed&#32;in&#32;all&#32;cases)&#32;the&#32;memory&#32;the
+&gt;&#32;allocator&#32;returned&#32;started&#32;out&#32;as&#32;0.
+&gt;&#32;
+&gt;&#32;It&#32;really&#32;doesn&#39;t&#32;hurt&#32;to&#32;initialize&#32;the&#32;array&#32;with&#32;devm_kcalloc()
+&gt;&#32;since&#32;the&#32;array&#32;is&#32;small&#32;and&#32;the&#32;overhead&#32;of&#32;initting&#32;a&#32;handful&#32;of
+&gt;&#32;elements&#32;to&#32;0&#32;is&#32;small.&#32;In&#32;general&#32;initting&#32;memory&#32;to&#32;zero&#32;is&#32;a&#32;safer
+&gt;&#32;practice&#32;and&#32;usually&#32;it&#39;s&#32;suggested&#32;to&#32;only&#32;use&#32;the&#32;non-initting
+&gt;&#32;alloc
+&gt;&#32;functions&#32;if&#32;you&#32;really&#32;need&#32;to.
+&gt;&#32;
+&gt;&#32;Let&#39;s&#32;switch&#32;the&#32;function&#32;to&#32;use&#32;an&#32;allocation&#32;function&#32;that&#32;zeros
+&gt;&#32;the
+&gt;&#32;memory.&#32;For&#32;me,&#32;this&#32;avoids&#32;the&#32;crash.
+
+Reviewed-by:&#32;CK&#32;Hu&#32;&lt;ck.hu@mediatek.com&gt;
+
+&gt;&#32;
+&gt;&#32;Fixes:&#32;01389b324c97&#32;(&quot;drm/mediatek:&#32;Add&#32;connector&#32;dynamic&#32;selection
+&gt;&#32;capability&quot;)
+&gt;&#32;Signed-off-by:&#32;Douglas&#32;Anderson&#32;&lt;dianders@chromium.org&gt;
+&gt;&#32;---
+&gt;&#32;I&#32;don&#39;t&#32;have&#32;a&#32;ton&#32;of&#32;experience&#32;with&#32;this&#32;driver&#32;to&#32;know&#32;if&#32;the&#32;fact
+&gt;&#32;that&#32;the&#32;array&#32;item&#32;was&#32;still&#32;uninitialized&#32;when
+&gt;&#32;mtk_drm_crtc_mode_valid()&#32;ran&#32;is&#32;the&#32;sign&#32;of&#32;a&#32;bug&#32;that&#32;should&#32;be
+&gt;&#32;fixed.&#32;However,&#32;even&#32;if&#32;it&#32;is&#32;a&#32;bug&#32;and&#32;that&#32;bug&#32;is&#32;fixed&#32;then
+&gt;&#32;zeroing
+&gt;&#32;memory&#32;when&#32;we&#32;allocate&#32;is&#32;still&#32;safer.&#32;If&#32;it&#39;s&#32;a&#32;bug&#32;that&#32;this
+&gt;&#32;memory
+&gt;&#32;wasn&#39;t&#32;initialized&#32;then&#32;please&#32;consider&#32;this&#32;patch&#32;a&#32;bug&#32;report.&#32;;-)
+&gt;&#32;
+&gt;&#32;I&#39;ll&#32;also&#32;note&#32;that&#32;I&#32;reproduced&#32;this&#32;on&#32;a&#32;downstream&#32;6.1-based
+&gt;&#32;kernel.&#32;It&#32;appears&#32;that&#32;only&#32;mt8188&#32;uses&#32;&#96;conn_routes&#96;&#32;and,&#32;as&#32;far&#32;as
+&gt;&#32;I&#32;can&#32;tell,&#32;mt8188&#32;isn&#39;t&#32;supported&#32;upstream&#32;yet.
+&gt;&#32;
+&gt;&#32;&#32;drivers/gpu/drm/mediatek/mtk_drm_crtc.c&#32;|&#32;8&#32;++++----
+&gt;&#32;&#32;1&#32;file&#32;changed,&#32;4&#32;insertions(+),&#32;4&#32;deletions(-)
+&gt;&#32;
+&gt;&#32;diff&#32;--git&#32;a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c
+&gt;&#32;b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c
+&gt;&#32;index&#32;a04499c4f9ca..29207b2756c1&#32;100644
+&gt;&#32;---&#32;a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c
+&gt;&#32;+++&#32;b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c
+&gt;&#32;@@&#32;-1009,10&#32;+1009,10&#32;@@&#32;int&#32;mtk_drm_crtc_create(struct&#32;drm_device
+&gt;&#32;*drm_dev,
+&gt;&#32;&#32;
+&gt;&#32;&#32;mtk_crtc-&gt;mmsys_dev&#32;=&#32;priv-&gt;mmsys_dev;
+&gt;&#32;&#32;mtk_crtc-&gt;ddp_comp_nr&#32;=&#32;path_len;
+&gt;&#32;-mtk_crtc-&gt;ddp_comp&#32;=&#32;devm_kmalloc_array(dev,
+&gt;&#32;-mtk_crtc-&gt;ddp_comp_nr&#32;+
+&gt;&#32;(conn_routes&#32;&#63;&#32;1&#32;:&#32;0),
+&gt;&#32;-sizeof(*mtk_crtc-
+&gt;&#32;&gt;ddp_comp),
+&gt;&#32;-GFP_KERNEL);
+&gt;&#32;+mtk_crtc-&gt;ddp_comp&#32;=&#32;devm_kcalloc(dev,
+&gt;&#32;+&#32;&#32;mtk_crtc-&gt;ddp_comp_nr&#32;+
+&gt;&#32;(conn_routes&#32;&#63;&#32;1&#32;:&#32;0),
+&gt;&#32;+&#32;&#32;sizeof(*mtk_crtc-&gt;ddp_comp),
+&gt;&#32;+&#32;&#32;GFP_KERNEL);
+&gt;&#32;&#32;if&#32;(!mtk_crtc-&gt;ddp_comp)
+&gt;&#32;&#32;return&#32;-ENOMEM;
+&gt;&#32;&#32;
+&gt;&#32;--&#32;
+&gt;&#32;2.44.0.396.g6e790dbe36-goog
+
+</pre>
+</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice ********************
+The information contained in this e-mail message (including any 
+attachments) may be confidential, proprietary, privileged, or otherwise
+exempt from disclosure under applicable laws. It is intended to be 
+conveyed only to the designated recipient(s). Any use, dissemination, 
+distribution, printing, retaining or copying of this e-mail (including its 
+attachments) by unintended recipient(s) is strictly prohibited and may 
+be unlawful. If you are not an intended recipient of this e-mail, or believe 
+that you have received this e-mail in error, please notify the sender 
+immediately (by replying to this e-mail), delete any and all copies of 
+this e-mail (including any attachments) from your system, and do not
+disclose the content of this e-mail to any other person. Thank you!
+</pre><!--}-->
diff --git a/N2/2.hdr b/N2/2.hdr
new file mode 100644
index 0000000..da1f671
--- /dev/null
+++ b/N2/2.hdr
@@ -0,0 +1,3 @@
+Content-Type: text/html;
+	charset="utf-8"
+Content-Transfer-Encoding: base64
diff --git a/a/content_digest b/N2/content_digest
index 30ea2c0..f436089 100644
--- a/a/content_digest
+++ b/N2/content_digest
@@ -15,7 +15,7 @@
   linux-arm-kernel@lists.infradead.org <linux-arm-kernel@lists.infradead.org>
   matthias.bgg@gmail.com <matthias.bgg@gmail.com>
  " angelogioacchino.delregno@collabora.com <angelogioacchino.delregno@collabora.com>\0"
- "\00:1\0"
+ "\01:1\0"
  "b\0"
  "Hi, Douglas:\n"
  "\n"
@@ -93,5 +93,100 @@
  ">  \n"
  "> -- \n"
  > 2.44.0.396.g6e790dbe36-goog
+ "\01:2\0"
+ "b\0"
+ "<html><body><p>\r\n"
+ "<pre>\r\n"
+ "Hi,&#32;Douglas:\r\n"
+ "\r\n"
+ "On&#32;Thu,&#32;2024-03-28&#32;at&#32;09:22&#32;-0700,&#32;Douglas&#32;Anderson&#32;wrote:\r\n"
+ "&gt;&#32;&#32;&#32;\r\n"
+ "&gt;&#32;External&#32;email&#32;:&#32;Please&#32;do&#32;not&#32;click&#32;links&#32;or&#32;open&#32;attachments&#32;until\r\n"
+ "&gt;&#32;you&#32;have&#32;verified&#32;the&#32;sender&#32;or&#32;the&#32;content.\r\n"
+ "&gt;&#32;&#32;In&#32;the&#32;case&#32;where&#32;&#96;conn_routes&#96;&#32;is&#32;true&#32;we&#32;allocate&#32;an&#32;extra&#32;slot&#32;in\r\n"
+ "&gt;&#32;the&#32;&#96;ddp_comp&#96;&#32;array&#32;but&#32;mtk_drm_crtc_create()&#32;never&#32;seemed&#32;to\r\n"
+ "&gt;&#32;initialize&#32;it&#32;in&#32;the&#32;test&#32;case&#32;I&#32;ran.&#32;For&#32;me,&#32;this&#32;caused&#32;a&#32;later\r\n"
+ "&gt;&#32;crash&#32;when&#32;we&#32;looped&#32;through&#32;the&#32;array&#32;in&#32;mtk_drm_crtc_mode_valid().\r\n"
+ "&gt;&#32;This&#32;showed&#32;up&#32;for&#32;me&#32;when&#32;I&#32;booted&#32;with&#32;&#96;slub_debug=FZPUA&#96;&#32;which\r\n"
+ "&gt;&#32;poisons&#32;the&#32;memory&#32;initially.&#32;Without&#32;&#96;slub_debug&#96;&#32;I&#32;couldn&#39;t\r\n"
+ "&gt;&#32;reproduce,&#32;presumably&#32;because&#32;the&#32;later&#32;code&#32;handles&#32;the&#32;value&#32;being\r\n"
+ "&gt;&#32;NULL&#32;and&#32;in&#32;most&#32;cases&#32;(not&#32;guaranteed&#32;in&#32;all&#32;cases)&#32;the&#32;memory&#32;the\r\n"
+ "&gt;&#32;allocator&#32;returned&#32;started&#32;out&#32;as&#32;0.\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;It&#32;really&#32;doesn&#39;t&#32;hurt&#32;to&#32;initialize&#32;the&#32;array&#32;with&#32;devm_kcalloc()\r\n"
+ "&gt;&#32;since&#32;the&#32;array&#32;is&#32;small&#32;and&#32;the&#32;overhead&#32;of&#32;initting&#32;a&#32;handful&#32;of\r\n"
+ "&gt;&#32;elements&#32;to&#32;0&#32;is&#32;small.&#32;In&#32;general&#32;initting&#32;memory&#32;to&#32;zero&#32;is&#32;a&#32;safer\r\n"
+ "&gt;&#32;practice&#32;and&#32;usually&#32;it&#39;s&#32;suggested&#32;to&#32;only&#32;use&#32;the&#32;non-initting\r\n"
+ "&gt;&#32;alloc\r\n"
+ "&gt;&#32;functions&#32;if&#32;you&#32;really&#32;need&#32;to.\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;Let&#39;s&#32;switch&#32;the&#32;function&#32;to&#32;use&#32;an&#32;allocation&#32;function&#32;that&#32;zeros\r\n"
+ "&gt;&#32;the\r\n"
+ "&gt;&#32;memory.&#32;For&#32;me,&#32;this&#32;avoids&#32;the&#32;crash.\r\n"
+ "\r\n"
+ "Reviewed-by:&#32;CK&#32;Hu&#32;&lt;ck.hu@mediatek.com&gt;\r\n"
+ "\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;Fixes:&#32;01389b324c97&#32;(&quot;drm/mediatek:&#32;Add&#32;connector&#32;dynamic&#32;selection\r\n"
+ "&gt;&#32;capability&quot;)\r\n"
+ "&gt;&#32;Signed-off-by:&#32;Douglas&#32;Anderson&#32;&lt;dianders@chromium.org&gt;\r\n"
+ "&gt;&#32;---\r\n"
+ "&gt;&#32;I&#32;don&#39;t&#32;have&#32;a&#32;ton&#32;of&#32;experience&#32;with&#32;this&#32;driver&#32;to&#32;know&#32;if&#32;the&#32;fact\r\n"
+ "&gt;&#32;that&#32;the&#32;array&#32;item&#32;was&#32;still&#32;uninitialized&#32;when\r\n"
+ "&gt;&#32;mtk_drm_crtc_mode_valid()&#32;ran&#32;is&#32;the&#32;sign&#32;of&#32;a&#32;bug&#32;that&#32;should&#32;be\r\n"
+ "&gt;&#32;fixed.&#32;However,&#32;even&#32;if&#32;it&#32;is&#32;a&#32;bug&#32;and&#32;that&#32;bug&#32;is&#32;fixed&#32;then\r\n"
+ "&gt;&#32;zeroing\r\n"
+ "&gt;&#32;memory&#32;when&#32;we&#32;allocate&#32;is&#32;still&#32;safer.&#32;If&#32;it&#39;s&#32;a&#32;bug&#32;that&#32;this\r\n"
+ "&gt;&#32;memory\r\n"
+ "&gt;&#32;wasn&#39;t&#32;initialized&#32;then&#32;please&#32;consider&#32;this&#32;patch&#32;a&#32;bug&#32;report.&#32;;-)\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;I&#39;ll&#32;also&#32;note&#32;that&#32;I&#32;reproduced&#32;this&#32;on&#32;a&#32;downstream&#32;6.1-based\r\n"
+ "&gt;&#32;kernel.&#32;It&#32;appears&#32;that&#32;only&#32;mt8188&#32;uses&#32;&#96;conn_routes&#96;&#32;and,&#32;as&#32;far&#32;as\r\n"
+ "&gt;&#32;I&#32;can&#32;tell,&#32;mt8188&#32;isn&#39;t&#32;supported&#32;upstream&#32;yet.\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;&#32;drivers/gpu/drm/mediatek/mtk_drm_crtc.c&#32;|&#32;8&#32;++++----\r\n"
+ "&gt;&#32;&#32;1&#32;file&#32;changed,&#32;4&#32;insertions(+),&#32;4&#32;deletions(-)\r\n"
+ "&gt;&#32;\r\n"
+ "&gt;&#32;diff&#32;--git&#32;a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c\r\n"
+ "&gt;&#32;b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c\r\n"
+ "&gt;&#32;index&#32;a04499c4f9ca..29207b2756c1&#32;100644\r\n"
+ "&gt;&#32;---&#32;a/drivers/gpu/drm/mediatek/mtk_drm_crtc.c\r\n"
+ "&gt;&#32;+++&#32;b/drivers/gpu/drm/mediatek/mtk_drm_crtc.c\r\n"
+ "&gt;&#32;@@&#32;-1009,10&#32;+1009,10&#32;@@&#32;int&#32;mtk_drm_crtc_create(struct&#32;drm_device\r\n"
+ "&gt;&#32;*drm_dev,\r\n"
+ "&gt;&#32;&#32;\r\n"
+ "&gt;&#32;&#32;mtk_crtc-&gt;mmsys_dev&#32;=&#32;priv-&gt;mmsys_dev;\r\n"
+ "&gt;&#32;&#32;mtk_crtc-&gt;ddp_comp_nr&#32;=&#32;path_len;\r\n"
+ "&gt;&#32;-mtk_crtc-&gt;ddp_comp&#32;=&#32;devm_kmalloc_array(dev,\r\n"
+ "&gt;&#32;-mtk_crtc-&gt;ddp_comp_nr&#32;+\r\n"
+ "&gt;&#32;(conn_routes&#32;&#63;&#32;1&#32;:&#32;0),\r\n"
+ "&gt;&#32;-sizeof(*mtk_crtc-\r\n"
+ "&gt;&#32;&gt;ddp_comp),\r\n"
+ "&gt;&#32;-GFP_KERNEL);\r\n"
+ "&gt;&#32;+mtk_crtc-&gt;ddp_comp&#32;=&#32;devm_kcalloc(dev,\r\n"
+ "&gt;&#32;+&#32;&#32;mtk_crtc-&gt;ddp_comp_nr&#32;+\r\n"
+ "&gt;&#32;(conn_routes&#32;&#63;&#32;1&#32;:&#32;0),\r\n"
+ "&gt;&#32;+&#32;&#32;sizeof(*mtk_crtc-&gt;ddp_comp),\r\n"
+ "&gt;&#32;+&#32;&#32;GFP_KERNEL);\r\n"
+ "&gt;&#32;&#32;if&#32;(!mtk_crtc-&gt;ddp_comp)\r\n"
+ "&gt;&#32;&#32;return&#32;-ENOMEM;\r\n"
+ "&gt;&#32;&#32;\r\n"
+ "&gt;&#32;--&#32;\r\n"
+ "&gt;&#32;2.44.0.396.g6e790dbe36-goog\r\n"
+ "\r\n"
+ "</pre>\r\n"
+ "</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice ********************\r\n"
+ "The information contained in this e-mail message (including any \r\n"
+ "attachments) may be confidential, proprietary, privileged, or otherwise\r\n"
+ "exempt from disclosure under applicable laws. It is intended to be \r\n"
+ "conveyed only to the designated recipient(s). Any use, dissemination, \r\n"
+ "distribution, printing, retaining or copying of this e-mail (including its \r\n"
+ "attachments) by unintended recipient(s) is strictly prohibited and may \r\n"
+ "be unlawful. If you are not an intended recipient of this e-mail, or believe \r\n"
+ "that you have received this e-mail in error, please notify the sender \r\n"
+ "immediately (by replying to this e-mail), delete any and all copies of \r\n"
+ "this e-mail (including any attachments) from your system, and do not\r\n"
+ "disclose the content of this e-mail to any other person. Thank you!\r\n"
+ </pre><!--}-->
 
-4172bf37a74c91892e0b0c0e9232b9050549c67629f72dc32096e9e63a6ee05a
+86a4cf7309d9f12145b2ab9830c1459c82b56e3140aca9f256fbc785db468b26

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.