Bug 2000116
Summary: | Provide american-fuzzy-lop package on s390x | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alexander Egorenkov <egorenar> | ||||
Component: | american-fuzzy-lop | Assignee: | Richard W.M. Jones <rjones> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 34 | CC: | p, rjones | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | s390x | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | american-fuzzy-lop-3.14c-5.fc34 american-fuzzy-lop-3.14c-5.fc35 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-09-13 03:41:35 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Alexander Egorenkov
2021-09-01 12:29:47 UTC
Instructions how to build it: dnf install -y llvm-devel clang-devel curl -O https://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz tar xvzf afl-latest.tgz cd afl-2.52b AFL_NO_X86=1 make AFL_NO_X86=1 make -C llvm_mode export AFL_PATH=~/afl-2.52b Possibly. What would help would be a patch to the spec file which enables this. Ok, i'll see what can be done, my first time changing a Fedora package :) Created attachment 1820113 [details]
AFL s390x support
I managed to build an RPM on S390X and uploaded the SPEC patch i used. I'm not familiar with Fedora package building, i think we need to add conditional statements to the SPEC because on an architecture != x86, only afl-clang-fast and afl-clang-fast++ are available. The wrappers afl-gcc, afl-g++, afl-clang and afl-clang++ are only for X86. That patch disables x86 support. However I adapted it a bit to try to make it work with both. Scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=75046930 Can you try out this package? https://koji.fedoraproject.org/koji/taskinfo?taskID=75048287 Thank you very much. I have to use fedora 36, right ? No way to install it on F34 ? Nevermind, i'll setup a QEMU KVM instance, test it and report back. I think it should be installable on F34. You might have to upgrade clang (only) though. I installed F36 with QEMU KVM and then AFL packages. But missing afl-clang-fast ? [root@fedora ~]# rpm --install *.rpm package american-fuzzy-lop-debugsource-3.14c-4.fc36.s390x is already installed package american-fuzzy-lop-debuginfo-3.14c-4.fc36.s390x is already installed package american-fuzzy-lop-3.14c-4.fc36.s390x is already installed package american-fuzzy-lop-clang-3.14c-4.fc36.s390x is already installed package american-fuzzy-lop-clang-debuginfo-3.14c-4.fc36.s390x is already installed [root@fedora ~]# afl-cmin afl-cmin afl-cmin.bash [root@fedora ~]# afl-cmin [root@fedora ~]# afl- afl-analyze afl-fuzz afl-showmap afl-whatsup afl-cmin afl-gotcpu afl-system-config afl-cmin.bash afl-plot afl-tmin Weird, so they are actually symlinks to afl-cc and afl-c++. Let's see if this one works: https://koji.fedoraproject.org/koji/taskinfo?taskID=75051663 It looks good now. [root@fedora ~]# afl- afl-analyze afl-clang-fast++ afl-gotcpu afl-tmin afl-c++ afl-cmin afl-plot afl-whatsup afl-cc afl-cmin.bash afl-showmap afl-clang-fast afl-fuzz afl-system-config I also managed to get my fuzzing tests running on Fedora 36 with those packages. Thanks a lot. One question. The AFL packages for s390x will not be backported to F34 and F35 ? Sure I can do them for f34 & f35. Thank you. FEDORA-2021-7d2c9635ba has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-7d2c9635ba FEDORA-2021-09c130f5cb has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-09c130f5cb FEDORA-2021-09c130f5cb has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-09c130f5cb` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-09c130f5cb See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-7d2c9635ba has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7d2c9635ba` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7d2c9635ba See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Tested F34 packages, it works. Thanks. FEDORA-2021-7d2c9635ba has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2021-7d2c9635ba has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2021-09c130f5cb has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |