<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:40:20 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-11031] use after free in lmv_revalidate_slaves</title>
                <link>https://jira.whamcloud.com/browse/LU-11031</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&#160;Hit this for the very first time in master-next today running racer, but it does not have anything changing in lmv, so I think it&apos;s something from some earlier landings:&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;[ 1195.412560] BUG: unable to handle kernel paging request at ffff88007c5c5f84
[ 1195.413545] IP: [&amp;lt;ffffffffa0798a4c&amp;gt;] lmv_revalidate_slaves+0x41c/0xbc0 [lmv]
[ 1195.414528] PGD 2e75067 PUD 33fc02067 PMD 33fa1f067 PTE 800000007c5c5060
[ 1195.415055] LustreError: 24078:0:(llite_nfs.c:336:ll_dir_get_parent_fid()) lustre: failure inode [0x240000403:0x2da:0x0] get parent: rc = -116
[ 1195.415550] LustreError: 24082:0:(llite_nfs.c:336:ll_dir_get_parent_fid()) lustre: failure inode [0x240000403:0x2da:0x0] get parent: rc = -116
[ 1195.424874] LustreError: 24077:0:(llite_nfs.c:336:ll_dir_get_parent_fid()) lustre: failure inode [0x240000403:0x2da:0x0] get parent: rc = -116
[ 1195.431432] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
[ 1195.437139] LustreError: 24074:0:(llite_nfs.c:336:ll_dir_get_parent_fid()) lustre: failure inode [0x240000403:0x2da:0x0] get parent: rc = -116
[ 1195.432131] Modules linked in: lustre(OE) ofd(OE) osp(OE) lod(OE) ost(OE) mdt(OE) mdd(OE) mgs(OE) osd_zfs(OE) zfs(PO) zunicode(PO) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) zlib_deflate lquota(OE) lfsck(OE) jbd2 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) syscopyarea sysfillrect sysimgblt ttm drm_kms_helper ata_generic pata_acpi drm ata_piix i2c_piix4 virtio_blk libata i2c_core virtio_balloon pcspkr virtio_console floppy serio_raw nfsd ip_tables rpcsec_gss_krb5
[ 1195.439887] CPU: 7 PID: 24080 Comm: ls Tainted: P           OE  ------------   3.10.0-debug #2
[ 1195.444117] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[ 1195.444922] task: ffff8802a0a166c0 ti: ffff8802fd98c000 task.ti: ffff8802fd98c000
[ 1195.446732] RIP: 0010:[&amp;lt;ffffffffa0798a4c&amp;gt;]  [&amp;lt;ffffffffa0798a4c&amp;gt;] lmv_revalidate_slaves+0x41c/0xbc0 [lmv]
[ 1195.448405] RSP: 0018:ffff8802fd98f810  EFLAGS: 00010202
[ 1195.449215] RAX: 0000000000000001 RBX: ffff8802cfff6828 RCX: ffff8802a0a16f90
[ 1195.450105] RDX: 000000000000001a RSI: 0000000000000000 RDI: ffff880260574d00
[ 1195.450812] RBP: ffff8802fd98f8d8 R08: 0000000000000001 R09: 0000000000000000
[ 1195.451505] R10: 0000000000000000 R11: ffff8802a0a16fe8 R12: ffff8802560d5e00
[ 1195.452186] R13: ffff88028c01b800 R14: ffff88007c5c5f80 R15: 0000000000000000
[ 1195.452945] FS:  00007f479c0ed800(0000) GS:ffff88033e4e0000(0000) knlGS:0000000000000000
[ 1195.454182] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1195.458436] CR2: ffff88007c5c5f84 CR3: 0000000266ae5000 CR4: 00000000000006e0
[ 1195.459184] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1195.459886] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 1195.460819] Stack:
[ 1195.461413]  0000000000000000 ffffffffa14a1e00 ffff8802fd98f878 0000000000000000
[ 1195.462678]  ffff88008c290dc0 ffff880298d9ba00 0000000131800ec0 ffff880088885c00
[ 1195.463954]  0000000240000403 00000000000002da 0000000000000008 0000000000000000
[ 1195.465289] Call Trace:
[ 1195.466308]  [&amp;lt;ffffffffa14a1e00&amp;gt;] ? ll_md_need_convert+0x160/0x160 [lustre]
[ 1195.467468]  [&amp;lt;ffffffffa0785104&amp;gt;] lmv_merge_attr+0x24/0x190 [lmv]
[ 1195.468866]  [&amp;lt;ffffffffa035a3b9&amp;gt;] ? lprocfs_counter_add+0xf9/0x160 [obdclass]
[ 1195.469613]  [&amp;lt;ffffffffa14924d0&amp;gt;] ll_update_lsm_md+0xd10/0x1210 [lustre]
[ 1195.470353]  [&amp;lt;ffffffff811cd4f9&amp;gt;] ? __kmalloc+0x649/0x660
[ 1195.471015]  [&amp;lt;ffffffffa079ace0&amp;gt;] ? lmv_fld_lookup+0x180/0x400 [lmv]
[ 1195.471768]  [&amp;lt;ffffffffa1492d1b&amp;gt;] ll_update_inode+0x34b/0x630 [lustre]
[ 1195.472536]  [&amp;lt;ffffffffa078683d&amp;gt;] ? lmv_get_lustre_md+0x7d/0x280 [lmv]
[ 1195.473215]  [&amp;lt;ffffffffa1494e11&amp;gt;] ll_prep_inode+0x121/0xb70 [lustre]
[ 1195.473918]  [&amp;lt;ffffffffa148d2a5&amp;gt;] ? ll_finish_md_op_data+0x55/0xd0 [lustre]
[ 1195.474633]  [&amp;lt;ffffffffa147961b&amp;gt;] ll_intent_file_open+0x71b/0x800 [lustre]
[ 1195.475340]  [&amp;lt;ffffffffa1479935&amp;gt;] ll_file_open+0x235/0xb30 [lustre]
[ 1195.476017]  [&amp;lt;ffffffffa146207f&amp;gt;] ll_dir_open+0x2f/0xd0 [lustre]
[ 1195.476755]  [&amp;lt;ffffffff811eadcf&amp;gt;] do_dentry_open+0x1af/0x330
[ 1195.477431]  [&amp;lt;ffffffffa1462050&amp;gt;] ? ll_dir_release+0xd0/0xd0 [lustre]
[ 1195.478103]  [&amp;lt;ffffffff811eb049&amp;gt;] vfs_open+0x39/0x70
[ 1195.478762]  [&amp;lt;ffffffff811fcd1d&amp;gt;] do_last+0x1ed/0x12b0
[ 1195.479478]  [&amp;lt;ffffffff811fdea2&amp;gt;] path_openat+0xc2/0x4a0
[ 1195.480186]  [&amp;lt;ffffffff811ff69b&amp;gt;] do_filp_open+0x4b/0xb0
[ 1195.480930]  [&amp;lt;ffffffff817063d7&amp;gt;] ? _raw_spin_unlock+0x27/0x40
[ 1195.481626]  [&amp;lt;ffffffff8120d137&amp;gt;] ? __alloc_fd+0xa7/0x130
[ 1195.482287]  [&amp;lt;ffffffff811ec553&amp;gt;] do_sys_open+0xf3/0x1f0
[ 1195.482961]  [&amp;lt;ffffffff811ec684&amp;gt;] SyS_openat+0x14/0x20
[ 1195.483827]  [&amp;lt;ffffffff8170fc49&amp;gt;] system_call_fastpath+0x16/0x1b
[ 1195.500671] Code: 8b 41 18 48 89 da 31 c9 48 8b 74 24 10 4c 89 ef ff 90 c8 00 00 00 8b 74 24 78 85 f6 0f 85 dd 00 00 00 83 44 24 34 01 8b 44 24 34 &amp;lt;41&amp;gt; 3b 46 04 0f 82 ca fc ff ff 48 8b 7c 24 38 48 85 ff 74 05 e8 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;(gdb) l *(lmv_revalidate_slaves+0x41c)
0x13a4c is in lmv_revalidate_slaves (/home/green/git/lustre-release/lustre/lmv/lmv_intent.c:177).
172	
173		/**
174		 * Loop over the stripe information, check validity and update them
175		 * from MDS if needed.
176		 */
177		for (i = 0; i &amp;lt; lsm-&amp;gt;lsm_md_stripe_count; i++) {
178			struct lu_fid		fid;
179			struct lookup_intent	it = { .it_op = IT_GETATTR };
180			struct lustre_handle	*lockh = NULL;
181			struct lmv_tgt_desc	*tgt = NULL;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It looks like lsm is freed or otherwise invalid. at this point&lt;/p&gt;</description>
                <environment></environment>
        <key id="52282">LU-11031</key>
            <summary>use after free in lmv_revalidate_slaves</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>
                    </labels>
                <created>Fri, 18 May 2018 01:27:12 +0000</created>
                <updated>Fri, 18 May 2018 01:50:46 +0000</updated>
                                            <version>Lustre 2.12.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|hzzxdj:</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>