From: Dave Jones <davej@redhat.com>
To: "Toralf Förster" <toralf.foerster@gmx.de>
Cc: trinity@vger.kernel.org
Subject: Re: generic-sanitise.c:fill_arg:294 unreachable!
Date: Tue, 28 May 2013 11:20:08 -0400 [thread overview]
Message-ID: <20130528152008.GA3560@redhat.com> (raw)
In-Reply-To: <51A4C931.90908@gmx.de>
On Tue, May 28, 2013 at 05:11:45PM +0200, Toralf Förster wrote:
> run into this today while fuzzying a stable Gentoo Linux image (chrooted) and kernel 3.10-rc3:
>
>
> [29118] [36] statfs64(pathname="/mnt/hostfs/v1/v2/f19735", sz=0x3fba7c8f) = -1 (Invalid argument)
> generic-sanitise.c:fill_arg:294 unreachable!
> [watchdog] pid 29096 hasn't made progress in 30 seconds! (last:1369753604 now:1369753634 diff:30). Stuck in syscall 279:mq_timedsend. Sending SIGKILL.
> [28242] Random reseed: 504311294
>
>
> and later :
>
>
> [29123] [128] setdomainname(name=0, len=0) = -1 (Operation not permitted)
> [29123] [129] pread64(fd=12, buf=0x895a000[page_rand], count=4096, pos=16) = -1 (Is a directory)
> generic-sanitise.c:fill_arg:294 unreachable!
> [watchdog] pid 29118 hasn't made progress in 30 seconds! (last:1369753633 now:1369753663 diff:30). Stuck in syscall 279:mq_timedsend. Sending SIGKILL.
> [28242] Random reseed: 1774374230
> [29133] [0] setresuid(ruid=0x8fffffff, euid=0x45009081, suid=0x67a8cbc6) = -1 (Operation not permitted)
>
>
>
> [29133] [31] acct(name=0) = -1 (Operation not permitted)
> [29133] [32] pipe2(fildes=4, flags=0x4000) = -1 (Bad address)
> generic-sanitise.c:fill_arg:294 unreachable!
> [watchdog] pid 29121 hasn't made progress in 30 seconds! (last:1369753635 now:1369753665 diff:30). Stuck in syscall 279:mq_timedsend. Sending SIGKILL.
> [28242] Random reseed: 641723094
> [29143] [0] unlinkat(dfd=12, pathname="/mnt/hostfs/v1/v2/f19735", flag=0x74fe39d0) = -1 (Invalid argument)
>
>
> expected or rather a ToDo ?
unexpected. Very strange. Can you apply this, and see what it prints out ?
diff --git a/generic-sanitise.c b/generic-sanitise.c
index 0fb2f52..2232437 100644
--- a/generic-sanitise.c
+++ b/generic-sanitise.c
@@ -291,6 +291,9 @@ static unsigned long fill_arg(int childno, int call, int argnum)
return mode;
default:
+ printf("name: %s\n", syscalls[call].entry->name);
+ printf("argnum: %d\n", argnum);
+ printf("argtype: %d\n", argtype);
BUG("unreachable!\n");
return 0;
}
prev parent reply other threads:[~2013-05-28 15:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-28 15:11 generic-sanitise.c:fill_arg:294 unreachable! Toralf Förster
2013-05-28 15:20 ` Dave Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130528152008.GA3560@redhat.com \
--to=davej@redhat.com \
--cc=toralf.foerster@gmx.de \
--cc=trinity@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.