lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <ea11fea30903301941p3a5a71c2l816df9a3d8341183@mail.gmail.com>
Date:	Tue, 31 Mar 2009 08:11:00 +0530
From:	Manish Katiyar <mkatiyar@...il.com>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	trivial@...nel.org, Andreas Dilger <adilger@....com>,
	mkatiyar@...il.com, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] : Add dev-id and inode number for debugging in 
	init_special_inode in fs/inode.c

On Tue, Mar 31, 2009 at 5:03 AM, Andrew Morton
<akpm@...ux-foundation.org> wrote:
> On Mon, 23 Mar 2009 08:46:12 +0530
> Manish Katiyar <mkatiyar@...il.com> wrote:
>
>> Hi Andrew,
>>
>> Below patch adds device-id and inode number for better debugging.
>>
>> Signed-off-by: Manish Katiyar <mkatiyar@...il.com>
>> ---
>>  fs/inode.c |    5 +++--
>>  1 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/fs/inode.c b/fs/inode.c
>> index 913ab2d..f75e9a4 100644
>> --- a/fs/inode.c
>> +++ b/fs/inode.c
>> @@ -1540,7 +1540,8 @@ void init_special_inode(struct inode *inode,
>> umode_t mode, dev_t rdev)
>>       else if (S_ISSOCK(mode))
>>               inode->i_fop = &bad_sock_fops;
>>       else
>> -             printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n",
>> -                    mode);
>> +             printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o) for"
>> +                               " inode %s:%lu\n", mode, inode->i_sb->s_id,
>> +                               inode->i_ino);
>>  }
>>  EXPORT_SYMBOL(init_special_inode);
>
> I don't think this is really a trivial patch.  Please cc linux-kernel
> unless the patch is really really trivail.
>
> The changelog falied to give any reason for making this change.  It
> should have done so!  I cannot work out the rationale from looking at
> the code change.

Hi Andrew,
[resending it with updated changelog and ccing linux-kernel]

Below patch adds device-id and inode number for better debugging. This
was suggested by Andreas in one of the threads
http://article.gmane.org/gmane.comp.file-systems.ext4/12062 .

Signed-off-by: Manish Katiyar <mkatiyar@...il.com>
---
 fs/inode.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/fs/inode.c b/fs/inode.c
index 913ab2d..f75e9a4 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1540,7 +1540,8 @@ void init_special_inode(struct inode *inode,
umode_t mode, dev_t rdev)
 	else if (S_ISSOCK(mode))
 		inode->i_fop = &bad_sock_fops;
 	else
-		printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n",
-		       mode);
+		printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o) for"
+				  " inode %s:%lu\n", mode, inode->i_sb->s_id,
+				  inode->i_ino);
 }
 EXPORT_SYMBOL(init_special_inode);
-- 
1.5.4.3



PS: I have also attached the patch, in case it gets word wrapped.

Thanks -
Manish

>
>
>
>

View attachment "0001-Add-dev-id-and-inode-number-for-debugging-in-init_sp.patch" of type "text/x-diff" (898 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ