Files
linux/fs
Andrew Price dc83bf7d54 gfs2: Don't leave s_fs_info pointing to freed memory in init_sbd
commit 4c62bd9cea upstream.

When alloc_percpu() fails, sdp gets freed but sb->s_fs_info still points
to the same address. Move the assignment after that error check so that
s_fs_info can only point to a valid sdp or NULL, which is checked for
later in the error path, in gfs2_kill_super().

Reported-by: syzbot+dcb8b3587445007f5808@syzkaller.appspotmail.com
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 09:57:34 +09:00
..
2017-08-06 18:59:43 -07:00
2018-05-30 13:19:56 +02:00
2016-05-20 17:58:30 -07:00
2023-05-15 08:58:11 +09:00
2023-05-15 09:27:44 +09:00
2017-11-30 08:39:04 +00:00
2023-05-15 09:22:54 +09:00
2018-04-24 11:26:46 +02:00
2018-07-03 11:23:17 +02:00
2018-06-06 16:44:38 +02:00
2018-03-05 15:34:36 +08:00
2017-06-14 15:06:00 +02:00
2016-09-27 21:20:53 -04:00
2017-07-05 16:18:14 +02:00
2017-09-07 10:32:23 +02:00
2016-09-27 18:47:38 -04:00
2018-05-16 11:39:34 +02:00
2017-09-20 09:59:51 +02:00
2017-09-26 00:32:37 -07:00
2017-09-26 00:32:37 -07:00
2018-02-17 13:21:15 +01:00
2017-07-12 17:07:29 +02:00
2017-07-21 08:55:50 +02:00
2017-06-14 15:06:01 +02:00
2018-03-05 07:38:41 +01:00
2017-12-20 10:51:15 +01:00