Patch "accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     accel-habanalabs-increase-hl_max_str-to-64-bytes-to-.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit cf14799ccd9b047fdcacf82ddfedb2a9a64ef5d2
Author: Koby Elbaz <kelbaz@xxxxxxxxx>
Date:   Mon Dec 11 10:03:29 2023 +0200

    accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings
    
    [ Upstream commit 8c075401f2dbda43600c61f780a165abde77877a ]
    
    Fix a warning of a buffer overflow:
    ‘snprintf’ output between 38 and 47 bytes into a destination of size 32
    
    Signed-off-by: Koby Elbaz <kelbaz@xxxxxxxxx>
    Reviewed-by: Oded Gabbay <ogabbay@xxxxxxxxxx>
    Signed-off-by: Oded Gabbay <ogabbay@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/accel/habanalabs/common/habanalabs.h b/drivers/accel/habanalabs/common/habanalabs.h
index 2a900c9941fee..41c7aac2ffcf9 100644
--- a/drivers/accel/habanalabs/common/habanalabs.h
+++ b/drivers/accel/habanalabs/common/habanalabs.h
@@ -2547,7 +2547,7 @@ struct hl_state_dump_specs {
  * DEVICES
  */
 
-#define HL_STR_MAX	32
+#define HL_STR_MAX	64
 
 #define HL_DEV_STS_MAX (HL_DEVICE_STATUS_LAST + 1)
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux