Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1892745
Summary: | smbclient is segfaulting using tar mode | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Brent <fix> | ||||
Component: | samba | Assignee: | Guenther Deschner <gdeschner> | ||||
Status: | ASSIGNED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 33 | CC: | abokovoy, anoopcs, asn, dkarpele, gdeschner, iboukris, jrivera, jstephen, lmohanty, madam, sbose, ssorce, tkevans | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | Flags: | abokovoy:
needinfo?
(fix) |
||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | samba-4.13.2-2.fc33 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-12-01 01:27:56 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
Brent
2020-10-29 14:52:55 UTC
Additional steps to recreate not using BackupPC: 1) Create a file (touch /tmp/current-time) 2) Execute: /usr/bin/smbclient \\\\server\\share -U Administrator -E -d 1 -c tarmode\ full -TcN /tmp/current-time - /temp 3) This should backup the c:\temp of a remote windows machine. 4) After prompting for password, it returns: tarmode is now full, system, hidden, noreset, noverbose Segmentation fault (core dumped) Compiling myself from source, using tar mode in 4.13.0 or 4.13.1 (latest) returns the segfault. Compiling samba source from 4.12.9 works. There is a bug in 4.13.0 and 4.13.1 using tarmode. Samba just released version 4.13.2. That version also segfaults using tarmode in smbclient. Can you please provide a coredump? Created attachment 1727927 [details]
core dump
I can use smbclient to backup /tmp on a linux box. Any attempt made to backup another directory fails. Can't backup remote systems either. smbclient \\\\server\\root -U root -E -d 1 -c tarmode\ full -TcN /backupdir/BackupPC/pc/server/timeStamp.level0 - /etc Segmentation fault. *** Bug 1900232 has been marked as a duplicate of this bug. *** I am building Samba for F33 and Rawhide with patches from https://bugzilla.samba.org/show_bug.cgi?id=14517 As I understand, this should fix the problem. Please test the builds once they are ready: F33: https://koji.fedoraproject.org/koji/taskinfo?taskID=56241974 F34: https://koji.fedoraproject.org/koji/taskinfo?taskID=56241908 Non-x86_64 runners are a bit slow, so the builds are still ongoing. Once they are done, I'll submit an update to F33. Thanks, Alexander. Afraid I don't know what to do with these. I downloaded the rpms that match what is installed on my system, but dnf reports all sorts of dependency issues when i try to install them. FEDORA-2020-e5062aad76 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e5062aad76 I've submitted an update to F33. It should appear in updates-testing in a day or so. Simple dnf update will find out then. FEDORA-2020-e5062aad76 has been pushed to the Fedora 33 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e5062aad76` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e5062aad76 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. smbclient (version 4.13.2) still segfaults here. Yep. Just tried this version. Still segfaults. Is the backtrace the same? I don't know what you mean by backtrace. dmesg shows: smbclient[73274]: segfault at 0 ip 00005567c77faff7 sp 00007ffc8fc9bba8 error 4 in smbclient[5567c77f0000+23000] Code: 00 48 89 c6 31 c0 e8 48 d4 ff ff b8 01 00 00 00 eb c9 e8 fc d3 ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 48 8b 15 31 b2 01 00 <48> 8b 3a 48 8b 47 08 48 85 c0 74 2d 48 8b 0f 48 89 08 48 89 02 48 /var/log/messages has: abrt-notification[73350]: Process 79081 (smbclient) crashed in remove_do_list_queue_head() I can include a coredump (.zst) file if that needs to be included? it looks like the same trace, indeed. I can actually backup /tmp, but not /etc (or any other directory) if smb.conf shares out "/". If I compile 4.12.10 and install it, both /tmp and /etc work fine. smb.conf: relevant section for the share: [root] path = / browseable = yes valid users = root public = no writable = yes printable = no create mask = 0755 This works: $ touch /tmp/current-time $ /usr/bin/smbclient \\\\localhost\\root -U root -E -d 1 -c tarmode\ full -TcN /tmp/current-time - /tmp This segfaults: $ /usr/bin/smbclient \\\\localhost\\root -U root -E -d 1 -c tarmode\ full -TcN /tmp/current-time - /etc FEDORA-2020-e5062aad76 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. Re-opening to work on tar mode fixes. Samba folks have closed their bugzilla (https://bugzilla.samba.org/show_bug.cgi?id=14581), marking it "FIXED." I think that bug is unrelated -- there was hope that the refactoring fixed this issue but apparently it was not. So, back to investigation. Samba 4.13.3 has been released, with fixes for Samba bugzillas 14517 and 14581. From release notes: * BUG 14517: smbclient: Fix recursive mget. * BUG 14581: clitar: Use do_list()'s recursion in clitar.c. Samba 4.13.3 build for F33 is coming soon (patches already updated in Fedora dist-git). To build Samba 4.13.3, we need updates for few other components, so a rebuild for Rawhide and F33 will be done in a sidetag first, then submitted for Bodhi. Hopefully, this will be done in next several days. https://bodhi.fedoraproject.org/updates/FEDORA-2020-318f27b02b is the version for Fedora 33 Please re-test with Fedora 33/34 to see if the issue is fixed. |