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

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

    <bug>
          <bug_id>39536</bug_id>
          
          <creation_ts>2021-01-12 16:43:13 +0300</creation_ts>
          <short_desc>mount.cifs неработоспособен: Unable to apply new capability set</short_desc>
          <delta_ts>2021-01-20 15:14:32 +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>cifs-utils</component>
          <version>unstable</version>
          <rep_platform>aarch64</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Sheplyakov">asheplyakov</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>asheplyakov</cc>
    
    <cc>iv</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>mike</cc>
    
    <cc>serpiph</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>195362</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2021-01-12 16:43:13 +0300</bug_when>
    <thetext>$ sudo mount -t cifs //test/test /mnt
Unable to apply new capability set.

https://marc.info/?l=linux-cifs&amp;m=160595758021262&amp;w=2

Проблема устранена в версии 0.6.12, а точнее [1], [2], [3]

[1] https://git.samba.org/?p=cifs-utils.git;a=patch;h=e406fb13e5b08b440100ec6215973060b7fdcff3

[2] https://git.samba.org/?p=cifs-utils.git;a=patch;h=4205fdc411701ffc323769d41508e0875b9d63d4

[3] https://git.samba.org/?p=cifs-utils.git;a=patch;h=207f19285e8388ea1933414941dbb05c99b57f76</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195440</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2021-01-15 17:23:35 +0300</bug_when>
    <thetext>Спасибо; а не хотите ли забрать пакет?
Я им не пользуюсь и уж не помню, по чьей просьбе вообще собрал.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195445</commentid>
    <comment_count>2</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2021-01-15 18:21:16 +0300</bug_when>
    <thetext>Забираю, уже тестируем:
#264694 TESTED #1 [test-only] sisyphus cifs-utils.git=6.12-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195446</commentid>
    <comment_count>3</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2021-01-15 18:24:28 +0300</bug_when>
    <thetext>В процессе тестирования столкнулись с такой проблемой:
$ sudo mount -t cifs -o rw,user=asheplyakov //10.42.0.133/asheplyakov /mnt
Password for asheplyakov@//10.42.0.133/asheplyakov:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

$ dmesg |tail
[  108.871599] CIFS: Attempting to mount //10.42.0.133/asheplyakov
[  108.877655] CIFS: Unknown mount option &quot;symfollow&quot;
[  141.628429] CIFS: Attempting to mount //10.42.0.133/asheplyakov
[  141.634473] CIFS: Unknown mount option &quot;symfollow&quot;
[  180.034629] CIFS: Attempting to mount //10.42.0.133/asheplyakov
[  180.041262] CIFS: Unknown mount option &quot;symfollow&quot;
[  226.145989] CIFS: Attempting to mount //10.42.0.133/asheplyakov
[  226.152069] CIFS: Unknown mount option &quot;symfollow&quot;
[  487.290979] CIFS: Attempting to mount //10.42.0.133/asheplyakov
[  487.297026] CIFS: Unknown mount option &quot;symfollow&quot;

mount -o rw,vers=1.0 - та же ошибка

linux-baikalm-5.4.y$ git grep -i symfollow | wc -l
0
cifs-utils$ git grep symfollow | wc -l
0


В 5.10 запилили новую опцию монтирования - nosymfollow
https://github.com/torvalds/linux/commit/dab741e0e02bd3c4f5e2e97be74b39df2523fc6e

А по умолчанию - symfollow
И эта новая опция естественно попала в uapi (userspace API)

Скорее всего, при сборке с kernel-headers из свежего ядра кто-то (либо util-linux, либо glibc, либо cifs-utils) подхватывает эту опцию и добавляет ее в mountflags.

asheplyakov: &quot;Сомневаюсь, что это glibc - она изначально рассчитана на то, что API ядра меняется со временем (LD_ASSUME_KERNEL)&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195447</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-01-15 18:34:19 +0300</bug_when>
    <thetext>libmount из util-linux узнал об этой опции:

http://git.altlinux.org/gears/u/util-linux.git?p=util-linux.git;a=blob;f=util-linux/libmount/src/optmap.c#l136</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195448</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-01-15 18:39:38 +0300</bug_when>
    <thetext>В glibc даже MS_NOSYMFOLLOW в sys/mount.h ещё не добавили, хотя пора бы уже.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195449</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2021-01-15 18:44:17 +0300</bug_when>
    <thetext>В util-linux.git есть фикс, см.
https://github.com/karelzak/util-linux/commit/52f730e47869ce630fafb24fd46f755dc7ffc691</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195451</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-01-15 19:33:34 +0300</bug_when>
    <thetext>[#264757] DONE util-linux-ng.git=2.36.1-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195452</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Sheplyakov">asheplyakov</who>
    <bug_when>2021-01-15 19:39:21 +0300</bug_when>
    <thetext>(In reply to Alexey Gladkov from comment #7)
&gt; [#264757] DONE util-linux-ng.git=2.36.1-alt2

Cпасибо, заработало!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195467</commentid>
    <comment_count>9</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2021-01-16 19:32:57 +0300</bug_when>
    <thetext>Новый cifs-utils в сизиф собран:
http://git.altlinux.org/gears/c/cifs-utils.git</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195468</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2021-01-16 20:24:26 +0300</bug_when>
    <thetext>Спасибо!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195576</commentid>
    <comment_count>11</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2021-01-20 15:14:32 +0300</bug_when>
    <thetext>*** Bug 39473 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>