Hello community,

here is the log from the commit of package fuse for openSUSE:Factory checked in 
at 2011-11-05 10:56:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fuse (Old)
 and      /work/SRC/openSUSE:Factory/.fuse.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fuse", Maintainer is "mszer...@novell.com"

Changes:
--------
--- /work/SRC/openSUSE:Factory/fuse/fuse.changes        2011-10-18 
14:12:22.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.fuse.new/fuse.changes   2011-11-05 
11:12:30.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Nov  3 13:15:39 CET 2011 - mszer...@suse.cz
+
+- handle case of failure to allocate request [bnc#723616]
+
+-------------------------------------------------------------------

New:
----
  fuse-handle-failure-to-allocate-req.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fuse.spec ++++++
--- /var/tmp/diff_new_pack.ub3aAe/_old  2011-11-05 11:16:06.000000000 +0100
+++ /var/tmp/diff_new_pack.ub3aAe/_new  2011-11-05 11:16:06.000000000 +0100
@@ -33,6 +33,7 @@
 Patch3:         fuse-umount-race-fix.patch
 Patch4:         fuse-fix-cleanup-in-case-of-failed-mount.patch
 Patch5:         fuse-gnu_source.patch
+Patch6:         fuse-handle-failure-to-allocate-req.patch
 Url:            http://fuse.sourceforge.net
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} > 1130
@@ -278,6 +279,7 @@
 %patch3 -p1
 %patch4 -p1
 %patch5
+%patch6 -p1
 
 %build
 autoreconf -fiv

++++++ fuse-handle-failure-to-allocate-req.patch ++++++
>From 9294657fb966c685cf6a99f4bbe73a91eb2b8f3c Mon Sep 17 00:00:00 2001
From: Miklos Szeredi <mszer...@suse.cz>
Date: Sun, 23 Oct 2011 10:07:20 +0200
Subject: Reply with ENOMEM in case of failure to allocate request

Reply to request with ENOMEM in case of failure to allocate request
structure.  Otherwise the task issuing the request will just freeze up
until the filesystem daemon is killed.  Reported by Stephan Kulow
---
 lib/fuse_lowlevel.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

Index: fuse-2.8.5/lib/fuse_lowlevel.c
===================================================================
--- fuse-2.8.5.orig/lib/fuse_lowlevel.c 2010-09-28 10:03:09.000000000 +0200
+++ fuse-2.8.5/lib/fuse_lowlevel.c      2011-11-03 13:10:07.000000000 +0100
@@ -1467,7 +1467,18 @@ static void fuse_ll_process(void *data,
 
        req = (struct fuse_req *) calloc(1, sizeof(struct fuse_req));
        if (req == NULL) {
+               struct fuse_out_header out = {
+                       .unique = in->unique,
+                       .error = -ENOMEM,
+                       .len = sizeof(struct fuse_out_header),
+               };
+               struct iovec iov = {
+                       .iov_base = &out,
+                       .iov_len = sizeof(struct fuse_out_header),
+               };
+
                fprintf(stderr, "fuse: failed to allocate request\n");
+               fuse_chan_send(ch, &iov, 1);
                return;
        }
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to