Your message dated Mon, 03 Nov 2014 21:21:59 +0000
with message-id <[email protected]>
and subject line Bug#741075: fixed in user-mode-linux 3.16-1um-0.1
has caused the Debian Bug report #741075,
regarding user-mode-linux: Occasional memory corruption on startup under high 
load
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 [email protected]
immediately.)


-- 
741075: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741075
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: user-mode-linux
Version: 3.2-2um-1+deb7u2+b1
Severity: grave
Tags: patch
Justification: causes non-serious data loss

Dear Maintainer,

This bug is perennial. If we go through old bugs with
"cannot reproduce" tag 50% of them are this one, the other
50% are the "you should not use pipe for interprocess IPC" 
which we will submit shortly.

Manifestation of the problem - UML dies on startup for no
reason with a memory corruption message. Occurs only on 
heavily loaded systems and usually when running a lot of 
UMLs.

-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages user-mode-linux depends on:
ii  libc6          2.13-38
ii  uml-utilities  20070815-1.1-ai-1.8

user-mode-linux recommends no packages.

Versions of packages user-mode-linux suggests:
ii  gnome-terminal [x-terminal-emulator]  3.4.1.1-2
ii  konsole [x-terminal-emulator]         4:4.8.4-2
pn  rootstrap                             <none>
pn  slirp                                 <none>
pn  user-mode-linux-doc                   <none>
pn  vde2                                  <none>
ii  xfce4-terminal [x-terminal-emulator]  0.4.8-1+b1
ii  xterm [x-terminal-emulator]           278-4

-- no debconf information
>From 9c3a9af21c0bfeca27eac958fde215594b4ee3fa Mon Sep 17 00:00:00 2001
From: Anton Ivanov <[email protected]>
Date: Sat, 8 Mar 2014 06:49:27 +0000
Subject: [PATCH 2/3] BUG: Memory corruption on startup

The reverse case of this race (you must msync before read) is
well known. This is the not so common one.

It can be triggered only on systems which do a lot of task
switching and only at UML startup. If you are starting 200+ UMLs
~ 0.5% will always die without this fix.
---
 arch/um/include/shared/os.h |    1 +
 arch/um/kernel/physmem.c    |    1 +
 arch/um/os-Linux/file.c     |    6 ++++++
 3 files changed, 8 insertions(+)

diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h
index 89b686c1..3c9738d 100644
--- a/arch/um/include/shared/os.h
+++ b/arch/um/include/shared/os.h
@@ -136,6 +136,7 @@ extern int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg);
 extern int os_get_ifname(int fd, char *namebuf);
 extern int os_set_slip(int fd);
 extern int os_mode_fd(int fd, int mode);
+extern int os_fsync_file(int fd);
 
 extern int os_seek_file(int fd, unsigned long long offset);
 extern int os_open_file(const char *file, struct openflags flags, int mode);
diff --git a/arch/um/kernel/physmem.c b/arch/um/kernel/physmem.c
index f116db1..30fdd5d0 100644
--- a/arch/um/kernel/physmem.c
+++ b/arch/um/kernel/physmem.c
@@ -103,6 +103,7 @@ void __init setup_physmem(unsigned long start, unsigned long reserve_end,
 	 */
 	os_seek_file(physmem_fd, __pa(&__syscall_stub_start));
 	os_write_file(physmem_fd, &__syscall_stub_start, PAGE_SIZE);
+	os_fsync_file(physmem_fd);
 
 	bootmap_size = init_bootmem(pfn, pfn + delta);
 	free_bootmem(__pa(reserve_end) + bootmap_size,
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c
index b049a63..a4f0e65 100644
--- a/arch/um/os-Linux/file.c
+++ b/arch/um/os-Linux/file.c
@@ -237,6 +237,12 @@ void os_close_file(int fd)
 {
 	close(fd);
 }
+int os_fsync_file(int fd)
+{
+	if (fsync(fd) < 0) 
+	    return -errno;
+	return 0;
+}
 
 int os_seek_file(int fd, unsigned long long offset)
 {
-- 
1.7.10.4


--- End Message ---
--- Begin Message ---
Source: user-mode-linux
Source-Version: 3.16-1um-0.1

We believe that the bug you reported is fixed in the latest version of
user-mode-linux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jakub Wilk <[email protected]> (supplier of updated user-mode-linux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 29 Oct 2014 10:49:35 +0100
Source: user-mode-linux
Binary: user-mode-linux
Architecture: source
Version: 3.16-1um-0.1
Distribution: unstable
Urgency: low
Maintainer: User Mode Linux Maintainers <[email protected]>
Changed-By: Jakub Wilk <[email protected]>
Description:
 user-mode-linux - User-mode Linux (kernel)
Closes: 741075 741077 765132
Changes:
 user-mode-linux (3.16-1um-0.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * New upstream release (closes: #765132). Thanks to David Suárez for the bug
     report.
     + Update Linux version number in debian/control and debian/rules.
     + Refresh configs.
   * The new upstream release fixes the following bugs:
     + Fix memory corruption on startup (closes: #741075).
     + Block SIGPIPE (closes: #741077).
     Thanks to Anton Ivanov for the bug reports and the patches.
Checksums-Sha1:
 d9f8e3995d125a016449f51753f85f4d79c62eae 2113 user-mode-linux_3.16-1um-0.1.dsc
 85bb9af8a4aaf565847e9da16c29f514aa1bb9c3 28727 
user-mode-linux_3.16-1um.orig.tar.gz
 24aaadea197a3ec018c10577f7403052484c9397 15315 
user-mode-linux_3.16-1um-0.1.diff.gz
Checksums-Sha256:
 c204f20099ffd2eab3af1dc36f86e0e99516c7f81e30a42591e540921ccc3bab 2113 
user-mode-linux_3.16-1um-0.1.dsc
 d95ddc6a248e15593cc8df826b3b1002f077cc5736fd2a82747b1ad903b3ff46 28727 
user-mode-linux_3.16-1um.orig.tar.gz
 60da3737d10fc69870baecb25d67f8606144b0ab1f18501cee511af6b1d45a99 15315 
user-mode-linux_3.16-1um-0.1.diff.gz
Files:
 32a1494a40a79311e9e4cdff43a5fd6a 2113 kernel extra 
user-mode-linux_3.16-1um-0.1.dsc
 3c31f5b750628d11a222a849274f1bcc 28727 kernel extra 
user-mode-linux_3.16-1um.orig.tar.gz
 51927a6cf908a42777097e85a9ee0177 15315 kernel extra 
user-mode-linux_3.16-1um-0.1.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUUVO2AAoJEC1Os6YBVHX1ihgQAJSrxtGd52nAIrdIn0K3Xoo+
OA2xWPzOFRrqSsE99R+AdMHsh94ykrM57lSO7mxdgIaMqPnR2cVwuYLADiq46QOQ
2qbsORPt/rJIhuu91Z+T6n5PUF4rj76CF/Se8in93RgDCOAoTh26bWVJauyxBVa9
/VAacnFpX94ZZSEC/TRMlby8ohCAXPak5r3hI/wNc4loHXnzIFiLv4wuuYTC88ku
HSFBILJytzpom5LD5FA7bZy88IBU+kga4eXrUkcntTGbYZ+/q7kCHX2mA+fumUb+
Ku98b1s3MCK9aUcHRygZWOJgqIr1a/L5GU+Y4FM2LFWLleFauNqPLVup2qudXnEj
JGWPt7l98KUvmbEjHJVV6WSgHXcvMXaYlyjjxA3t/p7+/Zi9YSXfn1rn5UO/y94/
XNTITLXDexizTw4gJ6QFzqDLRkpxzKOKiywbCISsxTERI8ikSdCZtR1ai+darQwc
OzOnk0I2S2hQuecO5HYS7e+cBShvVJyID8+9Wb1sK5ijKaydmCvmle78hkeykq53
/quafzAJIeAmoFOiIgH1gWtUWqqYsMxGbhME4CYPvWaMZyWHlxhVwwcYjVYj+5Fn
ppLU8taSetlLg+9aCYAMJZsT+p2GIP3XjwtZ9kxzZKGRra7zRmfkiYob0k2yWHZe
xJuS5OAGVhYoRbzyuxFz
=u6y/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to