All of lore.kernel.org
 help / color / mirror / Atom feed
* overlayfs 3.18-rc3 General protection fault
@ 2014-11-04 12:54 Jordi Pujol Palomer
  2014-11-04 15:11 ` Miklos Szeredi
  0 siblings, 1 reply; 4+ messages in thread
From: Jordi Pujol Palomer @ 2014-11-04 12:54 UTC (permalink / raw)
  To: linux-unionfs, Miklos Szeredi, Al Viro

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

Hello,

After a little time running kernel 3.18-rc3 and
integrated experimental overlayfs the attached error occurs.

more info about the system and kernel config is available in:

http://jordipujol.ddns.net/debian/testing-overlayfs-3.18-rc3/

Regards,

Jordi Pujol

[-- Attachment #2: journalctl-1-err.log --]
[-- Type: text/x-log, Size: 5338 bytes --]

Nov 03 16:16:24 pcjordi systemd-readahead[582]: No pack files
Nov 03 16:16:27 pcjordi kernel: IN=eth0 OUT= MAC=01:00:5e:00:00:01:90:f6:52:2b:48:d1:08:00 SRC=0.0.0.0 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
Nov 03 16:16:54 pcjordi systemd-timesyncd[1112]: interval/delta/delay/jitter/drift 64s/+0.000s/0.065s/0.000s/+0ppm
Nov 03 16:17:24 pcjordi systemd[1]: Reloading.
Nov 03 16:17:24 pcjordi kernel: general protection fault: 0000 [#1] PREEMPT SMP 
Nov 03 16:17:24 pcjordi kernel: Modules linked in: xt_REDIRECT xt_mark xt_tcpudp xt_multiport xt_conntrack xt_limit ipt_REJECT nf_reject_ipv4 nf_log_ipv4 nf_log_common xt_LOG nf_nat_ftp nf_conntrack_ftp cfg80211 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_filter ip_tables x_tables nbd hid_generic usbhid uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core snd_usb_audio snd_usbmidi_lib v4l2_common videodev media snd_rawmidi snd_seq_device eeepc_wmi asus_wmi x86_pkg_temp_thermal intel_powerclamp coretemp crc32_pclmul ghash_clmulni_intel aesni_intel sparse_keymap rfkill aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi xhci_pci iTCO_wdt iTCO_vendor_support mxm_wmi evdev mei_me ps
 mouse xhci_hcd snd_hda_intel
Nov 03 16:17:24 pcjordi kernel:  snd_soc_rt5640 i915 snd_hda_controller snd_soc_rl6231 snd_soc_core i2c_algo_bit drm_kms_helper lpc_ich snd_hda_codec drm intel_gtt mei serio_raw i2c_i801 pcspkr tpm_infineon mfd_core snd_hwdep snd_compress dw_dmac dw_dmac_core battery 8250_dw video snd_soc_sst_acpi snd_pcm snd_timer snd soundcore regmap_i2c wmi button processor acpi_pad kvm_intel kvm fuse parport_pc ppdev lp parport autofs4 ext4 crc16 jbd2 squashfs overlayfs ext2 mbcache usb_storage ohci_hcd uhci_hcd af_packet loop sg sr_mod sd_mod cdrom ahci libahci crc32c_intel libata ehci_pci ehci_hcd scsi_mod r8169 mii usbcore usb_common fan thermal sdhci_acpi sdhci mmc_core i2c_hid hid i2c_core
Nov 03 16:17:24 pcjordi kernel: CPU: 6 PID: 9214 Comm: insserv Not tainted 3.18.0-rc3.1-haswell-lnet-amd64 #1 3.18.0~rc3-1
Nov 03 16:17:24 pcjordi kernel: Hardware name: ASUS All Series/Z97-K, BIOS 2202 07/11/2014
Nov 03 16:17:24 pcjordi kernel: task: ffff880214176460 ti: ffff8801f3878000 task.ti: ffff8801f3878000
Nov 03 16:17:24 pcjordi kernel: RIP: 0010:[<ffffffffa0404ee4>]  [<ffffffffa0404ee4>] ovl_seek_cursor+0x44/0x60 [overlayfs]
Nov 03 16:17:24 pcjordi kernel: RSP: 0018:ffff8801f387be10  EFLAGS: 00010282
Nov 03 16:17:24 pcjordi kernel: RAX: ffff88020df02910 RBX: ffff8802170eca80 RCX: ffff8801fad04a40
Nov 03 16:17:24 pcjordi kernel: RDX: dead000000200200 RSI: dead000000100100 RDI: ffff8801fad04a20
Nov 03 16:17:24 pcjordi kernel: RBP: ffff8800c5e0d540 R08: 0000000000000000 R09: 0000000000000000
Nov 03 16:17:24 pcjordi kernel: R10: 000000004b303173 R11: 0000000000000000 R12: ffff8800c5e0d540
Nov 03 16:17:24 pcjordi kernel: R13: ffff8801f387bf28 R14: ffff88020df7c100 R15: ffff8801fad04a20
Nov 03 16:17:24 pcjordi kernel: FS:  00007fee4ea85700(0000) GS:ffff88021fb80000(0000) knlGS:0000000000000000
Nov 03 16:17:24 pcjordi kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 03 16:17:24 pcjordi kernel: CR2: 000000000118dc18 CR3: 00000001f3a41000 CR4: 00000000001407e0
Nov 03 16:17:24 pcjordi kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Nov 03 16:17:24 pcjordi kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Nov 03 16:17:24 pcjordi kernel: Stack:
Nov 03 16:17:24 pcjordi kernel:  ffffffffa04059ab ffff8801f387bf38 ffff880200000000 ffff8800c5e0d550
Nov 03 16:17:24 pcjordi kernel:  ffff8802142a1000 ffff8801fad04d20 ffff8802170ecf00 ffff8802164e0a20
Nov 03 16:17:24 pcjordi kernel:  ffff8802170ecc00 ffff8802164e08e0 ffff8802170ecb40 ffffffffa0405080
Nov 03 16:17:24 pcjordi kernel: Call Trace:
Nov 03 16:17:24 pcjordi kernel:  [<ffffffffa04059ab>] ? ovl_iterate+0x3cb/0x480 [overlayfs]
Nov 03 16:17:24 pcjordi kernel:  [<ffffffffa0405080>] ? ovl_cache_entry_new+0x70/0x70 [overlayfs]
Nov 03 16:17:24 pcjordi kernel:  [<ffffffff8116f1ef>] ? iterate_dir+0x9f/0x120
Nov 03 16:17:24 pcjordi kernel:  [<ffffffff8116f62a>] ? SyS_getdents+0x7a/0x100
Nov 03 16:17:24 pcjordi kernel:  [<ffffffff8116f340>] ? fillonedir+0xd0/0xd0
Nov 03 16:17:24 pcjordi kernel:  [<ffffffff8115bbde>] ? SyS_lseek+0x7e/0xa0
Nov 03 16:17:24 pcjordi kernel:  [<ffffffff814572e9>] ? system_call_fastpath+0x12/0x17
Nov 03 16:17:24 pcjordi kernel: Code: 78 39 00 75 09 48 39 d6 7e 11 48 83 c2 01 48 8b 40 10 48 83 e8 10 48 39 c1 75 e4 48 8b 57 28 48 8d 4f 20 48 83 c0 10 48 8b 77 20 <48> 89 56 08 48 89 32 48 8b 50 08 48 89 48 08 48 89 47 20 48 89 
Nov 03 16:17:24 pcjordi kernel: RIP  [<ffffffffa0404ee4>] ovl_seek_cursor+0x44/0x60 [overlayfs]
Nov 03 16:17:24 pcjordi kernel:  RSP <ffff8801f387be10>
Nov 03 16:17:24 pcjordi kernel: ---[ end trace bde6bc2698947981 ]---
Nov 03 16:17:49 pcjordi systemd[1]: Looping too fast. Throttling execution a little.
Nov 03 16:17:50 pcjordi systemd[1]: Looping too fast. Throttling execution a little.
Nov 03 16:17:51 pcjordi systemd[1]: Looping too fast. Throttling execution a little.
Nov 03 16:17:52 pcjordi systemd[1]: Looping too fast. Throttling execution a little.
Nov 03 16:17:53 pcjordi systemd[1]: Looping too fast. Throttling execution a little.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: overlayfs 3.18-rc3 General protection fault
  2014-11-04 12:54 overlayfs 3.18-rc3 General protection fault Jordi Pujol Palomer
@ 2014-11-04 15:11 ` Miklos Szeredi
  2014-11-04 16:03   ` Jordi Pujol Palomer
  2014-11-04 16:16   ` Al Viro
  0 siblings, 2 replies; 4+ messages in thread
From: Miklos Szeredi @ 2014-11-04 15:11 UTC (permalink / raw)
  To: Jordi Pujol Palomer; +Cc: linux-unionfs, Al Viro

On Tue, Nov 04, 2014 at 01:54:08PM +0100, Jordi Pujol Palomer wrote:
> Hello,
> 
> After a little time running kernel 3.18-rc3 and
> integrated experimental overlayfs the attached error occurs.
> 
> more info about the system and kernel config is available in:
> 
> http://jordipujol.ddns.net/debian/testing-overlayfs-3.18-rc3/

Thanks for the report.  Could you please try the following patch, which should
fix the Oops.

Thanks,
Miklos
---

Subject: ovl: don't poison cursor
From: Miklos Szeredi <mszeredi@suse.cz>

ovl_cache_put() can be called from ovl_dir_reset() if the cache needs to be
rebuilt.  We did list_del() on the cursor, which results in an Oops on the
poisoned pointer in ovl_seek_cursor().

Reported-by: Jordi Pujol Palomer <jordipujolp@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
---
 fs/overlayfs/readdir.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/overlayfs/readdir.c
+++ b/fs/overlayfs/readdir.c
@@ -168,7 +168,7 @@ static void ovl_cache_put(struct ovl_dir
 {
 	struct ovl_dir_cache *cache = od->cache;
 
-	list_del(&od->cursor.l_node);
+	list_del_init(&od->cursor.l_node);
 	WARN_ON(cache->refcount <= 0);
 	cache->refcount--;
 	if (!cache->refcount) {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: overlayfs 3.18-rc3 General protection fault
  2014-11-04 15:11 ` Miklos Szeredi
@ 2014-11-04 16:03   ` Jordi Pujol Palomer
  2014-11-04 16:16   ` Al Viro
  1 sibling, 0 replies; 4+ messages in thread
From: Jordi Pujol Palomer @ 2014-11-04 16:03 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-unionfs, Al Viro

EL Tue, 4 Nov 2014 16:11:03 +0100
Miklos Szeredi <miklos@szeredi.hu> escrigué:

> Thanks for the report.  Could you please try the following patch,
> which should fix the Oops.

OK, compiled and tested 
it works !

Thanks,

Jordi Pujol

--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: overlayfs 3.18-rc3 General protection fault
  2014-11-04 15:11 ` Miklos Szeredi
  2014-11-04 16:03   ` Jordi Pujol Palomer
@ 2014-11-04 16:16   ` Al Viro
  1 sibling, 0 replies; 4+ messages in thread
From: Al Viro @ 2014-11-04 16:16 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: Jordi Pujol Palomer, linux-unionfs

On Tue, Nov 04, 2014 at 04:11:03PM +0100, Miklos Szeredi wrote:
> On Tue, Nov 04, 2014 at 01:54:08PM +0100, Jordi Pujol Palomer wrote:
> > Hello,
> > 
> > After a little time running kernel 3.18-rc3 and
> > integrated experimental overlayfs the attached error occurs.
> > 
> > more info about the system and kernel config is available in:
> > 
> > http://jordipujol.ddns.net/debian/testing-overlayfs-3.18-rc3/
> 
> Thanks for the report.  Could you please try the following patch, which should
> fix the Oops.

Applied, with Tested-by added; will push to Linus today...

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-04 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-04 12:54 overlayfs 3.18-rc3 General protection fault Jordi Pujol Palomer
2014-11-04 15:11 ` Miklos Szeredi
2014-11-04 16:03   ` Jordi Pujol Palomer
2014-11-04 16:16   ` Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.