[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Dimitri John Ledkov
** No longer affects: gcc-9 (Ubuntu) ** No longer affects: gcc-9 (Ubuntu Eoan) ** No longer affects: gcc-9 (Ubuntu Focal) ** No longer affects: linux (Ubuntu Focal) ** No longer affects: linux (Ubuntu Eoan) ** No longer affects: linux (Ubuntu) -- You received this bug notification because yo

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Dimitri John Ledkov
This is my replacement "minimized" losetup.c that exhibits the problem. Simply, drop this into klibc sources and run: ./debian/rules build; sudo ./usr/utils/static/losetup 1 Argc before find_unused_loop_devices() 0 Argc after find_unused_loop_devices() Argc values before and after did not match.

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Launchpad Bug Tracker
This bug was fixed in the package klibc - 2.0.7-1ubuntu1 --- klibc (2.0.7-1ubuntu1) focal; urgency=low * Merge from Debian unstable. Remaining changes: * Fix FTBFS on eoan and later with new gcc - cf-protection.patch: Disable cf-protection for syscalls stub. * save-arg

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1850184 Title: losetup -f broken in 2.0.6-1ubuntu2 Status in gcc-9 package in Ubuntu: New Status in klibc package i

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Adam Conrad
Ah-ha. If loop0 is in use, then the test-case appropriately fails in both unstable and eoan, which is comforting, as I didn't look forward to figuring out why this works in Debian (it doesn't). -- You received this bug notification because you are a member of Kernel Packages, which is subscribed

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Dimitri John Ledkov
** Description changed: [Impact] - * sudo /usr/lib/klibc/bin/losetup -vf, which appears to be missbuilt, as main(argc) is reset to zero, after ioctl() operations in a function call, quite unexpectadly. - +  * sudo /usr/lib/klibc/bin/losetup -vf, which appears to be missbuilt, + as main(a

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Adam Conrad
The testcase here doesn't seem to be working (or, rather, failing) for me, which makes it harder to investigate this. It passes on both sid and eoan for me: (sid-amd64)root@nosferatu:~# dpkg -l \*klibc\* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Hal

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Dimitri John Ledkov
** Description changed: + [Impact] + + * sudo /usr/lib/klibc/bin/losetup -vf, which appears to be missbuilt, as main(argc) is reset to zero, after ioctl() operations in a function call, quite unexpectadly. + + [Test Case] + + * sudo /usr/lib/klibc/bin/losetup -vf + +should not fail

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Dimitri John Ledkov
** Patch added: "save-argc.patch" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1850184/+attachment/5301773/+files/save-argc.patch -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/

[Kernel-packages] [Bug 1850184] Re: losetup -f broken in 2.0.6-1ubuntu2

2019-10-31 Thread Dimitri John Ledkov
So, I'm not sure if this is a kernel headers/assembly bug (as ioctl is used from there), gcc-9 bug, or the combination of the two. I'm going to save argc, and use a saved copy for now, but this needs deeper analysis. This sounds like a retpoline mitigation. ** Also affects: klibc (Ubuntu Focal)