Closed xuganlai closed 6 years ago
Hi,
Can you provide your kernel config? Also enabled kernel memory leak debugger to check if there' s memory leak. Thanks.
Sincerely,
Yi-An Chen
how to enable kernel memory leak debugger? could you provide your email address? I don't know why I can't add attachments here. thanks
Hi,
Enable CONFIG_DEBUG_KMEMLEAK, rebuild kernel. And execute in shell. mount -t debugfs nodev /sys/kernel/debug/ cat /sys/kernel/debug/kmemleak
You can paste your config as plan text here in this thread.
Sincerely,
Yi-An Chen
#
# CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y CONFIG_HAVE_PROC_CPU=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_RWSEM_GENERIC_SPINLOCK=y CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_FIQ=y CONFIG_VECTORS_BASE=0xffff0000 CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_NEED_MACH_GPIO_H=y CONFIG_GENERIC_BUG=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y
#
# CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" CONFIG_LOCALVERSION=""
CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_KERNEL_GZIP=y
CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y
CONFIG_FHANDLE=y
CONFIG_HAVE_GENERIC_HARDIRQS=y
#
# CONFIG_GENERIC_HARDIRQS=y CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_HARDIRQS_SW_RESEND=y CONFIG_KTIME_SCALAR=y CONFIG_ARCH_USES_GETTIMEOFFSET=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
#
# CONFIG_HZ_PERIODIC=y
#
# CONFIG_TICK_CPU_ACCOUNTING=y
CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y
#
# CONFIG_TREE_PREEMPT_RCU=y
CONFIG_PREEMPT_RCU=y CONFIG_RCU_STALL_COMMON=y CONFIG_RCU_FANOUT=32 CONFIG_RCU_FANOUT_LEAF=16
CONFIG_LOG_BUF_SHIFT=17 CONFIG_CGROUPS=y
CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CPUSETS=y CONFIG_PROC_PID_CPUSET=y CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y
CONFIG_CGROUP_PERF=y CONFIG_CGROUP_SCHED=y CONFIG_FAIR_GROUP_SCHED=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_NAMESPACES=y CONFIG_UTS_NS=y CONFIG_IPC_NS=y
CONFIG_PID_NS=y CONFIG_NET_NS=y CONFIG_UIDGID_CONVERTED=y
CONFIG_SYSCTL=y CONFIG_ANON_INODES=y CONFIG_HAVE_UID16=y CONFIG_HOTPLUG=y
CONFIG_UID16=y
CONFIG_KALLSYMS=y CONFIG_PRINTK=y CONFIG_BUG=y CONFIG_ELF_CORE=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y CONFIG_EPOLL=y CONFIG_SIGNALFD=y CONFIG_TIMERFD=y CONFIG_EVENTFD=y CONFIG_SHMEM=y CONFIG_AIO=y
CONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=y
#
# CONFIG_PERF_EVENTS=y CONFIG_VM_EVENT_COUNTERS=y CONFIG_SLUB_DEBUG=y
CONFIG_SLUB=y
CONFIG_HAVE_OPROFILE=y
CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_ATTRS=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_GENERIC_IDLE_POLL_SETUP=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_CLK=y CONFIG_HAVE_DMA_API_DEBUG=y CONFIG_HAVE_ARCH_JUMP_LABEL=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y CONFIG_HAVE_CONTEXT_TRACKING=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_MODULES_USE_ELF_REL=y CONFIG_CLONE_BACKWARDS=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_OLD_SIGACTION=y
#
#
CONFIG_HAVE_GENERIC_DMA_COHERENT=y CONFIG_SLABINFO=y CONFIG_RT_MUTEXES=y CONFIG_BASE_SMALL=0 CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_BLOCK=y CONFIG_LBDAF=y CONFIG_BLK_DEV_BSG=y
#
#
CONFIG_MSDOS_PARTITION=y CONFIG_EFI_PARTITION=y
#
# CONFIG_IOSCHED_NOOP=y CONFIG_IOSCHED_DEADLINE=y CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_CFQ=y
CONFIG_DEFAULT_IOSCHED="cfq" CONFIG_UNINLINE_SPIN_UNLOCK=y CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y CONFIG_FREEZER=y
#
# CONFIG_MMU=y
CONFIG_ARCH_NUC970=y
CONFIG_CPU_NUC970=y
#
# CONFIG_MACH_NUC970=y CONFIG_BOARD_NUC977=y
CONFIG_NUC970_FIQ=y
#
# CONFIG_CPU_ARM926T=y CONFIG_CPU_32v5=y CONFIG_CPU_ABRT_EV5TJ=y CONFIG_CPU_PABRT_LEGACY=y CONFIG_CPU_CACHE_VIVT=y CONFIG_CPU_COPY_V4WB=y CONFIG_CPU_TLB_V4WBI=y CONFIG_CPU_CP15=y CONFIG_CPU_CP15_MMU=y CONFIG_CPU_USE_DOMAINS=y
#
#
CONFIG_ARM_THUMB=y
CONFIG_NEED_KUSER_HELPERS=y CONFIG_KUSER_HELPERS=y
CONFIG_ARM_L1_CACHE_SHIFT=5 CONFIG_ARM_NR_BANKS=8
#
#
#
# CONFIG_VMSPLIT_3G=y
CONFIG_PAGE_OFFSET=0xC0000000 CONFIG_ARCH_NR_GPIO=0
CONFIG_PREEMPT=y CONFIG_PREEMPT_COUNT=y CONFIG_HZ=100
CONFIG_AEABI=y CONFIG_OABI_COMPAT=y
CONFIG_HAVE_ARCH_PFN_VALID=y
CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y CONFIG_HAVE_MEMBLOCK=y CONFIG_MEMORY_ISOLATION=y
CONFIG_PAGEFLAGS_EXTENDED=y CONFIG_SPLIT_PTLOCK_CPUS=999999 CONFIG_COMPACTION=y CONFIG_MIGRATION=y
CONFIG_ZONE_DMA_FLAG=0
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_NEED_PER_CPU_KM=y
CONFIG_FORCE_MAX_ZONEORDER=11 CONFIG_ALIGNMENT_TRAP=y
#
#
CONFIG_ATAGS=y
CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE="noinitrd ubi.mtd=2 root=ubi0:system rw rootfstype=ubifs console=ttyS0, 115200n8 rdinit=/sbin/init mem=64M mtdparts=nand0:0x100000@0x0(u-boot),0x500000@0x100000(kernel),0x3200000@0x600000(rootfs),0x4800000@0x3800000(user)" CONFIG_CMDLINE_FROM_BOOTLOADER=y
CONFIG_KEXEC=y CONFIG_ATAGS_PROC=y
#
#
#
#
#
# CONFIG_FPE_NWFPE=y
#
# CONFIG_BINFMT_ELF=y CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
CONFIG_BINFMT_SCRIPT=y
CONFIG_COREDUMP=y
#
#
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_NET=y
#
# CONFIG_PACKET=y CONFIG_PACKET_DIAG=y CONFIG_UNIX=y CONFIG_UNIX_DIAG=y CONFIG_XFRM=y CONFIG_XFRM_ALGO=y
CONFIG_NET_KEY=y
CONFIG_INET=y CONFIG_IP_MULTICAST=y
CONFIG_TCP_CONG_CUBIC=y CONFIG_DEFAULT_TCP_CONG="cubic"
CONFIG_HAVE_NET_DSA=y
CONFIG_BQL=y
#
#
CONFIG_WIRELESS=y
#
#
CONFIG_HAVE_BPF_JIT=y
#
#
#
# CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y
CONFIG_FW_LOADER=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_REGMAP=y CONFIG_REGMAP_I2C=y
CONFIG_CMA=y
#
# CONFIG_CMA_SIZE_MBYTES=16 CONFIG_CMA_SIZE_SEL_MBYTES=y
CONFIG_CMA_ALIGNMENT=8 CONFIG_CMA_AREAS=7 CONFIG_FMI_NUC970=y CONFIG_NUC970_FMI_MTD_NAND=y
#
#
CONFIG_MTD=y
CONFIG_MTD_CMDLINE_PARTS=y
#
# CONFIG_MTD_BLKDEVS=y CONFIG_MTD_BLOCK=y
#
#
CONFIG_MTD_MAP_BANK_WIDTH_1=y CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y CONFIG_MTD_CFI_I2=y
#
#
#
#
#
#
CONFIG_MTD_NAND_ECC=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_IDS=y
CONFIG_MTD_NAND_NUC970=y
CONFIG_NUC970_NAND_PI=y
#
#
CONFIG_MTD_UBI=y CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_LIMIT=20
CONFIG_BLK_DEV=y
CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=16384
#
#
CONFIG_NUC970_ETIMER=y
CONFIG_NUC970_ETIMER0_TGL_NONE=y
CONFIG_NUC970_ETIMER0_CAP_NONE=y
CONFIG_NUC970_ETIMER1_TGL_NONE=y
CONFIG_NUC970_ETIMER1_CAP_NONE=y
CONFIG_NUC970_ETIMER2_TGL_NONE=y
CONFIG_NUC970_ETIMER2_CAP_NONE=y
CONFIG_NUC970_ETIMER3_TGL_NONE=y
CONFIG_NUC970_ETIMER3_CAP_NONE=y
#
#
#
#
#
#
#
# CONFIG_SCSI_MOD=y
CONFIG_SCSI=y CONFIG_SCSI_DMA=y
#
# CONFIG_BLK_DEV_SD=y
#
#
CONFIG_NETDEVICES=y CONFIG_NET_CORE=y
CONFIG_DUMMY=y
CONFIG_MII=y
#
#
#
#
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_NUVOTON=y CONFIG_NUC970_ETH0=y
CONFIG_PHYLIB=y
#
#
CONFIG_ICPLUS_PHY=y
#
#
#
#
#
# CONFIG_INPUT=y
#
#
#
#
#
#
#
# CONFIG_TTY=y CONFIG_VT=y CONFIG_CONSOLE_TRANSLATIONS=y CONFIG_VT_CONSOLE=y CONFIG_HW_CONSOLE=y CONFIG_VT_HW_CONSOLE_BINDING=y CONFIG_UNIX98_PTYS=y
CONFIG_DEVKMEM=y
#
#
#
# CONFIG_SERIAL_NUC970=y CONFIG_NUC970_UART1=y
CONFIG_NUC970_UART1_PE=y
CONFIG_NUC970_UART2=y
CONFIG_NUC970_UART2_PF=y
CONFIG_NUC970_UART4=y
CONFIG_NUC970_UART4_PH=y
CONFIG_NUC970_UART8=y
CONFIG_NUC970_UART8_PE=y
CONFIG_NUC970_UART9=y CONFIG_NUC970_UART9_PD0=y
CONFIG_NUC970_UART10=y
CONFIG_NUC970_UART10_PB1=y
CONFIG_SERIAL_NUC970_CONSOLE=y
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_I2C=y CONFIG_I2C_BOARDINFO=y CONFIG_I2C_COMPAT=y
CONFIG_I2C_HELPER_AUTO=y CONFIG_I2C_ALGOBIT=y
#
#
#
#
CONFIG_I2C_GPIO=y
#
#
#
#
#
#
#
#
#
#
#
#
#
#
CONFIG_PINCTRL=y
#
# CONFIG_PINMUX=y CONFIG_PINCONF=y CONFIG_PINCTRL_NUC970=y
CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y CONFIG_ARCH_REQUIRE_GPIOLIB=y CONFIG_GPIO_DEVRES=y CONFIG_GPIOLIB=y
#
# CONFIG_GPIO_NUC970=y
#
#
#
#
#
#
#
#
#
#
#
#
CONFIG_SSB_POSSIBLE=y
#
#
CONFIG_BCMA_POSSIBLE=y
#
#
#
#
#
#
#
# CONFIG_DUMMY_CONSOLE=y CONFIG_SOUND=y CONFIG_SOUND_OSS_CORE=y CONFIG_SOUND_OSS_CORE_PRECLAIM=y CONFIG_SND=y CONFIG_SND_TIMER=y CONFIG_SND_PCM=y CONFIG_SND_COMPRESS_OFFLOAD=y CONFIG_SND_JACK=y
CONFIG_SND_OSSEMUL=y CONFIG_SND_MIXER_OSS=y CONFIG_SND_PCM_OSS=y CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SUPPORT_OLD_API=y CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_DRIVERS=y
CONFIG_SND_ARM=y CONFIG_SND_USB=y
CONFIG_SND_SOC=y
CONFIG_SND_SOC_NUC970=y CONFIG_SND_SOC_NUC970EVB=y CONFIG_NUC970_I2S_MASTER_MODE=y
CONFIG_SND_SOC_I2C_AND_SPI=y
CONFIG_SND_SOC_NAU8822=y
#
#
#
#
#
#
CONFIG_USB_ARCH_HAS_OHCI=y CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB_SUPPORT=y CONFIG_USB_COMMON=y CONFIG_USB_ARCH_HAS_HCD=y CONFIG_USB=y
#
#
#
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_NUC970_EHCI=y CONFIG_NUC970_USBH_PWR_PE=y
CONFIG_USB_OHCI_HCD=y CONFIG_USB_NUC970_OHCI=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
#
# CONFIG_USB_ACM=y
#
#
#
# CONFIG_USB_STORAGE=y
#
#
#
#
#
#
CONFIG_RTC_LIB=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_SYSTOHC=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
#
# CONFIG_RTC_INTF_SYSFS=y CONFIG_RTC_INTF_PROC=y CONFIG_RTC_INTF_DEV=y
#
#
#
#
#
#
CONFIG_RTC_DRV_NUC970=y
#
#
#
# CONFIG_DMADEVICES=y
#
#
CONFIG_NUC970_DMA=y CONFIG_DMA_ENGINE=y
#
#
#
#
#
#
CONFIG_CLKDEV_LOOKUP=y CONFIG_HAVE_CLK_PREPARE=y CONFIG_HAVE_MACH_CLKDEV=y CONFIG_COMMON_CLK=y
#
# CONFIG_COMMON_CLK_DEBUG=y
#
# CONFIG_CLKSRC_MMIO=y
CONFIG_IOMMU_SUPPORT=y
#
#
#
#
#
#
CONFIG_FS_POSIX_ACL=y CONFIG_EXPORTFS=y CONFIG_FILE_LOCKING=y
CONFIG_GENERIC_ACL=y
#
#
#
#
#
# CONFIG_FAT_FS=y CONFIG_MSDOS_FS=y CONFIG_VFAT_FS=y CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
#
# CONFIG_PROC_FS=y CONFIG_PROC_SYSCTL=y CONFIG_PROC_PAGE_MONITOR=y CONFIG_SYSFS=y CONFIG_TMPFS=y CONFIG_TMPFS_POSIX_ACL=y CONFIG_TMPFS_XATTR=y
CONFIG_MISC_FILESYSTEMS=y
CONFIG_YAFFS_FS=y CONFIG_YAFFS_YAFFS1=y
CONFIG_YAFFS_YAFFS2=y CONFIG_YAFFS_AUTO_YAFFS2=y
CONFIG_YAFFS_XATTR=y
CONFIG_UBIFS_FS=y CONFIG_UBIFS_FS_ADVANCED_COMPR=y CONFIG_UBIFS_FS_LZO=y CONFIG_UBIFS_FS_ZLIB=y
CONFIG_ROMFS_FS=y CONFIG_ROMFS_BACKED_BY_BLOCK=y
CONFIG_ROMFS_ON_BLOCK=y
CONFIG_NLS=y CONFIG_NLS_DEFAULT="iso8859-1" CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ISO8859_1=y
#
#
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
CONFIG_FRAME_WARN=1024
CONFIG_DEBUG_FS=y
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_HAVE_DEBUG_KMEMLEAK=y CONFIG_DEBUG_BUGVERBOSE=y CONFIG_DEBUG_MEMORY_INIT=y CONFIG_FRAME_POINTER=y
#
#
CONFIG_RCU_CPU_STALL_TIMEOUT=21 CONFIG_RCU_CPU_STALL_VERBOSE=y
CONFIG_HAVE_FUNCTION_TRACER=y CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y CONFIG_HAVE_SYSCALL_TRACEPOINTS=y CONFIG_HAVE_C_RECORDMCOUNT=y CONFIG_TRACING_SUPPORT=y
CONFIG_HAVE_ARCH_KGDB=y
CONFIG_STRICT_DEVMEM=y
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" CONFIG_UNCOMPRESS_INCLUDE="mach/uncompress.h"
#
#
CONFIG_DEFAULT_SECURITY_DAC=y CONFIG_DEFAULT_SECURITY="" CONFIG_CRYPTO=y
#
# CONFIG_CRYPTO_ALGAPI=y CONFIG_CRYPTO_ALGAPI2=y CONFIG_CRYPTO_AEAD2=y CONFIG_CRYPTO_BLKCIPHER=y CONFIG_CRYPTO_BLKCIPHER2=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_PCOMP2=y CONFIG_CRYPTO_MANAGER=y CONFIG_CRYPTO_MANAGER2=y CONFIG_CRYPTO_USER=y CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
CONFIG_CRYPTO_WORKQUEUE=y CONFIG_CRYPTO_CRYPTD=y
#
#
#
# CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_ECB=y
#
#
#
#
CONFIG_CRYPTO_MICHAEL_MIC=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=y CONFIG_CRYPTO_SHA512=y
#
# CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_ARC4=y
CONFIG_CRYPTO_DES=y
#
# CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_LZO=y
#
#
CONFIG_CRYPTO_USER_API=y CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_USER_API_SKCIPHER=y CONFIG_CRYPTO_HW=y CONFIG_CRYPTO_DEV_NUC970=y
#
# CONFIG_BITREVERSE=y CONFIG_GENERIC_STRNCPY_FROM_USER=y CONFIG_GENERIC_STRNLEN_USER=y CONFIG_GENERIC_PCI_IOMAP=y CONFIG_GENERIC_IO=y
CONFIG_CRC16=y
CONFIG_CRC32=y
CONFIG_CRC32_SLICEBY8=y
CONFIG_ZLIB_INFLATE=y CONFIG_ZLIB_DEFLATE=y CONFIG_LZO_COMPRESS=y CONFIG_LZO_DECOMPRESS=y CONFIG_XZ_DEC=y
CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT=y CONFIG_HAS_DMA=y CONFIG_DQL=y CONFIG_NLATTR=y CONFIG_GENERIC_ATOMIC64=y CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
1、have configed: (1)kernel debugging (2) kernel memory leak detector 2、recompiled and downloaded 3、but kernel print: kmemleak:kernel memory leak detector disabled kmemleak:early log buffer exceeded (2034),please increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE
so last cannot found kmemleak in /sys/kernel/debug. which steps are ignored; thanks
Hi,
As the log message shows, please try to increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE and test again. Thanks.
Sincerely,
Yi-An Chen
now ubi have been replaced by yaffs2.but system up have a issue,which steps is ignored? (kernel Related options of yaffs2 are selected.and make rootfs:mkyaffs2 --inband-tags -p 2048 rootfs rootfs_yaffs2.img .)Attach print message:
cma: CMA: reserved 16 MiB at 01000000
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: noinitrd root=/dev/mtdblock2 rw rootfstype=yaffs2 console=ttyS0,115200n8 rdinit=/sbin/init mem=32M mtdparts=nand0:0x100000@0x0(u-boot),0x500000@0x100000(kernel),0x2000000@0x600000(rootfs),-(user) mac=00:00:00:11:66:88
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 11328k/11328k available, 21440k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc2800000 - 0xff000000 ( 968 MB)
lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc03d5fd4 (3896 kB)
.init : 0xc03d6000 - 0xc0420968 ( 299 kB)
.data : 0xc0422000 - 0xc045e960 ( 243 kB)
.bss : 0xc045e960 - 0xc0492e40 ( 210 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:625
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
console [ttyS0] enabled
kmemleak: Kernel memory leak detector disabled
kmemleak: Early log buffer exceeded (2034), please increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys perf_event
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc030e378 - 0xc030e3b4
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
bio: create slab
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) on device 31:2.
devtmpfs: error mounting -2
Freeing unused kernel memory: 296K (c03d6000 - c0420000)
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.107 #32
Backtrace:
[
Try add rootflags=inband-tags in kernel boot command.
modify as follows.but there's still the same issue. noinitrd root=/dev/mtdblock2 rw rootfstype=yaffs2 rootflags=inband-tags console=ttyS0,115200n8 rdinit=/sbin/init mem=32M mtdparts=nand0:0x100000@0x0(u-boot),0x500000@0x100000(kernel),0x2000000@0x600000(rootfs),-(user)
Hi, Please try to use initrd as rootfs and mount yaffs2 partition manually. If it failed to mount manually, probably the yaffs2 partition is not write into NAND correctly.
Close unless there's new feedback.
kernel:3.10.107. board:nuc975. web server app runs on the board. the browser transfer files to the board via post method.the kernel print below(the web server is performing well on nuc951 board-RAM is 32M):
BC: page allocation failure: order:0, mode:0x20 CPU: 0 PID: 552 Comm: BC Tainted: G O 3.10.107 #26 Backtrace: [] (dump_backtrace+0x0/0x108) from [] (show_stack+0x18/0x1c)
r6:c0da0000 r5:00000000 r4:00000020
[] (show_stack+0x0/0x1c) from [] (dump_stack+0x20/0x2c)
[] (dump_stack+0x0/0x2c) from [] (warn_alloc_failed+0xcc/0x124)
[] (warn_alloc_failed+0x0/0x124) from [] (alloc_pages_nodemask+0x694/0x910)
r3:00000000 r2:00000000
r7:00000020 r6:c0da0000 r5:00000000 r4:c0492ffc
[] ( alloc_pages_nodemask+0x0/0x910) from [] (netdev_alloc_frag+0xa4/0x15c)
[] ( netdev_alloc_frag+0x0/0x15c) from [] (netdev_alloc_skb+0x90/0x100)
[] ( netdev_alloc_skb+0x0/0x100) from [] (nuc970_poll+0x1f0/0x2c4)
r6:c080bbc0 r5:0000003c r4:c0f7d780
[] (nuc970_poll+0x0/0x2c4) from [] (net_rx_action+0xd4/0x1d0)
[] (net_rx_action+0x0/0x1d0) from [] (do_softirq+0xbc/0x1bc)
[] (__do_softirq+0x0/0x1bc) from [] (do_softirq+0x54/0x60)
[] (do_softirq+0x0/0x60) from [] (irq_exit+0x5c/0x9c)
r4:00000013
[] (irq_exit+0x0/0x9c) from [] (handle_IRQ+0x40/0x90)
r4:00000013
[] (handle_IRQ+0x0/0x90) from [] (asm_do_IRQ+0x10/0x14)
r6:f0000000 r5:60000013 r4:c0234e0c
[] (asm_do_IRQ+0x0/0x14) from [] ( irq_svc+0x30/0x74)
Exception stack(0xc0da17b0 to 0xc0da17f8)
17a0: c080b010 f000d000 c0da0000 f000d000
17c0: 00380400 00000000 c080b020 00000000 00000000 00000040 c080b010 c0da180c
17e0: c0da1810 c0da17f8 c0235090 c0234e0c 60000013 ffffffff
[] (nuc970_check_rb+0x0/0x54) from [] (nuc970_nand_command_lp+0x214/0x3f8)
r4:00000000
[] (nuc970_nand_command_lp+0x0/0x3f8) from [] (nuc970_nand_read_page_hwecc_oob_first+0x48/0x250)
[] (nuc970_nand_read_page_hwecc_oob_first+0x0/0x250) from [] (nand_do_read_ops+0x17c/0x46c)
[] (nand_do_read_ops+0x0/0x46c) from [] (nand_read_oob+0x80/0x3b4)
[] (nand_read_oob+0x0/0x3b4) from [] (part_read_oob+0x84/0x168)
[] (part_read_oob+0x0/0x168) from [] (mtd_read_oob+0x3c/0x6c)
[] (mtd_read_oob+0x0/0x6c) from [] (yaffs_mtd_read+0x80/0x124)
r4:00000800
[] (yaffs_mtd_read+0x0/0x124) from [] (yaffs_tags_marshall_read+0x164/0x1f4)
[] (yaffs_tags_marshall_read+0x0/0x1f4) from [] (yaffs_rd_chunk_tags_nand+0x44/0xcc)
[] (yaffs_rd_chunk_tags_nand+0x0/0xcc) from [] (yaffs_rd_data_obj+0x68/0x80)
r7:c0cfe000 r6:c0cfe000 r5:c0726800 r4:c0d524a8
[] (yaffs_rd_data_obj+0x0/0x80) from [] (yaffs_file_rd+0x28c/0x294)
r5:c0d524a8 r4:00000070
[] (yaffs_file_rd+0x0/0x294) from [] (yaffs_readpage_nolock+0x98/0x188)
[] (yaffs_readpage_nolock+0x0/0x188) from [] (yaffs_readpage+0x34/0x78)
[] (yaffs_readpage+0x0/0x78) from [] (do_page_cache_readahead+0x254/0x2c0)
r6:0000001f r5:00000008 r4:c04d54c0
[] (__do_page_cache_readahead+0x0/0x2c0) from [] (ra_submit+0x2c/0x34)
[] (ra_submit+0x0/0x34) from [] (filemap_fault+0x408/0x450)
[] (filemap_fault+0x0/0x450) from [] ( do_fault+0x78/0x4a8)
[] (do_fault+0x0/0x4a8) from [] (handle_pte_fault+0x7c/0x730)
[] (handle_pte_fault+0x0/0x730) from [] (handle_mm_fault+0xbc/0xd4)
[] (handle_mm_fault+0x0/0xd4) from [] (do_page_fault+0x238/0x3a4)
[] (do_page_fault+0x0/0x3a4) from [] (do_translation_fault+0x84/0xb4)
[] (do_translation_fault+0x0/0xb4) from [] (do_PrefetchAbort+0x40/0xa4)
r8:c0da1fb0 r7:c046094c r6:00000005 r5:20000010 r4:c04608fc
[] (do_PrefetchAbort+0x0/0xa4) from [] (ret_from_exception+0x0/0x10)
Exception stack(0xc0da1fb0 to 0xc0da1ff8)
1fa0: 000027f1 00000bb8 000027f1 00000bb8
1fc0: b6c8ddbc be5ffe20 b6c8e004 00000000 00000000 00000000 be5ffe20 be5ff90c
1fe0: be5ff8ff be5ff0e8 0001bdb8 000477f0 20000010 ffffffff
Mem-info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:173 inactive_anon:1 isolated_anon:0
active_file:0 inactive_file:168 isolated_file:0
unevictable:1471 dirty:0 writeback:0 unstable:0
free:4049 slab_reclaimable:198 slab_unreclaimable:422
mapped:51 shmem:2 pagetables:31 bounce:0
free_cma:4018
Normal free:16196kB min:420kB low:524kB high:628kB active_anon:692kB inactive_anon:4kB active_file:0kB inactive_file:672kB unevictable:5884kB isolated(anon):0kB isolated(file):0kB present:32768kB managed:11120kB mlocked:0kB dirty:0kB writeback:0kB mapped:204kB shmem:8kB slab_reclaimable:792kB slab_unreclaimable:1688kB kernel_stack:296kB pagetables:124kB unstable:0kB bounce:0kB free_cma:16072kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 54kB (UC) 48kB (UMC) 516kB (MC) 232kB (MC) 264kB (C) 2128kB (C) 1256kB (C) 2512kB (C) 21024kB (C) 22048kB (C) 2*4096kB (C) = 16196kB
1646 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
nuc970-emac0 nuc970-emac0: get skb buffer error] (dump_backtrace+0x0/0x108) from [] (show_stack+0x18/0x1c)
r6:c0da0000 r5:00000000 r4:00000020
[] (show_stack+0x0/0x1c) from [] (dump_stack+0x20/0x2c)
[] (dump_stack+0x0/0x2c) from [] (warn_alloc_failed+0xcc/0x124)
[] (warn_alloc_failed+0x0/0x124) from [] (alloc_pages_nodemask+0x694/0x910)
r3:00000000 r2:00000000
r7:00000020 r6:c0da0000 r5:00000000 r4:c0492ffc
[] ( alloc_pages_nodemask+0x0/0x910) from [] (netdev_alloc_frag+0xa4/0x15c)
[] ( netdev_alloc_frag+0x0/0x15c) from [] (netdev_alloc_skb+0x90/0x100)
[] ( netdev_alloc_skb+0x0/0x100) from [] (nuc970_poll+0x1f0/0x2c4)
r6:c080bbc0 r5:0000003c r4:c0f7d780
[] (nuc970_poll+0x0/0x2c4) from [] (net_rx_action+0xd4/0x1d0)
[] (net_rx_action+0x0/0x1d0) from [] (__do_softirq+0xbc/0x1bc)
[] ( do_softirq+0x0/0x1bc) from [] (do_softirq+0x54/0x60)
[] (do_softirq+0x0/0x60) from [] (irq_exit+0x5c/0x9c)
r4:00000013
[] (irq_exit+0x0/0x9c) from [] (handle_IRQ+0x40/0x90)
r4:00000013
[] (handle_IRQ+0x0/0x90) from [] (asm_do_IRQ+0x10/0x14)
r6:f0000000 r5:60000013 r4:c0234e0c
[] (asm_do_IRQ+0x0/0x14) from [] (irq_svc+0x30/0x74)
Exception stack(0xc0da17b0 to 0xc0da17f8)
17a0: c080b010 f000d000 c0da0000 f000d000
17c0: 00380400 00000000 c080b020 00000000 00000000 00000040 c080b010 c0da180c
17e0: c0da1810 c0da17f8 c0235090 c0234e0c 60000013 ffffffff
[] (nuc970_check_rb+0x0/0x54) from [] (nuc970_nand_command_lp+0x214/0x3f8)
r4:00000000
[] (nuc970_nand_command_lp+0x0/0x3f8) from [] (nuc970_nand_read_page_hwecc_oob_first+0x48/0x250)
[] (nuc970_nand_read_page_hwecc_oob_first+0x0/0x250) from [] (nand_do_read_ops+0x17c/0x46c)
[] (nand_do_read_ops+0x0/0x46c) from [] (nand_read_oob+0x80/0x3b4)
[] (nand_read_oob+0x0/0x3b4) from [] (part_read_oob+0x84/0x168)
[] (part_read_oob+0x0/0x168) from [] (mtd_read_oob+0x3c/0x6c)
[] (mtd_read_oob+0x0/0x6c) from [] (yaffs_mtd_read+0x80/0x124)
r4:00000800
[] (yaffs_mtd_read+0x0/0x124) from [] (yaffs_tags_marshall_read+0x164/0x1f4)
[] (yaffs_tags_marshall_read+0x0/0x1f4) from [] (yaffs_rd_chunk_tags_nand+0x44/0xcc)
[] (yaffs_rd_chunk_tags_nand+0x0/0xcc) from [] (yaffs_rd_data_obj+0x68/0x80)
r7:c0cfe000 r6:c0cfe000 r5:c0726800 r4:c0d524a8
[] (yaffs_rd_data_obj+0x0/0x80) from [] (yaffs_file_rd+0x28c/0x294)
r5:c0d524a8 r4:00000070
[] (yaffs_file_rd+0x0/0x294) from [] (yaffs_readpage_nolock+0x98/0x188)
[] (yaffs_readpage_nolock+0x0/0x188) from [] (yaffs_readpage+0x34/0x78)
[] (yaffs_readpage+0x0/0x78) from [] (__do_page_cache_readahead+0x254/0x2c0)
r6:0000001f r5:00000008 r4:c04d54c0
[] ( do_page_cache_readahead+0x0/0x2c0) from [] (ra_submit+0x2c/0x34)
[] (ra_submit+0x0/0x34) from [] (filemap_fault+0x408/0x450)
[] (filemap_fault+0x0/0x450) from [] (__do_fault+0x78/0x4a8)
[] (__do_fault+0x0/0x4a8) from [] (handle_pte_fault+0x7c/0x730)
[] (handle_pte_fault+0x0/0x730) from [] (handle_mm_fault+0xbc/0xd4)
[] (handle_mm_fault+0x0/0xd4) from [] (do_page_fault+0x238/0x3a4)
[] (do_page_fault+0x0/0x3a4) from [] (do_translation_fault+0x84/0xb4)
[] (do_translation_fault+0x0/0xb4) from [] (do_PrefetchAbort+0x40/0xa4)
r8:c0da1fb0 r7:c046094c r6:00000005 r5:20000010 r4:c04608fc
[] (do_PrefetchAbort+0x0/0xa4) from [] (ret_from_exception+0x0/0x10)
Exception stack(0xc0da1fb0 to 0xc0da1ff8)
1fa0: 000027f1 00000bb8 000027f1 00000bb8
1fc0: b6c8ddbc be5ffe20 b6c8e004 00000000 00000000 00000000 be5ffe20 be5ff90c
1fe0: be5ff8ff be5ff0e8 0001bdb8 000477f0 20000010 ffffffff
Mem-info:
Normal per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:173 inactive_anon:1 isolated_anon:0
active_file:0 inactive_file:168 isolated_file:0
unevictable:1471 dirty:0 writeback:0 unstable:0
free:4049 slab_reclaimable:198 slab_unreclaimable:422
mapped:51 shmem:2 pagetables:31 bounce:0
free_cma:4018
Normal free:16196kB min:420kB low:524kB high:628kB active_anon:692kB inactive_anon:4kB active_file:0kB inactive_file:672kB unevictable:5884kB isolated(anon):0kB isolated(file):0kB present:32768kB managed:11120kB mlocked:0kB dirty:0kB writeback:0kB mapped:204kB shmem:8kB slab_reclaimable:792kB slab_unreclaimable:1688kB kernel_stack:296kB pagetables:124kB unstable:0kB bounce:0kB free_cma:16072kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 54kB (UC) 48kB (UMC) 516kB (MC) 232kB (MC) 264kB (C) 2128kB (C) 1256kB (C) 2512kB (C) 21024kB (C) 22048kB (C) 2*4096kB (C) = 16196kB
1646 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
nuc970-emac0 nuc970-emac0: get skb buffer error
BC: page allocation failure: order:0, mode:0x20 CPU: 0 PID: 552 Comm: BC Tainted: G O 3.10.107 #26 Backtrace: [