Johannes Thumshirn
621b2dd52d
scsi: fcoe: drop frames in ELS LOGO error path
...
[ Upstream commit 63d0e3dffd
]
Drop the frames in the ELS LOGO error path instead of just returning an
error.
This fixes the following kmemleak report:
unreferenced object 0xffff880064cb1000 (size 424):
comm "kworker/0:2", pid 24, jiffies 4294904293 (age 68.504s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<(____ptrval____)>] _fc_frame_alloc+0x2c/0x180 [libfc]
[<(____ptrval____)>] fc_lport_enter_logo+0x106/0x360 [libfc]
[<(____ptrval____)>] fc_fabric_logoff+0x8c/0xc0 [libfc]
[<(____ptrval____)>] fcoe_if_destroy+0x79/0x3b0 [fcoe]
[<(____ptrval____)>] fcoe_destroy_work+0xd2/0x170 [fcoe]
[<(____ptrval____)>] process_one_work+0x7ff/0x1420
[<(____ptrval____)>] worker_thread+0x87/0xef0
[<(____ptrval____)>] kthread+0x2db/0x390
[<(____ptrval____)>] ret_from_fork+0x35/0x40
[<(____ptrval____)>] 0xffffffffffffffff
which can be triggered by issuing
echo eth0 > /sys/bus/fcoe/ctlr_destroy
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de >
Reviewed-by: Hannes Reinecke <hare@suse.com >
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com >
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-09-05 09:18:36 +02:00
..
2018-08-22 07:48:37 +02:00
2018-05-02 07:53:42 -07:00
2018-02-28 10:17:23 +01:00
2018-08-06 16:24:36 +02:00
2018-07-22 14:25:52 +02:00
2018-08-15 17:42:09 +02:00
2018-07-17 11:31:46 +02:00
2018-08-06 16:24:32 +02:00
2018-04-13 19:50:05 +02:00
2018-05-30 07:49:13 +02:00
2018-08-15 17:42:04 +02:00
2018-07-25 10:18:32 +02:00
2018-05-30 07:49:01 +02:00
2018-07-03 11:21:26 +02:00
2018-07-03 11:21:29 +02:00
2018-08-06 16:24:42 +02:00
2018-02-22 15:44:58 +01:00
2018-08-24 13:26:57 +02:00
2018-04-13 19:50:23 +02:00
2017-11-21 09:21:18 +01:00
2018-05-30 07:48:52 +02:00
2018-05-30 07:48:56 +02:00
2018-06-16 09:54:26 +02:00
2018-09-05 09:18:34 +02:00
2018-08-24 13:26:57 +02:00
2018-03-24 10:58:42 +01:00
2018-02-25 11:03:46 +01:00
2018-05-30 07:49:13 +02:00
2018-06-06 16:46:23 +02:00
2018-09-05 09:18:35 +02:00
2018-05-30 07:49:13 +02:00
2018-02-25 11:03:51 +01:00
2018-07-03 11:21:30 +02:00
2018-08-15 17:42:06 +02:00
2018-08-06 16:24:29 +02:00
2018-06-16 09:54:24 +02:00
2018-05-30 07:48:57 +02:00
2018-08-22 07:48:38 +02:00
2018-04-13 19:50:09 +02:00
2017-08-06 19:19:41 -07:00
2018-08-24 13:26:57 +02:00
2018-08-06 16:24:39 +02:00
2018-08-06 16:24:38 +02:00
2018-05-30 07:48:58 +02:00
2018-08-06 16:24:32 +02:00
2018-07-17 11:31:43 +02:00
2018-05-30 07:48:51 +02:00
2018-08-06 16:24:36 +02:00
2018-09-05 09:18:36 +02:00
2018-03-22 09:23:23 +01:00
2018-05-30 07:48:55 +02:00
2018-07-03 11:21:31 +02:00
2018-07-11 16:03:47 +02:00
2017-08-06 19:19:46 -07:00
2018-07-03 11:21:29 +02:00
2018-05-30 07:49:10 +02:00
2018-04-08 11:52:00 +02:00
2018-08-24 13:27:01 +02:00
2018-03-22 09:23:26 +01:00
2018-01-23 19:50:16 +01:00
2018-08-06 16:24:34 +02:00
2018-03-24 10:58:47 +01:00
2018-03-24 10:58:45 +01:00
2018-04-13 19:50:05 +02:00
2018-07-25 10:18:17 +02:00
2018-03-22 09:23:27 +01:00
2018-08-06 16:24:35 +02:00
2018-08-06 16:24:30 +02:00
2018-07-03 11:21:31 +02:00
2018-09-05 09:18:36 +02:00
2018-07-03 11:21:35 +02:00
2017-07-27 15:06:10 -07:00
2018-02-25 11:03:44 +01:00
2018-09-05 09:18:35 +02:00
2018-03-24 10:58:45 +01:00
2018-08-06 16:24:37 +02:00
2018-04-24 09:32:07 +02:00
2018-08-22 07:48:37 +02:00
2018-09-05 09:18:34 +02:00
2017-10-12 11:27:35 +02:00
2018-04-24 09:32:09 +02:00
2018-07-22 14:25:53 +02:00
2018-07-03 11:21:34 +02:00
2018-08-06 16:24:42 +02:00
2018-07-03 11:21:27 +02:00
2018-05-30 07:49:03 +02:00
2018-07-03 11:21:34 +02:00
2018-05-30 07:49:11 +02:00
2018-02-25 11:03:38 +01:00