<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:32:30 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-17085] llite: pin_user_pages on unaligned DIO/AIO</title>
                <link>https://jira.whamcloud.com/browse/LU-17085</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;If user_backed_iter() is true use copy_from_user / copy_to_user to modify the associated struct iovec attached to the iov_iter.&lt;/p&gt;</description>
                <environment></environment>
        <key id="77744">LU-17085</key>
            <summary>llite: pin_user_pages on unaligned DIO/AIO</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="stancheff">Shaun Tancheff</assignee>
                                    <reporter username="stancheff">Shaun Tancheff</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Sep 2023 18:03:42 +0000</created>
                <updated>Fri, 9 Feb 2024 05:06:59 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="384743" author="gerrit" created="Mon, 4 Sep 2023 18:24:17 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52266&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52266&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17085&quot; title=&quot;llite: pin_user_pages on unaligned DIO/AIO&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17085&quot;&gt;LU-17085&lt;/a&gt; llite: Use copy_from_user if user_backed_iter&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ccaaaf5323856ec8969075427a91bc45be0aeeda&lt;/p&gt;</comment>
                            <comment id="395809" author="stancheff" created="Thu, 7 Dec 2023 07:29:15 +0000"  >&lt;p&gt;Linux kernel 6.6.1 without this patch crashes on sanity/119e:&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;====================================================== 14:17:54 \(1701933474\)
[ 1342.270948] Lustre: DEBUG MARKER: == sanity test 119e: Basic tests of dio read and write at various sizes ========================================================== 14:17:54 (1701933474)
[ 1342.521229] BUG: unable to handle page fault for address: 00005602d6898008
[ 1342.521535] #PF: supervisor read access in kernel mode
[ 1342.521812] #PF: error_code(0x0000) - not-present page
[ 1342.522108] PGD 8000000338f23067 P4D 8000000338f23067 PUD 2ff105067 PMD 106016067 PTE 0
[ 1342.522403] Oops: 0000 [#1] PREEMPT SMP PTI
[ 1342.522666] CPU: 3 PID: 10225 Comm: dd Kdump: loaded Tainted: G           OE      6.6.1-1.ldiskfs.el9.x86_64 #1
[ 1342.522959] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014
[ 1342.523241] RIP: 0010:cl_sub_dio_alloc+0x169/0x330 [obdclass]
[ 1342.523571] Code: 00 00 31 f6 e8 28 67 fc ff 49 8b 8f 88 00 00 00 f6 05 e2 a7 d5 ff 10 0f 85 8d 00 00 00 48 85 c9 0f 84 ac 01 00 00 49 8b 45 10 &amp;lt;48&amp;gt; 8b 50 08 48 8b 00 48 89 51 08 48 89 01 48 83 c4 08 4c 89 f8 5b
[ 1342.524147] RSP: 0018:ffffa7fd4068bb00 EFLAGS: 00010282
[ 1342.524436] RAX: 00005602d6898000 RBX: 0000000000000004 RCX: ffff9c4648ab2780
[ 1342.524726] RDX: 0000000000000000 RSI: ffffffffc1303120 RDI: 00000000ffffffff
[ 1342.525030] RBP: ffffa7fd4068bb30 R08: 645f6275735f6c63 R09: 636f6c6c615f6f69
[ 1342.525326] R10: ffffa7fd4068bb00 R11: 636f6c6c615f6f69 R12: ffff9c48963c6540
[ 1342.525619] R13: ffffa7fd4068bc40 R14: 0000000000000001 R15: ffff9c487943a690
[ 1342.525932] FS:  00007f8472e42740(0000) GS:ffff9c49afd80000(0000) knlGS:0000000000000000
[ 1342.526253] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1342.526552] CR2: 00005602d6898008 CR3: 0000000102366001 CR4: 0000000000370ee0
[ 1342.526863] Call Trace:
[ 1342.527158]  &amp;lt;TASK&amp;gt;
[ 1342.527447]  ? __die+0x20/0x70
[ 1342.527731]  ? page_fault_oops+0x82/0x160
[ 1342.528059]  ? do_user_addr_fault+0x65/0x690
[ 1342.528364]  ? exc_page_fault+0x6a/0x150
[ 1342.528641]  ? asm_exc_page_fault+0x22/0x30
[ 1342.528910]  ? cl_sub_dio_alloc+0x169/0x330 [obdclass]
[ 1342.529261]  ll_direct_IO_impl+0x321/0xc50 [lustre]
[ 1342.529559]  generic_file_read_iter+0x81/0x120
[ 1342.529841]  vvp_io_read_start+0x68a/0x830 [lustre]
[ 1342.530137]  cl_io_start+0x5a/0x120 [obdclass]
[ 1342.530449]  cl_io_loop+0x95/0x1e0 [obdclass]
[ 1342.530770]  ll_file_io_generic+0x4f4/0xee0 [lustre]
[ 1342.531055]  ll_file_read_iter+0x5a1/0x8d0 [lustre]
[ 1342.531349]  vfs_read+0x1c0/0x300
[ 1342.531621]  ksys_read+0x5f/0xe0
[ 1342.531902]  do_syscall_64+0x38/0x90
[ 1342.532197]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[ 1342.532460] RIP: 0033:0x7f8472d3e882
[ 1342.532713] Code: c0 e9 b2 fe ff ff 50 48 8d 3d 1a 0f 08 00 e8 35 eb 01 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 &amp;lt;48&amp;gt; 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 ec 28 48 89 54 24
[ 1342.533230] RSP: 002b:00007ffc4d695f18 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[ 1342.533492] RAX: ffffffffffffffda RBX: 0000000000000fff RCX: 00007f8472d3e882
[ 1342.533755] RDX: 0000000000000fff RSI: 00005602d6898000 RDI: 0000000000000000
[ 1342.534014] RBP: 00005602d6898000 R08: 00005602d6898000 R09: 0000000000000000
[ 1342.534267] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000004
[ 1342.534514] R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffc4d697d05
[ 1342.534771]  &amp;lt;/TASK&amp;gt;
[ 1342.535008] Modules linked in: lustre(OE) obdecho(OE) mgc(OE) mdc(OE) lov(OE) osc(OE) lmv(OE) fid(OE) fld(OE) ptlrpc_gss(OE) ptlrpc(OE) obdclass(OE) ksocklnd(OE) lnet(OE) sunrpc(E) libcfs(OE) rfkill(E) intel_rapl_msr(E) intel_rapl_common(E) intel_pmc_core(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_intel(E) snd_intel_dspcfg(E) snd_hda_codec(E) kvm_intel(E) snd_hda_core(E) snd_hwdep(E) snd_seq(E) snd_seq_device(E) kvm(E) iTCO_wdt(E) snd_pcm(E) intel_pmc_bxt(E) iTCO_vendor_support(E) irqbypass(E) qxl(E) rapl(E) drm_ttm_helper(E) snd_timer(E) ttm(E) i2c_i801(E) i2c_smbus(E) pcspkr(E) snd(E) drm_kms_helper(E) lpc_ich(E) soundcore(E) virtio_balloon(E) joydev(E) drm(E) fuse(E) ext4(E) mbcache(E) jbd2(E) sr_mod(E) cdrom(E) sg(E) ahci(E) libahci(E) crct10dif_pclmul(E) crc32_pclmul(E) crc32c_intel(E) polyval_clmulni(E) polyval_generic(E) virtio_console(E) libata(E) ghash_clmulni_intel(E) virtio_net(E) virtio_blk(E) net_failover(E) failover(E) serio_raw(E)
[ 1342.537190] CR2: 00005602d6898008
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Due to the memcpy in cl_sub_dio_alloc:&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;struct cl_sub_dio *cl_sub_dio_alloc(struct cl_dio_aio *ll_aio,
				    struct iov_iter *iter, bool write,
				    bool unaligned, bool sync)
...
		if (unaligned) {
...
			memcpy((void *) sdio-&amp;gt;csd_iter.__iov, iter-&amp;gt;__iov,
			       sizeof(struct iovec));
		}
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="401761" author="gerrit" created="Tue, 30 Jan 2024 05:36:07 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53857&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53857&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17085&quot; title=&quot;llite: pin_user_pages on unaligned DIO/AIO&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17085&quot;&gt;LU-17085&lt;/a&gt; test: dup_iter aarch64 writev&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 49274c94307330ec3252aba42ac1b268e5657497&lt;/p&gt;</comment>
                            <comment id="403343" author="gerrit" created="Fri, 9 Feb 2024 05:06:59 +0000"  >&lt;p&gt;&quot;Shaun Tancheff &amp;lt;shaun.tancheff@hpe.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53984&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53984&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17085&quot; title=&quot;llite: pin_user_pages on unaligned DIO/AIO&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17085&quot;&gt;LU-17085&lt;/a&gt; test: dup_iter aarch64 writev&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3a7b6117db20c6cf7696c3e158989bbc836bfd64&lt;/p&gt;</comment>
                    </comments>
                    <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|i03umf:</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>