From: David Howells <dhowells@redhat.com>
To: syzbot <syzbot+3b6c5c6a1d0119b687a1@syzkaller.appspotmail.com>
Cc: dhowells@redhat.com, linux-afs@lists.infradead.org,
linux-kernel@vger.kernel.org, marc.dionne@auristor.com,
syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [afs?] BUG: sleeping function called from invalid context in __alloc_frozen_pages_noprof
Date: Mon, 31 Mar 2025 11:58:41 +0100 [thread overview]
Message-ID: <241600.1743418721@warthog.procyon.org.uk> (raw)
In-Reply-To: <67e57c41.050a0220.2f068f.0034.GAE@google.com>
Note to syzbot maintainers: the C test program contains a compressed ext3
image and decompression code that I think is entirely unnecessary. All it
does is provide a directory that the afs dynroot can be mounted upon.
This is the only bit of the test that is actually necessary:
NONFAILING(memcpy((void*)0x2000000001c0, "./file0\000", 8));
NONFAILING(memcpy((void*)0x2000000002c0, "afs\000", 4));
NONFAILING(memcpy((void*)0x200000000400, "dyn", 3));
NONFAILING(*(uint8_t*)0x200000000403 = 0x2c);
NONFAILING(*(uint8_t*)0x200000000404 = 0);
syscall(__NR_mount, /*src=*/0ul, /*dst=*/0x2000000001c0ul,
/*type=*/0x2000000002c0ul, /*flags=*/0ul, /*opts=*/0x200000000400ul);
NONFAILING(memcpy((void*)0x2000000000c0, "./file0\000", 8));
syscall(__NR_chdir, /*dir=*/0x2000000000c0ul);
NONFAILING(memcpy((void*)0x200000000240, "./file1\000", 8));
syscall(__NR_lstat, /*file=*/0x200000000240ul, /*statbuf=*/0ul);
NONFAILING(memcpy((void*)0x2000000000c0, ".\000", 2));
res = syscall(__NR_open, /*file=*/0x2000000000c0ul, /*flags=*/0ul,
/*mode=*/0ul);
if (res != -1)
r[0] = res;
syscall(__NR_getdents, /*fd=*/r[0], /*ent=*/0x200000001fc0ul,
/*count=*/0xb8ul);
Basically:
mount(NULL, "./file0", "afs", 0, "dyn,") = 0
chdir("./file0") = 0
lstat("./file1", NULL) = -1 EFAULT (Bad address)
open(".", O_RDONLY) = 4
getdents(4, 0x200000001fc0 /* 5 entries */, 184) = 168
David
next prev parent reply other threads:[~2025-03-31 10:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-27 16:26 [syzbot] [afs?] BUG: sleeping function called from invalid context in __alloc_frozen_pages_noprof syzbot
2025-03-28 17:44 ` David Howells
2025-03-28 18:15 ` syzbot
2025-03-29 2:47 ` Edward Adam Davis
2025-03-29 5:51 ` syzbot
2025-03-29 5:55 ` Edward Adam Davis
2025-03-29 6:07 ` syzbot
2025-03-29 9:39 ` Edward Adam Davis
2025-03-29 10:03 ` syzbot
2025-03-29 9:49 ` David Howells
2025-03-29 10:18 ` syzbot
2025-03-31 10:58 ` David Howells [this message]
2025-03-31 12:49 ` Aleksandr Nogikh
-- strict thread matches above, loose matches on Subject: below --
2025-03-27 16:27 [syzbot] [afs?] [ntfs3?] BUG: sleeping function called from invalid context in ovl_cache_entry_new syzbot
2025-03-29 2:53 ` [syzbot] [afs?] BUG: sleeping function called from invalid context in __alloc_frozen_pages_noprof Edward Adam Davis
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=241600.1743418721@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.dionne@auristor.com \
--cc=syzbot+3b6c5c6a1d0119b687a1@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox