For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: [PATCH] mac80211: debug print key cipher in ieee80211_tx_h_encrypt
Author: kartikey406@gmail.com
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
Reported-by: syzbot+b6ce23950fd636e6efb6@syzkaller.appspotmail.com
Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com>
---
net/mac80211/tx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index c13b209fad47..5fb2fa7adf07 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1045,6 +1045,9 @@ ieee80211_tx_h_stats(struct ieee80211_tx_data *tx)
static ieee80211_tx_result debug_noinline
ieee80211_tx_h_encrypt(struct ieee80211_tx_data *tx)
{
+ if (tx->key)
+ printk("key cipher = 0x%x\n",
+ tx->key->conf.cipher);
if (!tx->key)
return TX_CONTINUE;
--
2.43.0