Chao Yu
bf617f7a92
f2fs: fix to check extent cache in f2fs_drop_extent_tree
...
If noextent_cache mount option is on, we will never initialize extent tree
in inode, but still we're going to access it in f2fs_drop_extent_tree,
result in kernel panic as below:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
IP: _raw_write_lock+0xc/0x30
Call Trace:
? f2fs_drop_extent_tree+0x41/0x70 [f2fs]
f2fs_fallocate+0x5a0/0xdd0 [f2fs]
? common_file_perm+0x47/0xc0
? apparmor_file_permission+0x1a/0x20
vfs_fallocate+0x15b/0x290
SyS_fallocate+0x44/0x70
do_syscall_64+0x6e/0x160
entry_SYSCALL64_slow_path+0x25/0x25
This patch fixes to check extent cache status before using in
f2fs_drop_extent_tree.
Signed-off-by: Chao Yu <yuchao0@huawei.com >
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org >
2018-03-13 08:05:32 +09:00
..
2018-01-01 12:45:37 -07:00
2017-11-27 13:05:09 -08:00
2018-02-01 08:15:25 -05:00
2018-02-06 14:43:37 +00:00
2018-01-30 14:43:12 -08:00
2018-01-15 12:07:54 -08:00
2017-11-02 11:10:55 +01:00
2018-02-16 09:26:18 -08:00
2018-02-11 14:34:03 -08:00
2018-02-08 11:38:59 -08:00
2018-02-07 09:36:46 -06:00
2018-02-11 14:34:03 -08:00
2017-10-19 16:15:16 +02:00
2018-02-08 11:37:31 -08:00
2018-02-01 10:51:18 -05:00
2018-02-11 14:34:03 -08:00
2018-01-31 08:48:37 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-22 10:21:02 -08:00
2017-11-27 13:05:09 -08:00
2018-02-07 14:25:22 -08:00
2017-03-03 11:38:56 -08:00
2018-02-07 14:25:22 -08:00
2018-02-07 14:25:22 -08:00
2018-03-13 08:05:32 +09:00
2018-02-01 08:15:25 -05:00
2018-01-15 12:07:57 -08:00
2017-11-16 11:41:22 -08:00
2018-02-11 14:34:03 -08:00
2018-02-13 13:38:10 -07:00
2017-11-27 13:05:09 -08:00
2018-02-06 18:32:45 -08:00
2017-11-02 11:10:55 +01:00
2017-12-10 12:58:18 -08:00
2018-01-31 17:18:39 -08:00
2017-11-27 13:05:09 -08:00
2018-01-10 00:27:29 -05:00
2018-01-31 19:25:25 -08:00
2018-02-03 16:25:42 -08:00
2018-02-11 14:34:03 -08:00
2018-01-24 17:33:57 -05:00
2017-11-27 13:05:09 -08:00
2018-02-01 08:15:25 -05:00
2017-11-27 16:45:11 -05:00
2018-02-08 15:18:32 -08:00
2018-02-06 18:32:45 -08:00
2017-11-02 11:10:55 +01:00
2018-02-11 14:34:03 -08:00
2018-01-01 10:09:33 -05:00
2018-02-11 14:34:03 -08:00
2017-11-02 11:10:55 +01:00
2017-11-27 13:05:09 -08:00
2018-02-11 14:34:03 -08:00
2018-02-05 09:50:29 +01:00
2018-02-14 17:31:51 -08:00
2017-11-28 16:39:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-29 16:46:48 +01:00
2017-09-06 17:27:26 -07:00
2018-01-01 12:45:37 -07:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2018-02-01 13:36:15 -08:00
2017-11-27 13:05:09 -08:00
2017-07-06 03:31:46 -04:00
2018-02-04 10:43:12 -08:00
2017-12-19 08:11:01 +01:00
2018-02-07 14:25:22 -08:00
2018-02-05 13:35:56 -08:00
2017-11-17 11:54:55 -08:00
2016-12-24 11:46:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-04 19:05:15 -04:00
2017-11-17 12:54:01 -08:00
2018-02-06 18:32:45 -08:00
2016-08-02 19:35:15 -04:00
2017-11-02 11:10:55 +01:00
2017-10-13 16:18:33 -07:00
2017-10-03 17:54:25 -07:00
2017-11-14 15:32:19 -08:00
2018-01-31 09:25:20 -08:00
2017-11-02 11:10:55 +01:00
2017-02-01 09:13:51 +01:00
2017-12-28 11:17:29 -05:00
2017-04-17 12:52:27 -04:00
2017-11-17 11:54:55 -08:00
2018-02-03 13:49:22 -08:00
2018-02-05 13:05:20 -08:00
2016-12-24 11:46:01 -08:00
2018-01-08 10:41:39 -08:00
2017-11-02 11:10:55 +01:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-03 10:13:36 -08:00
2018-02-11 14:34:03 -08:00
2018-01-15 12:07:51 -08:00
2017-12-07 14:23:30 -05:00
2018-01-31 09:25:20 -08:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2017-03-02 08:42:35 +01:00
2018-01-06 09:18:00 -07:00
2018-02-06 18:32:47 -08:00
2017-11-10 08:48:46 -05:00
2017-11-02 11:10:55 +01:00
2018-01-29 07:27:24 -08:00
2018-02-06 10:41:33 -08:00
2017-09-10 19:31:46 -04:00
2017-11-27 13:05:09 -08:00
2018-02-08 15:18:32 -08:00
2017-11-28 13:55:01 +01:00
2018-01-09 23:57:52 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-31 09:25:20 -08:00
2017-12-09 20:16:33 -05:00
2017-12-31 16:12:23 +01:00
2017-09-05 12:53:12 +02:00
2018-02-11 14:34:03 -08:00
2017-05-23 08:41:17 -05:00
2017-02-04 00:01:06 +13:00
2018-01-02 19:27:28 -08:00
2018-02-11 14:34:03 -08:00
2017-11-17 12:08:18 -08:00
2017-11-07 10:32:44 +01:00
2018-02-11 14:34:03 -08:00
2018-01-20 02:31:15 -05:00
2018-02-22 15:00:07 -06:00
2017-10-25 11:01:08 +02:00
2017-11-02 11:10:55 +01:00
2017-11-27 13:05:09 -08:00
2018-01-31 09:25:20 -08:00
2017-11-14 15:32:19 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2017-11-02 11:10:55 +01:00
2017-10-04 18:03:15 +11:00