[FS#96] segfault in kmodloader (ubox)

LEDE Bugs lede-bugs at lists.infradead.org
Wed Aug 17 02:29:58 PDT 2016


A new Flyspray task has been opened.  Details are below. 

User who did this - Artox (Artox) 

Attached to Project - LEDE Project
Summary - segfault in kmodloader (ubox)
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Critical
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - kmodloader.c:131
null pointer dereference in for (p = module_folders; *p; p++) {
                                                     ^^

root@(none):/# gdb --args insmod ext4
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-openwrt-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from insmod...done.
(gdb) run
Starting program: /usr/sbin/insmod ext4
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.

Program received signal SIGSEGV, Segmentation fault.
0x00011a48 in get_module_path (name=0xbeffff64 "ext4")
    at /opt/workspace/SolidRun/OpenWRT/lede-project/build_dir/target-arm_cortex-a9+neon_glibc-2.22_eabi/ubox-2016-07-19/kmodloader.c:131
131     /opt/workspace/SolidRun/OpenWRT/lede-project/build_dir/target-arm_cortex-a9+neon_glibc-2.22_eabi/ubox-2016-07-19/kmodloader.c: No such file or directory.
(gdb) bt
#0  0x00011a48 in get_module_path (name=0xbeffff64 "ext4")
    at /opt/workspace/SolidRun/OpenWRT/lede-project/build_dir/target-arm_cortex-a9+neon_glibc-2.22_eabi/ubox-2016-07-19/kmodloader.c:131
#1  0x00010e18 in main_insmod (argv=0xbefffe64, argc=2)
    at /opt/workspace/SolidRun/OpenWRT/lede-project/build_dir/target-arm_cortex-a9+neon_glibc-2.22_eabi/ubox-2016-07-19/kmodloader.c:614
#2  main (argc=2, argv=0xbefffe64)
    at /opt/workspace/SolidRun/OpenWRT/lede-project/build_dir/target-arm_cortex-a9+neon_glibc-2.22_eabi/ubox-2016-07-19/kmodloader.c:863
(gdb) info locals
p = 0x0
path = '\000' 
s = {st_dev = 8029399166113284096, __pad1 = 25966, st_ino = 0, st_mode = 0, 
  st_nlink = 0, st_uid = 0, st_gid = 0, st_rdev = 0, __pad2 = 0, st_size = 0, 
  st_blksize = 0, st_blocks = 0, st_atim = {tv_sec = 0, tv_nsec = 0}, 
  st_mtim = {tv_sec = 0, tv_nsec = -1224802304}, st_ctim = {tv_sec = 0, 
    tv_nsec = 2}, __glibc_reserved4 = 3204447844, __glibc_reserved5 = 143404}
(gdb) print module_folders
$2 = (char **) 0x0

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=96



More information about the lede-bugs mailing list