[Bug 1854326] Re: [UBUNTU] - glibc: z15 (s390x) strstr implementation can return incorrect result if search string cross page boundary

Timo Aaltonen tjaalton at ubuntu.com
Fri Feb 7 17:27:04 UTC 2020


Hello bugproxy, or anyone else affected,

Accepted glibc into eoan-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/glibc/2.30-0ubuntu2.1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-eoan to verification-done-eoan. If it does not fix
the bug for you, please add a comment stating that, and change the tag
to verification-failed-eoan. In either case, without details of your
testing we will not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: glibc (Ubuntu Eoan)
       Status: New => Fix Committed

** Tags added: verification-needed verification-needed-eoan

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1854326

Title:
  [UBUNTU] - glibc: z15 (s390x) strstr implementation can return
  incorrect result if search string cross page boundary

Status in Ubuntu on IBM z Systems:
  In Progress
Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Eoan:
  Fix Committed

Bug description:
  [Impact]

  glibc: strstr(): Invalid result if needle crosses page on s390-z15 ifunc variant.
  If the specified needle crosses a page-boundary, the s390-z15 ifunc variant of
  strstr truncates the needle which results in invalid results.

  Example:
  needle = "Hello" <page-boundary> "World"
  really used needle = "Hello"
  haystack = "abc HelloBug def"
  result = "HelloBug def"

  This only happens if the needle before page-boundary contains 9 or
  less characters.

  See upstream-glibc bugzilla "Bug 25226 - strstr: Invalid result if needle crosses page on s390-z15 ifunc variant."
  (https://sourceware.org/bugzilla/show_bug.cgi?id=25226)

  Fixed with upstream-glibc commit "S390: Fix handling of needles crossing a page in strstr z15 ifunc-variant. [BZ #25226]"
  (https://sourceware.org/git/?p=glibc.git;a=commit;h=bfdb731438206b0f70fe7afa890681155c30b419)

  Please backport this commit to Ubuntu 19.10, which includes glibc 2.30

  Already backported to upstream-glibc-release-branch-2.30:
  https://sourceware.org/git/?p=glibc.git;a=commit;h=f4419b0d0181da28f18cba40068f2e75300f5020

  glibc 2.31 (tentativ GA 2020-02-01) will have this fix integrated.
  If this version will not be picked finally, then this fix is also needed for 20.04

  [Test Case]

   * glibc builds and passes testsuite, as the commit to backport
  includes comprehensive testsuite for the problem in question in the
  glibc api.

  [Regression Potential]

   * Fix released in focal, and available from stable upstream branches.
   * all autopkgtests will be triggered, implying that comprehensive test coverage will execute on all architectues.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1854326/+subscriptions



More information about the foundations-bugs mailing list