<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>42006</bug_id>
          
          <creation_ts>2022-02-21 01:42:54 +0300</creation_ts>
          <short_desc>Ошибка чтения EIO на NFS 4.2 из-за поддержки READ_PLUS</short_desc>
          <delta_ts>2022-03-25 18:30:33 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>kernel-image-std-def</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Vitaly Chikunov">vt</assigned_to>
          <cc>kernelbot</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>208042</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2022-02-21 01:42:54 +0300</bug_when>
    <thetext>Наткнулся на то, что на ядрах 5.10 при чтении больших (более 1Гб) файлов возникают ошибки чтения

lseek(3, 1360307200, SEEK_SET)          = 1360307200
read(3, 0x559cb8606000, 2048)           = -1 EIO (Input/output error)


Нагуглил, что это похоже на проблему с поддержкой READ_PLUS:

Hmm... If this is NFSv4.2 do you have READ_PLUS turned on or off in
.config? It really is not safe to enable READ_PLUS on 5.10 kernels
since that can cause random memory corruption.

OK, I compiled a kernel without support for READ_PLUS
and the test program magically succeeds.
https://www.spinics.net/lists/kernel/msg3789855.html

NFS Client With Linux 5.10 Adds &quot;READ_PLUS&quot; For Faster Performance
https://www.phoronix.com/scan.php?page=news_item&amp;px=NFS-READ_PLUS-Linux-5.10

[1/3] NFS: Disable READ_PLUS by default
https://www.spinics.net/lists/linux-nfs/msg81213.html
https://patchwork.kernel.org/project/linux-nfs/patch/20201203201841.103294-2-Anna.Schumaker@Netapp.com/


Например, на Fedora добавили патч, отключающий READ_PLUS, и проблемы там нет.

[root@fedora64 boot]# grep READ_PLUS config-*
config-5.13.10-200.fc34.x86_64:# CONFIG_NFS_V4_2_READ_PLUS is not set
config-5.15.6-100.fc34.x86_64:# CONFIG_NFS_V4_2_READ_PLUS is not set</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208048</commentid>
    <comment_count>1</comment_count>
    <who name="Anton V. Boyarshinov">boyarsh</who>
    <bug_when>2022-02-21 10:57:39 +0300</bug_when>
    <thetext>А на 5.15 проблема проявляется? Чтоб понимать -- везде ли отключать или только на 5.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208050</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2022-02-21 11:49:07 +0300</bug_when>
    <thetext>(In reply to Anton V. Boyarshinov from comment #1)
&gt; А на 5.15 проблема проявляется? Чтоб понимать -- везде ли отключать или
&gt; только на 5.10
в текущем 5.17-rc5:

config NFS_V4_2_READ_PLUS
        bool &quot;NFS: Enable support for the NFSv4.2 READ_PLUS operation&quot;
        depends on NFS_V4_2
        default n
        help
         This is intended for developers only. The READ_PLUS operation has
         been shown to have issues under specific conditions and should not
         be used in production.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208054</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2022-02-21 12:09:56 +0300</bug_when>
    <thetext>(Ответ для Anton V. Boyarshinov на комментарий #1)
&gt; А на 5.15 проблема проявляется? Чтоб понимать -- везде ли отключать или
&gt; только на 5.10
А на 5.10 же нет ещё это ручки. Будет?
На 5.15 READ_PLUS должен быть выключен по умолчанию, как Сергей процитировал.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208058</commentid>
    <comment_count>4</comment_count>
    <who name="Anton V. Boyarshinov">boyarsh</who>
    <bug_when>2022-02-21 12:43:18 +0300</bug_when>
    <thetext>(Ответ для Vitaly Lipatov на комментарий #3)
&gt; (Ответ для Anton V. Boyarshinov на комментарий #1)
&gt; &gt; А на 5.15 проблема проявляется? Чтоб понимать -- везде ли отключать или
&gt; &gt; только на 5.10
&gt; А на 5.10 же нет ещё это ручки. Будет?
&gt; На 5.15 READ_PLUS должен быть выключен по умолчанию, как Сергей процитировал.

Как нет ручки на 5.10, когда баг про это?
Будет выключено в следующих сборках.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208122</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2022-02-23 16:14:19 +0300</bug_when>
    <thetext>В ожидании исправленного ядра на NFS-сервере в /etc/nfs.conf
вписал
vers4.2=n
и перезапустил сервис nfs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>