Skip to contentSkip to conversation

ntfs-3g-ntfsprogs: upgrade to 2021.8.22

PATCH In review Chen Qi 4 participants 7 messages Oct 19, 2021 – Oct 22, 2021

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 ntfs-3g-ntfsprogs: upgrade to 2021.8.22

This upgrade revolves a bunch of CVEs. See more details in:
https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp.

These CVEs cannot be reolved one by one. Upgrading the package is the only reasonable way.

---
 ...-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/{ntfs-3g-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} (92%)
meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +2 -2
similarity index 92%
rename from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
rename to meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
index 6f5cb6cee..19b2d6ca2 100644
@@ -10,8 +10,8 @@ SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \
            file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \
 "
 S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
-SRC_URI[md5sum] = "d97474ae1954f772c6d2fa386a6f462c"
-SRC_URI[sha256sum] = "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"
+SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae"
+SRC_URI[sha256sum] = "55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"
 
 UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/"
 UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"
Signature · 1 line
2.33.0
#1 lore raw
Quoted 2 lines · Chen Qi

This upgrade revolves a bunch of CVEs. See more details in:
https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp.

Seems reasonable to me.

-armin

Quoted 37 lines

These CVEs cannot be reolved one by one. Upgrading the package is the only reasonable way.

---
 ...-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/{ntfs-3g-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} (92%)
meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +2 -3
similarity index 92%
rename from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
rename to meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
index 6f5cb6cee..19b2d6ca2 100644
@@ -10,8 +10,8 @@ SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \
            file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \
 "
 S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
-SRC_URI[md5sum] = "d97474ae1954f772c6d2fa386a6f462c"
-SRC_URI[sha256sum] = "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"
+SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae"
+SRC_URI[sha256sum] = "55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"
 
 UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/"
 UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#93456): https://lists.openembedded.org/g/openembedded-devel/message/93456
Mute This Topic: https://lists.openembedded.org/mt/86433129/3616698
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 8 lines · Armin Kuster
Quoted 2 lines · Chen Qi

This upgrade revolves a bunch of CVEs. See more details in:
https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp.

Seems reasonable to me.

-armin

I"m tempted to agree but I don't know enough about how ntfs-36 is used. I think we need more information and a more detailed commit log explaining why we think that the uprev is okay.

Qi,
Does it provide a library and header files that developers use?

Debian has a patch that we could make use of:
https://security-tracker.debian.org/tracker/CVE-2021-35266

$ apt-get source ntfs-3g
$ fd security.patch

ntfs-3g-2017.3.23AR.3/debian/patches/aug2021-security.patch

$ diffstat `fd aug`
 include/ntfs-3g/attrib.h |    1
 include/ntfs-3g/index.h  |    4 +
 include/ntfs-3g/volume.h |    5 ++
 libntfs-3g/acls.c        |    4 +
 libntfs-3g/attrib.c      |  332 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------

 libntfs-3g/bootsect.c    |    8 +++
 libntfs-3g/compress.c    |   22 +++++++++-
 libntfs-3g/dir.c         |  109 

+++++++++++++++++++-------------------------------

 libntfs-3g/index.c       |  183 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------

 libntfs-3g/inode.c       |   24 ++++++-----
 libntfs-3g/lcnalloc.c    |   15 ++++--
 libntfs-3g/mft.c         |   70 +++++++++++++++++++++++++++++++-
 libntfs-3g/volume.c      |   81 ++++++++++++++++++++++++++++---------
 ntfsprogs/ntfscp.c       |    3 -
 ntfsprogs/ntfsfix.c      |   17 ++++++-
 src/lowntfs-3g.c         |  384 

+++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------------------------------------------------------------

 src/ntfs-3g.c            |   23 ++++++----
 17 files changed, 818 insertions(+), 467 deletions(-)

compared to the diff of the uprev:

$ git diff 2017.3.23..2021.8.22 | diffstat | tail -1
 69 files changed, 3220 insertions(+), 705 deletions(-)

../Randy

Quoted 42 lines
Quoted 21 lines

These CVEs cannot be reolved one by one. Upgrading the package is the only reasonable way.

---
  ...-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

rename meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/{ntfs-3g-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} (92%)

meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +0 -0
similarity index 92%
rename from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
rename to meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
index 6f5cb6cee..19b2d6ca2 100644

meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \ · line 17

Quoted 10 lines
meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +2 -2
@@ -10,8 +10,8 @@ SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \
             file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \
  "
  S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
-SRC_URI[md5sum] = "d97474ae1954f772c6d2fa386a6f462c"
-SRC_URI[sha256sum] = "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"
+SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae"
+SRC_URI[sha256sum] = "55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"
 
  UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/"
  UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#93467): https://lists.openembedded.org/g/openembedded-devel/message/93467
Mute This Topic: https://lists.openembedded.org/mt/86433129/3616765
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
author
#3 lore raw

Hi Randy,

1. It's used by anaconda. I searched OE, and didn't find any other place.

1. I don't think it's worth the effort to identify and fix them one by one.

Regards,
Qi
________________________________
From: MacLeod, Randy <[email protected]>
Sent: Thursday, October 21, 2021 1:06
To: Armin Kuster <[email protected]>; Chen, Qi <[email protected]>; [email protected] <[email protected]>
Subject: Re: [oe][meta-filesystem][hardknott][PATCH] ntfs-3g-ntfsprogs: upgrade to 2021.8.22

Quoted 8 lines · Armin Kuster
Quoted 2 lines · Chen Qi

This upgrade revolves a bunch of CVEs. See more details in:
https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp.

Seems reasonable to me.

-armin

I"m tempted to agree but I don't know enough about how ntfs-36 is used. I think we need more information and a more detailed commit log explaining why we think that the uprev is okay.

Qi,
Does it provide a library and header files that developers use?

Debian has a patch that we could make use of:

    https://security-tracker.debian.org/tracker/CVE-2021-35266
$ apt-get source ntfs-3g
$ fd security.patch

ntfs-3g-2017.3.23AR.3/debian/patches/aug2021-security.patch

$ diffstat `fd aug`
  include/ntfs-3g/attrib.h |    1
  include/ntfs-3g/index.h  |    4 +
  include/ntfs-3g/volume.h |    5 ++
  libntfs-3g/acls.c        |    4 +
  libntfs-3g/attrib.c      |  332

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------

  libntfs-3g/bootsect.c    |    8 +++
  libntfs-3g/compress.c    |   22 +++++++++-
  libntfs-3g/dir.c         |  109

+++++++++++++++++++-------------------------------

  libntfs-3g/index.c       |  183

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------

  libntfs-3g/inode.c       |   24 ++++++-----
  libntfs-3g/lcnalloc.c    |   15 ++++--
  libntfs-3g/mft.c         |   70 +++++++++++++++++++++++++++++++-
  libntfs-3g/volume.c      |   81 ++++++++++++++++++++++++++++---------
  ntfsprogs/ntfscp.c       |    3 -
  ntfsprogs/ntfsfix.c      |   17 ++++++-
  src/lowntfs-3g.c         |  384

+++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------------------------------------------------------------

  src/ntfs-3g.c            |   23 ++++++----
  17 files changed, 818 insertions(+), 467 deletions(-)

compared to the diff of the uprev:

$ git diff 2017.3.23..2021.8.22 | diffstat | tail -1
  69 files changed, 3220 insertions(+), 705 deletions(-)

../Randy

Quoted 26 lines
Quoted 26 lines

These CVEs cannot be reolved one by one. Upgrading the package is the only reasonable way.

---
  ...-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

rename meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/{ntfs-3g-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} (92%)

meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +2 -2
similarity index 92%
rename from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
rename to meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
index 6f5cb6cee..19b2d6ca2 100644
@@ -10,8 +10,8 @@ SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \
             file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \
  "
  S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
-SRC_URI[md5sum] = "d97474ae1954f772c6d2fa386a6f462c"
-SRC_URI[sha256sum] = "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"
+SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae"
+SRC_URI[sha256sum] = "55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"
 
Quoted 16 lines

meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \ · line 17

Quoted 5 lines
meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +0 -0
  UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/"
  UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#93467): https://lists.openembedded.org/g/openembedded-devel/message/93467
Mute This Topic: https://lists.openembedded.org/mt/86433129/3616765
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
# Randy MacLeod
# Wind River Linux

author
#4 lore raw

Hi Armin & Randy,

Could this patch be merged into hardknott?
Or should I send out V2 with detailed change log?

Regards,
Qi
________________________________
From: Chen, Qi <[email protected]>
Sent: Thursday, October 21, 2021 10:10
To: MacLeod, Randy <[email protected]>; Armin Kuster <[email protected]>; [email protected] <[email protected]>
Subject: Re: [oe][meta-filesystem][hardknott][PATCH] ntfs-3g-ntfsprogs: upgrade to 2021.8.22

Hi Randy,

1. It's used by anaconda. I searched OE, and didn't find any other place.

1. I don't think it's worth the effort to identify and fix them one by one.

Regards,
Qi
________________________________
From: MacLeod, Randy <[email protected]>
Sent: Thursday, October 21, 2021 1:06
To: Armin Kuster <[email protected]>; Chen, Qi <[email protected]>; [email protected] <[email protected]>
Subject: Re: [oe][meta-filesystem][hardknott][PATCH] ntfs-3g-ntfsprogs: upgrade to 2021.8.22

Quoted 8 lines · Armin Kuster
Quoted 2 lines · Chen Qi

This upgrade revolves a bunch of CVEs. See more details in:
https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp.

Seems reasonable to me.

-armin

I"m tempted to agree but I don't know enough about how ntfs-36 is used. I think we need more information and a more detailed commit log explaining why we think that the uprev is okay.

Qi,
Does it provide a library and header files that developers use?

Debian has a patch that we could make use of:

    https://security-tracker.debian.org/tracker/CVE-2021-35266
$ apt-get source ntfs-3g
$ fd security.patch

ntfs-3g-2017.3.23AR.3/debian/patches/aug2021-security.patch

$ diffstat `fd aug`
  include/ntfs-3g/attrib.h |    1
  include/ntfs-3g/index.h  |    4 +
  include/ntfs-3g/volume.h |    5 ++
  libntfs-3g/acls.c        |    4 +
  libntfs-3g/attrib.c      |  332

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------

  libntfs-3g/bootsect.c    |    8 +++
  libntfs-3g/compress.c    |   22 +++++++++-
  libntfs-3g/dir.c         |  109

+++++++++++++++++++-------------------------------

  libntfs-3g/index.c       |  183

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------

  libntfs-3g/inode.c       |   24 ++++++-----
  libntfs-3g/lcnalloc.c    |   15 ++++--
  libntfs-3g/mft.c         |   70 +++++++++++++++++++++++++++++++-
  libntfs-3g/volume.c      |   81 ++++++++++++++++++++++++++++---------
  ntfsprogs/ntfscp.c       |    3 -
  ntfsprogs/ntfsfix.c      |   17 ++++++-
  src/lowntfs-3g.c         |  384

+++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------------------------------------------------------------

  src/ntfs-3g.c            |   23 ++++++----
  17 files changed, 818 insertions(+), 467 deletions(-)

compared to the diff of the uprev:

$ git diff 2017.3.23..2021.8.22 | diffstat | tail -1
  69 files changed, 3220 insertions(+), 705 deletions(-)

../Randy

Quoted 26 lines
Quoted 26 lines

These CVEs cannot be reolved one by one. Upgrading the package is the only reasonable way.

---
  ...-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

rename meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/{ntfs-3g-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} (92%)

meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +2 -2
similarity index 92%
rename from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
rename to meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
index 6f5cb6cee..19b2d6ca2 100644
@@ -10,8 +10,8 @@ SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \
             file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \
  "
  S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
-SRC_URI[md5sum] = "d97474ae1954f772c6d2fa386a6f462c"
-SRC_URI[sha256sum] = "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"
+SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae"
+SRC_URI[sha256sum] = "55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"
 
Quoted 16 lines

meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \ · line 17

Quoted 5 lines
meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb renamed from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb +0 -0
  UPSTREAM_CHECK_URI = "https://www.tuxera.com/community/open-source-ntfs-3g/"
  UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#93467): https://lists.openembedded.org/g/openembedded-devel/message/93467
Mute This Topic: https://lists.openembedded.org/mt/86433129/3616765
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
# Randy MacLeod
# Wind River Linux

#5 lore raw

Stable merges takes time it’s already staged see

https://git.openembedded.org/meta-openembedded-contrib/log/?h=stable/hardknott-nut

Quoted 190 lines · Chen Qi

Hi Armin & Randy,

Could this patch be merged into hardknott?
Or should I send out V2 with detailed change log?

Regards,
Qi
------------------------------
*From:* Chen, Qi <[email protected]>
*Sent:* Thursday, October 21, 2021 10:10
*To:* MacLeod, Randy <[email protected]>; Armin Kuster < [email protected]>; [email protected] < [email protected]>

*Subject:* Re: [oe][meta-filesystem][hardknott][PATCH] ntfs-3g-ntfsprogs:
upgrade to 2021.8.22

Hi Randy,

1. It's used by anaconda. I searched OE, and didn't find any other place.

1. I don't think it's worth the effort to identify and fix them one by one.

Regards,
Qi
------------------------------
*From:* MacLeod, Randy <[email protected]>
*Sent:* Thursday, October 21, 2021 1:06
*To:* Armin Kuster <[email protected]>; Chen, Qi <[email protected]>; [email protected] < [email protected]>
*Subject:* Re: [oe][meta-filesystem][hardknott][PATCH] ntfs-3g-ntfsprogs:
upgrade to 2021.8.22

Quoted 5 lines · Armin Kuster
Quoted 2 lines · Chen Qi

This upgrade revolves a bunch of CVEs. See more details in:

https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp.

Quoted 3 lines

Seems reasonable to me.

-armin

I"m tempted to agree but I don't know enough about how ntfs-36 is used. I think we need more information and a more detailed commit log explaining why we think that the uprev is okay.

Qi,
Does it provide a library and header files that developers use?

Debian has a patch that we could make use of:

    https://security-tracker.debian.org/tracker/CVE-2021-35266
$ apt-get source ntfs-3g
$ fd security.patch

ntfs-3g-2017.3.23AR.3/debian/patches/aug2021-security.patch

$ diffstat `fd aug`
  include/ntfs-3g/attrib.h |    1
  include/ntfs-3g/index.h  |    4 +
  include/ntfs-3g/volume.h |    5 ++
  libntfs-3g/acls.c        |    4 +
  libntfs-3g/attrib.c      |  332

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------

  libntfs-3g/bootsect.c    |    8 +++
  libntfs-3g/compress.c    |   22 +++++++++-
  libntfs-3g/dir.c         |  109

+++++++++++++++++++-------------------------------

  libntfs-3g/index.c       |  183

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------

  libntfs-3g/inode.c       |   24 ++++++-----
  libntfs-3g/lcnalloc.c    |   15 ++++--
  libntfs-3g/mft.c         |   70 +++++++++++++++++++++++++++++++-
  libntfs-3g/volume.c      |   81 ++++++++++++++++++++++++++++---------
  ntfsprogs/ntfscp.c       |    3 -
  ntfsprogs/ntfsfix.c      |   17 ++++++-
  src/lowntfs-3g.c         |  384

+++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------------------------------------------------------------

  src/ntfs-3g.c            |   23 ++++++----
  17 files changed, 818 insertions(+), 467 deletions(-)

compared to the diff of the uprev:

$ git diff 2017.3.23..2021.8.22 | diffstat | tail -1
  69 files changed, 3220 insertions(+), 705 deletions(-)

../Randy

Quoted 7 lines
Quoted 7 lines

These CVEs cannot be reolved one by one. Upgrading the package is the only reasonable way.

---
  ...-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} | 4

++--

Quoted 2 lines
Quoted 2 lines
  1 file changed, 2 insertions(+), 2 deletions(-)

rename meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/{

ntfs-3g-ntfsprogs_2017.3.23.bb => ntfs-3g-ntfsprogs_2021.8.22.bb} (92%)

Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +0 -0

ntfs-3g-ntfsprogs_2017.3.23.bb b/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ ntfs-3g-ntfsprogs_2021.8.22.bb

Quoted 2 lines
Quoted 2 lines

similarity index 92%
rename from meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/

ntfs-3g-ntfsprogs_2017.3.23.bb

Quoted 1 line
Quoted 1 line

rename to meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/

ntfs-3g-ntfsprogs_2021.8.22.bb

Quoted 2 lines
Quoted 2 lines

index 6f5cb6cee..19b2d6ca2 100644
--- a/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/

ntfs-3g-ntfsprogs_2017.3.23.bb

Quoted 1 line
Quoted 1 line

+++ b/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/

ntfs-3g-ntfsprogs_2021.8.22.bb

Quoted 1 line

Review SRC_URI = "

Quoted 1 line
(quoted diff) +0 -0
@@ -10,8 +10,8 @@ SRC_URI = "

http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz \

Quoted 1 line
Quoted 1 line

file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch \

Quoted 4 lines

Review

Quoted 4 lines
  "
  S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
(quoted diff) +0 -2
-SRC_URI[md5sum] = "d97474ae1954f772c6d2fa386a6f462c"
-SRC_URI[sha256sum] =

"3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"

Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae"
+SRC_URI[sha256sum] =

"55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"

Quoted 2 lines
Quoted 2 lines

UPSTREAM_CHECK_URI = "

https://www.tuxera.com/community/open-source-ntfs-3g/"

Quoted 9 lines
Quoted 4 lines

UPSTREAM_CHECK_REGEX = "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"

--
# Randy MacLeod
# Wind River Linux

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#93524):
https://lists.openembedded.org/g/openembedded-devel/message/93524
Mute This Topic: https://lists.openembedded.org/mt/86433129/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#6 lore raw

Thanks!
I was checking hardknott-next. Now I know meta-openembedded-contrib and 'hardknott-nut' :)

Regards,
Qi

Quoted 226 lines · Khem Raj

Stable merges takes time it’s already staged see

https://git.openembedded.org/meta-openembedded-contrib/log/?h=stable/hardknott-nut <https://urldefense.com/v3/__https://git.openembedded.org/meta-openembedded-contrib/log/?h=stable*hardknott-nut__;Lw%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZUqZPZfpw$>

On Thu, Oct 21, 2021 at 7:05 PM Chen Qi <[email protected] <mailto:[email protected]>> wrote:

    Hi Armin & Randy,

    Could this patch be merged into hardknott?
    Or should I send out V2 with detailed change log?

    Regards,
    Qi
    ------------------------------------------------------------------------
    *From:* Chen, Qi <[email protected]
    <mailto:[email protected]>>
    *Sent:* Thursday, October 21, 2021 10:10
    *To:* MacLeod, Randy <[email protected]
    <mailto:[email protected]>>; Armin Kuster
    <[email protected] <mailto:[email protected]>>;
    [email protected]
    <mailto:[email protected]>
    <[email protected]
    <mailto:[email protected]>>

    *Subject:* Re: [oe][meta-filesystem][hardknott][PATCH]
    ntfs-3g-ntfsprogs: upgrade to 2021.8.22
    Hi Randy,

     1. It's used by anaconda. I searched OE, and didn't find any
        other place.

     2. I don't think it's worth the effort to identify and fix them
        one by one.

    Regards,
    Qi
    ------------------------------------------------------------------------
    *From:* MacLeod, Randy <[email protected]
    <mailto:[email protected]>>
    *Sent:* Thursday, October 21, 2021 1:06
    *To:* Armin Kuster <[email protected]
    <mailto:[email protected]>>; Chen, Qi <[email protected]
    <mailto:[email protected]>>;
    [email protected]
    <mailto:[email protected]>
    <[email protected]
    <mailto:[email protected]>>
    *Subject:* Re: [oe][meta-filesystem][hardknott][PATCH]
    ntfs-3g-ntfsprogs: upgrade to 2021.8.22
    On 2021-10-19 11:09 a.m., Armin Kuster wrote:
    >
    >
    > On 10/18/21 9:59 PM, Chen Qi wrote:
    >> This upgrade revolves a bunch of CVEs. See more details in:
    >>
    https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp
    <https://urldefense.com/v3/__https://github.com/tuxera/ntfs-3g/security/advisories/GHSA-q759-8j5v-q5jp__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZU-JVQIVw$>.
    > Seems reasonable to me.
    >
    > -armin

    I"m tempted to agree but I don't know enough about how ntfs-36 is
    used. I think we need more information and a more detailed commit
    log explaining why we think that the uprev is okay.

    Qi,
    Does it provide a library and header files that developers use?

    Debian has a patch that we could make use of:
    https://security-tracker.debian.org/tracker/CVE-2021-35266
    <https://urldefense.com/v3/__https://security-tracker.debian.org/tracker/CVE-2021-35266__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZVqLrClGw$>

    $ apt-get source ntfs-3g

    $ fd security.patch

    ntfs-3g-2017.3.23AR.3/debian/patches/aug2021-security.patch


    $ diffstat `fd aug`

      include/ntfs-3g/attrib.h |    1

      include/ntfs-3g/index.h  |    4 +

      include/ntfs-3g/volume.h |    5 ++

      libntfs-3g/acls.c        |    4 +

      libntfs-3g/attrib.c      |  332
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------

      libntfs-3g/bootsect.c    |    8 +++

      libntfs-3g/compress.c    |   22 +++++++++-

      libntfs-3g/dir.c         |  109
    +++++++++++++++++++-------------------------------

      libntfs-3g/index.c       |  183
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------

      libntfs-3g/inode.c       |   24 ++++++-----

      libntfs-3g/lcnalloc.c    |   15 ++++--

      libntfs-3g/mft.c         |   70 +++++++++++++++++++++++++++++++-

      libntfs-3g/volume.c      |   81
    ++++++++++++++++++++++++++++---------

      ntfsprogs/ntfscp.c       |    3 -

      ntfsprogs/ntfsfix.c      |   17 ++++++-

      src/lowntfs-3g.c         |  384
    +++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------------------------------------------------------------

      src/ntfs-3g.c            |   23 ++++++----

      17 files changed, 818 insertions(+), 467 deletions(-)


    compared to the diff of the uprev:

    $ git diff 2017.3.23..2021.8.22 | diffstat | tail -1

      69 files changed, 3220 insertions(+), 705 deletions(-)



    ../Randy

    >>
    >> These CVEs cannot be reolved one by one. Upgrading the package
    >> is the only reasonable way.
    >>
    >> Signed-off-by: Chen Qi <[email protected]
    <mailto:[email protected]>>
    >> ---
    >>   ...-ntfsprogs_2017.3.23.bb
    <https://urldefense.com/v3/__http://ntfsprogs_2017.3.23.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZWYgfT4yA$>
    => ntfs-3g-ntfsprogs_2021.8.22.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2021.8.22.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZVf9jUhnQ$>}
    | 4 ++--
    >>   1 file changed, 2 insertions(+), 2 deletions(-)
    >>   rename
    meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/{ntfs-3g-ntfsprogs_2017.3.23.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2017.3.23.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZW9DigK6g$>
    => ntfs-3g-ntfsprogs_2021.8.22.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2021.8.22.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZVf9jUhnQ$>}
    (92%)
    >>
    >> diff --git
    a/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2017.3.23.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZW9DigK6g$>
    b/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2021.8.22.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZVf9jUhnQ$>
    >> similarity index 92%
    >> rename from
    meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2017.3.23.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZW9DigK6g$>
    >> rename to
    meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2021.8.22.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZVf9jUhnQ$>
    >> index 6f5cb6cee..19b2d6ca2 100644
    >> ---
    a/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2017.3.23.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2017.3.23.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZW9DigK6g$>
    >> +++
    b/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2021.8.22.bb
    <https://urldefense.com/v3/__http://ntfs-3g-ntfsprogs_2021.8.22.bb__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZVf9jUhnQ$>
    >> @@ -10,8 +10,8 @@ SRC_URI =
    "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz
    <https://urldefense.com/v3/__http://tuxera.com/opensource/ntfs-3g_ntfsprogs-$*7BPV*7D.tgz__;JSU%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZUHYX2DNg$>
    \
    >>
    file://0001-libntfs-3g-Makefile.am-fix-install-failed-while-host.patch
    \
    >>   "
    >>   S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}"
    >> -SRC_URI[md5sum] = "d97474ae1954f772c6d2fa386a6f462c"
    >> -SRC_URI[sha256sum] =
    "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5"
    >> +SRC_URI[md5sum] = "90da343e78877d388eb34cefae6799ae"
    >> +SRC_URI[sha256sum] =
    "55b883aa05d94b2ec746ef3966cb41e66bed6db99f22ddd41d1b8b94bb202efb"
    >>
    >>   UPSTREAM_CHECK_URI =
    "https://www.tuxera.com/community/open-source-ntfs-3g/
    <https://urldefense.com/v3/__https://www.tuxera.com/community/open-source-ntfs-3g/__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZVAqvNWoQ$>"
    >>   UPSTREAM_CHECK_REGEX =
    "ntfs-3g_ntfsprogs-(?P<pver>\d+(\.\d+)+)\.tgz"
    >>
    >>
    >>
    >
    >
    >
    >
    >


    -- 
    # Randy MacLeod
    # Wind River Linux


    -=-=-=-=-=-=-=-=-=-=-=-
    Links: You receive all messages sent to this group.
    View/Reply Online (#93524):
    https://lists.openembedded.org/g/openembedded-devel/message/93524
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/message/93524__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZV8Uwdb0g$>
    Mute This Topic:
    https://lists.openembedded.org/mt/86433129/1997914
    <https://urldefense.com/v3/__https://lists.openembedded.org/mt/86433129/1997914__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZWypOAJnw$>
    Group Owner: [email protected]
    <mailto:openembedded-devel%[email protected]>
    Unsubscribe:
    https://lists.openembedded.org/g/openembedded-devel/unsub
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/unsub__;%21%21AjveYdw8EvQ%21IeYlFxxqUaX36O0WVlqmBG3kEv3k1v_m7otpNKJDycAl3FlrhMAjFbZFEZXZpLVz6A$>
    [[email protected] <mailto:[email protected]>]
    -=-=-=-=-=-=-=-=-=-=-=-