[PATCH V2] scsi: iscsi_tcp: Fix use-after-free when do get_host_param

2021-03-20 Thread Wu Bo
From: Wu Bo iscsid(cpu1): Logout of iscsi session, will do destroy session, tcp_sw_host->session is not set to NULL before release the iscsi session. in the iscsi_sw_tcp_session_destroy(). iscsadm(cpu2): Get host parameters access to tcp_sw_host->session in the iscsi_sw_tcp_host_get_param(), t

[PATCH] lockdep: add a hint for "INFO: trying to register non-static key." message

2021-03-20 Thread Tetsuo Handa
Since this message is printed when dynamically allocated spinlocks (e.g. kzalloc()) are used without initialization (e.g. spin_lock_init()), suggest developers to check whether initialization functions for objects are called, before making developers wonder what annotation is missing. Signed-off-b

<    1   2   3   4   5