Baokun Li
551667f99b
ext4: goto right label 'out_mmap_sem' in ext4_setattr()
commit 7e91ae31e2d264155dfd102101afc2de7bd74a64 upstream.
Otherwise, if ext4_inode_attach_jinode() fails, a hung task will
happen because filemap_invalidate_unlock() isn't called to unlock
mapping->invalidate_lock. Like this:
EXT4-fs error (device sda) in ext4_setattr:5557: Out of memory
INFO: task fsstress:374 blocked for more than 122 seconds.
Not tainted 6.14.0-rc1-next-20250206-xfstests-dirty #726
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:fsstress state:D stack:0 pid:374 tgid:374 ppid:373
task_flags:0x440140 flags:0x00000000
Call Trace:
<TASK>
__schedule+0x2c9/0x7f0
schedule+0x27/0xa0
schedule_preempt_disabled+0x15/0x30
rwsem_down_read_slowpath+0x278/0x4c0
down_read+0x59/0xb0
page_cache_ra_unbounded+0x65/0x1b0
filemap_get_pages+0x124/0x3e0
filemap_read+0x114/0x3d0
vfs_read+0x297/0x360
ksys_read+0x6c/0xe0
do_syscall_64+0x4b/0x110
entry_SYSCALL_64_after_hwframe+0x76/0x7e
Fixes: c7fc0366c656 ("ext4: partial zero eof block on unaligned inode size extension")
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Link: https://patch.msgid.link/20250213112247.3168709-1-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Ricardo Cañuelo Navarro <rcn@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-02 07:51:03 +02:00
..
2024-11-22 15:38:37 +01:00
2023-08-29 20:21:42 -07:00
2025-04-10 14:37:37 +02:00
2025-03-07 16:45:38 +01:00
2023-08-28 11:39:14 -07:00
2023-08-29 20:21:42 -07:00
2023-08-29 20:21:42 -07:00
2025-05-02 07:50:43 +02:00
2025-02-17 09:40:42 +01:00
2025-05-02 07:50:42 +02:00
2023-08-28 09:31:32 -07:00
2024-08-19 06:04:25 +02:00
2024-10-04 16:29:48 +02:00
2024-01-20 11:51:37 +01:00
2023-08-28 10:17:14 -07:00
2025-02-08 09:51:41 +01:00
2024-10-04 16:29:48 +02:00
2024-12-27 13:58:50 +01:00
2023-08-29 20:21:42 -07:00
2025-01-17 13:36:11 +01:00
2025-04-10 14:37:35 +02:00
2023-08-29 17:45:22 -04:00
2024-08-03 08:54:15 +02:00
2025-05-02 07:51:03 +02:00
2025-04-25 10:45:27 +02:00
2024-10-22 15:46:20 +02:00
2023-08-29 20:21:42 -07:00
2024-12-09 10:31:45 +01:00
2025-04-25 10:45:50 +02:00
2025-02-01 18:37:52 +01:00
2025-04-25 10:45:47 +02:00
2025-04-25 10:45:47 +02:00
2025-04-10 14:37:34 +02:00
2023-08-29 20:21:42 -07:00
2024-02-23 09:25:16 +01:00
2025-05-02 07:51:01 +02:00
2025-04-25 10:45:48 +02:00
2025-04-25 10:45:28 +02:00
2024-12-14 20:00:21 +01:00
2025-04-25 10:45:15 +02:00
2024-08-29 17:33:33 +02:00
2024-08-19 06:04:23 +02:00
2023-08-29 20:21:42 -07:00
2023-09-18 12:03:46 -07:00
2025-04-25 10:45:46 +02:00
2025-04-25 10:45:46 +02:00
2025-02-27 04:10:54 -08:00
2023-08-31 12:07:34 -05:00
2025-01-23 17:21:19 +01:00
2023-08-29 20:21:42 -07:00
2025-05-02 07:50:54 +02:00
2025-04-10 14:37:34 +02:00
2023-08-29 20:21:42 -07:00
2024-06-12 11:11:30 +02:00
2025-02-21 13:57:12 +01:00
2025-04-25 10:45:48 +02:00
2025-04-10 14:37:35 +02:00
2025-02-08 09:51:42 +01:00
2023-08-29 20:21:42 -07:00
2023-08-29 20:21:42 -07:00
2024-12-09 10:33:01 +01:00
2023-07-24 10:30:04 +02:00
2024-08-19 06:04:26 +02:00
2024-08-19 06:04:25 +02:00
2025-05-02 07:51:00 +02:00
2024-09-12 11:11:39 +02:00
2024-04-27 17:11:41 +02:00
2024-04-13 13:07:34 +02:00
2024-09-12 11:11:27 +02:00
2025-02-08 09:52:28 +01:00
2025-04-25 10:45:27 +02:00
2023-08-29 20:21:42 -07:00
2024-12-14 20:00:20 +01:00
2025-03-22 12:50:41 -07:00
2024-06-16 13:47:33 +02:00
2025-02-27 04:10:44 -08:00
2024-02-23 09:25:13 +01:00
2024-04-03 15:28:44 +02:00
2023-08-28 10:17:14 -07:00
2023-08-11 09:04:57 +02:00
2024-08-29 17:33:33 +02:00
2024-09-12 11:11:29 +02:00
2025-02-17 09:40:16 +01:00
2024-08-29 17:33:27 +02:00
2025-02-08 09:52:26 +01:00
2024-11-08 16:28:19 +01:00
2024-07-25 09:50:54 +02:00
2023-08-18 10:12:11 -07:00
2024-12-27 13:58:57 +01:00
2025-04-10 14:37:44 +02:00
2024-10-04 16:29:56 +02:00
2024-08-19 06:04:28 +02:00
2025-02-08 09:51:42 +01:00
2025-04-25 10:45:10 +02:00
2023-10-12 18:53:36 +03:00
2023-08-21 13:46:25 -07:00
2024-06-27 13:49:00 +02:00
2023-08-14 18:48:02 +02:00
2024-12-09 10:31:41 +01:00
2023-08-29 20:21:42 -07:00
2024-01-31 16:18:54 -08:00
2025-04-25 10:45:46 +02:00
2023-08-23 14:17:43 -07:00
2023-08-19 12:12:12 +02:00
2025-02-01 18:37:54 +01:00
2024-07-27 11:34:10 +02:00
2023-08-02 09:13:09 -06:00
2025-03-22 12:50:44 -07:00
2025-05-02 07:50:44 +02:00
2024-11-01 01:58:32 +01:00
2024-04-10 16:35:57 +02:00
2023-08-15 08:32:45 +02:00
2023-08-06 15:08:35 +02:00
2025-03-22 12:50:37 -07:00
2025-05-02 07:50:45 +02:00
2023-12-03 07:33:03 +01:00
2024-08-19 06:04:25 +02:00
2025-04-25 10:45:31 +02:00
2024-09-12 11:11:38 +02:00