Patch "iwlwifi: mvm: writing zero bytes to debugfs causes a crash" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iwlwifi: mvm: writing zero bytes to debugfs causes a crash
to the 4.9-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:
iwlwifi-mvm-writing-zero-bytes-to-debugfs-causes-a-crash.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
251fe09f13bfb54c1ede66ee8bf8ddd0061c4f7cMon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Thu, 23 Mar 2017 13:40:00 +0300
Subject: iwlwifi: mvm: writing zero bytes to debugfs causes a crash
From: Dan Carpenter <[email protected]>
commit 251fe09f13bfb54c1ede66ee8bf8ddd0061c4f7c upstream.
This is a static analysis fix. The warning is:
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c:912 iwl_mvm_fw_dbg_collect()
warn: integer overflows 'sizeof(*desc) + len'
I guess this code is supposed to take a NUL character, but if we write zero bytes then it tries to write -1 characters and crashes.
--- drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +2 -0
@@ -1056,6 +1056,8 @@ static ssize_t iwl_dbgfs_fw_dbg_collect_if (ret)return ret; +if (count ==0 ) +return 0 ;iwl_mvm_fw_dbg_collect (mvm,FW_DBG_TRIGGER_USER , buf, (count -1 ),NULL );
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/scsi-scsi_dh_emc-return-success-in-clariion_std_inquiry.patch queue-4.9/iwlwifi-mvm-writing-zero-bytes-to-debugfs-causes-a-crash.patch