public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "agentzh at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug runtime/31053] New: The stap runtime's allocator might sleep in atomic contexts
Date: Sat, 11 Nov 2023 07:19:41 +0000	[thread overview]
Message-ID: <bug-31053-6586@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=31053

            Bug ID: 31053
           Summary: The stap runtime's allocator might sleep in atomic
                    contexts
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: agentzh at gmail dot com
  Target Milestone: ---

Currently, the `STP_ALLOC_FLAGS` flag used in the stap kernel runtime's
allocator actually includes __GFP_IO and __GFP_FS flags which might sleep. All
kernels since 3.10 would trigger this bug. But the STP_ALLOC_FLAGS is supposed
to be used "anywhere", including atomic contexts, according to the existing
code comment:

```
 /* Default, and should be "safe" from anywhere. */
```

I'll fix it in a patch. Glad we drop support for the 2.6 kernels so we can
remove a lot of baggage here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

             reply	other threads:[~2023-11-11  7:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-11  7:19 agentzh at gmail dot com [this message]
2023-11-14 20:50 ` [Bug runtime/31053] " agentzh at gmail dot com

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=bug-31053-6586@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).