Commit de2b5116 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://linux-ntfs.bkbits.net/ntfs-2.6

into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents 31d881c7 1636a64e
...@@ -25,6 +25,13 @@ ToDo/Notes: ...@@ -25,6 +25,13 @@ ToDo/Notes:
- Enable the code for setting the NT4 compatibility flag when we start - Enable the code for setting the NT4 compatibility flag when we start
making NTFS 1.2 specific modifications. making NTFS 1.2 specific modifications.
2.1.23-WIP
- Add printk rate limiting for ntfs_warning() and ntfs_error() when
compiled without debug. This avoids a possible denial of service
attack. Thanks to Carl-Daniel Hailfinger from SuSE for pointing this
out.
2.1.22 - Many bug and race fixes and error handling improvements. 2.1.22 - Many bug and race fixes and error handling improvements.
- Improve error handling in fs/ntfs/inode.c::ntfs_truncate(). - Improve error handling in fs/ntfs/inode.c::ntfs_truncate().
......
...@@ -53,6 +53,10 @@ void __ntfs_warning(const char *function, const struct super_block *sb, ...@@ -53,6 +53,10 @@ void __ntfs_warning(const char *function, const struct super_block *sb,
va_list args; va_list args;
int flen = 0; int flen = 0;
#ifndef DEBUG
if (!printk_ratelimit())
return;
#endif
if (function) if (function)
flen = strlen(function); flen = strlen(function);
spin_lock(&err_buf_lock); spin_lock(&err_buf_lock);
...@@ -93,6 +97,10 @@ void __ntfs_error(const char *function, const struct super_block *sb, ...@@ -93,6 +97,10 @@ void __ntfs_error(const char *function, const struct super_block *sb,
va_list args; va_list args;
int flen = 0; int flen = 0;
#ifndef DEBUG
if (!printk_ratelimit())
return;
#endif
if (function) if (function)
flen = strlen(function); flen = strlen(function);
spin_lock(&err_buf_lock); spin_lock(&err_buf_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment