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>] [day] [month] [year] [list]
Message-ID: <CALsPMBOcr_3t9xLDX_i0ttP4Mbb+-rTdeUP4jSD-mYgXqok7QQ@mail.gmail.com>
Date:   Fri, 1 Jun 2018 08:33:16 +0300
From:   Roman Storozhenko <romeusmeister@...il.com>
To:     Vinayak Holikatti <vinholikatti@...il.com>,
        Santosh Y <santoshsy@...il.com>,
        "James E.J. Bottomley" <JBottomley@...allels.com>,
        linux-kernel@...r.kernel.org
Subject: How to obtain file's inode in ufshcd driver

Hello everybody.

I am modifying ufshcd driver:
https://elixir.bootlin.com/linux/v3.8/source/drivers/scsi/ufs/ufshcd.c

I do a read of a file on ext4 filesystem and want to obtain the file's
inode. But it seems that there are no structures contatin any
references to inode at this level of abstraction.
I looked into scsi_cmd structure and all the structures it references
to. Also I used ftrace to find on which level of abstraction inode
disappear but without any luck. Could you please say to me where I
could find the lowest level where inode is still present and the best
way how to pass it throughout linux io stack to the ufshcd driver?
Frankly speaking I need not struct inode as a whole but just its
number, so using reserved or unused fields of existing structures is
appropriate.

-- 
Kind regards,
Roman

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ