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>] [day] [month] [year] [list]
Message-Id: <201005261515.57195.jbe@pengutronix.de>
Date:	Wed, 26 May 2010 15:15:56 +0200
From:	Juergen Beisert <jbe@...gutronix.de>
To:	linux-kernel@...r.kernel.org
Cc:	cpufreq@...r.kernel.org
Subject: [cpufreq] Removing module 'cpufreq_stats' fails

Hi,

currently I'm trying to get some statistics about a Freescale i.MX25 CPU
frequency scaling driver. But when I'm loading the 'cpufreq_stats' driver no
'/sys/devices/system/cpu/cpu0/cpufreq/stats' directory occurs. Instead when I
try to unload the driver I get:

$ rmmod cpufreq_stats
WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0x54/0x114()
sysfs group bf000810 not found for kobject 'cpufreq'
Modules linked in: cpufreq_stats(-)
Backtrace:
[<c0029dbc>] (dump_backtrace+0x0/0x10c) from [<c02ab8cc>] (dump_stack+0x18/0x1c)
 r7:c39e1ed8 r6:c00e7828 r5:c0332243 r4:0000008a
[<c02ab8b4>] (dump_stack+0x0/0x1c) from [<c003e2d4>] (warn_slowpath_common+0x50/0x80)
[<c003e284>] (warn_slowpath_common+0x0/0x80) from [<c003e350>] (warn_slowpath_fmt+0x30/0x38)
 r7:00000880 r6:bf000810 r5:c38a3390 r4:00000000
[<c003e320>] (warn_slowpath_fmt+0x0/0x38) from [<c00e7828>] (sysfs_remove_group+0x54/0x114)
 r3:bf000810 r2:c0332254
[<c00e77d4>] (sysfs_remove_group+0x0/0x114) from [<bf00069c>] (cpufreq_stats_exit+0x54/0x9c [cpufreq_stats])
 r7:00000880 r6:c39e1f3c r5:c38a3340 r4:00000000
[<bf000648>] (cpufreq_stats_exit+0x0/0x9c [cpufreq_stats]) from [<c006c6fc>] (sys_delete_module+0x1e0/0x25c)
 r5:bf00086c r4:00000000
[<c006c51c>] (sys_delete_module+0x0/0x25c) from [<c0025fa0>] (ret_fast_syscall+0x0/0x28)
 r7:00000081 r6:00000000 r5:00000880 r4:be898c78
---[ end trace 1f4382bf2ce1570f ]---

I tried a bit with the module: When I load the 'cpufreq_stats' module its
cpufreq_stat_notifier_policy() is called three times: Two times with
'val != CPUFREQ_NOTIFY', and the third call the routine terminates due to
the call to 'cpufreq_frequency_get_table()' returns NULL. So, the sysfs
directory entries are never created, but the module still tries to remove them
when unloading.

jbe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ