lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 4 Nov 2022 11:40:28 +0100
From:   Mirsad Goran Todorovac <mirsad.todorovac@....unizg.hr>
To:     linux-kernel@...r.kernel.org
Cc:     "regressions@...ts.linux.dev" <regressions@...ts.linux.dev>,
        Tejun Heo <tj@...nel.org>,
        Florian Mickler <florian@...kler.org>
Subject: BUG: kworker memory leak found in 6.1.0-rc3

Dear Sirs,

When building a RPM 6.1.0-rc3 for AlmaLinux 8.6, I have enabled 
CONFIG_DEBUG_KMEMLEAK=y
and the result showed an unreferenced object in kworker process:

# cat /sys/kernel/debug/kmemleak
unreferenced object 0xffffa01dabff6100 (size 16):
   comm "kworker/u12:4", pid 400, jiffies 4294894771 (age 5284.956s)
   hex dump (first 16 bytes):
     6d 65 6d 73 74 69 63 6b 30 00 00 00 00 00 00 00 memstick0.......
   backtrace:
     [<000000009ff951f6>] __kmem_cache_alloc_node+0x380/0x4e0
     [<00000000451f4268>] __kmalloc_node_track_caller+0x55/0x150
     [<0000000005472512>] kstrdup+0x36/0x70
     [<000000002f797ac4>] kstrdup_const+0x28/0x30
     [<00000000e3f86581>] kvasprintf_const+0x78/0xa0
     [<00000000e15920f7>] kobject_set_name_vargs+0x23/0xa0
     [<000000004158a6c0>] dev_set_name+0x53/0x70
     [<000000001a120541>] memstick_check+0xff/0x384 [memstick]
     [<00000000122bb894>] process_one_work+0x214/0x3f0
     [<00000000fcf282cc>] worker_thread+0x34/0x3d0
     [<0000000002409855>] kthread+0xed/0x120
     [<000000007b02b4a3>] ret_from_fork+0x1f/0x30
unreferenced object 0xffffa01dabff6ec0 (size 16):
   comm "kworker/u12:4", pid 400, jiffies 4294894774 (age 5284.944s)
   hex dump (first 16 bytes):
     6d 65 6d 73 74 69 63 6b 30 00 00 00 00 00 00 00 memstick0.......
   backtrace:
     [<000000009ff951f6>] __kmem_cache_alloc_node+0x380/0x4e0
     [<00000000451f4268>] __kmalloc_node_track_caller+0x55/0x150
     [<0000000005472512>] kstrdup+0x36/0x70
     [<000000002f797ac4>] kstrdup_const+0x28/0x30
     [<00000000e3f86581>] kvasprintf_const+0x78/0xa0
     [<00000000e15920f7>] kobject_set_name_vargs+0x23/0xa0
     [<000000004158a6c0>] dev_set_name+0x53/0x70
     [<000000001a120541>] memstick_check+0xff/0x384 [memstick]
     [<00000000122bb894>] process_one_work+0x214/0x3f0
     [<00000000fcf282cc>] worker_thread+0x34/0x3d0
     [<0000000002409855>] kthread+0xed/0x120
     [<000000007b02b4a3>] ret_from_fork+0x1f/0x30
#

Please fing the build config and lshw output attached.

dmesg is useless, as it is filled with events like:

[ 6068.996120] evbug: Event. Dev: input4, Type: 1, Code: 31, Value: 0
[ 6068.996121] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0
[ 6069.124145] evbug: Event. Dev: input4, Type: 4, Code: 4, Value: 458762
[ 6069.124149] evbug: Event. Dev: input4, Type: 1, Code: 34, Value: 1
[ 6069.124150] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0
[ 6069.196003] evbug: Event. Dev: input4, Type: 4, Code: 4, Value: 458762
[ 6069.196007] evbug: Event. Dev: input4, Type: 1, Code: 34, Value: 0
[ 6069.196009] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0
[ 6069.788129] evbug: Event. Dev: input4, Type: 4, Code: 4, Value: 458792
[ 6069.788133] evbug: Event. Dev: input4, Type: 1, Code: 28, Value: 1
[ 6069.788135] evbug: Event. Dev: input4, Type: 0, Code: 0, Value: 0

Thank you,

Mirsad

-- 
Mirsad Goran Todorovac
Sistem inženjer
Grafički fakultet | Akademija likovnih umjetnosti
Sveučilište u Zagrebu
-- 
System engineer
Faculty of Graphic Arts | Academy of Fine Arts
University of Zagreb, Republic of Croatia

View attachment "lshw-20221104.txt" of type "text/plain" (23440 bytes)

Download attachment "config-6.1.0-rc3.gz" of type "application/gzip" (66273 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ