Artem Labazov
9eb78c2532
exfat: Avoid allocating upcase table using kcalloc()
...
The table for Unicode upcase conversion requires an order-5 allocation,
which may fail on a highly-fragmented system:
pool-udisksd: page allocation failure: order:5,
mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),
cpuset=/,mems_allowed=0
CPU: 4 PID: 3756880 Comm: pool-udisksd Tainted: G U
5.8.10-200.fc32.x86_64 #1
Hardware name: Dell Inc. XPS 13 9360/0PVG6D, BIOS 2.13.0 11/14/2019
Call Trace:
dump_stack+0x6b/0x88
warn_alloc.cold+0x75/0xd9
? _cond_resched+0x16/0x40
? __alloc_pages_direct_compact+0x144/0x150
__alloc_pages_slowpath.constprop.0+0xcfa/0xd30
? __schedule+0x28a/0x840
? __wait_on_bit_lock+0x92/0xa0
__alloc_pages_nodemask+0x2df/0x320
kmalloc_order+0x1b/0x80
kmalloc_order_trace+0x1d/0xa0
exfat_create_upcase_table+0x115/0x390 [exfat]
exfat_fill_super+0x3ef/0x7f0 [exfat]
? sget_fc+0x1d0/0x240
? exfat_init_fs_context+0x120/0x120 [exfat]
get_tree_bdev+0x15c/0x250
vfs_get_tree+0x25/0xb0
do_mount+0x7c3/0xaf0
? copy_mount_options+0xab/0x180
__x64_sys_mount+0x8e/0xd0
do_syscall_64+0x4d/0x90
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Make the driver use kvcalloc() to eliminate the issue.
Fixes: 370e812b3ec1 ("exfat: add nls operations")
Cc: stable@vger.kernel.org #v5.7+
Signed-off-by: Artem Labazov <123321artyom@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
2020-12-22 12:31:17 +09:00
..
2020-12-01 21:40:47 +01:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-12-08 15:59:25 -08:00
2020-10-16 11:11:22 -07:00
2020-09-18 16:45:50 -04:00
2020-09-18 16:45:50 -04:00
2020-11-27 12:42:13 -08:00
2020-10-26 10:42:54 -07:00
2020-11-04 20:55:49 +01:00
2020-12-03 17:12:14 -06:00
2020-05-05 09:22:21 -06:00
2020-10-16 11:11:19 -07:00
2020-09-18 16:45:50 -04:00
2020-11-11 20:59:07 -08:00
2020-10-30 08:37:39 +01:00
2020-10-15 18:42:13 -07:00
2020-08-07 11:33:22 -07:00
2020-11-25 16:55:02 +01:00
2020-09-18 16:45:50 -04:00
2020-11-04 09:15:48 +08:00
2020-12-22 12:31:17 +09:00
2020-10-24 12:26:05 -07:00
2020-11-19 22:41:10 -05:00
2020-10-24 12:26:05 -07:00
2020-09-18 16:45:50 -04:00
2020-06-03 16:27:18 -07:00
2020-10-19 14:28:30 -07:00
2020-12-01 00:21:10 +01:00
2020-10-29 17:22:59 -05:00
2020-10-29 17:22:59 -05:00
2020-03-29 23:23:00 +02:00
2020-09-18 16:45:50 -04:00
2020-08-12 10:57:56 -07:00
2020-11-04 08:52:46 -08:00
2020-10-29 17:22:59 -05:00
2020-11-19 22:38:29 -05:00
2020-08-23 17:36:59 -05:00
2020-09-21 08:59:26 -07:00
2020-07-27 23:15:48 +02:00
2020-10-22 09:44:27 -07:00
2020-09-18 16:45:50 -04:00
2020-12-10 16:48:03 -05:00
2020-10-21 10:31:20 -04:00
2020-11-05 17:25:14 -05:00
2020-10-24 12:26:05 -07:00
2020-06-14 01:57:21 +09:00
2020-11-09 15:03:08 +01:00
2020-10-24 12:26:05 -07:00
2020-11-14 11:26:04 -08:00
2020-09-22 23:39:45 -04:00
2020-08-04 15:01:58 -04:00
2020-10-06 15:38:15 +02:00
2020-12-11 14:02:14 -08:00
2020-08-23 17:36:59 -05:00
2020-09-18 16:45:50 -04:00
2020-09-18 16:45:50 -04:00
2020-10-15 14:56:15 -07:00
2020-10-16 11:11:22 -07:00
2020-10-01 11:15:31 +02:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-10-02 12:02:30 +02:00
2020-09-18 16:45:50 -04:00
2020-10-18 09:56:50 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-09-10 14:03:31 -07:00
2020-10-15 15:11:56 -07:00
2020-07-21 16:02:41 -07:00
2020-11-19 15:17:50 -08:00
2020-12-10 15:14:19 +09:00
2020-11-10 16:53:07 -08:00
2020-06-03 23:16:55 -04:00
2020-05-07 16:55:47 -05:00
2020-10-16 11:11:21 -07:00
2020-10-29 17:22:59 -05:00
2020-06-04 19:18:29 -07:00
2020-08-24 08:49:13 +10:00
2020-06-04 19:18:29 -07:00
2020-06-04 19:18:29 -07:00
2020-10-05 10:38:33 -06:00
2020-10-18 09:27:09 -07:00
2020-05-14 16:44:23 +02:00
2020-06-05 13:45:21 -07:00
2020-12-06 10:19:07 -08:00
2020-10-14 14:54:45 -07:00
2020-10-19 14:28:30 -07:00
2020-07-29 16:14:27 +02:00
2020-10-15 15:03:10 -07:00
2020-04-27 02:07:40 -04:00
2020-05-06 22:33:43 -04:00
2020-09-24 19:41:58 -04:00
2020-10-16 12:21:15 -07:00
2020-08-23 17:36:59 -05:00
2020-10-17 15:05:30 -06:00
2020-09-30 20:32:32 -06:00
2020-04-10 15:36:22 -07:00
2020-08-23 17:36:59 -05:00
2020-10-13 18:38:27 -07:00
2020-07-29 16:14:27 +02:00
2020-10-13 12:12:44 -07:00
2020-08-23 17:36:59 -05:00
2020-08-04 21:02:38 -04:00
2020-10-16 11:11:15 -07:00
2020-09-22 23:45:57 -04:00
2020-12-08 08:54:26 -07:00
2020-11-04 10:22:56 -07:00
2020-10-20 16:03:13 -06:00
2020-07-31 08:16:01 +02:00
2020-08-07 11:33:24 -07:00
2020-06-14 01:57:21 +09:00
2020-10-05 13:37:04 +02:00
2020-11-22 10:48:22 -08:00
2020-08-23 17:36:59 -05:00
2020-10-23 11:33:41 -07:00
2020-05-14 16:44:24 +02:00
2020-06-02 10:59:07 -07:00
2020-10-24 12:26:05 -07:00
2020-10-24 12:26:05 -07:00
2020-05-13 11:41:22 +02:00
2020-08-12 10:58:01 -07:00
2020-10-11 11:11:35 -07:00
2020-04-27 10:37:14 -04:00
2020-06-08 11:04:19 -07:00
2020-08-27 16:06:47 -04:00
2020-10-23 11:33:41 -07:00
2020-07-31 08:16:00 +02:00
2020-10-15 09:48:49 -07:00
2020-10-29 17:22:59 -05:00
2020-11-15 22:12:53 -05:00
2020-08-23 17:36:59 -05:00
2020-10-24 12:40:18 -07:00
2020-09-26 22:55:05 -04:00
2020-08-27 16:06:47 -04:00
2020-11-10 16:53:11 -08:00
2020-06-09 15:40:50 -07:00
2020-10-16 11:11:22 -07:00
2020-07-31 08:16:01 +02:00
2020-10-13 18:38:27 -07:00