Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
runtime loading of module within f2fs in 4.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
guido.hatzsis
n00b
n00b


Joined: 10 Jul 2015
Posts: 51

PostPosted: Tue May 17, 2016 9:56 pm    Post subject: runtime loading of module within f2fs in 4.6 Reply with quote

I noticed that when I tried to mount an f2fs root file system, I was getting a "Cannot load crc32 driver."

I checked the code and woe and behold:
/* Load the checksum driver */
sbi->s_chksum_driver = crypto_alloc_shash("crc32", 0, 0);
if (IS_ERR(sbi->s_chksum_driver)) {
f2fs_msg(sb, KERN_ERR, "Cannot load crc32 driver.");
err = PTR_ERR(sbi->s_chksum_driver);
sbi->s_chksum_driver = NULL;
goto free_sbi;
}

which at runtime loads the crc32_generic (or intel or whatever) kernel module. Are there any other modules that don't have dependencies specified in the modules.dep but rather are loaded at runtime and what is the reason the code does this?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7267
Location: almost Mile High in the USA

PostPosted: Tue May 17, 2016 11:23 pm    Post subject: Reply with quote

Probably could be as simple as "bug"...
Likely this is an upstream issue so need to ask them about it.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
guido.hatzsis
n00b
n00b


Joined: 10 Jul 2015
Posts: 51

PostPosted: Tue May 17, 2016 11:36 pm    Post subject: Reply with quote

I don't think its a bug. Its a bit like going dlopen rather that using the compiler and/or magic of ELF.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum