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: <CB87EF37-0485-4A48-B401-EA594BE47B29@paradoxo.org>
Date:	Tue, 19 Oct 2010 16:23:48 +0100
From:	Felipe Franciosi <felipe@...adoxo.org>
To:	linux-ext4@...r.kernel.org
Subject: Committing changes to an ext3_inode structure

Dear all,

I am experimenting on a 2.6.20.3-ubuntu1 kernel to prototype and  
evaluate different methods for migrating datablocks for a given inode  
on the fly.

I have created an ioctl call that implements some verifications and  
invokes a function I wrote in balloc.c for such migration.

Upon receiving a struct inode*, I retrieve the corresponding iloc  
using the ext3_get_inode_iloc() function and then the struct  
ext3_inode* using the ext3_raw_inode() on the iloc. I have confirmed  
the pointer is correct by printing several ext3_inode relevant fields.

After making my modifications to the i_block array, I am finding it  
impossible to commit these changes to the inode itself.

I have tried different things such as marking the iloc.bh buffer_head  
as dirty and submitting it for writing, marking the page as dirty,  
etc, but I think I'm missing something more fundamental. Most of my  
attempts were planned according to what I've seen inside similar code  
of buffer_head manipulation.

Can anyone shed some light on what I'm missing?

Regards,
Felipe
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ