2
5
Fork
You've already forked core
0

argon2 build without optimizations #30

Open
hakerdefo wants to merge 1 commit from hakerdefo/patch-1 into master
pull from: hakerdefo/patch-1
merge into: KaOS:master
KaOS:master
hakerdefo commented 2023年01月01日 18:30:36 +01:00 (Migrated from github.com)
Copy link

argon2 build without optimizations as the previous build caused illegal instructions on certain CPUs.

argon2 build without optimizations as the previous build caused illegal instructions on certain CPUs.
demmm commented 2023年01月01日 19:29:56 +01:00 (Migrated from github.com)
Copy link

As mentioned on Matrix, Argon2 has not changed in over 2 years, issue with keepassxc strated just a week ago on your system, so not changing Argon2 for all users because of your system, until clearer what you have going on. As asked before, full SysInfo log is needed.

As mentioned on Matrix, Argon2 has not changed in over 2 years, issue with keepassxc strated just a week ago on your system, so not changing Argon2 for all users because of your system, until clearer what you have going on. As asked before, full SysInfo log is needed.
hakerdefo commented 2023年01月03日 17:17:42 +01:00 (Migrated from github.com)
Copy link

@demmm
I tested argon2 standalone and it gave me the following error,

Illegal instruction (core dumped)

Apparently when build with optimization, argon2 will error out with illegal instructions on many processors. Arch Linux fixed this exact bug in Jan 8, 2018,

github.com/archlinux/svntogit-packages@fdf4c3b0da

The same bug reported in Debian in 2016,

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828779

And, in Fedora in 2016,

https://bugzilla.redhat.com/show_bug.cgi?id=1512845

Why it didn't occur in my system previously? Well, I think I might have used AES-KDF in Keepassxc previously and hence argon2 wasn't used.

@demmm I tested argon2 standalone and it gave me the following error, > Illegal instruction (core dumped) Apparently when build with optimization, argon2 will error out with illegal instructions on many processors. Arch Linux fixed this exact bug in Jan 8, 2018, https://github.com/archlinux/svntogit-packages/commit/fdf4c3b0da6a02d52ce845b511edadbf66b4711a The same bug reported in Debian in 2016, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828779 And, in Fedora in 2016, https://bugzilla.redhat.com/show_bug.cgi?id=1512845 Why it didn't occur in my system previously? Well, I think I might have used AES-KDF in Keepassxc previously and hence argon2 wasn't used.
demmm commented 2023年01月03日 17:51:44 +01:00 (Migrated from github.com)
Copy link

Again, SysInfo is needed, keepassxc is used by many in KaOS (and as soon there is anything wrong with keepassxc, it is reported immediately), so not changing Argon2 for one user who so far refuses to provide much needed logs.

Again, SysInfo is needed, keepassxc is used by many in KaOS (and as soon there is anything wrong with keepassxc, it is reported immediately), so not changing Argon2 for one user who so far refuses to provide much needed logs.
hakerdefo commented 2023年01月03日 17:56:06 +01:00 (Migrated from github.com)
Copy link

Again, SysInfo is needed, keepassxc is used by many in KaOS (and as soon there is anything wrong with keepassxc, it is reported immediately), so not changing Argon2 for one user who so far refuses to provide much needed logs.

Here you go buddy,

https://go.0xfc.de/1n3rz1

> Again, SysInfo is needed, keepassxc is used by many in KaOS (and as soon there is anything wrong with keepassxc, it is reported immediately), so not changing Argon2 for one user who so far refuses to provide much needed logs. Here you go buddy, https://go.0xfc.de/1n3rz1
demmm commented 2023年01月03日 18:47:56 +01:00 (Migrated from github.com)
Copy link

Nothing in the logs that shows a cause for this issue.
KaOS is much more aligned with Gentoo, then distro's you link. Gentoo sets OPT still as 1 by default, if SSE2 is enabled:
https://gitweb.gentoo.org/repo/gentoo.git/commit/app-crypt/argon2?id=b71890e7ec94187258bbd0de4553d8dd8d339efd

More research needed before this PR will be considered. Will keep you posted.
See the discussion:
https://github.com/P-H-C/phc-winner-argon2/pull/113

Nothing in the logs that shows a cause for this issue. KaOS is much more aligned with Gentoo, then distro's you link. Gentoo sets OPT still as 1 by default, if SSE2 is enabled: https://gitweb.gentoo.org/repo/gentoo.git/commit/app-crypt/argon2?id=b71890e7ec94187258bbd0de4553d8dd8d339efd More research needed before this PR will be considered. Will keep you posted. See the discussion: https://github.com/P-H-C/phc-winner-argon2/pull/113
hakerdefo commented 2023年01月03日 19:14:31 +01:00 (Migrated from github.com)
Copy link

@demmm
Okay, I hope you won't forget about this one and will get around to resolving this.

@demmm Okay, I hope you won't forget about this one and will get around to resolving this.
hakerdefo commented 2023年01月03日 20:45:02 +01:00 (Migrated from github.com)
Copy link

@demmm

I compiled the argon2 package on my system using makepkg without changing any flags in the default PKGFILE and then installed the compiled binary and guess what? It works like a charm. So for me, the issue is gone but hopefully, you'll dig deep and may be figure out why pre-compiled binary ended-up throwing illegal instructions error on my CPU.

P.S. The working self compiled binary perhaps explains why Gentoo hasn't changed OPT as it is a source based distribution and users compile the stuff on their own machines instead of using pre-built binaries.

@demmm I compiled the argon2 package on my system using `makepkg` without changing any flags in the default PKGFILE and then installed the compiled binary and guess what? It works like a charm. So for me, the issue is gone but hopefully, you'll dig deep and may be figure out why pre-compiled binary ended-up throwing `illegal instructions `error on my CPU. P.S. The working self compiled binary perhaps explains why Gentoo hasn't changed OPT as it is a source based distribution and users compile the stuff on their own machines instead of using pre-built binaries.
This pull request has changes conflicting with the target branch.
  • argon2/PKGBUILD
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin hakerdefo/patch-1:hakerdefo/patch-1
git switch hakerdefo/patch-1

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff hakerdefo/patch-1
git switch hakerdefo/patch-1
git rebase master
git switch master
git merge --ff-only hakerdefo/patch-1
git switch hakerdefo/patch-1
git rebase master
git switch master
git merge --no-ff hakerdefo/patch-1
git switch master
git merge --squash hakerdefo/patch-1
git switch master
git merge --ff-only hakerdefo/patch-1
git switch master
git merge hakerdefo/patch-1
git push origin master
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
KaOS/core!30
Reference in a new issue
KaOS/core
No description provided.
Delete branch "hakerdefo/patch-1"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?