stack smashing detected in /usr/lib/plan9/bin/sha1sum on s390x

Bug #1895321 reported by Balint Reczey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
9base (Debian)
Fix Released
Unknown
9base (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-groovy/groovy/s390x/9/9base/20200911_155624_b40fb@/log.gz

...
autopkgtest [15:54:42]: test command14: RP=/usr/lib/plan9/bin; $RP/fortune debian/tests/lorem.txt | $RP/sha1sum
autopkgtest [15:54:42]: test command14: [-----------------------
*** stack smashing detected ***: terminated
bash: line 1: 4576 Done $RP/fortune debian/tests/lorem.txt
      4577 Aborted (core dumped) | $RP/sha1sum
autopkgtest [15:54:43]: test command14: -----------------------]
autopkgtest [15:54:44]: test command14: - - - - - - - - - - results - - - - - - - - - -
command14 FAIL non-zero exit status 134
...

It is not consistently reproducible since the test uses fortune, but on 5.4.0-14-generic kernel in a 20.10 lxc container it is:

root@gg-9base:~/9base-6# echo "foo bar" | valgrind /usr/lib/plan9/bin/sha1sum
==26505== Memcheck, a memory error detector
==26505== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==26505== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info
==26505== Command: /usr/lib/plan9/bin/sha1sum
==26505==
*** stack smashing detected ***: terminated
==26505==
==26505== Process terminating with default action of signal 6 (SIGABRT)
==26505== at 0x4937806: raise (raise.c:49)
==26505== by 0x4916A57: abort (abort.c:79)
==26505== by 0x497EB6D: __libc_message (libc_fatal.c:155)
==26505== by 0x4A21993: __fortify_fail (fortify_fail.c:26)
==26505== by 0x4A21967: __stack_chk_fail (stack_chk_fail.c:24)
==26505== by 0x109A77: ??? (in /usr/lib/plan9/bin/sha1sum)
==26505== by 0x10C9A5: ??? (in /usr/lib/plan9/bin/sha1sum)
==26505== by 0x10A34D: ??? (in /usr/lib/plan9/bin/sha1sum)
==26505== by 0x10CF4B: ??? (in /usr/lib/plan9/bin/sha1sum)
==26505== by 0x10CE31: ??? (in /usr/lib/plan9/bin/sha1sum)
==26505== by 0x109B71: ??? (in /usr/lib/plan9/bin/sha1sum)
==26505== by 0x109D05: ??? (in /usr/lib/plan9/bin/sha1sum)
==26505==
==26505== HEAP SUMMARY:
==26505== in use at exit: 0 bytes in 0 blocks
==26505== total heap usage: 1 allocs, 1 frees, 168 bytes allocated
==26505==
==26505== All heap blocks were freed -- no leaks are possible
==26505==
==26505== For lists of detected and suppressed errors, rerun with: -s
==26505== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Aborted (core dumped)
root@gg-9base:~/9base-6# uname -a
Linux gg-9base 5.4.0-14-generic #17-Ubuntu SMP Thu Feb 6 22:46:43 UTC 2020 s390x s390x s390x GNU/Linux

Revision history for this message
Jochen Sprickerhof (v-launchpad-jochen-sprickerhof-de) wrote :

Fixed in version 1:6-11

Changed in 9base (Debian):
status: Unknown → Fix Released
Changed in 9base (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.