Re: [PATCH 1/1] radix-tree: do not export radix_tree_preloads as GPL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-07-17 14:33:31 [+0200], Alberto Milone wrote:
> 
> I checked and CONFIG_DEBUG_LOCK_ALLOC is not enabled in our kernels.

The access to that variable is optimized away if not for debug. I made
this:
| #include <linux/module.h>
| #include <linux/idr.h>
| 
| static int le_init(void)
| {
|         idr_preload_end();
|         return 0;
| }
| module_init(le_init);
| 
| static void le_exit(void)
| {
| }
| module_exit(le_exit);
|    
| MODULE_DESCRIPTION("driver");
| MODULE_LICENSE("prop");

and it produced a .ko. Here the "idr_preload_end()" was reduced to
"preempt_enable()" as intended. No access to
"&radix_tree_preloads.lock".

Sebastian



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux