]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: Node crashes when trace buffer is opened
authorKa-Cheong Poon <ka-cheong.poon@oracle.com>
Mon, 9 Apr 2018 16:38:48 +0000 (09:38 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 12 Apr 2018 19:54:26 +0000 (12:54 -0700)
commita33e41e42dbbe82ee6cb1dca9325ebb90302a055
tree06c1a8b468fac39250e07af17ef177a2141103a6
parenta0fbc7aef590a546292a2bbd571f75e0390c4da8
rds: Node crashes when trace buffer is opened

The problem is that trace_printk() cannot handle a format string like
%p* which prints out the content from a pointer.  It stores the
pointer value.  When the trace file is opened, that pointer is
de-referenced and causes problems.  To use ftrace with such format
string, __trace_printk() needs to be used.  It stores the formatted
string in the trace buffer instead.

Orabug: 27846191

Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>
net/rds/connection.c
net/rds/ib.c
net/rds/ib_cm.c
net/rds/rdma_transport.c
net/rds/rds.h
net/rds/recv.c
net/rds/threads.c