<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:48:53 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-12011] NULL pointer dereference in osc_io_init in sanity test 411</title>
                <link>https://jira.whamcloud.com/browse/LU-12011</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Seems to be the other failure mode to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11998&quot; title=&quot;ASSERTION( req-&amp;gt;rq_phase == expected_phase ) failed in sanity 411&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11998&quot;&gt;LU-11998&lt;/a&gt; because it only happens in sanity test 411.&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;[277274.440468] Lustre: DEBUG MARKER: == sanity test 411: Slab allocation error with cgroup does not LBUG ================================== 06:47:26 (1550922446)
[277279.569543] SLAB: Unable to allocate memory on node 0 (gfp=0x100050)
[277279.593403]   cache: kmalloc-512(0:osc_slab_alloc), object size: 4096, order: 0
[277279.595819]   node 0: slabs: 37/37, objs: 37/37, free: 0
[277315.514158] SLAB: Unable to allocate memory on node 0 (gfp=0x100050)
[277315.515355]   cache: kmalloc-512(0:osc_slab_alloc), object size: 4096, order: 0
[277315.551203]   node 0: slabs: 67/67, objs: 67/67, free: 0
[277315.581812] SLAB: Unable to allocate memory on node 0 (gfp=0x100050)
[277315.582961]   cache: kmalloc-512(0:osc_slab_alloc), object size: 4096, order: 0
[277315.585015]   node 0: slabs: 67/67, objs: 67/67, free: 0
[277315.607385] SLAB: Unable to allocate memory on node 0 (gfp=0x100050)
[277315.608453]   cache: kmalloc-512(0:osc_slab_alloc), object size: 4096, order: 0
[277315.610066]   node 0: slabs: 67/67, objs: 67/67, free: 0
[277315.641346] SLAB: Unable to allocate memory on node 0 (gfp=0x100050)
[277315.642642]   cache: kmalloc-512(0:osc_slab_alloc), object size: 4096, order: 0
[277315.645272]   node 0: slabs: 67/67, objs: 67/67, free: 0
[277321.431039] SLAB: Unable to allocate memory on node 0 (gfp=0x100050)
[277321.432413]   cache: osc_session_kmem(0:osc_slab_alloc), object size: 4096, order: 0
[277321.434844]   node 0: slabs: 1/1, objs: 1/1, free: 0
[277321.436257] BUG: unable to handle kernel NULL pointer dereference at 0000000000000024
[277321.438634] IP: [&amp;lt;ffffffffa036a566&amp;gt;] osc_io_init+0x16/0x140 [osc]
[277321.439944] PGD 1b3ea067 PUD 1b3e9067 PMD 0 
[277321.441187] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
[277321.442441] Modules linked in: dm_flakey dm_mod 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) 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) jbd2 mbcache crc_t10dif crct10dif_generic crct10dif_common virtio_balloon virtio_console pcspkr i2c_piix4 binfmt_misc ip_tables rpcsec_gss_krb5 ata_generic pata_acpi drm_kms_helper ttm drm drm_panel_orientation_quirks ata_piix i2c_core virtio_blk serio_raw libata floppy [last unloaded: obdecho]
[277321.456256] CPU: 0 PID: 10704 Comm: dd Kdump: loaded Tainted: P        W  OE  ------------   3.10.0-7.6-debug #2
[277321.458692] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[277321.459888] task: ffff880081692900 ti: ffff88001732c000 task.ti: ffff88001732c000
[277321.461944] RIP: 0010:[&amp;lt;ffffffffa036a566&amp;gt;]  [&amp;lt;ffffffffa036a566&amp;gt;] osc_io_init+0x16/0x140 [osc]
[277321.463943] RSP: 0018:ffff88001732fa30  EFLAGS: 00010286
[277321.465068] RAX: ffffffffa036a550 RBX: ffff88005e98ce60 RCX: ffff8800692e9348
[277321.466983] RDX: ffff8800723ece80 RSI: ffffffffa038eec0 RDI: fffffffffffffff4
[277321.468993] RBP: ffff88001732fa40 R08: 0000000000000001 R09: ffff8800254a69c8
[277321.470986] R10: ffff8800254a6000 R11: ffff8800254a69c0 R12: ffff88005e98ce60
[277321.472890] R13: fffffffffffffff4 R14: ffff8800723ece80 R15: ffff88009eea8e38
[277321.474888] FS:  00007fa780b3a740(0000) GS:ffff8800bc800000(0000) knlGS:0000000000000000
[277321.476915] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[277321.478684] CR2: 0000000000000024 CR3: 00000000a6b3c000 CR4: 00000000000006f0
[277321.480711] Call Trace:
[277321.481707]  [&amp;lt;ffffffffa0544468&amp;gt;] cl_io_init0.isra.15+0x88/0x160 [obdclass]
[277321.483127]  [&amp;lt;ffffffffa054457a&amp;gt;] cl_io_sub_init+0x3a/0x80 [obdclass]
[277321.484425]  [&amp;lt;ffffffffa048cc52&amp;gt;] lov_sub_get+0x2b2/0x7e0 [lov]
[277321.485664]  [&amp;lt;ffffffffa04a3321&amp;gt;] ? lov_stripe_intersects+0xa1/0x170 [lov]
[277321.487016]  [&amp;lt;ffffffffa048eb1b&amp;gt;] lov_io_iter_init+0x26b/0x950 [lov]
[277321.488314]  [&amp;lt;ffffffffa048f578&amp;gt;] lov_io_rw_iter_init+0x1a8/0x520 [lov]
[277321.489448]  [&amp;lt;ffffffffa054406c&amp;gt;] cl_io_iter_init+0x5c/0x120 [obdclass]
[277321.490537]  [&amp;lt;ffffffffa0546192&amp;gt;] cl_io_loop+0x42/0x1c0 [obdclass]
[277321.491626]  [&amp;lt;ffffffffa14adab0&amp;gt;] ll_file_io_generic+0x590/0xcb0 [lustre]
[277321.492880]  [&amp;lt;ffffffffa14af028&amp;gt;] ll_file_aio_read+0x2c8/0x3e0 [lustre]
[277321.494200]  [&amp;lt;ffffffffa14af1e4&amp;gt;] ll_file_read+0xa4/0x170 [lustre]
[277321.495481]  [&amp;lt;ffffffff8123612c&amp;gt;] vfs_read+0x9c/0x170
[277321.496696]  [&amp;lt;ffffffff81236fcf&amp;gt;] SyS_read+0x7f/0xf0
[277321.497935]  [&amp;lt;ffffffff817c4d61&amp;gt;] ? system_call_after_swapgs+0xae/0x146
[277321.499244]  [&amp;lt;ffffffff817c4e15&amp;gt;] system_call_fastpath+0x1c/0x21
[277321.500512]  [&amp;lt;ffffffff817c4d61&amp;gt;] ? system_call_after_swapgs+0xae/0x146
&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;0x1b596 is in osc_io_init (/home/green/git/lustre-release/lustre/include/lustre_osc.h:747).
742	
743	static inline struct osc_session *osc_env_session(const struct lu_env *env)
744	{
745		struct osc_session *ses;
746	
747		ses = lu_context_key_get(env-&amp;gt;le_ses, &amp;amp;osc_session_key);
748		LASSERT(ses != NULL);
749		return ses;
750	}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So it sounds like env is NULL, but I don&apos;t readily see how it could be NULL there.&lt;br/&gt;
Also le_ses is at 0x30 in my tree it looks like, not 0x24... though... 0x30-0x24 = 12, so if we assume env is -12 (ENOMEM)...&lt;/p&gt;

&lt;p&gt;the check in ll_file_read_iter seem to be all correct, so unless it was substituted somewhere along the path, it&apos;s a bit of a mystery.&lt;/p&gt;

&lt;p&gt;This this today, so it&apos;s definitely an ongoing issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="54982">LU-12011</key>
            <summary>NULL pointer dereference in osc_io_init in sanity test 411</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Feb 2019 07:06:03 +0000</created>
                <updated>Sun, 11 Jul 2021 15:47:40 +0000</updated>
                            <resolved>Sat, 10 Jul 2021 18:24:03 +0000</resolved>
                                    <version>Lustre 2.13.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="55956">LU-12436</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|i00c8n:</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>