From: Takashi Iwai <tiwai@suse.de>
To: Mirsad Todorovac <mirsad.todorovac@alu.unizg.hr>
Cc: linux-sound@vger.kernel.org, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Curtis Malainey <cujomalainey@chromium.org>,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] alsa: KMEMLEAK in pulseaudio and alsa-sink-ALC89
Date: Wed, 20 Mar 2024 07:26:39 +0100 [thread overview]
Message-ID: <87wmpxto4g.wl-tiwai@suse.de> (raw)
In-Reply-To: <c1e2ef3c-164f-4840-9b1c-f7ca07ca422a@alu.unizg.hr>
On Wed, 20 Mar 2024 02:13:08 +0100,
Mirsad Todorovac wrote:
>
> Hi,
>
> On Ubuntu 22.04 LTS, with the torvalds tree kernel vanilla v6.8-11167-g4438a810f396,
> there is like 660K memory leaks sized 2048 bytes (1.35 GB)
>
> unreferenced object 0xffff919c43c7c800 (size 2048):
> unreferenced object 0xffff919c43c78000 (size 2048):
> unreferenced object 0xffff919c43c79800 (size 2048):
> root@defiant:/home/marvin/linux/kernel/linux_torvalds# grep size ~marvin/linux/kernel_bugs/v6.8-11167/kmemleak.log | wc -l
> 663265
> root@defiant:/home/marvin/linux/kernel/linux_torvalds#
>
> Please find the .config attached.
>
> The kmemleak output is:
>
> unreferenced object 0xffff9199526ba800 (size 2048):
> comm "pulseaudio", pid 2533, jiffies 4294900352
> hex dump (first 32 bytes):
> 04 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................
> 49 45 43 39 35 38 20 50 6c 61 79 62 61 63 6b 20 IEC958 Playback
> backtrace (crc 87c1dcdc):
> [<ffffffffb2fa477b>] kmemleak_alloc+0x4b/0x90
> [<ffffffffb210e517>] __kmalloc_node_track_caller+0x3c7/0x530
> [<ffffffffb20a102b>] memdup_user+0x2b/0xb0
> [<ffffffffc0746d56>] snd_ctl_ioctl+0x726/0x860 [snd]
> [<ffffffffb21bed6d>] __x64_sys_ioctl+0x9d/0xe0
> [<ffffffffb2f93d33>] do_syscall_64+0x83/0x150
> [<ffffffffb3000121>] entry_SYSCALL_64_after_hwframe+0x6c/0x74
Thanks for the report. This was indeed an overlooked marking of
__free(kfree). I'll submit the fix patch.
Takashi
next prev parent reply other threads:[~2024-03-20 6:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-20 1:13 [BUG] alsa: KMEMLEAK in pulseaudio and alsa-sink-ALC89 Mirsad Todorovac
2024-03-20 6:26 ` Takashi Iwai [this message]
2024-03-20 18:57 ` Mirsad Todorovac
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=87wmpxto4g.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=cujomalainey@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mirsad.todorovac@alu.unizg.hr \
--cc=perex@perex.cz \
--cc=tiwai@suse.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 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.