<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:37:59 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-10763] Use after free in lmv_striped_read_page</title>
                <link>https://jira.whamcloud.com/browse/LU-10763</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;After issues reported in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10762&quot; title=&quot;sanity test 300k transaction accounting problem&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10762&quot;&gt;LU-10762&lt;/a&gt; winding down sanity test leads to the following crash:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[13407.392152] Lustre: DEBUG MARKER: == sanity test complete, duration 13357 sec ========================================================== 18:41:43 (1520206903)
[13415.646714] LustreError: 1942:0:(namei.c:87:ll_set_inode()) Can not initialize inode [0x280002b10:0x5:0x0] without object type: valid = 0x100000001
[13415.648323] LustreError: 1942:0:(llite_lib.c:2355:ll_prep_inode()) new_inode -fatal: rc -12
[13416.174418] LustreError: 1966:0:(namei.c:87:ll_set_inode()) Can not initialize inode [0x280002b10:0x10:0x0] without object type: valid = 0x100000001
[13416.182023] LustreError: 1966:0:(namei.c:87:ll_set_inode()) Skipped 2 previous similar messages
[13416.183013] LustreError: 1966:0:(llite_lib.c:2355:ll_prep_inode()) new_inode -fatal: rc -12
[13416.184665] LustreError: 1966:0:(llite_lib.c:2355:ll_prep_inode()) Skipped 2 previous similar messages
[13417.245051] LustreError: 2011:0:(namei.c:87:ll_set_inode()) Can not initialize inode [0x280002b10:0x26:0x0] without object type: valid = 0x100000001
[13417.257155] LustreError: 2011:0:(namei.c:87:ll_set_inode()) Skipped 6 previous similar messages
[13417.258625] LustreError: 2011:0:(llite_lib.c:2355:ll_prep_inode()) new_inode -fatal: rc -12
[13417.259615] LustreError: 2011:0:(llite_lib.c:2355:ll_prep_inode()) Skipped 6 previous similar messages
[13430.306910] LustreError: 2312:0:(namei.c:87:ll_set_inode()) Can not initialize inode [0x200000403:0x25:0x0] without object type: valid = 0x100000001
[13430.317961] LustreError: 2312:0:(llite_lib.c:2355:ll_prep_inode()) new_inode -fatal: rc -12
[13430.954786] BUG: unable to handle kernel paging request at ffff8800b4f19fe0
[13430.963030] IP: [&amp;lt;ffffffffa02d5fee&amp;gt;] lmv_striped_read_page.isra.30+0x33b/0x5f9 [lmv]
[13430.964636] PGD 2e75067 PUD 33fa01067 PMD 33f859067 PTE 80000000b4f19060
[13430.965335] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
[13430.966026] Modules linked in: lustre(OE) ofd(OE) osp(OE) lod(OE) ost(OE) mdt(OE) mdd(OE) mgs(OE) osd_ldiskfs(OE) ldiskfs(OE) lquota(OE) lfsck(OE) obdecho(OE) mgc(OE) lov(OE) mdc(OE) osc(OE) lmv(OE) fid(OE) fld(OE) ptlrpc_gss(OE) ptlrpc(OE) obdclass(OE) ksocklnd(OE) lnet(OE) libcfs(OE) brd ext4 loop zfs(PO) zunicode(PO) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) zlib_deflate mbcache jbd2 syscopyarea sysfillrect sysimgblt ata_generic ttm pata_acpi drm_kms_helper drm i2c_piix4 ata_piix virtio_balloon pcspkr serio_raw virtio_blk i2c_core virtio_console libata floppy nfsd ip_tables rpcsec_gss_krb5 [last unloaded: libcfs]
[13430.971838] CPU: 11 PID: 2316 Comm: ll_sa_1811 Tainted: P        W  OE  ------------   3.10.0-debug #2
[13430.973531] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[13430.974112] task: ffff8802de2947c0 ti: ffff880284680000 task.ti: ffff880284680000
[13430.975001] RIP: 0010:[&amp;lt;ffffffffa02d5fee&amp;gt;]  [&amp;lt;ffffffffa02d5fee&amp;gt;] lmv_striped_read_page.isra.30+0x33b/0x5f9 [lmv]
[13430.975946] RSP: 0018:ffff880284683bf0  EFLAGS: 00010282
[13430.976415] RAX: ffff88027197c018 RBX: ffff8800899f2fd0 RCX: 0000000000000073
[13430.977028] RDX: 0000000000000003 RSI: ffffffffa02d7c65 RDI: 0000000000000001
[13430.978421] RBP: ffff880284683c60 R08: 000000000000002e R09: 0000000280000403
[13430.979076] R10: 0000000000000000 R11: 0000000000000025 R12: 0000000000000001
[13430.979630] R13: ffff8802cf4adfc8 R14: ffff8800b4f19fd0 R15: ffff8802cf4adf80
[13430.980111] FS:  0000000000000000(0000) GS:ffff88033e560000(0000) knlGS:0000000000000000
[13430.981017] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[13430.982254] CR2: ffff8800b4f19fe0 CR3: 0000000297ddd000 CR4: 00000000000006e0
[13430.982933] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[13430.983621] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[13430.984306] Stack:
[13430.992434]  ffff880284683cd0 ffff8800899f2018 ffffea0002267c80 ffff8800899f2000
[13430.993756]  0000000000000068 ffff8801bba89e00 00088802a5468000 ffff8800899f2fa0
[13430.995084]  0000000000000030 ffff8801bba89e00 ffff880284683cc8 2f9bc3b7c9eb6d8e
[13430.996367] Call Trace:
[13430.996967]  [&amp;lt;ffffffffa02bfbbb&amp;gt;] lmv_read_page+0x32b/0x3a0 [lmv]
[13430.997958]  [&amp;lt;ffffffffa16543d8&amp;gt;] ll_get_dir_page+0xc8/0x2d0 [lustre]
[13430.998730]  [&amp;lt;ffffffffa1690cf0&amp;gt;] ? ll_dom_lock_cancel+0x390/0x390 [lustre]
[13430.999463]  [&amp;lt;ffffffffa16a7cb3&amp;gt;] ll_statahead_thread+0x293/0x11d0 [lustre]
[13431.000167]  [&amp;lt;ffffffff810af8e4&amp;gt;] ? finish_task_switch+0x44/0x180
[13431.000858]  [&amp;lt;ffffffff810b7cc0&amp;gt;] ? wake_up_state+0x20/0x20
[13431.001621]  [&amp;lt;ffffffffa16a7a20&amp;gt;] ? ll_agl_thread+0x4d0/0x4d0 [lustre]
[13431.002317]  [&amp;lt;ffffffff810a2eba&amp;gt;] kthread+0xea/0xf0
[13431.002951]  [&amp;lt;ffffffff810a2dd0&amp;gt;] ? kthread_create_on_node+0x140/0x140
[13431.003637]  [&amp;lt;ffffffff8170fb98&amp;gt;] ret_from_fork+0x58/0x90
[13431.004443]  [&amp;lt;ffffffff810a2dd0&amp;gt;] ? kthread_create_on_node+0x140/0x140
[13431.005131] Code: ff ff ff e9 8b 01 00 00 49 63 c4 44 89 e2 4c 89 ff 48 ff c0 48 c1 e0 05 49 8d 74 07 08 4c 8b 76 10 e8 55 f5 ff ff 4d 85 f6 74 cd &amp;lt;49&amp;gt; 8b 46 10 49 89 47 18 45 8b 6e 18 66 45 85 ed 75 24 41 0f b7 
[13431.007816] RIP  [&amp;lt;ffffffffa02d5fee&amp;gt;] lmv_striped_read_page.isra.30+0x33b/0x5f9 [lmv]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I have several samples of this.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(gdb) l *(lmv_striped_read_page+0x33b)
0xb64 is in lmv_striped_read_page (/home/green/git/lustre-release/lustre/lmv/lmv_obd.c:2360).
2355			&lt;span class=&quot;code-comment&quot;&gt;/* end of directory */&lt;/span&gt;
2356			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!next) {
2357				ctxt-&amp;gt;ldc_hash = MDS_DIR_END_OFF;
2358				&lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
2359			}
2360			ctxt-&amp;gt;ldc_hash = le64_to_cpu(next-&amp;gt;lde_hash);
2361	
2362			ent_size = le16_to_cpu(next-&amp;gt;lde_reclen);
2363	
2364			/* the last entry lde_reclen is 0, but it might not be the last
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So it appears that we are getting a bad &apos;next&apos; pointer from the list here.&lt;/p&gt;</description>
                <environment></environment>
        <key id="51096">LU-10763</key>
            <summary>Use after free in lmv_striped_read_page</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                            <label>dne2</label>
                            <label>statahead</label>
                    </labels>
                <created>Mon, 5 Mar 2018 00:19:27 +0000</created>
                <updated>Mon, 5 Mar 2018 00:23:26 +0000</updated>
                                            <version>Lustre 2.11.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzztqn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>