Your message dated Mon, 23 Apr 2018 15:35:54 +0100 with message-id <0a1d2ff3353078a51a6eccd400e0ef6550c926c2.camel@decadent.org.uk> and subject line Re: Bug#896646: 4.9.0-6-amd64: OverlayFS: rm'd files in merged dir, reappear when merged dir remounted as lower has caused the Debian Bug report #896646, regarding 4.9.0-6-amd64: OverlayFS: rm'd files in merged dir, reappear when merged dir remounted as lower to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 896646: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896646 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: 4.9.0-6-amd64: OverlayFS: rm'd files in merged dir, reappear when merged dir remounted as lower
- From: Jeremy Davis <jeremy@turnkeylinux.org>
- Date: Mon, 23 Apr 2018 12:56:33 +1000
- Message-id: <[🔎] 604efcce-15e6-3e6b-e58b-211a8573c417@turnkeylinux.org>
Package: src:linux Version: 4.9.82-1+deb9u3 Severity: normal Tags: upstream Dear Maintainer, Current behaviour: ------------------ On Debian Stretch (running as root) this the current behaviour: # Create base directory mkdir base touch base/example # Create merge, upper and work directories for 2 layers mkdir layer1 layer1.upper layer1.work mkdir layer2 layer2.upper layer2.work # Mount layer1 as the merged directory using layer1.upper as the true # upper layer, with base as a lower layer and layer1.work as the # necessary work directory mount -t overlay overlay -o lowerdir=$(pwd)/base,upperdir=$(pwd)/layer1.upper,workdir=$(pwd)/layer1.work layer1 ls layer1 # should show example as expected ls layer1.upper # shows no file (this is expected behaviour, it should #only show files written on layer1) rm layer1/example ls layer1 # should show no files ls layer1.upper # should show a special character device called # "example", this is the "whiteout" file # unmount, and remount with layer2 being the new upper layer and using # layer1.upper directory as the top level lower layer. umount layer1 mount -t overlay overlay -o lowerdir=$(pwd)/base:$(pwd)/layer1.upper,upperdir=$(pwd)/layer2.upper,workdir=$(pwd)/layer2.work layer2 ls layer2 # now shows example again as if it was never deleted Expected behaviour: ------------------- Deleted file doesn't exist when layer1.upper remounted as lowerdir. Workaround: ----------- With auFS kernel module loaded (installed via 'aufs-dkms' & 'linux-headers-amd64' packages) can be configured to exhibit expected behaviour, so using auFS instead (of OverlayFS) is a decent workaround. Additional info: ---------------- FWIW, this same OverlayFS behaviour is also exhibited in 4-16-2-towo amd64 kernel (I run siduction on my desktop). Regards, Jeremy Davis -- Package-specific info: ** Version: Linux version 4.9.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) ** Command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-6-amd64 root=UUID=387db0e0-2a50-41e6-85c4-07c4b95d28b6 ro quiet systemd.show_status=true systemd.journald.forward_to_console=0 ** Tainted: O (4096) * Out-of-tree module has been loaded. ** Kernel log: [309873.422223] (NULL device *): firmware: direct-loading firmware brcm/BCM20702A1-0a5c-21e6.hcd [309873.422357] (NULL device *): firmware: direct-loading firmware iwlwifi-6000g2a-6.ucode [309873.422364] Freezing user space processes ... (elapsed 0.007 seconds) done. [309873.429371] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [309873.430661] PM: Suspending system (mem) [309873.430680] Suspending console(s) (use no_console_suspend to debug) [309873.557922] sd 0:0:0:0: [sda] Synchronizing SCSI cache [309873.559551] sd 0:0:0:0: [sda] Stopping disk [309873.771541] PM: suspend of devices complete after 340.759 msecs [309873.789277] PM: late suspend of devices complete after 17.734 msecs [309873.792105] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI [309873.792106] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI [309873.792186] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI [309873.857261] PM: noirq suspend of devices complete after 67.985 msecs [309873.857497] ACPI: Preparing to enter system sleep state S3 [309874.217220] ACPI : EC: event blocked [309874.217222] ACPI : EC: EC stopped [309874.217223] PM: Saving platform NVS memory [309874.217249] Disabling non-boot CPUs ... [309874.218640] smpboot: CPU 1 is now offline [309874.220493] smpboot: CPU 2 is now offline [309874.222678] smpboot: CPU 3 is now offline [309874.224616] ACPI: Low-level resume complete [309874.224673] ACPI : EC: EC started [309874.224674] PM: Restoring platform NVS memory [309874.224985] Suspended for 164888.664 seconds [309874.225079] Enabling non-boot CPUs ... [309874.225155] x86: Booting SMP configuration: [309874.225157] smpboot: Booting Node 0 Processor 1 APIC 0x1 [309874.227841] cache: parent cpu1 should not be sleeping [309874.359209] CPU1 is up [309874.359279] smpboot: Booting Node 0 Processor 2 APIC 0x2 [309874.361877] cache: parent cpu2 should not be sleeping [309874.491219] CPU2 is up [309874.491284] smpboot: Booting Node 0 Processor 3 APIC 0x3 [309874.493872] cache: parent cpu3 should not be sleeping [309874.619327] CPU3 is up [309874.623205] ACPI: Waking up from system sleep state S3 [309875.322574] sdhci-pci 0000:02:00.0: MMC controller base frequency changed to 50Mhz. [309875.347007] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI [309875.347011] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI [309875.347053] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI [309875.347095] PM: noirq resume of devices complete after 68.089 msecs [309875.347513] PM: early resume of devices complete after 0.357 msecs [309875.347752] ACPI : EC: event unblocked [309875.347872] iwlwifi 0000:03:00.0: RF_KILL bit toggled to enable radio. [309875.348204] rtc_cmos 00:02: System wakeup disabled by ACPI [309875.348204] sd 0:0:0:0: [sda] Starting disk [309875.594989] usb 1-1.4: reset full-speed USB device number 4 using ehci-pci [309875.661437] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [309875.661979] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded [309875.661982] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out [309875.661985] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out [309875.663429] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded [309875.663432] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out [309875.663435] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out [309875.664278] ata1.00: configured for UDMA/133 [309875.783202] psmouse serio1: synaptics: queried max coordinates: x [..5678], y [..4732] [309875.786911] usb 1-1.6: reset high-speed USB device number 5 using ehci-pci [309875.809969] psmouse serio1: synaptics: queried min coordinates: x [1264..], y [1124..] [309875.949777] PM: resume of devices complete after 602.289 msecs [309875.949828] usb 1-1.4:1.0: rebind failed: -517 [309875.949831] usb 1-1.4:1.1: rebind failed: -517 [309875.949971] PM: Finishing wakeup. [309875.949972] Restarting tasks ... done. [309876.014319] Bluetooth: hci0: BCM: chip id 63 [309876.030431] Bluetooth: hci0: BCM20702A [309876.032245] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000 [309876.128430] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready [309876.130703] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.140261] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.140350] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 [309876.421419] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.428304] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.428391] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 [309876.518322] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready [309876.526928] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.534622] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.534711] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 [309876.727335] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0462 [309876.744200] Bluetooth: hci0: Broadcom Bluetooth Device [309876.812971] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.819893] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309876.819984] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 [309876.918158] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready [309877.005256] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready [309880.576559] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309880.583514] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309880.583614] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 [309880.867895] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309880.874878] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled [309880.874977] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0 [309880.963711] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready [309881.023746] wlp3s0: authenticate with 2c:56:dc:d7:ef:70 [309881.026015] wlp3s0: send auth to 2c:56:dc:d7:ef:70 (try 1/3) [309881.028768] wlp3s0: authenticated [309881.030875] wlp3s0: associate with 2c:56:dc:d7:ef:70 (try 1/3) [309881.034548] wlp3s0: RX AssocResp from 2c:56:dc:d7:ef:70 (capab=0x1011 status=0 aid=2) [309881.055540] wlp3s0: associated [309882.038964] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready ** Model information sys_vendor: LENOVO product_name: 34602B9 product_version: ThinkPad X1 Carbon chassis_vendor: LENOVO chassis_version: Not Available bios_vendor: LENOVO bios_version: G6ETB8WW (2.78 ) board_vendor: LENOVO board_name: 34602B9 board_version: Not Defined ** Loaded modules: overlay ctr ccm rfcomm acpi_call(O) vmw_vsock_vmci_transport vsock vmw_vmci cmac hid_generic bnep uvcvideo btusb btrtl videobuf2_vmalloc btbcm videobuf2_memops btintel videobuf2_v4l2 videobuf2_core bluetooth videodev media pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) usbhid hid cpufreq_conservative cpufreq_userspace cpufreq_powersave arc4 intel_rapl x86_pkg_temp_thermal iTCO_wdt intel_powerclamp iTCO_vendor_support iwldvm kvm_intel mac80211 snd_hda_codec_hdmi kvm irqbypass snd_hda_codec_realtek i915 snd_hda_codec_generic crct10dif_pclmul crc32_pclmul iwlwifi ghash_clmulni_intel snd_hda_intel snd_hda_codec snd_hda_core intel_cstate snd_hwdep joydev intel_uncore drm_kms_helper evdev snd_pcm_oss intel_rapl_perf cfg80211 snd_mixer_oss serio_raw drm pcspkr snd_pcm thinkpad_acpi snd_timer nvram lpc_ich mei_me snd sg mfd_core shpchp i2c_algo_bit soundcore mei wmi rfkill ac battery soc_button_array intel_smartconnect intel_rst video button binfmt_misc mmc_block tifm_sd tifm_core fuse coretemp parport_pc ppdev lp parport ip_tables x_tables autofs4 ext4 crc16 jbd2 crc32c_generic fscrypto ecb mbcache sd_mod crc32c_intel aesni_intel ahci aes_x86_64 glue_helper lrw libahci gf128mul ablk_helper cryptd libata scsi_mod psmouse i2c_i801 i2c_smbus xhci_pci sdhci_pci ehci_pci sdhci ehci_hcd xhci_hcd mmc_core usbcore usb_common thermal ** PCI devices: 00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09) Subsystem: Lenovo 3rd Gen Core processor DRAM Controller [17aa:21f9] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx- Latency: 0 Capabilities: <access denied> Kernel driver in use: ivb_uncore 00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller]) Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21f9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 31 Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=4M] Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M] Region 4: I/O ports at 5000 [size=64] [virtual] Expansion ROM at 000c0000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: i915 Kernel modules: i915 00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) (prog-if 30 [XHCI]) Subsystem: Lenovo 7 Series/C210 Series Chipset Family USB xHCI Host Controller [17aa:21f9] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 26 Region 0: Memory at f1500000 (64-bit, non-prefetchable) [size=64K] Capabilities: <access denied> Kernel driver in use: xhci_hcd Kernel modules: xhci_pci 00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04) Subsystem: Lenovo 7 Series/C216 Chipset Family MEI Controller [17aa:21f9] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 28 Region 0: Memory at f1515000 (64-bit, non-prefetchable) [size=16] Capabilities: <access denied> Kernel driver in use: mei_me Kernel modules: mei_me 00:16.3 Serial controller [0700]: Intel Corporation 7 Series/C210 Series Chipset Family KT Controller [8086:1e3d] (rev 04) (prog-if 02 [16550]) Subsystem: Lenovo 7 Series/C210 Series Chipset Family KT Controller [17aa:21f9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin B routed to IRQ 19 Region 0: I/O ports at 5090 [size=8] Region 1: Memory at f151b000 (32-bit, non-prefetchable) [size=4K] Capabilities: <access denied> Kernel driver in use: serial 00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04) (prog-if 20 [EHCI]) Subsystem: Lenovo 7 Series/C216 Chipset Family USB Enhanced Host Controller [17aa:21f9] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 16 Region 0: Memory at f151a000 (32-bit, non-prefetchable) [size=1K] Capabilities: <access denied> Kernel driver in use: ehci-pci Kernel modules: ehci_pci 00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04) Subsystem: Lenovo 7 Series/C216 Chipset Family High Definition Audio Controller [17aa:21f9] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 29 Region 0: Memory at f1510000 (64-bit, non-prefetchable) [size=16K] Capabilities: <access denied> Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 00004000-00004fff Memory behind bridge: f0d00000-f14fffff Prefetchable memory behind bridge: 00000000f0400000-00000000f0bfffff Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR- BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: <access denied> Kernel driver in use: pcieport Kernel modules: shpchp 00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin B routed to IRQ 17 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 Memory behind bridge: f0c00000-f0cfffff Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR- BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- Capabilities: <access denied> Kernel driver in use: pcieport Kernel modules: shpchp 00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04) (prog-if 20 [EHCI]) Subsystem: Lenovo 7 Series/C216 Chipset Family USB Enhanced Host Controller [17aa:21f9] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 23 Region 0: Memory at f1519000 (32-bit, non-prefetchable) [size=1K] Capabilities: <access denied> Kernel driver in use: ehci-pci Kernel modules: ehci_pci 00:1f.0 ISA bridge [0601]: Intel Corporation QS77 Express Chipset LPC Controller [8086:1e56] (rev 04) Subsystem: Lenovo QS77 Express Chipset LPC Controller [17aa:21f9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Capabilities: <access denied> Kernel driver in use: lpc_ich Kernel modules: lpc_ich 00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04) (prog-if 01 [AHCI 1.0]) Subsystem: Lenovo 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [17aa:21f9] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin B routed to IRQ 27 Region 0: I/O ports at 5088 [size=8] Region 1: I/O ports at 509c [size=4] Region 2: I/O ports at 5080 [size=8] Region 3: I/O ports at 5098 [size=4] Region 4: I/O ports at 5060 [size=32] Region 5: Memory at f1518000 (32-bit, non-prefetchable) [size=2K] Capabilities: <access denied> Kernel driver in use: ahci Kernel modules: ahci 00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller [8086:1e22] (rev 04) Subsystem: Lenovo 7 Series/C216 Chipset Family SMBus Controller [17aa:21f9] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin C routed to IRQ 18 Region 0: Memory at f1514000 (64-bit, non-prefetchable) [size=256] Region 4: I/O ports at efa0 [size=32] Kernel driver in use: i801_smbus Kernel modules: i2c_i801 02:00.0 System peripheral [0880]: Ricoh Co Ltd MMC/SD Host Controller [1180:e822] (rev 07) (prog-if 01) Subsystem: Lenovo MMC/SD Host Controller [17aa:21f3] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 16 Region 0: Memory at f0d00000 (32-bit, non-prefetchable) [size=256] Capabilities: <access denied> Kernel driver in use: sdhci-pci Kernel modules: sdhci_pci 03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 96) Subsystem: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:c220] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 30 Region 0: Memory at f0c00000 (64-bit, non-prefetchable) [size=8K] Capabilities: <access denied> Kernel driver in use: iwlwifi Kernel modules: iwlwifi ** USB devices: Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 005: ID 04f2:b315 Chicony Electronics Co., Ltd Bus 001 Device 004: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad] Bus 001 Device 003: ID 147e:2020 Upek TouchChip Fingerprint Coprocessor (WBF advanced mode) Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 005: ID 05a4:9865 Ortek Technology, Inc. Bus 003 Device 004: ID 04ca:005d Lite-On Technology Corp. Bus 003 Device 003: ID 17ef:6019 Lenovo Bus 003 Device 002: ID 05a4:9839 Ortek Technology, Inc. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -- System Information: Debian Release: 9.4 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages linux-image-4.9.0-6-amd64 depends on: ii initramfs-tools [linux-initramfs-tool] 0.130 ii kmod 23-2 ii linux-base 4.5 Versions of packages linux-image-4.9.0-6-amd64 recommends: ii firmware-linux-free 3.4 pn irqbalance <none> Versions of packages linux-image-4.9.0-6-amd64 suggests: pn debian-kernel-handbook <none> ii grub-pc 2.02~beta3-5 pn linux-doc-4.9 <none> Versions of packages linux-image-4.9.0-6-amd64 is related to: ii firmware-amd-graphics 20161130-3 ii firmware-atheros 20161130-3 pn firmware-bnx2 <none> pn firmware-bnx2x <none> pn firmware-brcm80211 <none> pn firmware-cavium <none> pn firmware-intel-sound <none> pn firmware-intelwimax <none> pn firmware-ipw2x00 <none> pn firmware-ivtv <none> ii firmware-iwlwifi 20161130-3 pn firmware-libertas <none> ii firmware-linux-nonfree 20161130-3 ii firmware-misc-nonfree 20161130-3 pn firmware-myricom <none> pn firmware-netxen <none> pn firmware-qlogic <none> pn firmware-realtek <none> pn firmware-samsung <none> pn firmware-siano <none> pn firmware-ti-connectivity <none> pn xen-hypervisor <none> -- no debconf informationAttachment: signature.asc
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
- To: 896646-done@bugs.debian.org
- Subject: Re: Bug#896646: 4.9.0-6-amd64: OverlayFS: rm'd files in merged dir, reappear when merged dir remounted as lower
- From: Ben Hutchings <ben@decadent.org.uk>
- Date: Mon, 23 Apr 2018 15:35:54 +0100
- Message-id: <0a1d2ff3353078a51a6eccd400e0ef6550c926c2.camel@decadent.org.uk>
- In-reply-to: <[🔎] 604efcce-15e6-3e6b-e58b-211a8573c417@turnkeylinux.org>
- References: <[🔎] 604efcce-15e6-3e6b-e58b-211a8573c417@turnkeylinux.org>
On Mon, 2018-04-23 at 12:56 +1000, Jeremy Davis wrote: > Package: src:linux > Version: 4.9.82-1+deb9u3 > Severity: normal > Tags: upstream > > > Dear Maintainer, > > > Current behaviour: > ------------------ > > On Debian Stretch (running as root) this the current behaviour: > > # Create base directory > mkdir base > touch base/example > > # Create merge, upper and work directories for 2 layers > mkdir layer1 layer1.upper layer1.work > mkdir layer2 layer2.upper layer2.work > > # Mount layer1 as the merged directory using layer1.upper as the true > # upper layer, with base as a lower layer and layer1.work as the > # necessary work directory > mount -t overlay overlay -o > lowerdir=$(pwd)/base,upperdir=$(pwd)/layer1.upper,workdir=$(pwd)/layer1.work > layer1 > > ls layer1 # should show example as expected > > ls layer1.upper # shows no file (this is expected behaviour, it should > #only show files written on layer1) > > rm layer1/example > > ls layer1 # should show no files > > ls layer1.upper # should show a special character device called > # "example", this is the "whiteout" file > > # unmount, and remount with layer2 being the new upper layer and using > # layer1.upper directory as the top level lower layer. > umount layer1 > > mount -t overlay overlay -o > lowerdir=$(pwd)/base:$(pwd)/layer1.upper,upperdir=$(pwd)/layer2.upper,workdir=$(pwd)/layer2.work > layer2 [...] overlayfs is behaving as documented. The documentation (filesystems/overlayfs.txt) says: "The specified lower directories will be stacked beginning from the rightmost one and going left. In the above example lower1 will be the top, lower2 the middle and lower3 the bottom layer." In your example this means that "layer1.upper" is the lowest layer, and its whiteout is overridden by the file in "base" which is on top of it. I think you just need to swap the order of these directories in the mount options. Ben. -- Ben Hutchings Theory and practice are closer in theory than in practice - John LevineAttachment: signature.asc
Description: This is a digitally signed message part
--- End Message ---