Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Gupta, Anshuman" <anshuman.gupta@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Nilawar, Badal" <badal.nilawar@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] lib: Add silent __igt_i915_driver_unload
Date: Mon, 14 Feb 2022 10:08:54 -0800	[thread overview]
Message-ID: <874k51gw21.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <60fd1652892e4bd8908467ca74745d1b@intel.com>

On Mon, 14 Feb 2022 02:23:11 -0800, Gupta, Anshuman wrote:
>
> > This seems like a bug. The sound and aux arrays above should be static
> > otherwise these strings go out of scope after the function exits.
?
> AFAIU all string literals (both local and global) are part of .rodata elf
> section, which is ultimately a file backed read-execute-private mapping
> (r-xp) in process map (/proc/pid/maps).  This should not go out of
> scope. Please correct me if I am being wrong here.

Yup, if the file is mmap'd you are right.

  reply	other threads:[~2022-02-14 18:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-25  9:23 [igt-dev] [PATCH i-g-t 0/2] Nuke unload_i915 Anshuman Gupta
2021-10-25  9:23 ` [igt-dev] [PATCH i-g-t 1/2] lib: Add silent __igt_i915_driver_unload Anshuman Gupta
2022-02-12  4:20   ` Dixit, Ashutosh
2022-02-14 10:23     ` Gupta, Anshuman
2022-02-14 18:08       ` Dixit, Ashutosh [this message]
2022-02-16 11:41     ` Gupta, Anshuman
2021-10-25  9:23 ` [igt-dev] [PATCH i-g-t 2/2] perf/perf_pmu: Nuke unload_i915 Anshuman Gupta
2021-10-25 10:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-10-25 12:54 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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=874k51gw21.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=igt-dev@lists.freedesktop.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