Johannes Thumshirn
cfbe3cabb5
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:20:04 +02:00
..
2018-08-24 13:12:38 +02:00
2018-05-01 15:13:08 -07:00
2018-02-28 10:18:33 +01:00
2018-08-24 13:12:28 +02:00
2018-07-22 14:27:36 +02:00
2018-02-13 12:35:55 +01:00
2018-08-15 18:14:45 +02:00
2017-03-12 06:41:52 +01:00
2018-07-17 11:37:54 +02:00
2018-08-03 07:55:16 +02:00
2018-08-03 07:55:19 +02:00
2018-05-30 07:50:47 +02:00
2018-08-15 18:14:41 +02:00
2018-07-03 11:23:13 +02:00
2018-05-30 07:50:32 +02:00
2018-06-26 08:08:08 +08:00
2018-07-03 11:23:08 +02:00
2018-08-06 16:23:04 +02:00
2018-02-28 10:18:33 +01:00
2018-04-13 19:48:09 +02:00
2018-08-24 13:12:33 +02:00
2018-06-06 16:44:33 +02:00
2018-08-03 07:55:21 +02:00
2017-11-21 09:23:21 +01:00
2018-05-30 07:50:18 +02:00
2018-05-30 07:50:24 +02:00
2018-06-16 09:52:33 +02:00
2018-09-05 09:20:00 +02:00
2018-08-24 13:12:35 +02:00
2018-03-24 11:00:12 +01:00
2018-04-20 08:20:41 +02:00
2018-05-30 07:50:46 +02:00
2018-06-06 16:44:38 +02:00
2018-09-05 09:20:01 +02:00
2018-05-30 07:50:47 +02:00
2018-02-25 11:05:55 +01:00
2018-08-24 13:12:31 +02:00
2018-08-24 13:12:38 +02:00
2018-08-03 07:55:11 +02:00
2018-05-30 07:50:20 +02:00
2016-10-27 18:43:43 -07:00
2018-06-06 16:44:35 +02:00
2018-08-22 07:47:14 +02:00
2018-04-13 19:48:03 +02:00
2016-10-07 14:42:05 -07:00
2018-05-30 07:50:42 +02:00
2017-08-06 18:59:42 -07:00
2017-09-09 17:39:41 +02:00
2018-08-24 13:12:33 +02:00
2018-08-03 07:55:26 +02:00
2018-08-03 07:55:24 +02:00
2016-10-17 15:43:05 +02:00
2018-05-25 16:13:06 +02:00
2018-08-03 07:55:16 +02:00
2018-07-17 11:37:51 +02:00
2018-08-03 07:55:24 +02:00
2018-08-15 18:14:43 +02:00
2018-09-05 09:20:03 +02:00
2018-08-24 13:12:32 +02:00
2018-05-30 07:50:22 +02:00
2018-07-03 11:23:13 +02:00
2018-08-24 13:12:30 +02:00
2018-08-03 07:55:22 +02:00
2018-07-03 11:23:08 +02:00
2016-10-10 20:16:43 -07:00
2018-05-30 07:50:43 +02:00
2018-04-08 12:12:57 +02:00
2018-08-24 13:12:43 +02:00
2016-11-11 08:45:08 -08:00
2018-03-22 09:17:51 +01:00
2018-01-23 19:57:07 +01:00
2018-08-24 13:12:39 +02:00
2018-06-26 08:08:05 +08:00
2018-04-29 11:31:56 +02:00
2018-04-13 19:47:56 +02:00
2016-10-11 15:06:32 -07:00
2016-09-20 20:57:12 +10:00
2018-07-25 11:24:01 +02:00
2018-07-03 11:23:16 +02:00
2017-12-14 09:28:22 +01:00
2018-08-03 07:55:20 +02:00
2017-03-12 06:41:50 +01:00
2017-10-08 10:26:03 +02:00
2018-07-03 11:23:13 +02:00
2018-08-03 07:55:13 +02:00
2018-07-03 11:23:12 +02:00
2018-09-05 09:20:04 +02:00
2018-05-30 07:50:47 +02:00
2018-05-30 07:50:45 +02:00
2017-07-27 15:08:08 -07:00
2017-01-09 08:32:16 +01:00
2018-09-05 09:20:01 +02:00
2018-03-24 11:00:20 +01:00
2018-08-03 07:55:23 +02:00
2018-04-24 09:34:12 +02:00
2018-08-22 07:47:15 +02:00
2018-04-13 19:47:59 +02:00
2018-09-05 09:20:00 +02:00
2017-10-12 11:51:19 +02:00
2018-08-03 07:55:13 +02:00
2018-07-22 14:27:38 +02:00
2018-07-03 11:23:16 +02:00
2016-10-19 08:11:43 -07:00
2018-08-06 16:23:04 +02:00
2017-03-12 06:41:50 +01:00
2018-07-03 11:23:06 +02:00
2018-05-30 07:50:34 +02:00
2018-08-24 13:12:29 +02:00
2018-05-30 07:50:44 +02:00
2018-02-25 11:05:45 +01:00