2023-05-22 07:54:34 +07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-13 22:07:38 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:32 -08:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2008-02-02 22:37:07 +01:00
|
|
|
|
2008-04-17 09:47:48 +02:00
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-11-04 15:22:35 +01:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-18 19:38:24 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-02-09 12:52:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-06 12:45:27 -05:00
|
|
|
|
2023-01-25 17:56:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-06 12:45:27 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-06-23 02:02:58 -07:00
|
|
|
|
2011-12-08 21:32:45 -05:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-03 11:39:03 +02:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-03-11 07:05:42 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-22 14:41:03 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-08-13 23:24:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-14 07:50:02 -05:00
|
|
|
|
2006-08-13 23:24:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-14 07:50:02 -05:00
|
|
|
|
2023-01-03 09:56:56 +01:00
|
|
|
|
2010-11-16 18:40:47 +01:00
|
|
|
|
2013-01-19 11:17:14 +09:00
|
|
|
|
|
|
|
|
|
2021-11-04 15:22:35 +01:00
|
|
|
|
2006-08-13 23:24:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-15 22:25:06 -04:00
|
|
|
|
2011-01-07 17:49:49 +11:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-25 19:45:34 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-10-12 18:42:35 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-09-25 12:29:54 +02:00
|
|
|
|
2007-05-16 22:10:57 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2014-02-01 15:45:18 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2016-01-14 15:18:21 -08:00
|
|
|
|
2007-07-20 10:11:58 +09:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-26 11:33:07 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-09-27 01:49:40 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-12 00:55:41 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2019-04-15 22:25:06 -04:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2010-06-07 00:43:39 -04:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
|
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:32 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-15 16:45:44 +02:00
|
|
|
|
2008-02-08 04:20:32 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-17 17:41:52 +02:00
|
|
|
|
|
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
2016-01-22 15:11:02 -08:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-08-15 17:03:06 +02:00
|
|
|
|
|
|
|
|
|
2013-01-14 22:53:47 +01:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-08 21:32:45 -05:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2011-12-08 21:32:45 -05:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2012-02-10 12:20:35 -08:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2008-12-02 13:40:11 +01:00
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2008-12-02 13:40:11 +01:00
|
|
|
|
2011-07-26 03:18:29 -04:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2021-08-08 18:24:36 +02:00
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
2021-08-08 18:24:36 +02:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:21:50 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-11-16 20:52:19 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2021-01-29 12:55:02 +08:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-31 00:39:40 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-03-15 09:19:49 +00:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2010-05-19 07:16:40 -04:00
|
|
|
|
2018-09-06 15:56:10 +02:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2018-09-06 15:56:10 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2014-03-13 10:14:33 -04:00
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
2010-10-20 22:17:28 +02:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-20 22:17:28 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2010-05-19 07:16:40 -04:00
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-05-19 16:28:56 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-05-19 07:16:40 -04:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
udf: fix the problem that the disc content is not displayed
When the capacity of the disc is too large (assuming the 4.7G
specification), the disc (UDF file system) will be burned
multiple times in the windows (Multisession Usage). When the
remaining capacity of the CD is less than 300M (estimated
value, for reference only), open the CD in the Linux system,
the content of the CD is displayed as blank (the kernel will
say "No VRS found"). Windows can display the contents of the
CD normally.
Through analysis, in the "fs/udf/super.c": udf_check_vsd
function, the actual value of VSD_MAX_SECTOR_OFFSET may
be much larger than 0x800000. According to the current code
logic, it is found that the type of sbi->s_session is "__s32",
when the remaining capacity of the disc is less than 300M
(take a set of test values: sector=3154903040,
sbi->s_session=1540464, sb->s_blocksize_bits=11 ), the
calculation result of "sbi->s_session << sb->s_blocksize_bits"
will overflow. Therefore, it is necessary to convert the
type of s_session to "loff_t" (when udf_check_vsd starts,
assign a value to _sector, which is also converted in this
way), so that the result will not overflow, and then the
content of the disc can be displayed normally.
Link: https://lore.kernel.org/r/20210114075741.30448-1-changlianzhi@uniontech.com
Signed-off-by: lianzhi chang <changlianzhi@uniontech.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2021-01-14 15:57:41 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
udf: fix the problem that the disc content is not displayed
When the capacity of the disc is too large (assuming the 4.7G
specification), the disc (UDF file system) will be burned
multiple times in the windows (Multisession Usage). When the
remaining capacity of the CD is less than 300M (estimated
value, for reference only), open the CD in the Linux system,
the content of the CD is displayed as blank (the kernel will
say "No VRS found"). Windows can display the contents of the
CD normally.
Through analysis, in the "fs/udf/super.c": udf_check_vsd
function, the actual value of VSD_MAX_SECTOR_OFFSET may
be much larger than 0x800000. According to the current code
logic, it is found that the type of sbi->s_session is "__s32",
when the remaining capacity of the disc is less than 300M
(take a set of test values: sector=3154903040,
sbi->s_session=1540464, sb->s_blocksize_bits=11 ), the
calculation result of "sbi->s_session << sb->s_blocksize_bits"
will overflow. Therefore, it is necessary to convert the
type of s_session to "loff_t" (when udf_check_vsd starts,
assign a value to _sector, which is also converted in this
way), so that the result will not overflow, and then the
content of the disc can be displayed normally.
Link: https://lore.kernel.org/r/20210114075741.30448-1-changlianzhi@uniontech.com
Signed-off-by: lianzhi chang <changlianzhi@uniontech.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2021-01-14 15:57:41 +08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2008-04-14 17:13:01 +02:00
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-01-18 13:27:07 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
2019-07-11 08:38:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
|
|
|
|
|
udf: fix the problem that the disc content is not displayed
When the capacity of the disc is too large (assuming the 4.7G
specification), the disc (UDF file system) will be burned
multiple times in the windows (Multisession Usage). When the
remaining capacity of the CD is less than 300M (estimated
value, for reference only), open the CD in the Linux system,
the content of the CD is displayed as blank (the kernel will
say "No VRS found"). Windows can display the contents of the
CD normally.
Through analysis, in the "fs/udf/super.c": udf_check_vsd
function, the actual value of VSD_MAX_SECTOR_OFFSET may
be much larger than 0x800000. According to the current code
logic, it is found that the type of sbi->s_session is "__s32",
when the remaining capacity of the disc is less than 300M
(take a set of test values: sector=3154903040,
sbi->s_session=1540464, sb->s_blocksize_bits=11 ), the
calculation result of "sbi->s_session << sb->s_blocksize_bits"
will overflow. Therefore, it is necessary to convert the
type of s_session to "loff_t" (when udf_check_vsd starts,
assign a value to _sector, which is also converted in this
way), so that the result will not overflow, and then the
content of the disc can be displayed normally.
Link: https://lore.kernel.org/r/20210114075741.30448-1-changlianzhi@uniontech.com
Signed-off-by: lianzhi chang <changlianzhi@uniontech.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2021-01-14 15:57:41 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-29 14:19:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 22:29:03 +01:00
|
|
|
|
2019-08-29 14:19:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-12 23:13:53 +01:00
|
|
|
|
2019-08-29 14:19:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 22:29:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-08-29 14:19:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2022-10-12 18:42:35 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-08-29 14:11:54 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-08-29 14:11:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-08-29 14:11:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2019-08-29 14:11:54 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-08-29 14:11:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2020-09-22 16:13:22 +08:00
|
|
|
|
2018-05-10 08:26:17 -07:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2024-04-01 20:01:51 +00:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-05-10 08:26:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-04-16 15:44:19 +02:00
|
|
|
|
2018-11-16 13:43:17 +01:00
|
|
|
|
2024-04-01 20:01:51 +00:00
|
|
|
|
2018-11-16 13:43:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-04-01 20:01:51 +00:00
|
|
|
|
2018-11-16 13:43:17 +01:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-04-16 15:44:19 +02:00
|
|
|
|
2018-11-16 13:43:17 +01:00
|
|
|
|
|
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
2018-11-16 13:43:17 +01:00
|
|
|
|
2016-01-15 02:44:22 -06:00
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-11-16 19:01:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2011-10-23 19:28:32 +09:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2011-10-10 01:08:04 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2011-10-10 01:08:03 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:34 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-14 16:15:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:34 -08:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-28 01:16:52 +03:00
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
2020-08-28 01:16:52 +03:00
|
|
|
|
|
|
|
|
|
2017-08-15 17:03:06 +02:00
|
|
|
|
2008-02-08 04:20:33 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-06 15:46:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-12 15:49:59 +01:00
|
|
|
|
|
|
|
|
|
2018-09-06 15:46:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:52:17 +02:00
|
|
|
|
2018-09-06 15:46:17 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:52:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2018-09-06 15:46:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-20 12:52:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
2014-10-09 12:52:16 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 02:08:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-18 12:11:30 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
2009-07-14 19:30:23 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-30 19:47:55 +01:00
|
|
|
|
2009-07-14 19:30:23 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-14 17:06:36 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 02:08:53 +02:00
|
|
|
|
|
|
|
|
|
2023-01-18 14:08:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 02:08:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-25 12:29:54 +02:00
|
|
|
|
2008-04-08 02:08:53 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-14 17:06:36 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2008-04-02 12:26:36 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-02 16:01:35 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2016-05-18 14:09:19 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-06 15:56:10 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-04-01 18:08:51 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-25 14:53:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
2012-07-10 17:58:04 +02:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-08-29 14:11:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 20:08:44 +02:00
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2012-06-27 20:20:22 +02:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 01:16:32 +02:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-08 01:16:32 +02:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 21:23:07 +02:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-24 16:47:48 +02:00
|
|
|
|
|
|
|
|
|
2008-04-08 20:37:21 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-24 16:47:48 +02:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2011-10-10 01:08:07 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2019-02-11 08:24:38 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-02-05 16:24:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-05 16:24:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
2024-02-05 16:24:22 +01:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-04-25 19:27:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-21 14:52:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-21 14:52:34 +02:00
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-21 14:52:34 +02:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
2018-08-21 14:52:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
treewide: kzalloc() -> kcalloc()
The kzalloc() function has a 2-factor argument form, kcalloc(). This
patch replaces cases of:
kzalloc(a * b, gfp)
with:
kcalloc(a * b, gfp)
as well as handling cases of:
kzalloc(a * b * c, gfp)
with:
kzalloc(array3_size(a, b, c), gfp)
as it's slightly less ugly than:
kzalloc_array(array_size(a, b), c, gfp)
This does, however, attempt to ignore constant size factors like:
kzalloc(4 * 1024, gfp)
though any constants defined via macros get caught up in the conversion.
Any factors with a sizeof() of "unsigned char", "char", and "u8" were
dropped, since they're redundant.
The Coccinelle script used for this was:
// Fix redundant parens around sizeof().
@@
type TYPE;
expression THING, E;
@@
(
kzalloc(
- (sizeof(TYPE)) * E
+ sizeof(TYPE) * E
, ...)
|
kzalloc(
- (sizeof(THING)) * E
+ sizeof(THING) * E
, ...)
)
// Drop single-byte sizes and redundant parens.
@@
expression COUNT;
typedef u8;
typedef __u8;
@@
(
kzalloc(
- sizeof(u8) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(__u8) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(char) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(unsigned char) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(u8) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(__u8) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(char) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(unsigned char) * COUNT
+ COUNT
, ...)
)
// 2-factor product with sizeof(type/expression) and identifier or constant.
@@
type TYPE;
expression THING;
identifier COUNT_ID;
constant COUNT_CONST;
@@
(
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (COUNT_ID)
+ COUNT_ID, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * COUNT_ID
+ COUNT_ID, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (COUNT_CONST)
+ COUNT_CONST, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * COUNT_CONST
+ COUNT_CONST, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (COUNT_ID)
+ COUNT_ID, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * COUNT_ID
+ COUNT_ID, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (COUNT_CONST)
+ COUNT_CONST, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * COUNT_CONST
+ COUNT_CONST, sizeof(THING)
, ...)
)
// 2-factor product, only identifiers.
@@
identifier SIZE, COUNT;
@@
- kzalloc
+ kcalloc
(
- SIZE * COUNT
+ COUNT, SIZE
, ...)
// 3-factor product with 1 sizeof(type) or sizeof(expression), with
// redundant parens removed.
@@
expression THING;
identifier STRIDE, COUNT;
type TYPE;
@@
(
kzalloc(
- sizeof(TYPE) * (COUNT) * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * (COUNT) * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * COUNT * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * COUNT * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(THING) * (COUNT) * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * (COUNT) * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * COUNT * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * COUNT * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
)
// 3-factor product with 2 sizeof(variable), with redundant parens removed.
@@
expression THING1, THING2;
identifier COUNT;
type TYPE1, TYPE2;
@@
(
kzalloc(
- sizeof(TYPE1) * sizeof(TYPE2) * COUNT
+ array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
, ...)
|
kzalloc(
- sizeof(THING1) * sizeof(THING2) * COUNT
+ array3_size(COUNT, sizeof(THING1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(THING1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(THING1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * COUNT
+ array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
, ...)
)
// 3-factor product, only identifiers, with redundant parens removed.
@@
identifier STRIDE, SIZE, COUNT;
@@
(
kzalloc(
- (COUNT) * STRIDE * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * (STRIDE) * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * STRIDE * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * (STRIDE) * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * (STRIDE) * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * STRIDE * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * (STRIDE) * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * STRIDE * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
)
// Any remaining multi-factor products, first at least 3-factor products,
// when they're not all constants...
@@
expression E1, E2, E3;
constant C1, C2, C3;
@@
(
kzalloc(C1 * C2 * C3, ...)
|
kzalloc(
- (E1) * E2 * E3
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- (E1) * (E2) * E3
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- (E1) * (E2) * (E3)
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- E1 * E2 * E3
+ array3_size(E1, E2, E3)
, ...)
)
// And then all remaining 2 factors products when they're not all constants,
// keeping sizeof() as the second factor argument.
@@
expression THING, E1, E2;
type TYPE;
constant C1, C2, C3;
@@
(
kzalloc(sizeof(THING) * C2, ...)
|
kzalloc(sizeof(TYPE) * C2, ...)
|
kzalloc(C1 * C2 * C3, ...)
|
kzalloc(C1 * C2, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (E2)
+ E2, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * E2
+ E2, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (E2)
+ E2, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * E2
+ E2, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- (E1) * E2
+ E1, E2
, ...)
|
- kzalloc
+ kcalloc
(
- (E1) * (E2)
+ E1, E2
, ...)
|
- kzalloc
+ kcalloc
(
- E1 * E2
+ E1, E2
, ...)
)
Signed-off-by: Kees Cook <keescook@chromium.org>
2018-06-12 14:03:40 -07:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-08-21 14:52:34 +02:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 15:15:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
2018-02-09 15:15:39 +01:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
2018-02-09 15:15:39 +01:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
2018-02-09 15:15:39 +01:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 15:15:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-12-10 17:13:41 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2015-02-04 18:15:04 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2015-12-10 17:13:41 +01:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
2018-08-21 14:52:34 +02:00
|
|
|
|
treewide: kzalloc() -> kcalloc()
The kzalloc() function has a 2-factor argument form, kcalloc(). This
patch replaces cases of:
kzalloc(a * b, gfp)
with:
kcalloc(a * b, gfp)
as well as handling cases of:
kzalloc(a * b * c, gfp)
with:
kzalloc(array3_size(a, b, c), gfp)
as it's slightly less ugly than:
kzalloc_array(array_size(a, b), c, gfp)
This does, however, attempt to ignore constant size factors like:
kzalloc(4 * 1024, gfp)
though any constants defined via macros get caught up in the conversion.
Any factors with a sizeof() of "unsigned char", "char", and "u8" were
dropped, since they're redundant.
The Coccinelle script used for this was:
// Fix redundant parens around sizeof().
@@
type TYPE;
expression THING, E;
@@
(
kzalloc(
- (sizeof(TYPE)) * E
+ sizeof(TYPE) * E
, ...)
|
kzalloc(
- (sizeof(THING)) * E
+ sizeof(THING) * E
, ...)
)
// Drop single-byte sizes and redundant parens.
@@
expression COUNT;
typedef u8;
typedef __u8;
@@
(
kzalloc(
- sizeof(u8) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(__u8) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(char) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(unsigned char) * (COUNT)
+ COUNT
, ...)
|
kzalloc(
- sizeof(u8) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(__u8) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(char) * COUNT
+ COUNT
, ...)
|
kzalloc(
- sizeof(unsigned char) * COUNT
+ COUNT
, ...)
)
// 2-factor product with sizeof(type/expression) and identifier or constant.
@@
type TYPE;
expression THING;
identifier COUNT_ID;
constant COUNT_CONST;
@@
(
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (COUNT_ID)
+ COUNT_ID, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * COUNT_ID
+ COUNT_ID, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (COUNT_CONST)
+ COUNT_CONST, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * COUNT_CONST
+ COUNT_CONST, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (COUNT_ID)
+ COUNT_ID, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * COUNT_ID
+ COUNT_ID, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (COUNT_CONST)
+ COUNT_CONST, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * COUNT_CONST
+ COUNT_CONST, sizeof(THING)
, ...)
)
// 2-factor product, only identifiers.
@@
identifier SIZE, COUNT;
@@
- kzalloc
+ kcalloc
(
- SIZE * COUNT
+ COUNT, SIZE
, ...)
// 3-factor product with 1 sizeof(type) or sizeof(expression), with
// redundant parens removed.
@@
expression THING;
identifier STRIDE, COUNT;
type TYPE;
@@
(
kzalloc(
- sizeof(TYPE) * (COUNT) * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * (COUNT) * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * COUNT * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(TYPE) * COUNT * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(TYPE))
, ...)
|
kzalloc(
- sizeof(THING) * (COUNT) * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * (COUNT) * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * COUNT * (STRIDE)
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
|
kzalloc(
- sizeof(THING) * COUNT * STRIDE
+ array3_size(COUNT, STRIDE, sizeof(THING))
, ...)
)
// 3-factor product with 2 sizeof(variable), with redundant parens removed.
@@
expression THING1, THING2;
identifier COUNT;
type TYPE1, TYPE2;
@@
(
kzalloc(
- sizeof(TYPE1) * sizeof(TYPE2) * COUNT
+ array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(TYPE1), sizeof(TYPE2))
, ...)
|
kzalloc(
- sizeof(THING1) * sizeof(THING2) * COUNT
+ array3_size(COUNT, sizeof(THING1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(THING1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(THING1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * COUNT
+ array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
, ...)
|
kzalloc(
- sizeof(TYPE1) * sizeof(THING2) * (COUNT)
+ array3_size(COUNT, sizeof(TYPE1), sizeof(THING2))
, ...)
)
// 3-factor product, only identifiers, with redundant parens removed.
@@
identifier STRIDE, SIZE, COUNT;
@@
(
kzalloc(
- (COUNT) * STRIDE * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * (STRIDE) * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * STRIDE * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * (STRIDE) * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * (STRIDE) * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * STRIDE * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- (COUNT) * (STRIDE) * (SIZE)
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
|
kzalloc(
- COUNT * STRIDE * SIZE
+ array3_size(COUNT, STRIDE, SIZE)
, ...)
)
// Any remaining multi-factor products, first at least 3-factor products,
// when they're not all constants...
@@
expression E1, E2, E3;
constant C1, C2, C3;
@@
(
kzalloc(C1 * C2 * C3, ...)
|
kzalloc(
- (E1) * E2 * E3
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- (E1) * (E2) * E3
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- (E1) * (E2) * (E3)
+ array3_size(E1, E2, E3)
, ...)
|
kzalloc(
- E1 * E2 * E3
+ array3_size(E1, E2, E3)
, ...)
)
// And then all remaining 2 factors products when they're not all constants,
// keeping sizeof() as the second factor argument.
@@
expression THING, E1, E2;
type TYPE;
constant C1, C2, C3;
@@
(
kzalloc(sizeof(THING) * C2, ...)
|
kzalloc(sizeof(TYPE) * C2, ...)
|
kzalloc(C1 * C2 * C3, ...)
|
kzalloc(C1 * C2, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * (E2)
+ E2, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(TYPE) * E2
+ E2, sizeof(TYPE)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * (E2)
+ E2, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- sizeof(THING) * E2
+ E2, sizeof(THING)
, ...)
|
- kzalloc
+ kcalloc
(
- (E1) * E2
+ E1, E2
, ...)
|
- kzalloc
+ kcalloc
(
- (E1) * (E2)
+ E1, E2
, ...)
|
- kzalloc
+ kcalloc
(
- E1 * E2
+ E1, E2
, ...)
)
Signed-off-by: Kees Cook <keescook@chromium.org>
2018-06-12 14:03:40 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-02-08 18:10:54 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2018-02-09 13:28:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 12:20:14 +02:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2018-02-09 13:28:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2018-02-09 15:15:39 +01:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2018-02-09 15:15:39 +01:00
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 12:20:14 +02:00
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2018-02-09 13:28:41 +01:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2020-09-22 12:20:14 +02:00
|
|
|
|
|
|
|
|
|
2008-04-01 16:50:35 +02:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2020-09-22 12:20:14 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2020-09-22 12:20:14 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2018-02-09 15:56:34 +01:00
|
|
|
|
2018-08-21 14:52:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-22 12:20:14 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2020-09-22 12:20:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-08 17:39:01 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-08 17:39:01 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-18 13:55:31 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2023-01-18 13:55:31 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2021-10-18 12:11:30 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
2024-02-20 15:43:21 -06:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2017-01-18 19:39:35 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2019-07-11 08:38:51 -05:00
|
|
|
|
udf: fix for pathetic mount times in case of invalid file system
The UDF driver was not strict enough about checking the IDs in the
VSDs when mounting, which resulted in reading through all the sectors
of the block device in some unfortunate cases. Eg, trying to mount my
uninitialized 200G SSD partition (all 0xFF bytes) took ~350 minutes to
fail, because the code expected some of the valid IDs or a zero byte.
During this, the mount couldn't be killed, sync from the cmdline
blocked, and the machine froze into the shutdown. Valid filesystems
(extX, btrfs, ntfs) were rejected by the mere accident of having a
zero byte at just the right place in some of their sectors, close
enough to the beginning not to generate excess I/O. The fix adds a
hard limit on the VSD sector offset, adds the two missing VSD IDs, and
stops scanning when encountering an invalid ID. Also replaced the
magic number 32768 with a more meaningful #define, and supressed the
bogus message about failing to read the first sector if no UDF fs was
detected.
Signed-off-by: Peter A. Felvegi <petschy@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2013-10-18 20:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-01-18 13:27:07 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2009-03-11 15:57:47 +01:00
|
|
|
|
|
|
|
|
|
2019-02-08 11:34:54 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
2018-02-27 18:55:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2019-02-08 11:34:54 -06:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
2013-01-17 22:11:38 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-02-27 18:55:31 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-12-23 11:53:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 11:34:54 -06:00
|
|
|
|
2008-02-10 11:33:08 +01:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
2010-10-20 18:49:20 +02:00
|
|
|
|
2013-01-17 22:11:38 +01:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2010-10-20 18:28:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 11:34:55 -06:00
|
|
|
|
2010-10-20 18:28:46 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-08-20 14:50:07 +02:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-08-15 16:45:44 +02:00
|
|
|
|
2010-11-16 18:40:49 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2006-03-23 03:00:44 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-20 22:17:28 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-30 17:22:06 +02:00
|
|
|
|
2010-05-19 07:16:44 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-18 19:39:35 +01:00
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2017-01-18 19:39:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2009-03-19 16:21:38 +01:00
|
|
|
|
|
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2018-09-06 15:56:10 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-25 16:15:16 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2018-09-06 15:56:10 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-10-05 21:17:50 +02:00
|
|
|
|
2006-09-29 01:59:41 -07:00
|
|
|
|
2019-08-29 14:11:54 +02:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2008-02-10 11:25:31 +01:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-10 11:25:31 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2015-08-20 14:50:07 +02:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2017-10-12 08:48:41 -05:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2014-09-04 16:15:51 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-01-08 22:15:13 -05:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2023-01-25 17:56:06 +01:00
|
|
|
|
2012-02-06 12:45:27 -05:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2014-11-18 17:17:46 +01:00
|
|
|
|
2024-02-20 15:44:52 -06:00
|
|
|
|
2015-08-20 14:50:07 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2013-07-25 19:10:59 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:03 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-10 01:08:04 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
push BKL down into ->put_super
Move BKL into ->put_super from the only caller. A couple of
filesystems had trivial enough ->put_super (only kfree and NULLing of
s_fs_info + stuff in there) to not get any locking: coda, cramfs, efs,
hugetlbfs, omfs, qnx4, shmem, all others got the full treatment. Most
of them probably don't need it, but I'd rather sort that out individually.
Preferably after all the other BKL pushdowns in that area.
[AV: original used to move lock_super() down as well; these changes are
removed since we don't do lock_super() at all in generic_shutdown_super()
now]
[AV: fuse, btrfs and xfs are known to need no damn BKL, exempt]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2009-05-05 15:40:36 +02:00
|
|
|
|
2014-11-18 17:17:46 +01:00
|
|
|
|
2021-08-08 18:24:36 +02:00
|
|
|
|
2017-07-17 08:45:34 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2012-06-27 22:27:05 +02:00
|
|
|
|
2015-01-10 19:13:32 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 11:34:55 -06:00
|
|
|
|
2019-02-19 14:59:43 +01:00
|
|
|
|
2019-02-08 11:34:55 -06:00
|
|
|
|
2019-02-19 14:59:43 +01:00
|
|
|
|
|
|
|
|
|
2019-02-08 11:34:55 -06:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-02-08 11:34:55 -06:00
|
|
|
|
2009-03-16 18:27:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2006-06-23 02:02:58 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
2009-01-20 01:36:55 +08:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2013-09-12 22:00:15 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-01-17 12:36:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2016-01-15 02:44:21 -06:00
|
|
|
|
2020-09-18 16:45:50 -04:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-12 08:48:40 -05:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2011-10-10 01:08:05 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2008-02-02 22:37:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2008-10-15 12:29:03 +02:00
|
|
|
|
2023-01-18 13:27:07 +01:00
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2007-05-08 00:35:14 -07:00
|
|
|
|
2008-10-15 12:28:03 +02:00
|
|
|
|
2007-05-08 00:35:14 -07:00
|
|
|
|
2024-10-01 19:54:24 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2010-10-20 23:24:12 +02:00
|
|
|
|
2008-02-08 04:20:42 -08:00
|
|
|
|
2007-05-08 00:35:14 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-10-01 19:54:24 +08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:28 -08:00
|
|
|
|
2007-05-08 00:35:16 -07:00
|
|
|
|
2010-10-20 23:24:12 +02:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-19 01:47:43 -07:00
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2020-01-07 16:36:49 +01:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2020-01-07 16:36:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 16:36:49 +01:00
|
|
|
|
2008-02-08 04:20:36 -08:00
|
|
|
|
2020-01-07 16:36:49 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 16:36:49 +01:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2007-07-21 04:37:18 -07:00
|
|
|
|
2008-02-08 04:20:30 -08:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-06 21:53:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|