The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: syzbot <syzbot+1695193198994f4e7fed@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: [PATCH] RDMA/rtrs-clt: guard against null kobj name
Date: Sat, 22 Aug 2026 18:50:47 -0700	[thread overview]
Message-ID: <6a8a51f7.dbb3a75c.13dd47.003f.GAE@google.com> (raw)
In-Reply-To: <6a8a291f.dbb3a75c.13dd47.0037.GAE@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH] RDMA/rtrs-clt: guard against null kobj name
Author: ryan.mehri1@gmail.com

#syz test

Signed-off-by: Ryan Mehri <ryan.mehri1@gmail.com>
---
 drivers/infiniband/ulp/rtrs/rtrs-clt-trace.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/infiniband/ulp/rtrs/rtrs-clt-trace.h b/drivers/infiniband/ulp/rtrs/rtrs-clt-trace.h
index 7738e2676855..33bf6215d26c 100644
--- a/drivers/infiniband/ulp/rtrs/rtrs-clt-trace.h
+++ b/drivers/infiniband/ulp/rtrs/rtrs-clt-trace.h
@@ -55,7 +55,8 @@ DECLARE_EVENT_CLASS(rtrs_clt_conn_class,
 		__entry->max_reconnect_attempts = clt->max_reconnect_attempts;
 		__entry->fail_cnt = clt_path->stats->reconnects.fail_cnt;
 		__entry->success_cnt = clt_path->stats->reconnects.successful_cnt;
-		memcpy(__entry->sessname, kobject_name(&clt_path->kobj), NAME_MAX);
+		if (kobject_name(&clt_path->kobj))
+			memcpy(__entry->sessname, kobject_name(&clt_path->kobj), NAME_MAX);
 	),
 
 	TP_printk("RTRS-CLT: sess='%s' state=%s attempts='%d' max-attempts='%d' fail='%d' success='%d'",
-- 
2.55.0


      reply	other threads:[~2026-08-23  1:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-22 22:56 [syzbot] [rdma?] KASAN: null-ptr-deref Read in trace_event_raw_event_rtrs_clt_conn_class syzbot
2026-08-23  1:50 ` syzbot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a8a51f7.dbb3a75c.13dd47.003f.GAE@google.com \
    --to=syzbot+1695193198994f4e7fed@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox