[lkp] [writeback] 9340837195: INFO: suspicious RCU usage. ]
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle commit 93408371951a8c076c58a532e3e7e14969e5e015 ("writeback: throttle buffered writeback") in testcase: boot on test machine: 1 threads qemu-system-x86_64 -enable-kvm -cpu SandyBridge with 320M memory caused below changes: +---+++ | | fd9e8f2822 | 9340837195 | +---+++ | boot_successes| 6 | 4 | | boot_failures | 0 | 30 | | INFO:suspicious_RCU_usage | 0 | 30 | | backtrace:do_mount| 0 | 28 | | backtrace:SyS_mount | 0 | 28 | | timestamp.last| 0 | 3676.860562003 | | backtrace:do_sys_open | 0 | 2 | | backtrace:SyS_open| 0 | 2 | +---+++ [ 19.168560] input: ImExPS/2 BYD TouchPad as /devices/platform/i8042/serio1/input/input3 [ 21.175977] [ 21.177141] === [ 21.178757] [ INFO: suspicious RCU usage. ] [ 21.180364] 4.7.0-rc7-8-g9340837 #246 Not tainted [ 21.182098] --- [ 21.183728] include/linux/cgroup.h:434 suspicious rcu_dereference_check() usage! [ 21.186972] [ 21.186972] other info that might help us debug this: [ 21.186972] [ 21.190687] [ 21.190687] rcu_scheduler_active = 1, debug_locks = 0 [ 21.193455] 4 locks held by mount/2419: [ 21.195030] #0: (&bdev->bd_mutex){+.+.+.}, at: [] __blkdev_get+0x96/0x3d0 [ 21.198794] #1: (floppy_mutex){+.+.+.}, at: [] floppy_open+0x38/0x303 [ 21.202444] #2: (open_lock){+.+.+.}, at: [] floppy_open+0x46/0x303 [ 21.205831] #3: (floppy_lock){..}, at: [] cfq_set_request+0x5c/0x32c [ 21.209547] [ 21.209547] stack backtrace: [ 21.211888] CPU: 0 PID: 2419 Comm: mount Not tainted 4.7.0-rc7-8-g9340837 #246 [ 21.214848] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 21.218069] 88000c7cb778 8155bee7 88000b038040 [ 21.221473] 0001 88000c7cb7a8 810e8aff 88000b88c008 [ 21.224926] 88000b038040 0003 88000d0a8008 88000c7cb868 [ 21.228228] Call Trace: [ 21.229486] [] dump_stack+0x86/0xc0 [ 21.231276] [] lockdep_rcu_suspicious+0xf7/0x100 [ 21.233302] [] check_blkcg_changed+0x202/0x402 [ 21.235246] [] ? lock_acquire+0x188/0x223 [ 21.237097] [] ? cfq_set_request+0x5c/0x32c [ 21.238987] [] cfq_set_request+0xcf/0x32c [ 21.240916] [] ? _raw_spin_unlock_irq+0x2c/0x3d [ 21.242879] [] ? trace_hardirqs_on_caller+0x17e/0x19a [ 21.244951] [] ? trace_hardirqs_on+0xd/0xf [ 21.246855] [] ? _raw_spin_unlock_irq+0x2c/0x3d [ 21.248886] [] ? ioc_create_icq+0x15b/0x172 [ 21.250814] [] elv_set_request+0x1c/0x21 [ 21.252668] [] get_request+0x54d/0xa5d [ 21.254488] [] ? wake_up_bit+0x2a/0x2a [ 21.256319] [] blk_queue_bio+0x1ba/0x4dc [ 21.258096] [] generic_make_request+0xbd/0x15b [ 21.260066] [] submit_bio+0x108/0x113 [ 21.261895] [] __floppy_read_block_0+0xcb/0x116 [ 21.263905] [] ? mark_held_locks+0x5e/0x74 [ 21.265831] [] ? _raw_spin_unlock_irqrestore+0x48/0x5e [ 21.267931] [] ? trace_hardirqs_on_caller+0x17e/0x19a [ 21.270019] [] ? floppy_resume+0x3f/0x3f [ 21.271937] [] floppy_revalidate+0x1a9/0x1bc [ 21.273925] [] check_disk_change+0x52/0x5e [ 21.275815] [] floppy_open+0x27b/0x303 [ 21.277644] [] __blkdev_get+0x108/0x3d0 [ 21.279503] [] ? blkdev_get+0x2da/0x2fe [ 21.284992] [] blkdev_get+0x1c7/0x2fe [ 21.286812] [] ? mntput_no_expire+0xdd/0x350 [ 21.288780] [] ? mntput+0x2d/0x2f [ 21.290542] [] ? path_put+0x1e/0x21 [ 21.292319] [] blkdev_get_by_path+0x33/0x69 [ 21.294226] [] mount_bdev+0x48/0x197 [ 21.296766] [] ? ext4_calculate_overhead+0x2bd/0x2bd [ 21.298783] [] ext4_mount+0x15/0x17 [ 21.300537] [] mount_fs+0x14/0x8d [ 21.302228] [] vfs_kern_mount+0x6b/0x133 [ 21.304137] [] do_mount+0xa4d/0xb53 [ 21.305915] [] ? strndup_user+0x3f/0x6b [ 21.307738] [] SyS_mount+0x77/0x9f [ 21.309470] [] entry_SYSCALL_64_fastpath+0x1f/0xbd [ 21.376317] blk_update_request: I/O error, dev fd0, sector 0 FYI, raw QEMU command line is: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -kernel /pkg/linux/x86_64-nfsroot/gcc-6/93408371951a8c076c58a532e3e7e14969e5e015/vmlinuz-4.7.0-rc7-8-g9340837 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-x86_64-32/rand_boot-1-yocto-minimal-x86_64.cgz-93408371951a8c076c58a532e3e7e14969e5e015-20160722-42999-h2wrj2-0.yaml ARCH=x86_64 kconfig=x86_64-nfsroot branch=block/wb-buf-throttle commit=93408
[usb] 25111da692: trinity-c0 invoked oom-killer: gfp_mask=0x24002c2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN), order=0, oom_score_adj=500
on-Kim/usb-host-max3421-hcd-fix-mask-of-IO-control-register/20160723-192544 commit=25111da692292f56cb3917536c1405e2624f103d BOOT_IMAGE=/pkg/linux/x86_64-nfsroot/gcc-6/25111da692292f56cb3917536c1405e2624f103d/vmlinuz-4.7.0-rc6-00176-g25111da max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-wsx03-quantal-x86_64/quantal-core-x86_64.cgz/x86_64-nfsroot/gcc-6/25111da692292f56cb3917536c1405e2624f103d/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw ip=vm-lkp-wsx03-quantal-x86_64-9::dhcp drbd.minor_count=8' -initrd /fs/sdc1/initrd-vm-lkp-wsx03-quantal-x86_64-9 -m 360 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -pidfile /dev/shm/kboot/pid-vm-lkp-wsx03-quantal-x86_64-9 -serial file:/dev/shm/kboot/serial-vm-lkp-wsx03-quantal-x86_64-9 -daemonize -display none -monitor null Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.7.0-rc6 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_64_SMP=y CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx -fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 -fcall-saved-r11" CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y CONFIG_KERNEL_GZIP=y # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y CONFIG_POSIX_MQUEUE=y CONFIG_POSIX_MQUEUE_SYSCTL=y CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_FHANDLE=y CONFIG_USELIB=y CONFIG_AUDIT=y CONFIG_HAVE_ARCH_AUDITSYSCALL=y CONFIG_AUDITSYSCALL=y CONFIG_AUDIT_WATCH=y CONFIG_AUDIT_TREE=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_PENDING_IRQ=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_MSI_IRQ=y CONFIG_GENERIC_MSI_IRQ_DOMAIN=y # CONFIG_IRQ_DOMAIN_DEBUG is not set CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERIC_CMOS_UPDATE=y # # Timers subsystem # CONFIG_TICK_ONESHOT=y CONFIG_NO_HZ_COMMON=y # CONFIG_HZ_PERIODIC is not set CONFIG_NO_HZ_IDLE=y # CONFIG_NO_HZ_FULL is not set CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y # # CPU/Task time and stats accounting # CONFIG_TICK_CPU_ACCOUNTING=y # CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set # CONFIG_IRQ_TIME_ACCOUNTING is not set CONFIG_BSD_PROCESS_ACCT=y CONFIG_BSD_PROCESS_ACCT_V3=y CONFIG_TASKSTATS=y CONFIG_TASK_DELAY_ACCT=y CONFIG_TASK_XACCT=y CONFIG_TASK_IO_ACCOUNTING=y # # RCU Subsystem # CONFIG_TREE_RCU=y # CONFIG_RCU_EXPERT is not set CONFIG_SRCU=y CONFIG_TASKS_RCU=y CONFIG_RCU_STALL_COMMON=y CONFIG_TREE_RCU_TRACE=y # CONFIG_RCU_EXPEDITE_BOOT is not set CONFIG_BUILD_BIN2C=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=18 CONFIG_LOG_CPU_MAX_BUF_SHIFT=12 CONFIG_NMI_LOG_BUF_SHIFT=13 CONFIG_HAVE_UNSTABLE_SCHE
[lkp] [fs] c43edc7bd9: BUG: unable to handle kernel NULL pointer dereference at 00000450
FYI, we noticed the following commit: https://github.com/0day-ci/linux Deepa-Dinamani/Delete-CURRENT_TIME-and-CURRENT_TIME_SEC-macros/20160620-104147 commit c43edc7bd9c06af9a7278101d462eb0ba0299605 ("fs: Replace CURRENT_TIME with current_time() for inode timestamps") on test machine: vm-kbuild-yocto-i386: 2 threads qemu-system-i386 -enable-kvm with 320M memory caused below changes: ++++ || 58b11bff28 | c43edc7bd9 | ++++ | boot_successes | 0 | 0 | | boot_failures | 6 | 14 | | genirq:Flags_mismatch_irq##(serial)vs.#(goldfish_pdev_bus) | 6 | | | genirq:Flags_mismatch_irq | 1 | | | BUG:unable_to_handle_kernel| 0 | 14 | | Oops | 0 | 14 | | EIP_is_at_current_time | 0 | 14 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 14 | | backtrace:_do_fork | 0 | 14 | ++++ Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0 Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0 CPU: Intel QEMU Virtual CPU version 2.4.0 (family: 0x6, model: 0x6, stepping: 0x3) BUG: unable to handle kernel NULL pointer dereference at 0450 IP: [<810d76ba>] current_time+0x17/0x2b *pde = Oops: [#1] DEBUG_PAGEALLOC Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 4.7.0-rc3-next-20160617-2-gc43edc7 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 task: 8182c600 ti: 81826000 task.ti: 81826000 EIP: 0060:[<810d76ba>] EFLAGS: 00210246 CPU: 0 EIP is at current_time+0x17/0x2b EAX: EBX: 92804dcc ECX: 0008 EDX: 1b0ef314 ESI: 92804dcc EDI: 81842680 EBP: 81827e0c ESP: 81827dfc DS: 007b ES: 007b FS: GS: SS: 0068 CR0: 80050033 CR2: 0450 CR3: 01922000 CR4: 0690 Stack: 576775b1 1b0ef314 92804db0 81827e1c 810ff1ea 92c27800 92c27800 81827e2c 810d6db3 92c27800 8184da40 81827e3c 810d7f57 92c27800 8184da40 81827e4c 810ff40e 92c27800 81827e58 810ff527 92c27800 81827e70 Call Trace: [<810ff1ea>] proc_alloc_inode+0x56/0x70 [<810d6db3>] alloc_inode+0x14/0x5f [<810d7f57>] new_inode_pseudo+0xa/0x40 [<810ff40e>] proc_get_inode+0xc/0xe5 [<810ff527>] proc_fill_super+0x40/0x80 [<810ff71d>] proc_mount+0x93/0xce [<810c5cf2>] mount_fs+0xe/0x7a [<810d9dcf>] vfs_kern_mount+0x4b/0xf5 [<810d9e89>] kern_mount_data+0x10/0x21 [<810ff81f>] pid_ns_prepare_proc+0x12/0x21 [<8103ac1d>] alloc_pid+0x233/0x2ea [<8103c5b4>] ? create_new_namespaces+0x121/0x121 [<810283df>] copy_process+0xc5a/0x1232 [<81501e05>] ? rest_init+0xa2/0xa2 [<812b4b49>] ? acpi_hw_read+0xe9/0x15f [<81028acc>] _do_fork+0x61/0x28f [<812b4d37>] ? acpi_hw_register_read+0x4f/0xaf [<812b5511>] ? acpi_read_bit_register+0x1e/0x3d [<81501e05>] ? rest_init+0xa2/0xa2 [<81028d16>] kernel_thread+0x1c/0x21 [<81501d7d>] rest_init+0x1a/0xa2 [<818adac9>] start_kernel+0x34e/0x353 [<818ad2b5>] i386_start_kernel+0xa0/0xa4 Code: 00 89 e5 b8 00 1a 84 81 e8 ab 67 f5 ff eb 03 b0 01 c3 5d c3 55 89 e5 53 89 c3 83 ec 0c 8d 45 f0 e8 4a b8 f8 ff 8b 43 1c 8b 55 f8 <8b> 88 50 04 00 00 8b 45 f0 e8 40 6b f8 ff 83 c4 0c 5b 5d c3 55 EIP: [<810d76ba>] current_time+0x17/0x2b SS:ESP 0068:81827dfc CR2: 0450 ---[ end trace a8594f352bea28f0 ]--- Kernel panic - not syncing: Fatal exception FYI, raw QEMU command line is: qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-randconfig-n0-201625/gcc-6/c43edc7bd9c06af9a7278101d462eb0ba0299605/vmlinuz-4.7.0-rc3-next-20160617-2-gc43edc7 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-i386-29/bisect_boot-1-yocto-minimal-i386.cgz-i386-randconfig-n0-201625-c43edc7bd9c06af9a7278101d462eb0ba0299605-20160620-50311-gdkngs-0.yaml~ ARCH=i386 kconfig=i386-randconfig-n0-201625 branch=linux-review/Deepa-Dinamani/Delete-CURRENT_TIME-and-CURRENT_TIME_SEC-macros/20160620-104147 commit=c43edc7bd9c06af9a7278101d462eb0ba0299605 BOOT_IMAGE=/pkg/linux/i386-randconfig-n0-201625/gcc-6/c43edc7bd9c06af9a7278101d462eb0ba0299605/vmlinuz-4.7.0-rc3-next-20160617-2-gc43edc7 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-i386/yocto-minimal-i386.cgz/i386-randconfig-n0-201625/gcc-6/c43edc7bd9c06af9a7278101d462eb0ba0299605/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=1
[lkp] [x86 tsc] 19fa5e7364: WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe+0x72/0x80
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git x86 commit 19fa5e73647fde1e6a7038a8f05cddf4c43f08d3 ("x86 tsc: enumerate SKL cpu_khz and tsc_khz via CPUID") on test machine: vm-kbuild-yocto-x86_64: 1 threads qemu-system-x86_64 -enable-kvm -cpu SandyBridge with 320M memory caused below changes: +--+++ | | cc50dc7f73 | 19fa5e7364 | +--+++ | boot_successes | 0 | 0 | | boot_failures| 10 | 12 | | invoked_oom-killer:gfp_mask=0x | 10 | 10 | | Mem-Info | 10 | 10 | | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 10 | 10 | | backtrace:btrfs_test_extent_io | 10 | 10 | | backtrace:init_btrfs_fs | 10 | 10 | | backtrace:kernel_init_freeable | 10 | 10 | | WARNING:at_arch/x86/mm/extable.c:#ex_handler_rdmsr_unsafe| 0 | 10 | | backtrace:native_calibrate_cpu | 0 | 10 | | backtrace:tsc_init | 0 | 10 | | backtrace:x86_late_time_init | 0 | 10 | +--+++ [0.00] clocksource: hpet: mask: 0x max_cycles: 0x, max_idle_ns: 19112604467 ns [0.00] hpet clockevent registered [0.00] [ cut here ] [0.00] WARNING: CPU: 0 PID: 0 at arch/x86/mm/extable.c:50 ex_handler_rdmsr_unsafe+0x72/0x80 [0.00] unchecked MSR access error: RDMSR from 0xce [0.00] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.7.0-rc3-9-g19fa5e7 #1 [0.00] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [0.00] 83203c38 816da89d 83203c88 [0.00] 82e71808 8104e8c2 83203c78 [0.00] 810b796b 00328453b4a0 82e71808 0032 [0.00] Call Trace: [0.00] [] dump_stack+0x83/0xb6 [0.00] [] ? ex_handler_rdmsr_unsafe+0x72/0x80 [0.00] [] __warn+0x10b/0x130 [0.00] [] warn_slowpath_fmt+0x63/0x70 [0.00] [] ex_handler_rdmsr_unsafe+0x72/0x80 [0.00] [] fixup_exception+0x46/0x60 [0.00] [] do_general_protection+0x7b/0x150 [0.00] [] general_protection+0x28/0x30 [0.00] [] ? native_read_msr+0x6/0x20 [0.00] [] cpu_khz_from_msr+0xf1/0x150 [0.00] [] ? trap_init+0x22e/0x22e [0.00] [] native_calibrate_cpu+0x85/0x5b0 [0.00] [] ? native_restore_fl+0x6/0x10 [0.00] [] ? __setup_irq+0x196/0x750 [0.00] [] ? trap_init+0x22e/0x22e [0.00] [] tsc_init+0x42/0x3c3 [0.00] [] ? setup_irq+0x6f/0xc0 [0.00] [] ? trap_init+0x22e/0x22e [0.00] [] ? trap_init+0x22e/0x22e [0.00] [] x86_late_time_init+0xf/0x11 [0.00] [] ? x86_late_time_init+0xf/0x11 [0.00] [] start_kernel+0x3f3/0x4b1 [0.00] [] ? early_idt_handler_array+0x120/0x120 [0.00] [] x86_64_start_reservations+0x2f/0x31 [0.00] [] x86_64_start_kernel+0xe6/0xf3 [0.00] ---[ end trace 7c0d92684f22f4ac ]--- [0.00] tsc: Fast TSC calibration using PIT FYI, raw QEMU command line is: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -kernel /pkg/linux/x86_64-randconfig-w0-06180628/gcc-6/19fa5e73647fde1e6a7038a8f05cddf4c43f08d3/vmlinuz-4.7.0-rc3-9-g19fa5e7 -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-x86_64-32/bisect_boot-1-yocto-minimal-x86_64.cgz-x86_64-randconfig-w0-06180628-19fa5e73647fde1e6a7038a8f05cddf4c43f08d3-20160618-25535-h82bax-0.yaml~ ARCH=x86_64 kconfig=x86_64-randconfig-w0-06180628 branch=internal-eywa/master commit=19fa5e73647fde1e6a7038a8f05cddf4c43f08d3 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-w0-06180628/gcc-6/19fa5e73647fde1e6a7038a8f05cddf4c43f08d3/vmlinuz-4.7.0-rc3-9-g19fa5e7 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-x86_64/yocto-minimal-x86_64.cgz/x86_64-randconfig-w0-06180628/gcc-6/19fa5e73647fde1e6a7038a8f05cddf4c43f08d3/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=10
[lkp] [jbd2] 41f6316ed3: kernel BUG at fs/ext4/super.c:371!
FYI, we noticed the following commit: https://github.com/0day-ci/linux Wang-Shilong/jbd2-wake-up-j_wait_done_commit-before-commit-callback/20160616-115406 commit 41f6316ed374dba6f9693d917c1815019f075bdf ("jbd2: wake up j_wait_done_commit before commit callback") in testcase: ext4-frags with following parameters: disk=1HDD on test machine: vm-vp-1G: 2 threads qemu-system-x86_64 -enable-kvm -cpu Nehalem with 1G memory caused below changes: ++--++ | | v4.7-rc3 | 41f6316ed3 | ++--++ | boot_successes | 666 | 10 | | boot_failures | 89 | 4 | | invoked_oom-killer:gfp_mask=0x | 65 || | Mem-Info | 79 || | Out_of_memory:Kill_process | 5|| | backtrace:_do_fork | 6|| | backtrace:SyS_clone | 5|| | INFO:suspicious_RCU_usage | 1|| | backtrace:rcu_torture_writer | 1|| | backtrace:vfs_write | 59 || | backtrace:SyS_write | 59 || | backtrace:pgd_alloc | 1|| | backtrace:mm_init | 1|| | BUG:kernel_test_crashed | 5|| | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 56 || | backtrace:populate_rootfs | 56 || | backtrace:kernel_init_freeable | 56 || | BUG:kernel_early-boot_hang | 3|| | page_allocation_failure:order:#,mode:#(GFP_NOWAIT|__GFP_HIGH|__GFP_COMP|__GFP_NOTRACK) | 14 || | warn_alloc_failed+0x | 14 || | backtrace:btrfs_submit_helper | 11 || | backtrace:blk_mq_run_work_fn | 4|| | backtrace:vfs_read | 2|| | backtrace:SyS_read | 2|| | INFO:task_blocked_for_more_than#seconds | 1|| | RIP:__default_send_IPI_dest_field | 1|| | RIP:trace_hardirqs_on_caller | 1|| | Kernel_panic-not_syncing:hung_task:blocked_tasks | 1|| | backtrace:do_utimes | 1|| | backtrace:SyS_utimensat | 1|| | backtrace:watchdog | 1|| | backtrace:ep_poll | 1|| | backtrace:SyS_epoll_wait | 1|| | backtrace:wb_workfn | 1|| | backtrace:do_mlock | 1|| | backtrace:SyS_mlock | 1|| | kernel_BUG_at_fs/ext4/
[lkp] [writeback] c284d3afba: INFO: suspicious RCU usage. ]
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle commit c284d3afba4e7f6a18122b416daceb994412ed6d ("writeback: throttle buffered writeback") in testcase: boot on test machine: 1 threads qemu-system-x86_64 -enable-kvm -cpu Westmere with 320M memory caused below changes: +-+++ | | 0052d7a2a1 | c284d3afba | +-+++ | boot_successes | 6 | 0 | | boot_failures | 0 | 10 | | INFO:suspicious_RCU_usage | 0 | 10 | | backtrace:disk_events_workfn+0x | 0 | 2 | | backtrace:compat_SyS_mount+0x | 0 | 2 | | backtrace:compat_SyS_mount | 0 | 2 | | backtrace:SyS_open+0x | 0 | 2 | | backtrace:SyS_mount+0x | 0 | 2 | +-+++ Starting udev [ 55.583020] [ 55.584026] === [ 55.585419] [ INFO: suspicious RCU usage. ] [ 55.586823] 4.7.0-03460-gc284d3a #210 Not tainted [ 55.588307] --- [ 55.615491] include/linux/cgroup.h:434 suspicious rcu_dereference_check() usage! [ 55.618336] [ 55.618336] other info that might help us debug this: [ 55.618336] [ 55.647238] [ 55.647238] rcu_scheduler_active = 1, debug_locks = 0 [ 55.661574] 4 locks held by mount/2438: [ 55.663031] #0: (&bdev->bd_mutex){+.+.+.}, at: [] __blkdev_get+0x96/0x3d0 [ 55.666526] #1: (floppy_mutex){+.+.+.}, at: [] floppy_open+0x38/0x303 [ 55.689474] #2: (open_lock){+.+.+.}, at: [] floppy_open+0x46/0x303 [ 55.692618] #3: (floppy_lock){..}, at: [] cfq_set_request+0x6d/0x33e [ 55.716947] [ 55.716947] stack backtrace: [ 55.719105] CPU: 0 PID: 2438 Comm: mount Not tainted 4.7.0-03460-gc284d3a #210 [ 55.742993] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 55.746017] 88000b917748 8155ee22 88000b4da9c0 [ 55.749043] 0001 88000b917778 810eb566 88000b92e008 [ 55.780401] 88000b4da9c0 0003 88000d1bc008 88000b917838 [ 55.783486] Call Trace: [ 55.784674] [] dump_stack+0x86/0xc0 [ 55.786349] [] lockdep_rcu_suspicious+0xf7/0x100 [ 55.811201] [] check_blkcg_changed+0x202/0x402 [ 55.813118] [] ? lock_acquire+0x180/0x21b [ 55.814932] [] ? cfq_set_request+0x6d/0x33e [ 55.816728] [] cfq_set_request+0xf2/0x33e [ 55.818299] [] ? _raw_spin_unlock_irq+0x2c/0x3d [ 55.845138] [] ? trace_hardirqs_on_caller+0x17e/0x19a [ 55.847107] [] ? trace_hardirqs_on+0xd/0xf [ 55.862515] [] ? _raw_spin_unlock_irq+0x2c/0x3d [ 55.864248] [] ? ioc_create_icq+0x15b/0x172 [ 55.866015] [] elv_set_request+0x1f/0x24 [ 55.867753] [] get_request+0x5bb/0xaaf [ 55.904525] [] ? wake_up_bit+0x2a/0x2a [ 55.906104] [] blk_queue_bio+0x1bd/0x4d0 [ 55.907889] [] generic_make_request+0xbd/0x15b [ 55.909686] [] submit_bio+0x103/0x10c [ 55.911418] [] __floppy_read_block_0+0xd4/0x11f [ 55.928821] [] ? mark_held_locks+0x5e/0x74 [ 55.930632] [] ? _raw_spin_unlock_irqrestore+0x48/0x5e [ 55.932574] [] ? trace_hardirqs_on_caller+0x17e/0x19a [ 55.955101] [] ? floppy_resume+0x3f/0x3f [ 55.956862] [] floppy_revalidate+0x19f/0x1b2 [ 55.958712] [] check_disk_change+0x52/0x5e [ 55.979912] [] floppy_open+0x27b/0x303 [ 55.981584] [] __blkdev_get+0x108/0x3d0 [ 55.983332] [] ? blkdev_get+0x2da/0x2fe [ 55.985102] [] blkdev_get+0x1c7/0x2fe [ 56.002462] [] ? mntput_no_expire+0xdd/0x350 [ 56.004181] [] ? mntput+0x2d/0x2f [ 56.005839] [] ? path_put+0x1e/0x21 [ 56.007550] [] blkdev_get_by_path+0x33/0x69 [ 56.025545] [] mount_bdev+0x48/0x197 [ 56.035638] [] ? ext4_calculate_overhead+0x2bd/0x2bd [ 56.037650] [] ext4_mount+0x15/0x17 [ 56.039248] [] mount_fs+0x14/0x8d [ 56.040773] [] vfs_kern_mount+0x6b/0x133 [ 56.042478] [] do_mount+0xa4d/0xb53 [ 56.070772] [] ? strndup_user+0x3f/0x6b [ 56.072537] [] compat_SyS_mount+0x185/0x1ae [ 56.074325] [] do_int80_syscall_32+0x68/0x11a [ 56.076184] [] entry_INT80_compat+0x38/0x50 [ 56.154399] blk_update_request: I/O error, dev fd0, sector 0 [ 56.156125] floppy: error -5 while reading block 0 FYI, raw QEMU command line is: qemu-system-x86_64 -enable-kvm -cpu Westmere -kernel /pkg/linux/x86_64-nfsroot/gcc-6/c284d3afba4e7f6a18122b416daceb994412ed6d/vmlinuz-4.7.0-03460-gc284d3a -append 'ip=vm-kbuild-yocto-ia32-26::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-ia32-26/boot-1-yocto-minimal-i386.cgz-c284d3afba4e7f6a18122b416daceb994412ed6d-20160728-44712-tuwvmw-1.yaml ARCH=x86_64 kconfig=x86_64-nfsroot branch=block/wb-buf-throttle
[lkp] [blk] 9f9093afaf: kernel BUG at block/blk-mq.c:365!
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git blk-dio commit 9f9093afaff2c4d247e5bc7d25ec0574e3f8d12b ("blk-mq: private O_DIRECT implementation") in testcase: boot on test machine: 2 threads qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap with 2G memory caused below changes: +---+++ | | 0e06f5c0de | 9f9093afaf | +---+++ | boot_successes| 136| 62 | | boot_failures | 0 | 73 | | BUG:unable_to_handle_kernel | 0 | 49 | | Oops | 0 | 49 | | RIP:blk_update_request| 0 | 32 | | Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 73 | | RIP:__blk_recalc_rq_segments | 0 | 19 | | backtrace:vfs_read| 0 | 16 | | backtrace:SyS_read| 0 | 16 | | backtrace:vfs_llseek | 0 | 2 | | backtrace:SyS_lseek | 0 | 4 | | kernel_BUG_at_block/blk-mq.c | 0 | 22 | | invalid_opcode:#[##]SMP | 0 | 22 | | RIP:blk_mq_end_request| 0 | 22 | | general_protection_fault:#[##]SMP | 0 | 2 | | backtrace:SyS_newfstat| 0 | 2 | | backtrace:SyS_ioctl | 0 | 3 | +---+++ Starting Copy rules generated while the root was ro... Starting LSB: MD array assembly... [ 11.626304] [ cut here ] [ 11.628118] kernel BUG at block/blk-mq.c:365! [ 11.632175] invalid opcode: [#1] SMP [ 11.637668] Modules linked in: [ 11.639205] CPU: 0 PID: 2175 Comm: mdadm Not tainted 4.7.0-03200-g9f9093a #1 [ 11.643243] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 11.650426] task: 88007eae0dc0 ti: 88007f814000 task.ti: 88007f814000 [ 11.655392] RIP: 0010:[] [] blk_mq_end_request+0x1e/0x5c [ 11.665009] RSP: :880078803f20 EFLAGS: 00010002 [ 11.666863] RAX: 0001 RBX: 88007fab RCX: [ 11.672882] RDX: 88007f7b6000 RSI: RDI: [ 11.674849] RBP: 880078803f30 R08: 88005c2d6e18 R09: [ 11.683957] R10: R11: R12: [ 11.685930] R13: 88007fab R14: 81ea9f36 R15: [ 11.687896] FS: 7f2286125700() GS:88007880() knlGS: [ 11.690695] CS: 0010 DS: ES: CR0: 80050033 [ 11.712461] CR2: 01623d88 CR3: 7eca6000 CR4: 000406f0 [ 11.714451] Stack: [ 11.715542] 88007fab0010 814c9b0e 880078803f40 815cc751 [ 11.718637] 880078803f50 814c9b21 880078803f88 8116c346 [ 11.739752] 0001 0001 [ 11.742821] Call Trace: [ 11.743980] [ 11.744418] [] ? __blk_mq_end_request+0x44/0x44 [ 11.746998] [] virtblk_request_done+0x5e/0x60 [ 11.748775] [] __blk_mq_complete_request_remote+0x13/0x15 [ 11.750755] [] flush_smp_call_function_queue+0xcd/0x13e [ 11.765696] [] generic_smp_call_function_single_interrupt+0x13/0x4a [ 11.768446] [] smp_call_function_single_interrupt+0x27/0x35 [ 11.771070] [] call_function_single_interrupt+0x8c/0xa0 [ 11.772982] [ 11.773415] Code: 48 83 c4 28 5b 41 5c 41 5d 41 5e 5d c3 0f 1f 44 00 00 55 48 89 e5 41 54 53 8b 57 58 48 89 fb 41 89 f4 e8 cc 7c ff ff 84 c0 74 02 <0f> 0b 48 89 df e8 cd 7f ff ff 48 8b 83 98 01 00 00 48 85 c0 74 [ 11.799220] RIP [] blk_mq_end_request+0x1e/0x5c [ 11.801131] RSP [ 11.802469] ---[ end trace 58ac7b630a6d0c87 ]--- [ 11.804084] Kernel panic - not syncing: Fatal exception in interrupt FYI, raw QEMU command line is: qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel /pkg/linux/x86_64-lkp/gcc-6/9f9093afaff2c4d247e5bc7d25ec0574e3f8d12b/vmlinuz-4.7.0-03200-g9f9093a -append 'ip=vm-kbuild-2G-3::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-2G-3/boot-1-debian-x86_64-2015-02-07.cgz-9f9093afaff2c4d247e5bc
[ima] 476b17b7d1: BUG: spinlock bad magic on CPU#0, swapper/0/1
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-restore-kexec commit 476b17b7d15057caf440b6f76457d0d772e6aebe ("ima: store the builtin/custom template definitions in a list") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 320M caused below changes: +--+++ | | 6c3d0673b8 | 476b17b7d1 | +--+++ | boot_successes | 12 | 0 | | boot_failures| 2 | 16 | | BUG:unable_to_handle_kernel | 2 || | Oops | 2 || | calltrace:SyS_ipc| 2 || | Kernel_panic-not_syncing:Fatal_exception | 2 || | BUG:spinlock_bad_magic_on_CPU| 0 | 15 | | calltrace:init_ima | 0 | 15 | | WARNING:at_kernel/locking/lockdep.c:#check_flags | 0 | 1 | | calltrace:threadfunc | 0 | 1 | +--+++ [ 14.562924] done. [ 14.563455] Using IPI No-Shortcut mode [ 14.566488] Key type encrypted registered [ 14.566943] BUG: spinlock bad magic on CPU#0, swapper/0/1 [ 14.567537] lock: template_list+0x0/0x20, .magic: , .owner: /-1, .owner_cpu: 0 [ 14.568453] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-g476b17b #1 [ 14.569273] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 14.569443] 00200246 c349bea4 b137e3b8 b1f5b61d b2c7fda0 c349becc b10fdb2e [ 14.569443] b1f0a3d9 b2c7fda0 b1f5b61d b2c7fda0 [ 14.569443] c349bedc b10fdb8d b1f0a414 b2c7fda0 c349bef8 b10fdcd4 b2c7fdb0 [ 14.569443] Call Trace: [ 14.569443] [] dump_stack+0x1a4/0x246 [ 14.569443] [] spin_dump+0xc5/0xdd [ 14.569443] [] spin_bug+0x47/0x59 [ 14.569443] [] do_raw_spin_lock+0x48/0x2b2 [ 14.569443] [] _raw_spin_lock+0x6f/0x93 [ 14.569443] [] ? ima_init_template_list+0x1b/0x99 [ 14.569443] [] ? hash_setup+0x14d/0x14d [ 14.569443] [] ima_init_template_list+0x1b/0x99 [ 14.569443] [] init_ima+0x17/0x87 [ 14.569443] [] do_one_initcall+0x10e/0x22b [ 14.569443] [] ? repair_env_string+0x32/0xd6 [ 14.569443] [] ? parse_args+0x3b5/0x521 [ 14.569443] [] ? kernel_init_freeable+0x275/0x415 [ 14.569443] [] kernel_init_freeable+0x2a6/0x415 [ 14.569443] [] kernel_init+0x16/0x248 [ 14.569443] [] ret_from_kernel_thread+0xe/0x30 [ 14.569443] [] ? rest_init+0x2df/0x2df [ 14.581955] ima: No TPM chip found, activating TPM-bypass! [ 14.582650] evm: HMAC attrs: 0x1 Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.8.0-rc1 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=2 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set CONFIG_KERNEL_BZIP2=y # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set #
[ima] 476b17b7d1: BUG: spinlock bad magic on CPU#0, swapper/0/1
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-restore-kexec commit 476b17b7d15057caf440b6f76457d0d772e6aebe ("ima: store the builtin/custom template definitions in a list") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 320M caused below changes: +--+++ | | 6c3d0673b8 | 476b17b7d1 | +--+++ | boot_successes | 12 | 0 | | boot_failures| 2 | 16 | | BUG:unable_to_handle_kernel | 2 || | Oops | 2 || | calltrace:SyS_ipc| 2 || | Kernel_panic-not_syncing:Fatal_exception | 2 || | BUG:spinlock_bad_magic_on_CPU| 0 | 15 | | calltrace:init_ima | 0 | 15 | | WARNING:at_kernel/locking/lockdep.c:#check_flags | 0 | 1 | | calltrace:threadfunc | 0 | 1 | +--+++ [ 14.562924] done. [ 14.563455] Using IPI No-Shortcut mode [ 14.566488] Key type encrypted registered [ 14.566943] BUG: spinlock bad magic on CPU#0, swapper/0/1 [ 14.567537] lock: template_list+0x0/0x20, .magic: , .owner: /-1, .owner_cpu: 0 [ 14.568453] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-g476b17b #1 [ 14.569273] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 14.569443] 00200246 c349bea4 b137e3b8 b1f5b61d b2c7fda0 c349becc b10fdb2e [ 14.569443] b1f0a3d9 b2c7fda0 b1f5b61d b2c7fda0 [ 14.569443] c349bedc b10fdb8d b1f0a414 b2c7fda0 c349bef8 b10fdcd4 b2c7fdb0 [ 14.569443] Call Trace: [ 14.569443] [] dump_stack+0x1a4/0x246 [ 14.569443] [] spin_dump+0xc5/0xdd [ 14.569443] [] spin_bug+0x47/0x59 [ 14.569443] [] do_raw_spin_lock+0x48/0x2b2 [ 14.569443] [] _raw_spin_lock+0x6f/0x93 [ 14.569443] [] ? ima_init_template_list+0x1b/0x99 [ 14.569443] [] ? hash_setup+0x14d/0x14d [ 14.569443] [] ima_init_template_list+0x1b/0x99 [ 14.569443] [] init_ima+0x17/0x87 [ 14.569443] [] do_one_initcall+0x10e/0x22b [ 14.569443] [] ? repair_env_string+0x32/0xd6 [ 14.569443] [] ? parse_args+0x3b5/0x521 [ 14.569443] [] ? kernel_init_freeable+0x275/0x415 [ 14.569443] [] kernel_init_freeable+0x2a6/0x415 [ 14.569443] [] kernel_init+0x16/0x248 [ 14.569443] [] ret_from_kernel_thread+0xe/0x30 [ 14.569443] [] ? rest_init+0x2df/0x2df [ 14.581955] ima: No TPM chip found, activating TPM-bypass! [ 14.582650] evm: HMAC attrs: 0x1 Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.8.0-rc1 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=2 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set CONFIG_KERNEL_BZIP2=y # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set #
[ima] 476b17b7d1: BUG: spinlock bad magic on CPU#0, swapper/0/1
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-restore-kexec commit 476b17b7d15057caf440b6f76457d0d772e6aebe ("ima: store the builtin/custom template definitions in a list") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 320M caused below changes: +--+++ | | 6c3d0673b8 | 476b17b7d1 | +--+++ | boot_successes | 12 | 0 | | boot_failures| 2 | 16 | | BUG:unable_to_handle_kernel | 2 || | Oops | 2 || | calltrace:SyS_ipc| 2 || | Kernel_panic-not_syncing:Fatal_exception | 2 || | BUG:spinlock_bad_magic_on_CPU| 0 | 15 | | calltrace:init_ima | 0 | 15 | | WARNING:at_kernel/locking/lockdep.c:#check_flags | 0 | 1 | | calltrace:threadfunc | 0 | 1 | +--+++ [ 14.562924] done. [ 14.563455] Using IPI No-Shortcut mode [ 14.566488] Key type encrypted registered [ 14.566943] BUG: spinlock bad magic on CPU#0, swapper/0/1 [ 14.567537] lock: template_list+0x0/0x20, .magic: , .owner: /-1, .owner_cpu: 0 [ 14.568453] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-g476b17b #1 [ 14.569273] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 14.569443] 00200246 c349bea4 b137e3b8 b1f5b61d b2c7fda0 c349becc b10fdb2e [ 14.569443] b1f0a3d9 b2c7fda0 b1f5b61d b2c7fda0 [ 14.569443] c349bedc b10fdb8d b1f0a414 b2c7fda0 c349bef8 b10fdcd4 b2c7fdb0 [ 14.569443] Call Trace: [ 14.569443] [] dump_stack+0x1a4/0x246 [ 14.569443] [] spin_dump+0xc5/0xdd [ 14.569443] [] spin_bug+0x47/0x59 [ 14.569443] [] do_raw_spin_lock+0x48/0x2b2 [ 14.569443] [] _raw_spin_lock+0x6f/0x93 [ 14.569443] [] ? ima_init_template_list+0x1b/0x99 [ 14.569443] [] ? hash_setup+0x14d/0x14d [ 14.569443] [] ima_init_template_list+0x1b/0x99 [ 14.569443] [] init_ima+0x17/0x87 [ 14.569443] [] do_one_initcall+0x10e/0x22b [ 14.569443] [] ? repair_env_string+0x32/0xd6 [ 14.569443] [] ? parse_args+0x3b5/0x521 [ 14.569443] [] ? kernel_init_freeable+0x275/0x415 [ 14.569443] [] kernel_init_freeable+0x2a6/0x415 [ 14.569443] [] kernel_init+0x16/0x248 [ 14.569443] [] ret_from_kernel_thread+0xe/0x30 [ 14.569443] [] ? rest_init+0x2df/0x2df [ 14.581955] ima: No TPM chip found, activating TPM-bypass! [ 14.582650] evm: HMAC attrs: 0x1 Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.8.0-rc1 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=2 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set CONFIG_KERNEL_BZIP2=y # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set #
[ima] 476b17b7d1: BUG: spinlock bad magic on CPU#0, swapper/0/1
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-restore-kexec commit 476b17b7d15057caf440b6f76457d0d772e6aebe ("ima: store the builtin/custom template definitions in a list") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 320M caused below changes: +--+++ | | 6c3d0673b8 | 476b17b7d1 | +--+++ | boot_successes | 12 | 0 | | boot_failures| 2 | 16 | | BUG:unable_to_handle_kernel | 2 || | Oops | 2 || | calltrace:SyS_ipc| 2 || | Kernel_panic-not_syncing:Fatal_exception | 2 || | BUG:spinlock_bad_magic_on_CPU| 0 | 15 | | calltrace:init_ima | 0 | 15 | | WARNING:at_kernel/locking/lockdep.c:#check_flags | 0 | 1 | | calltrace:threadfunc | 0 | 1 | +--+++ [ 14.562924] done. [ 14.563455] Using IPI No-Shortcut mode [ 14.566488] Key type encrypted registered [ 14.566943] BUG: spinlock bad magic on CPU#0, swapper/0/1 [ 14.567537] lock: template_list+0x0/0x20, .magic: , .owner: /-1, .owner_cpu: 0 [ 14.568453] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-g476b17b #1 [ 14.569273] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 14.569443] 00200246 c349bea4 b137e3b8 b1f5b61d b2c7fda0 c349becc b10fdb2e [ 14.569443] b1f0a3d9 b2c7fda0 b1f5b61d b2c7fda0 [ 14.569443] c349bedc b10fdb8d b1f0a414 b2c7fda0 c349bef8 b10fdcd4 b2c7fdb0 [ 14.569443] Call Trace: [ 14.569443] [] dump_stack+0x1a4/0x246 [ 14.569443] [] spin_dump+0xc5/0xdd [ 14.569443] [] spin_bug+0x47/0x59 [ 14.569443] [] do_raw_spin_lock+0x48/0x2b2 [ 14.569443] [] _raw_spin_lock+0x6f/0x93 [ 14.569443] [] ? ima_init_template_list+0x1b/0x99 [ 14.569443] [] ? hash_setup+0x14d/0x14d [ 14.569443] [] ima_init_template_list+0x1b/0x99 [ 14.569443] [] init_ima+0x17/0x87 [ 14.569443] [] do_one_initcall+0x10e/0x22b [ 14.569443] [] ? repair_env_string+0x32/0xd6 [ 14.569443] [] ? parse_args+0x3b5/0x521 [ 14.569443] [] ? kernel_init_freeable+0x275/0x415 [ 14.569443] [] kernel_init_freeable+0x2a6/0x415 [ 14.569443] [] kernel_init+0x16/0x248 [ 14.569443] [] ret_from_kernel_thread+0xe/0x30 [ 14.569443] [] ? rest_init+0x2df/0x2df [ 14.581955] ima: No TPM chip found, activating TPM-bypass! [ 14.582650] evm: HMAC attrs: 0x1 Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.8.0-rc1 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=2 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set CONFIG_KERNEL_BZIP2=y # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set #
[sched/wait] 02ae2b22bd: WARNING: CPU: 0 PID: 958 at kernel/sched/core.c:7610 __might_sleep+0x6e/0x90
FYI, we noticed the following commit: https://github.com/0day-ci/linux Oleg-Nesterov/sched-wait-fix-and-then-kill-abort_exclusive_wait/20160907-145024 commit 02ae2b22bd2a42c4e4054563b139a541ba67a43e ("sched/wait: avoid abort_exclusive_wait() in ___wait_event()") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 320M caused below changes: +---+++ | | 9272868493 | 02ae2b22bd | +---+++ | boot_successes| 16 | 1 | | boot_failures | 0 | 15 | | WARNING:at_kernel/sched/core.c:#__might_sleep | 0 | 15 | +---+++ [ 30.775242] kill 958 cat /proc/kmsg [ 30.775242] wait for background monitors: 959 962 oom-killer nfs-hang [ 32.078512] [ cut here ] [ 32.080657] WARNING: CPU: 0 PID: 958 at kernel/sched/core.c:7610 __might_sleep+0x6e/0x90 [ 32.084787] do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait_event+0xad/0x120 [ 32.091287] Modules linked in: [ 32.094001] CPU: 0 PID: 958 Comm: cat Not tainted 4.8.0-rc5-00035-g02ae2b2 #1 [ 32.094017] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 32.094017] 880009497be8 813c9947 810e993e [ 32.094017] 880009497c48 880009497c48 880009497c38 [ 32.094017] 810c18e7 880009497c08 1dba8110ea1d 880009497c28 [ 32.094017] Call Trace: [ 32.094017] [] dump_stack+0xc4/0x12d [ 32.094017] [] ? __might_sleep+0x6e/0x90 [ 32.094017] [] __warn+0xe7/0x110 [ 32.094017] [] warn_slowpath_fmt+0x44/0x50 [ 32.094017] [] ? prepare_to_wait_event+0xad/0x120 [ 32.094017] [] ? prepare_to_wait_event+0xad/0x120 [ 32.094017] [] __might_sleep+0x6e/0x90 [ 32.094017] [] get_signal+0x63/0x3c0 [ 32.094017] [] ? tty_write+0x2c6/0x2f0 [ 32.094017] [] ? kmsg_read+0x55/0x70 [ 32.094017] [] do_signal+0x20/0x100 [ 32.094017] [] ? security_file_permission+0x99/0xb0 [ 32.094017] [] ? exit_to_usermode_loop+0x44/0xd0 [ 32.094017] [] ? trace_hardirqs_on_caller+0x193/0x1f0 [ 32.094017] [] exit_to_usermode_loop+0x72/0xd0 [ 32.094017] [] do_int80_syscall_32+0x1fa/0x230 [ 32.094017] [] ? entry_INT80_compat+0x3d/0x50 [ 32.094017] [] entry_INT80_compat+0x38/0x50 [ 32.225846] ---[ end trace 8f84425f8176b010 ]--- [ 32.225846] ---[ end trace 8f84425f8176b010 ]--- Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.8.0-rc5 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_KASAN_SHADOW_OFFSET=0xdc00 CONFIG_X86_64_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set CONFIG_KERNEL_LZ4=y CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SWAP is not set # CONFIG_SYSVIPC is not set CONFIG_POSIX_MQUEUE=y CONFIG_POSIX_MQUEUE_SYSCTL=y CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_FHANDLE=y CONFIG_USELIB=
[lkp] [sched/core] 3d26b7622f: BUG: unable to handle kernel NULL pointer dereference at 00000001
FYI, we noticed the following commit: https://github.com/0day-ci/linux cheng-chao/sched-core-simpler-function-for-sched_exec-migration/20160905-142452 commit 3d26b7622f3bab689696900ffd33c6dd7849d7c2 ("sched/core: simpler function for sched_exec migration") in testcase: trinity with following parameters: runtime: 300s on test machine: qemu-system-i386 -enable-kvm -smp 2 -m 320M caused below changes: +--+--++ | | v4.8-rc5 | 3d26b7622f | +--+--++ | boot_successes | 2271 | 473| | boot_failures| 248 | 654| | genirq:Flags_mismatch_irq##(serial)vs.#(goldfish_pdev_bus) | 248 | 654| | calltrace:SyS_open | 248 | 654| | invoked_oom-killer:gfp_mask=0x | 33 | 32 | | Mem-Info | 33 | 32 | | BUG:kernel_reboot-without-warning_in_test_stage | 210 | 8 | | genirq:Flags_mismatch_irq| 1| | | genirq:Flags_mismatch_irq##(ser | 1| | | genirq:Flags_mismatch_irq##(serial)vs| 1| | | genirq:Flags_mismatch_irq##(serial)vs.#(goldfi | 1| | | genirq:Flags_mismatch_irq##(serial)vs.#(goldfish_pdev_bu | 1| | | warn_alloc_failed+0x | 1| | | Out_of_memory:Kill_process | 1| 4 | | BUG:unable_to_handle_kernel | 0| 533| | Oops | 0| 533| | calltrace:smpboot_thread_fn | 0| 593| | kernel_BUG_at_mm/slub.c | 0| 531| | invalid_opcode:#[##]SMP | 0| 536| | EIP_is_at_kfree | 0| 531| | calltrace:SyS_execve | 0| 533| | Kernel_panic-not_syncing:Fatal_exception | 0| 613| | WARNING:at_arch/x86/kernel/traps.c:#do_debug | 0| 86 | | general_protection_fault:#[##]SMP| 0| 20 | | EIP_is_at.brk.pagetables | 0| 1 | | EIP_is_at_do_execveat_common | 0| 1 | | EIP_is_at_copy_strings | 0| 1 | | bounds:#[##]SMP | 0| 2 | | PANIC:double_fault | 0| 2 | | EIP_is_at_elf_format | 0| 1 | | general_protection_fault:#d34[##]SMP | 0| 1 | | EIP_is_at__lock_acquire | 0| 3 | | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 0| 1 | | WARNING:at_kernel/sched/core.c:#__might_sleep| 0| 2 | | EIP_is_at_unlink_anon_vmas | 0| 2 | | BUG:Bad_rss-counter_state_mm:#idx:#val | 0| 1 | | BUG:non-zero_nr_ptes_on_freeing_mm | 0| 1 | | EIP_is_at_cpu_stopper_thread | 0| 2 | | genirq:Flags_mismatch_irq##(serial)vs.#(goldfish_pdev| 0| 1 | +--+--++ [ 22.622360] BUG: unable to handle kernel NULL pointer dereference at 0001 [ 22.623553] IP: [<5128c004>] 0x5128c004 [ 22.624210] *pde = [ 22.624698] Oops: [#1] SMP [ 22.625223] Modules linked in: [ 22.625638] CPU: 1 PID: 15 Comm: migration/1 Not tainted 4.8.0-rc5-1-g3d26b76 #1 [ 22.625638] task: 530910c0 task.stack: 5309a000 [ 22.625638] EIP: 0060:[<5128c004>] EFLAGS: 00010246 CPU: 1 [ 22.625638] EIP is at 0x5128c004 [ 22.625638] EAX: 0001 EBX: 53790280 ECX: EDX: 0001 [
[ima] c49613740f: BUG: spinlock trylock failure on UP on CPU#0, swapper/1
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-restore-kexec commit c49613740f17d2e5085a93ef4ab289e5e502b53d ("ima: store the builtin/custom template definitions in a list") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 320M caused below changes: +---+++ | | 6c3d0673b8 | c49613740f | +---+++ | boot_successes| 4 | 0 | | boot_failures | 0 | 8 | | BUG:spinlock_trylock_failure_on_UP_on_CPU | 0 | 8 | | calltrace:init_ima| 0 | 8 | | BUG:spinlock_lockup_suspected_on_CPU | 0 | 2 | +---+++ [1.030103] page_owner is disabled [1.030632] Key type trusted registered [1.031236] Key type encrypted registered [1.031702] BUG: spinlock trylock failure on UP on CPU#0, swapper/1 [1.032399] lock: template_list+0x0/0x48, .magic: , .owner: /-1, .owner_cpu: 0 [1.033344] CPU: 0 PID: 1 Comm: swapper Not tainted 4.8.0-rc1-00027-gc496137 #1 [1.034164] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [1.035150] bc457420 8800129cfdd8 bac301d3 8800129cfdf8 [1.036041] baab750d bc457420 8800129cfe18 [1.036923] baab7790 bc457438 bc457420 8800129cfe40 [1.037812] Call Trace: [1.038100] [] dump_stack+0x19/0x26 [1.038685] [] spin_dump+0x6d/0xc0 [1.039247] [] do_raw_spin_trylock+0x50/0x60 [1.039908] [] _raw_spin_lock+0x3f/0x70 [1.040521] [] ? ima_init_template_list+0x2a/0x60 [1.041304] [] ima_init_template_list+0x2a/0x60 [1.042071] [] ? hash_setup+0xb3/0xb3 [1.042667] [] ima_init_template_list+0x19/0x20 [1.043350] [] init_ima+0xa/0x35 [1.043901] [] ? hash_setup+0xb3/0xb3 [1.044496] [] do_one_initcall+0x98/0x13d [1.045137] [] ? set_debug_rodata+0x12/0x12 [1.045791] [] kernel_init_freeable+0x105/0x18d [1.046471] [] kernel_init+0x9/0xf0 [1.047061] [] ret_from_fork+0x1f/0x40 [1.047670] [] ? rest_init+0xc0/0xc0 Elapsed time: 10 Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.8.0-rc1 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set CONFIG_KERNEL_LZ4=y CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set # CONFIG_CROSS_MEMORY_ATTACH is not set CONFIG_FHANDLE=y # CONFIG_USELIB is not set # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_IRQ_DOMAIN_DEBUG=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_CLOCKSOURCE_VALIDATE_LA
[ima] efca4e3a3a: BUG: spinlock bad magic on CPU#1, swapper/0/1
FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-restore-kexec commit efca4e3a3a4191fd8fd43b32433649719abb2e4e ("ima: store the builtin/custom template definitions in a list") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G caused below changes: +-+++ | | 9c1fec0473 | efca4e3a3a | +-+++ | boot_successes | 15 | 0 | | boot_failures | 1 | 16 | | BUG:kernel_reboot-without-warning_in_test_stage | 1 | | | message:BUG:kernel_reboot-without-warning_in_test_stage | 0 | | | pattern:BUG:kernel_reboot-without-warning_in_test_stage | 0 | | | BUG:spinlock_bad_magic_on_CPU | 0 | 16 | | message:BUG:spinlock_bad_magic_on_CPU | 0 | 0.0 | | pattern:BUG:spinlock_bad_magic_on_CPU | 0 | 0 | | calltrace:init_ima | 0 | 16 | | message:calltrace:init_ima | 0 | 0.0 | | pattern:calltrace:init_ima | 0 | 0 | +-+++ [ 250.732810] Key type trusted registered [ 250.733393] cryptomgr_probe (174) used greatest stack depth: 29040 bytes left [ 250.782425] Key type encrypted registered [ 250.792975] BUG: spinlock bad magic on CPU#1, swapper/0/1 [ 250.805549] lock: template_list+0x0/0x80, .magic: , .owner: swapper/0/1, .owner_cpu: 1 [ 250.819576] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-gefca4e3 #1 [ 250.830820] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 250.843529] 88011a7ffd40 81b9bf0f 84a42120 [ 250.857397] 88011a7f0040 88011a7ffd78 8119aad1 10696400 [ 250.871105] 84a42120 835f21e0 dc00 835f2240 [ 250.890963] Call Trace: [ 250.936528] [] dump_stack+0x61/0x7d [ 250.948458] [] spin_dump+0x16b/0x175 [ 250.960423] [] spin_bug+0x26/0x28 [ 250.971503] [] do_raw_spin_unlock+0x52/0x19e [ 250.984211] [] _raw_spin_unlock+0x22/0x2c [ 250.996519] [] ima_init_template_list+0xa6/0xb4 [ 251.009452] [] ? hash_setup+0x103/0x103 [ 251.021219] [] init_ima+0xa/0x36 [ 251.032037] [] do_one_initcall+0x112/0x1bd [ 251.044133] [] ? start_kernel+0x5af/0x5af [ 251.056306] [] ? parse_args+0x3c5/0x5d4 [ 251.068043] [] kernel_init_freeable+0x3f0/0x4a3 [ 251.080939] [] kernel_init+0xc/0x105 [ 251.092221] [] ret_from_fork+0x1f/0x40 [ 251.103790] [] ? rest_init+0xe8/0xe8 [ 251.131376] ima: No TPM chip found, activating TPM-bypass! [ 251.154124] raid6test: testing the 4-disk case... Thanks, Kernel Test Robot # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.8.0-rc1 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_KASAN_SHADOW_OFFSET=0xdc00 CONFIG_X86_64_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL
[lkp] [fs] 45ec18d5c7: BUG: KASAN: user-memory-access on address 00007f90291c7ec0
FYI, we noticed the following commit: https://github.com/0day-ci/linux Nicholas-Krause/fs-Fix-kmemleak-leak-warning-in-getname_flags-about-working-on-unitialized-memory/20160804-055054 commit 45ec18d5c713bccb9807782f0dca29b92ba99784 ("fs:Fix kmemleak leak warning in getname_flags about working on unitialized memory") in testcase: boot on test machine: 1 threads qemu-system-x86_64 -enable-kvm -cpu SandyBridge with 512M memory caused below changes: +---+++ | | bf0f500bd0 | 45ec18d5c7 | +---+++ | boot_successes| 1 | 0 | | boot_failures | 5 | 8 | | IP-Config:Auto-configuration_of_network_failed| 1 | | | Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode= | 4 | | | BUG:KASAN:user-memory-access_on_address | 0 | 8 | | backtrace:SyS_access | 0 | 8 | | backtrace:SyS_open| 0 | 8 | | backtrace:SyS_newstat | 0 | 8 | | backtrace:user_path_at_empty | 0 | 8 | | backtrace:SyS_chdir | 0 | 8 | | backtrace:SyS_mount | 0 | 2 | | backtrace:SyS_inotify_add_watch | 0 | 2 | | backtrace:SyS_openat | 0 | 2 | | backtrace:getname | 0 | 1 | | backtrace:SyS_execve | 0 | 1 | +---+++ [ 22.168057] hgafb: HGA card not detected. [ 22.169497] hgafb: probe of hgafb.0 failed with error -22 [ 22.175454] == [ 22.178607] BUG: KASAN: user-memory-access on address 7f90291c7ec0 [ 22.180409] Read of size 18 by task v86d/170 [ 22.181842] CPU: 0 PID: 170 Comm: v86d Not tainted 4.7.0-11542-g45ec18d #1 [ 22.183693] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 22.186659] 880017dd7d50 816c3199 7f90291c7ec0 [ 22.189636] 880016d58000 880017dd7dc8 81258765 8127d2b7 [ 22.192622] 0296 0001 880017dd7de0 880017dd7d90 [ 22.195581] Call Trace: [ 22.196728] [] dump_stack+0x61/0x7d [ 22.198303] [] kasan_report+0x115/0x42a [ 22.201054] [] ? getname_flags+0x1ee/0x235 [ 22.202731] [] ? kasan_slab_alloc+0x12/0x14 [ 22.204425] [] check_memory_region+0x127/0x12c [ 22.206193] [] memcpy+0x23/0x4c [ 22.207706] [] getname_flags+0x1ee/0x235 [ 22.209358] [] user_path_at_empty+0x23/0x3d [ 22.211055] [] SYSC_faccessat+0x1aa/0x301 [ 22.212714] [] ? do_dentry_open+0x380/0x380 [ 22.214402] [] ? trace_do_page_fault+0x60/0x12b FYI, raw QEMU command line is: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -kernel /pkg/linux/x86_64-randconfig-r0-08050401/gcc-6/45ec18d5c713bccb9807782f0dca29b92ba99784/vmlinuz-4.7.0-11542-g45ec18d -append 'ip=vm-kbuild-yocto-x86_64-7::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-x86_64-7/boot-1-yocto-minimal-x86_64.cgz-45ec18d5c713bccb9807782f0dca29b92ba99784-20160806-40923-q89nw-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-r0-08050401 branch=linux-devel/devel-hourly-2016080500 commit=45ec18d5c713bccb9807782f0dca29b92ba99784 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-r0-08050401/gcc-6/45ec18d5c713bccb9807782f0dca29b92ba99784/vmlinuz-4.7.0-11542-g45ec18d max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-x86_64/yocto-minimal-x86_64.cgz/x86_64-randconfig-r0-08050401/gcc-6/45ec18d5c713bccb9807782f0dca29b92ba99784/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw drbd.minor_count=8' -initrd /fs/sdd1/initrd-vm-kbuild-yocto-x86_64-7 -m 512 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -drive file=/fs/sdd1/disk0-vm-kbuild-yocto-x86_64-7,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-kbuild-yocto-x86_64-7 -serial file:/dev/shm/kboot/serial-vm-kbuild-y
[lkp] [net/netpolicy] ed519e0259: BUG: scheduling while atomic: migration/0/15/0x00000002
FYI, we noticed the following commit: https://github.com/0day-ci/linux kan-liang-intel-com/net-introduce-NET-policy/20160805-034810 commit ed519e02592874e3cb2d643173e9f34bee2d74e7 ("net/netpolicy: fast path for finding the queues") in testcase: boot on test machine: 2 threads qemu-system-i386 -enable-kvm with 320M memory caused below changes: ++++ || cf30f0dd66 | ed519e0259 | ++++ | boot_successes | 0 | 0 | | boot_failures | 14 | 12 | | INFO:trying_to_register_non-static_key | 14 | 12 | | backtrace:lock_acquire | 14 | 12 | | backtrace:_raw_spin_lock | 14 | 12 | | backtrace:init_netpolicy | 14 | 12 | | backtrace:netpolicy_dev_init | 14 | 12 | | backtrace:netpolicy_net_init | 14 | 12 | | backtrace:ops_init | 14 | 12 | | backtrace:register_pernet_operations | 14 | 12 | | backtrace:register_pernet_subsys | 14 | 12 | | backtrace:netpolicy_init | 14 | 12 | | backtrace:kernel_init_freeable | 14 | 12 | | IP-Config:Auto-configuration_of_network_failed | 2 | 2 | | invoked_oom-killer:gfp_mask=0x | 0 | 1 | | Mem-Info | 0 | 1 | | BUG:scheduling_while_atomic| 0 | 8 | | INFO:lockdep_is_turned_off | 0 | 8 | | kernel_BUG_at_kernel/cpu.c | 0 | 8 | | invalid_opcode:#[##]PREEMPT_SMP| 0 | 8 | | EIP_is_at_cpuhp_report_idle_dead | 0 | 8 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | | backtrace:cpu_startup_entry| 0 | 8 | ++++ [ 27.102864] BUG: scheduling while atomic: migration/0/15/0x0002 [ 27.103622] INFO: lockdep is turned off. [ 27.104080] Modules linked in: [ 27.104458] CPU: 0 PID: 15 Comm: migration/0 Not tainted 4.7.0-11573-ged519e0 #1 [ 27.105316] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 27.106337] 00200246 d2af1cbc c1273665 d2ae93c0 d2af1cc8 c105bd4e [ 27.107356] d2af2000 d2af1d00 c15757b4 d2800ec0 00af1ce0 c1578d83 d2802180 d2af1d60 [ 27.108376] d31ce800 d35a6a94 d2800efc d2ae93c0 d2af2000 d2af1dd4 d2ae93c0 d2af1d0c [ 27.109394] Call Trace: [ 27.118595] [] dump_stack+0x55/0x6e [ 27.119122] [] __schedule_bug+0x63/0x74 [ 27.119692] [] __schedule+0x53/0x587 [ 27.120222] [] ? _raw_spin_unlock+0x22/0x35 [ 27.120831] [] schedule+0x74/0x88 [ 27.121329] [] schedule_timeout+0x1a/0x9b [ 27.138958] [] ? lock_release+0x161/0x369 [ 27.139538] [] ? lock_acquired+0xe0/0x23d [ 27.140125] [] ? __wait_for_common+0xbe/0xef [ 27.140835] [] ? do_raw_spin_trylock+0x8/0x3a [ 27.141514] [] ? do_raw_spin_unlock+0x9/0x72 [ 27.142185] [] ? _raw_spin_unlock_irq+0x27/0x3a [ 27.142885] [] __wait_for_common+0xc5/0xef [ 27.147292] [] ? usleep_range+0x52/0x52 [ 27.147957] [] ? wake_up_q+0x3b/0x3b [ 27.148572] [] wait_for_completion+0x19/0x1c [ 27.149275] [] __wait_rcu_gp+0x9e/0xab [ 27.149930] [] synchronize_rcu+0x3e/0x41 [ 27.150607] [] ? rcu_barrier+0x14/0x14 [ 27.151286] [] ? __rcu_read_unlock+0x4c/0x4c [ 27.152073] [] update_netpolicy_sys_map+0x17d/0x192 [ 27.152867] [] ? _raw_spin_unlock+0x22/0x35 [ 27.164665] [] netpolicy_cpu_callback+0x1a/0x21 [ 27.165499] [] notifier_call_chain+0x56/0x78 [ 27.166314] [] ? notify_online+0x18/0x18 [ 27.167310] [] __raw_notifier_call_chain+0x13/0x15 [ 27.168232] [] __cpu_notify+0x2b/0x45 [ 27.174501] [] cpu_notify+0x12/0x14 [ 27.175082] [] notify_dying+0x14/0x18 [ 27.175677] [] cpuhp_invoke_callback+0x35/0x50 [ 27.176359] [] ? notify_online+0x18/0x18 [ 27.177181] [] take_cpu_down+0x4d/0x64 [ 27.177789] [] multi_cpu_stop+0x74/0xa3 [ 27.178396] [] ? cpu_stopper_thread+0xcc/0xcc [ 27.179072] [] cpu_stopper_thread+0x6b/0xcc [ 27.179731] [] smpboot_thread_fn+0x186/0x1c6 [ 27.180389] [] ? sort_range+0x1d/0x1d [ 27.180983] [] kthread+0x97/0x9c [ 27.181516] [] ? __wait_for_common+0xcf/0xef [ 27.189205] [] ret_from_kernel_thread+0xe/0x24 [ 27.190075] [] ? kthread_stop+0x129/0x129 FYI, raw QEMU command line is:
[lkp] [perf/core] 34ab11270a: BUG: using smp_processor_id() in preemptible [00000000] code: trinity-c0/632
FYI, we noticed the following commit: https://github.com/0day-ci/linux David-Carrillo-Cisneros/remove-unnecessary-IPI-reading-uncore-events/20160802-124051 commit 34ab11270a27536c1d4ff3d5bb7ae9d58daa016c ("perf/core: introduce pmu_event_flags and PMUEF_READ_CPU_PKG") in testcase: boot on test machine: 2 threads qemu-system-i386 -enable-kvm with 320M memory caused below changes: [ 33.189504] mmap: trinity-c0 (630) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt. [ 33.193811] vm86_32: Denied a call to vm86(old) from trinity-c0[630] (uid: 0). Set the vm.mmap_min_addr sysctl to 0 and/or adjust LSM mmap_min_addr policy to enable vm86 if you are using a vm86-based DOS emulator. [ 33.193811] vm86_32: Denied a call to vm86(old) from trinity-c0[630] (uid: 0). Set the vm.mmap_min_addr sysctl to 0 and/or adjust LSM mmap_min_addr policy to enable vm86 if you are using a vm86-based DOS emulator. [ 33.211822] BUG: using smp_processor_id() in preemptible [] code: trinity-c0/632 [ 33.211822] BUG: using smp_processor_id() in preemptible [] code: trinity-c0/632 [ 33.213901] caller is debug_smp_processor_id+0x12/0x14 [ 33.213901] caller is debug_smp_processor_id+0x12/0x14 [ 33.215215] CPU: 1 PID: 632 Comm: trinity-c0 Not tainted 4.7.0-rc5-00693-g34ab112 #1 [ 33.215215] CPU: 1 PID: 632 Comm: trinity-c0 Not tainted 4.7.0-rc5-00693-g34ab112 #1 [ 33.217265] [ 33.217265] 0246 0246 83985e18 83985e18 79183cd3 79183cd3 0001 0001 794d67bf 794d67bf 83985e48 83985e48 791a555c 791a555c [ 33.219400] 794d677a [ 33.219400] 794d677a 794d67bf 794d67bf 794c70ca 794c70ca 82c14de4 82c14de4 0278 0278 82c149c0 82c149c0 [ 33.221632] 867a6c00 [ 33.221632] 867a6c00 867a6c00 867a6c00 83985e50 83985e50 791a5582 791a5582 83985e78 83985e78 790aa918 790aa918 0246 0246 0001 0001 [ 33.223757] Call Trace: [ 33.223757] Call Trace: [ 33.224505] [<79183cd3>] dump_stack+0x74/0xa7 [ 33.224505] [<79183cd3>] dump_stack+0x74/0xa7 [ 33.225671] [<791a555c>] check_preemption_disabled+0xb9/0xcd [ 33.225671] [<791a555c>] check_preemption_disabled+0xb9/0xcd [ 33.227186] [<791a5582>] debug_smp_processor_id+0x12/0x14 [ 33.227186] [<791a5582>] debug_smp_processor_id+0x12/0x14 [ 33.228569] [<790aa918>] perf_event_read+0x27/0xdd [ 33.228569] [<790aa918>] perf_event_read+0x27/0xdd [ 33.229781] [<790e7c1b>] ? __kmalloc+0x101/0x124 [ 33.229781] [<790e7c1b>] ? __kmalloc+0x101/0x124 [ 33.231214] [<790abd9b>] ? perf_read+0xc8/0x275 [ 33.231214] [<790abd9b>] ? perf_read+0xc8/0x275 [ 33.232827] [<790abdd4>] perf_read+0x101/0x275 [ 33.232827] [<790abdd4>] perf_read+0x101/0x275 [ 33.234324] [<791a5b9f>] ? debug_object_activate+0xd3/0x133 [ 33.234324] [<791a5b9f>] ? debug_object_activate+0xd3/0x133 [ 33.236182] [<790672e8>] ? trace_hardirqs_off+0xb/0xd FYI, raw QEMU command line is: qemu-system-i386 -enable-kvm -kernel /pkg/linux/i386-randconfig-c0-08022242/gcc-4.9/34ab11270a27536c1d4ff3d5bb7ae9d58daa016c/vmlinuz-4.7.0-rc5-00693-g34ab112 -append 'ip=vm-kbuild-yocto-i386-43::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-i386-43/boot-1-yocto-minimal-i386.cgz-34ab11270a27536c1d4ff3d5bb7ae9d58daa016c-20160804-2258-1mpxl51-26.yaml ARCH=i386 kconfig=i386-randconfig-c0-08022242 branch=linux-devel/devel-spot-201608022112 commit=34ab11270a27536c1d4ff3d5bb7ae9d58daa016c BOOT_IMAGE=/pkg/linux/i386-randconfig-c0-08022242/gcc-4.9/34ab11270a27536c1d4ff3d5bb7ae9d58daa016c/vmlinuz-4.7.0-rc5-00693-g34ab112 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-i386/yocto-minimal-i386.cgz/i386-randconfig-c0-08022242/gcc-4.9/34ab11270a27536c1d4ff3d5bb7ae9d58daa016c/25 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw drbd.minor_count=8' -initrd /fs/sdg1/initrd-vm-kbuild-yocto-i386-43 -m 320 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -drive file=/fs/sdg1/disk0-vm-kbuild-yocto-i386-43,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-kbuild-yocto-i386-43 -serial file:/dev/shm/kboot/serial-vm-kbuild-yocto-i386-43 -daemonize -display none -monitor null Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.7.0-rc5 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_
[lkp] [locking/rwsem] INFO: rcu_preempt detected stalls on CPUs/tasks
FYI, we noticed the following commit: https://github.com/0day-ci/linux Waiman-Long/locking-rwsem-Enable-reader-optimistic-spinning/20160819-150117 commit 1802442a39b862b1adb57cbae5fbbda3945406e2 ("locking/rwsem: Add a boot parameter to reader spinning threshold") in testcase: boot on test machine: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -m 360M caused below changes: [ 115.824398] INFO: rcu_preempt detected stalls on CPUs/tasks: [ 115.826472] All QSes seen, last rcu_preempt kthread activity 105002 (-184454--289456), jiffies_till_next_fqs=3, root ->qsmask 0x0 [ 115.827341] sed R running 0 296289 0x0008 [ 115.827853] ce7bbd2c c107a8f4 c1705803 0128 0121 0008 [ 115.828537] 0384 c17b13c0 ce7bbd80 c10ce411 c16fedbc c17b1ca0 00019a2a fffd2f7a [ 115.829216] fffb9550 0003 c10a028d 0383 00019a2a 0384 001d [ 115.829895] Call Trace: [ 115.830092] [] sched_show_task+0x114/0x220 [ 115.830483] [] rcu_check_callbacks+0xb51/0xb60 [ 115.830893] [] ? trace_hardirqs_off_caller+0xad/0x160 [ 115.831348] [] update_process_times+0x28/0x60 [ 115.831756] [] tick_periodic+0x2a/0xc0 [ 115.832116] [] tick_handle_periodic+0x21/0x80 [ 115.832554] [] local_apic_timer_interrupt+0x2d/0x60 [ 115.833000] [] smp_apic_timer_interrupt+0x36/0x60 [ 115.833435] [] apic_timer_interrupt+0x36/0x40 [ 115.833840] [] ? find_usage_forwards+0x5b/0x80 [ 115.834251] [] ? rwsem_optimistic_spin+0x258/0x3a0 [ 115.834693] [] rwsem_down_write_failed+0x32/0x1c0 [ 115.835125] [] ? vma_adjust+0xb0/0x6c0 [ 115.835490] [] call_rwsem_down_write_failed+0x9/0x10 [ 115.835937] [] down_write+0x4f/0x60 [ 115.836277] [] ? vma_adjust+0xb0/0x6c0 [ 115.836642] [] vma_adjust+0xb0/0x6c0 [ 115.836990] [] __split_vma+0xd9/0x180 [ 115.837393] [] split_vma+0x22/0x40 [ 115.837726] [] mprotect_fixup+0x1d7/0x220 [ 115.838105] [] SyS_mprotect+0x155/0x280 [ 115.838474] [] do_int80_syscall_32+0x1f8/0x240 [ 115.838882] [] entry_INT80_32+0x33/0x33 FYI, raw QEMU command line is: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -kernel /pkg/linux/i386-randconfig-sb0-08201601/gcc-5/1802442a39b862b1adb57cbae5fbbda3945406e2/vmlinuz-4.8.0-rc1-00079-g1802442 -append 'ip=vm-vp-quantal-i386-34::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-vp-quantal-i386-34/boot-1-quantal-core-i386.cgz-1802442a39b862b1adb57cbae5fbbda3945406e2-20160821-75698-3hybx2-6.yaml ARCH=i386 kconfig=i386-randconfig-sb0-08201601 branch=linux-devel/devel-hourly-2016082011 commit=1802442a39b862b1adb57cbae5fbbda3945406e2 BOOT_IMAGE=/pkg/linux/i386-randconfig-sb0-08201601/gcc-5/1802442a39b862b1adb57cbae5fbbda3945406e2/vmlinuz-4.8.0-rc1-00079-g1802442 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-vp-quantal-i386/quantal-core-i386.cgz/i386-randconfig-sb0-08201601/gcc-5/1802442a39b862b1adb57cbae5fbbda3945406e2/6 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw drbd.minor_count=8' -initrd /fs/sdd1/initrd-vm-vp-quantal-i386-34 -m 360 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -pidfile /dev/shm/kboot/pid-vm-vp-quantal-i386-34 -serial file:/dev/shm/kboot/serial-vm-vp-quantal-i386-34 -daemonize -display none -monitor null Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.8.0-rc1 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DEBUG_RODATA=y CONFIG_PGTABLE_LEVELS=3 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONF
d0541b0fa6 ("locking/lockdep: Make CONFIG_LOCKDEP_CROSSRELEASE .."): test_cycle_work+0x
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core commit d0541b0fa64b36665d6261079974a26943c75009 Author: Byungchul Park AuthorDate: Thu Aug 17 17:57:39 2017 +0900 Commit: Ingo Molnar CommitDate: Thu Aug 17 11:38:54 2017 +0200 locking/lockdep: Make CONFIG_LOCKDEP_CROSSRELEASE part of CONFIG_PROVE_LOCKING Crossrelease support added the CONFIG_LOCKDEP_CROSSRELEASE and CONFIG_LOCKDEP_COMPLETE options. It makes little sense to enable them when PROVE_LOCKING is disabled. Make them non-interative options and part of PROVE_LOCKING to simplify the UI. Signed-off-by: Byungchul Park Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: kernel-t...@lge.com Link: http://lkml.kernel.org/r/1502960261-16206-1-git-send-email-byungchul.p...@lge.com Signed-off-by: Ingo Molnar 7a46ec0e2f locking/refcounts, x86/asm: Implement fast refcount overflow protection d0541b0fa6 locking/lockdep: Make CONFIG_LOCKDEP_CROSSRELEASE part of CONFIG_PROVE_LOCKING e26f34a407 locking/lockdep: Make CONFIG_LOCKDEP_CROSSRELEASE and CONFIG_LOCKDEP_COMPLETIONS truly non-interactive 1e96409c81 Merge branch 'locking/core' ++++++ || 7a46ec0e2f | d0541b0fa6 | e26f34a407 | 1e96409c81 | ++++++ | boot_successes | 87 | 17 | 25 | 1 | ++++++ [2.128883] [2.129205] == [2.130327] WARNING: possible circular locking dependency detected [2.131459] 4.13.0-rc4-00262-gd0541b0 #1 Not tainted [2.132365] -- [2.132828] kworker/u4:1/69 is trying to acquire lock: [2.132828] (ww_class_mutex){+.+.}, at: [] test_cycle_work+0xc7/0x2e0 [2.132828] [2.132828] but now in release context of a crosslock acquired at the following: [2.132828] [2.132828] but now in release context of a crosslock acquired at the following: [2.132828] ((complete)&cycle->b_signal){+.+.}, at: [] test_cycle_work+0xdf/0x2e0 [2.132828] [2.132828] which lock already depends on the new lock. [2.132828] [2.132828] which lock already depends on the new lock. [2.132828] [2.132828] the existing dependency chain (in reverse order) is: [2.132828] [2.132828] the existing dependency chain (in reverse order) is: [2.132828] # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start c4c4bf934653e3efa3e33b594d963dbd1fbe169d ef954844c7ace62f773f4f23e28d2d915adc419f -- git bisect bad c4f4441fc722883389178012e962b2f018fa2b04 # 03:01 B 0 4 16 0 Merge 'ragnatech/for-renesas-drivers' into devel-hourly-2017081721 git bisect bad 1f109afa68cc1f4c93fc31c3f6537575db6fb578 # 03:29 B 2 90 0 Merge 'linux-review/Shawn-Guo/usb-dwc3-of-simple-remove-include-of-clk-provider-h/20170814-101901' into devel-hourly-2017081721 git bisect good 461588ebbc12b9ec018eedae7e7d6ef888b0aa25 # 03:56 G 12 00 0 Merge 'asoc/topic/spear' into devel-hourly-2017081721 git bisect good e6be551794640d75b3f5f3121de2ed50d0d521e6 # 04:23 G 12 00 0 Merge 'arm-soc/qcom/dt' into devel-hourly-2017081721 git bisect bad fc967d2ced73338b30fac4c9294fd9e003d55d0b # 04:42 B 0 1 14 0 Merge 'linux-review/Arvind-Yadav/thermal-max77620-constify-platform_device_id/20170816-003034' into devel-hourly-2017081721 git bisect bad 01043d21a825ecb715ac855fafa7a403cb1b3b59 # 05:22 B 0 2 15 0 Merge 'hid/for-4.14/battery' into devel-hourly-2017081721 git bisect good ddf3d87ceb3d32f777a8ec8576d2c1745cae69cb # 05:46 G 12 00 0 Merge 'linux-review/Juergen-Gross/net-i40evf-use-cpumask_copy-for-assigning-cpumask/20170815-021359' into devel-hourly-2017081721 git bisect good fe06b85236586409c24ae9e79ed26f695a463c9d # 06:22 G 12 00 0 Merge 'shawnguo/imx/dt64' into devel-hourly-2017081721 git bisect bad 6b567defcb20605ee5a4d6c997f70668fc45d80a # 06:48 B 3 60 0 Merge 'tip/master' into devel-hourly-2017081721 git bisect bad 069ca40b07b3f5c8de9455f93fe67f6be99d0e16 # 07:01 B 2 50 0 Merge branch 'ras/core' git bisect good a641860550f05a4b8889dca61aab73c84b2d5e16 # 07:15 G 13 00 0 perf script python: Generate hooks with additional argument git bisect good 1209b273a25ee60a267b606bea77e068b8556a8d # 07:34 G 13 00 0 perf test: Add infrastructure to run shell based tests git bisect good 9881223c6cc0644cc3aeea41e1f19ea7e3041f33 # 07:46 G 13 00 0 Merge tag 'perf-
[lkp-robot] [mm] 1be7107fbe: kernel_BUG_at_mm/mmap.c
FYI, we noticed the following commit: commit: 1be7107fbe18eed3e319a6c3e83c78254b693acb ("mm: larger stack guard gap, between vmas") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -smp 2 -m 320M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 1132d5e7b6 | 1be7107fbe | +--+++ | boot_successes | 5 | 4 | | boot_failures| 0 | 4 | | kernel_BUG_at_mm/mmap.c | 0 | 4 | | invalid_opcode:#[##] | 0 | 4 | | EIP:unmapped_area_topdown| 0 | 4 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 4 | +--+++ [ 87.792040] kernel BUG at mm/mmap.c:1963! [ 87.793442] invalid opcode: [#1] DEBUG_PAGEALLOC [ 87.794812] Modules linked in: [ 87.795849] CPU: 0 PID: 424 Comm: trinity-c2 Not tainted 4.12.0-rc5-00285-g1be7107f #1 [ 87.798138] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014 [ 87.800657] task: ce6177c0 task.stack: cd0fc000 [ 87.801877] EIP: unmapped_area_topdown+0x14b/0x15c [ 87.803063] EFLAGS: 00010206 CPU: 0 [ 87.804075] EAX: EBX: b520 ECX: EDX: b4feb000 [ 87.805469] ESI: 00201000 EDI: b4feb000 EBP: cd0fde84 ESP: cd0fde60 [ 87.806872] DS: 007b ES: 007b FS: GS: 0033 SS: 0068 [ 87.808182] CR0: 80050033 CR2: 0004 CR3: 0d098c60 CR4: 06b0 [ 87.809558] DR0: DR1: DR2: DR3: [ 87.810919] DR6: fffe0ff0 DR7: 0400 [ 87.812002] Call Trace: [ 87.812857] arch_get_unmapped_area_topdown+0x74/0x11f [ 87.814011] ? arch_get_unmapped_area+0xb4/0xb4 [ 87.815095] get_unmapped_area+0x5b/0xae [ 87.816103] do_mmap+0xc7/0x2ac [ 87.817061] vm_mmap_pgoff+0x6b/0x94 [ 87.818080] SYSC_mmap_pgoff+0x13f/0x162 [ 87.819004] SyS_mmap_pgoff+0x1a/0x1c [ 87.819873] do_int80_syscall_32+0x65/0x79 [ 87.820791] entry_INT80_32+0x2a/0x2a [ 87.821710] EIP: 0x8090aa2 [ 87.822490] EFLAGS: 0246 CPU: 0 [ 87.823345] EAX: ffda EBX: ECX: 00201000 EDX: 0003 [ 87.824489] ESI: 0022 EDI: EBP: ESP: bff1c8c8 [ 87.825650] DS: 007b ES: 007b FS: GS: 0033 SS: 007b [ 87.826735] Code: 31 c9 e8 20 15 fb ff 39 7d ec 5a 76 02 0f 0b 31 d2 6a 00 39 fb 0f 97 c2 b8 c0 db b1 c1 31 c9 e8 03 15 fb ff 39 fb 89 fa 58 76 07 <0f> 0b ba f4 ff ff ff 8d 65 f4 89 d0 5b 5e 5f 5d c3 55 89 e5 56 [ 87.830175] EIP: unmapped_area_topdown+0x14b/0x15c SS:ESP: 0068:cd0fde60 [ 87.831396] ---[ end trace 67da11e70888e7ec ]--- To reproduce: git clone https://github.com/01org/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.12.0-rc5 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=3 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAV
[lkp-robot] [printk] 7f7c60e066: BUG:KASAN:slab-out-of-bounds
FYI, we noticed the following commit (built with gcc-4.9): commit: 7f7c60e0663645e757e520245606fde9c6e326bb ("printk: hash addresses printed with %p") url: https://github.com/0day-ci/linux/commits/Tobin-C-Harding/printk-hash-addresses-printed-with-p/20171024-231922 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || 6cff0a118f | 7f7c60e066 | ++++ | boot_successes | 26 | 0 | | boot_failures | 16 | 49 | | BUG:soft_lockup-CPU##stuck_for#s | 16 || | Kernel_panic-not_syncing:softlockup:hung_tasks | 16 || | BUG:KASAN:slab-out-of-bounds | 0 | 49 | ++++ [ 39.757461] BUG: KASAN: slab-out-of-bounds in __test+0xee/0x13f [ 39.757461] Read of size 34 at addr 22cb34bb by task swapper/0/1 [ 39.757461] [ 39.757461] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc6-00013-g7f7c60e #1 [ 39.757461] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 39.757461] Call Trace: [ 39.757461] dump_stack+0xb0/0xf2 [ 39.757461] print_address_description+0x63/0x2b0 [ 39.757461] kasan_report+0x1fb/0x320 [ 39.757461] ? __test+0xee/0x13f [ 39.757461] check_memory_region+0x142/0x1a0 [ 39.757461] __asan_loadN+0xf/0x20 [ 39.757461] __test+0xee/0x13f [ 39.757461] test_printf_init+0x657/0x1378 [ 39.757461] ? test_sort_init+0xff/0x10d [ 39.757461] ? kfree+0x8b/0x200 [ 39.757461] ? test_sort_init+0xff/0x10d [ 39.757461] ? __test+0x13f/0x13f [ 39.757461] do_one_initcall+0x9d/0x19a [ 39.757461] kernel_init_freeable+0x1be/0x24b [ 39.757461] ? rest_init+0xe0/0xe0 [ 39.757461] kernel_init+0x13/0x120 [ 39.757461] ? rest_init+0xe0/0xe0 [ 39.757461] ret_from_fork+0x25/0x30 [ 39.757461] [ 39.757461] Allocated by task 1: [ 39.757461] save_stack_trace+0x1b/0x20 [ 39.757461] kasan_kmalloc+0xd7/0x180 [ 39.757461] kasan_slab_alloc+0x12/0x20 [ 39.757461] __kmalloc_track_caller+0x107/0x260 [ 39.757461] kvasprintf+0x55/0xb0 [ 39.757461] __test+0xd2/0x13f [ 39.757461] test_printf_init+0x657/0x1378 [ 39.757461] do_one_initcall+0x9d/0x19a [ 39.757461] kernel_init_freeable+0x1be/0x24b [ 39.757461] kernel_init+0x13/0x120 [ 39.757461] ret_from_fork+0x25/0x30 [ 39.757461] [ 39.757461] Freed by task 1: [ 39.757461] save_stack_trace+0x1b/0x20 [ 39.757461] kasan_slab_free+0xb9/0x190 [ 39.757461] kfree+0x8b/0x200 [ 39.757461] do_copy+0x6e/0xe0 [ 39.757461] write_buffer+0x37/0x4a [ 39.757461] flush_buffer+0x38/0xa2 [ 39.757461] __gunzip+0x3b7/0x49e [ 39.757461] gunzip+0x11/0x13 [ 39.757461] unpack_to_rootfs+0x19a/0x313 [ 39.757461] populate_rootfs+0xa6/0x131 [ 39.757461] do_one_initcall+0x9d/0x19a [ 39.757461] kernel_init_freeable+0x1be/0x24b [ 39.757461] kernel_init+0x13/0x120 [ 39.757461] ret_from_fork+0x25/0x30 [ 39.757461] [ 39.757461] The buggy address belongs to the object at 22cb34bb [ 39.757461] which belongs to the cache kmalloc-32 of size 32 [ 39.757461] The buggy address is located 0 bytes inside of [ 39.757461] 32-byte region [22cb34bb, 24ac3a60) [ 39.757461] The buggy address belongs to the page: [ 39.757461] page:a7cc2f90 count:1 mapcount:0 mapping: (null) index:0x0 [ 39.757461] flags: 0x4100(slab) [ 39.757461] raw: 4100 000180550055 [ 39.757461] raw: ea5db400 00060006 88001a001a00 [ 39.757461] page dumped because: kasan: bad access detected [ 39.757461] [ 39.757461] Memory state around the buggy address: [ 39.757461] 1c0e72a5: fb fb fc fc fb fb fb fb fc fc fb fb fb fb fc fc [ 39.757461]5e1f6c: fb fb fb fb fc fc fb fb fb fb fc fc 00 00 00 00 [ 39.757461] >24ac3a60: fc fc fb fb fb fb fc fc fb fb fb fb fc fc fb fb [ 39.757461]^ [ 39.757461] c354f823: fb fb fc fc fb fb fb fb fc fc fb fb fb fb fc fc [ 39.757461] 149d6220: fb fb fb fb fc fc fb fb fb fb fc fc fb fb fb fb [ 39.757461] == [ 39.757461] Disabling lock debugging due to kernel taint [ 40.275423] test_printf: kvasprintf(..., "%p %p", ...) returned '3cf9adbe eff717bf', expected '01234567 fedcba98' [ 40.296739] test_pr
[lkp-robot] [x86/entry/64] 66688e9d11: WARNING:at_kernel/locking/lockdep.c:#check_flags
FYI, we noticed the following commit (built with gcc-6): commit: 66688e9d11455f15983d08e7c14733969cd25919 ("x86/entry/64: Create a percpu SYSCALL entry trampoline") https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git x86/entry_stack.wip in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 73a713a46e | 66688e9d11 | +--+++ | boot_successes | 8 | 0 | | boot_failures| 0 | 8 | | WARNING:at_kernel/locking/lockdep.c:#check_flags | 0 | 8 | | RIP:check_flags | 0 | 8 | +--+++ [ 29.569704] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:3911 check_flags+0x68/0x1d0 [ 29.570882] CPU: 0 PID: 1 Comm: init Not tainted 4.14.0-rc7-00075-g66688e9 #1 [ 29.571716] task: 88078000 task.stack: c9008000 [ 29.572412] RIP: 0010:check_flags+0x68/0x1d0 [ 29.572917] RSP: 0018:c900beb0 EFLAGS: 00010082 [ 29.573527] RAX: 002e RBX: 88078000 RCX: [ 29.574360] RDX: RSI: 0001 RDI: 81168345 [ 29.575188] RBP: R08: R09: [ 29.576019] R10: R11: 88078000 R12: [ 29.576857] R13: R14: 0001 R15: [ 29.577701] FS: () GS:82c3c000() knlGS: [ 29.578665] CS: 0010 DS: ES: CR0: 80050033 [ 29.579328] CR2: 7fd3355def3c CR3: 14db3000 CR4: 06b0 [ 29.580154] Call Trace: [ 29.580448] lock_acquire+0x6d/0x1ca [ 29.580878] vtime_user_exit+0x3c/0xa0 [ 29.581321] ? __context_tracking_exit+0x47/0x130 [ 29.581876] __context_tracking_exit+0x47/0x130 [ 29.582409] do_syscall_64+0x1cf/0x200 [ 29.582862] entry_SYSCALL64_slow_path+0x25/0x25 [ 29.583387] RIP: 0033:0x7fd3355dae7a [ 29.583829] RSP: 002b:7ffee77e70f8 EFLAGS: 0246 ORIG_RAX: 000c [ 29.584682] RAX: ffda RBX: 0009 RCX: 7fd3355dae7a [ 29.585511] RDX: RSI: 7fd3355df720 RDI: [ 29.586332] RBP: 078bfbfd R08: 7ffee77e73b9 R09: 7ffee77ec000 [ 29.587163] R10: 037f R11: 0246 R12: 7ffee77e73c9 [ 29.587991] R13: R14: 56117f2ce524 R15: 1000 [ 29.588846] Code: 29 00 85 c0 0f 84 4a 01 00 00 8b 05 43 9d 08 03 85 c0 0f 85 3c 01 00 00 48 c7 c6 b0 a7 93 82 48 c7 c7 9f 6f 92 82 e8 a2 e8 00 00 <0f> ff e9 22 01 00 00 8b 05 ab 7a 04 03 85 c0 0f 85 36 01 00 00 [ 29.591054] ---[ end trace f97ede80dbcb4ee1 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.14.0-rc7 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONF
[lkp-robot] [x86/asm/64] e04a713254: double_fault:#[##]
FYI, we noticed the following commit (built with gcc-6): commit: e04a713254ef50629d1ae9558ddd4c118b7cb807 ("x86/asm/64: Use a percpu trampoline stack for IDT entries") https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git x86/entry_stack.wip in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | c82ad40da1 | e04a713254 | +--+++ | boot_successes | 39 | 0 | | boot_failures| 0 | 8 | | double_fault:#[##] | 0 | 8 | | RIP:__do_page_fault | 0 | 8 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | +--+++ [ 187.211863] Freeing unused kernel memory: 1360K [ 187.212799] Write protecting the kernel read-only data: 24576k [ 187.226217] Freeing unused kernel memory: 1464K [ 187.309521] Freeing unused kernel memory: 1556K [ 187.310408] rodata_test: all tests were successful [ 187.312781] double fault: [#1] PREEMPT KASAN [ 187.313638] CPU: 0 PID: 1 Comm: init Not tainted 4.14.0-rc7-00070-ge04a713 #1 [ 187.318110] task: 88001a73d500 task.stack: 88001a74 [ 187.319112] RIP: 0010:__do_page_fault+0x66/0x53d [ 187.319874] RSP: :ff575fe8 EFLAGS: 00010086 [ 187.320714] RAX: fbeaec05 RBX: ff5760f8 RCX: 810c70b9 [ 187.321961] RDX: fbeaec3d RSI: 0003 RDI: 88001a73d720 [ 187.323105] RBP: 0003 R08: dc00 R09: 0001 [ 187.324261] R10: ff576e10 R11: R12: fbeaec3d [ 187.325481] R13: 0003 R14: fbeaec3d R15: 88001a73d500 [ 187.326656] FS: () GS:82841000() knlGS: [ 187.327980] CS: 0010 DS: ES: CR0: 80050033 [ 187.328993] CR2: ff575fd8 CR3: 1a41b000 CR4: 000406b0 [ 187.330157] Call Trace: [ 187.330582] Code: 41 48 c7 44 24 48 c1 41 5e 82 48 c7 44 24 50 00 67 03 81 48 c1 e8 03 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 03 44 24 18 00 f1 f1 f1 f1 c7 40 04 04 f4 f4 f4 65 48 8b 04 25 28 00 00 [ 187.346857] RIP: __do_page_fault+0x66/0x53d RSP: ff575fe8 [ 187.347874] ---[ end trace 3b2af22d0dac3392 ]--- [ 187.348663] Kernel panic - not syncing: Fatal exception [ 187.349560] Kernel Offset: disabled Elapsed time: 190 #!/bin/bash To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.14.0-rc7 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_KASAN_SHADOW_OFFSET=0xdc00 CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set CONFIG_KERNEL_LZ4=y CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set CONFIG_
[lkp-robot] [x86/asm/64] 7b1f0050e4: PANIC:double_fault
FYI, we noticed the following commit (built with gcc-6): commit: 7b1f0050e45387563fb77c5ee18270567573b590 ("x86/asm/64: Use a percpu trampoline stack for IDT entries") https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git x86/entry_stack.wip in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 7eb0bb9aa6 | 7b1f0050e4 | +-+++ | boot_successes | 16 | 0 | | boot_failures | 4 | 20 | | BUG:kernel_hang_in_test_stage | 2 || | BUG:workqueue_lockup-pool | 2 || | PANIC:double_fault | 0 | 20 | | RIP:trace_hardirqs_off_thunk| 0 | 20 | | RIP:__do_page_fault | 0 | 20 | | RIP:validate_chain | 0 | 20 | | Kernel_panic-not_syncing:Machine_halted | 0 | 20 | +-+++ [ 93.532662] Freeing unused kernel memory: 1584K [ 93.563910] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input5 [ 93.567689] evbug: Connected device: input5 (ImExPS/2 Generic Explorer Mouse at isa0060/serio1/input0) [ 93.572363] evbug: Disconnected device: input5 [ 93.577801] x86/mm: Checked W+X mappings: passed, no W+X pages found. [ 93.580668] PANIC: double fault, error_code: 0x0 [ 93.581800] CPU: 0 PID: 1 Comm: init Not tainted 4.14.0-rc7-00072-g7b1f005 #1 [ 93.583503] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 93.585479] task: 881523c0 task.stack: 88158000 [ 93.586900] RIP: 0010:trace_hardirqs_off_thunk+0xb/0x1c [ 93.588147] RSP: :ff576000 EFLAGS: 00010093 [ 93.589403] RAX: 81ad8cc0 RBX: 0001 RCX: 81ad8cc0 [ 93.591087] RDX: fbeaec5d RSI: 1feaec27 RDI: 881526e0 [ 93.592778] RBP: ff576030 R08: 0001 R09: [ 93.594471] R10: R11: R12: 0003 [ 93.596156] R13: ff5761f8 R14: 88152b58 R15: 881523c0 [ 93.597843] FS: () GS:8246a000() knlGS: [ 93.599753] CS: 0010 DS: ES: CR0: 80050033 [ 93.601124] CR2: ff575ff8 CR3: 10e5a000 CR4: 06f0 [ 93.602813] Call Trace: [ 93.603422] [ 93.604025] ? restore_regs_and_return_to_kernel+0x3a/0x3a [ 93.605342] error_entry+0x73/0xd0 [ 93.606164] RIP: 0010:__do_page_fault+0x61/0x5b0 [ 93.607269] RSP: :ff5760f0 EFLAGS: 00010086 ORIG_RAX: 0003 [ 93.609058] RAX: fbeaec27 RBX: 0003 RCX: 81112ac3 [ 93.610735] RDX: fbeaec5d RSI: 1feaec27 RDI: 881526e0 [ 93.612435] RBP: fbeaec5d R08: 0001 R09: [ 93.614116] R10: R11: R12: 0003 [ 93.615803] R13: ff5761f8 R14: 88152b58 R15: 881523c0 [ 93.617513] ? async_page_fault+0x13/0x60 [ 93.618484] ? trace_hardirqs_off_caller+0x33/0x130 [ 93.619658] ? bad_area_access_error+0x1e0/0x1e0 [ 93.620761] ? trace_hardirqs_off_caller+0x33/0x130 [ 93.621923] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 93.623052] do_page_fault+0x2a/0x70 [ 93.623917] async_page_fault+0x29/0x60 [ 93.624840] RIP: 0010:__do_page_fault+0x61/0x5b0 [ 93.625941] RSP: :ff5762a0 EFLAGS: 00010082 [ 93.627190] RAX: fbeaec5d RBX: 0003 RCX: 81112ac3 [ 93.628876] RDX: fbeaec93 RSI: 1feaec5d RDI: 881526e0 [ 93.630560] RBP: fbeaec93 R08: 0001 R09: [ 93.632242] R10: R11: R12: 0003 [ 93.633929] R13: ff5763a8 R14: 88152b58 R15: 881523c0 [ 93.635623] ? trace_hardirqs_off_caller+0x33/0x130 [ 93.636791] ? bad_area_access_error+0x1e0/0x1e0 [ 93.637892] ? trace_hardirqs_off_caller+0x33/0x130 [ 93.639062] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 93.640186] do_page_fault+0x2a/0x70 [ 93.641052] async_page_fault+0x29/0x60 [ 93.641990] RIP: 0010:__do_page_fault+0x61/0x5b0 [ 93.643097] RSP: :ff576450 EFLAGS: 00010086 [ 93.644353] RAX: fbeaec93 RBX: 0003 RCX: 81112ac3 [ 93.646038] RDX: fbeaecc9 RSI: 1feaec93 RDI: 881526e0 [ 93.647721] RBP: fbeaecc9 R08: 0001 R09: [ 93.649421] R10: 000
[lkp-robot] [x86/entry/64] 6ba0c46abf: WARNING:at_kernel/locking/lockdep.c:#check_flags
FYI, we noticed the following commit (built with gcc-4.9): commit: 6ba0c46abfbfb7f68c34cfb23b042e74e765edbb ("x86/entry/64: Create a percpu SYSCALL entry trampoline") https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git x86/entry_stack.wip in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 1G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 1559877227 | 6ba0c46abf | +--+++ | boot_successes | 2 | 4 | | boot_failures| 10 | 8 | | BUG:kernel_hang_in_test_stage| 10 | 8 | | WARNING:at_kernel/locking/lockdep.c:#check_flags | 0 | 8 | | RIP:check_flags | 0 | 8 | +--+++ [ 33.178620] WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:3911 check_flags+0x1d4/0x1e0 [ 33.180175] Modules linked in: [ 33.180679] CPU: 0 PID: 1 Comm: init Not tainted 4.14.0-rc7-00077-g6ba0c46 #1 [ 33.181804] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 33.183111] task: 880032e44040 task.stack: c9008000 [ 33.184064] RIP: 0010:check_flags+0x1d4/0x1e0 [ 33.184751] RSP: 0018:c900bea0 EFLAGS: 00010086 [ 33.185629] RAX: 002e RBX: 880032e44040 RCX: [ 33.186743] RDX: RSI: 810d527d RDI: [ 33.187880] RBP: R08: R09: [ 33.188993] R10: R11: 810d5239 R12: [ 33.190123] R13: R14: 0001 R15: [ 33.191245] FS: () GS:81e3b000() knlGS: [ 33.192501] CS: 0010 DS: ES: CR0: 80050033 [ 33.193421] CR2: 7f12a97a2100 CR3: 3f43d000 CR4: 06b0 [ 33.194541] Call Trace: [ 33.194935] lock_acquire+0x55/0x1b0 [ 33.195546] vtime_user_exit+0x3c/0xa0 [ 33.196147] ? __context_tracking_exit+0x6f/0x1a0 [ 33.196891] __context_tracking_exit+0x6f/0x1a0 [ 33.197621] do_syscall_64+0x35b/0x550 [ 33.198219] entry_SYSCALL64_slow_path+0x25/0x25 [ 33.198969] RIP: 0033:0x7f12a95951f9 [ 33.199548] RSP: 002b:7ffd91c847a8 EFLAGS: 0246 ORIG_RAX: 000c [ 33.200747] RAX: ffda RBX: 0001 RCX: 7f12a95951f9 [ 33.201857] RDX: 7ffd91c84a70 RSI: 55dd96c392c0 RDI: [ 33.202971] RBP: 55dd96c06040 R08: 0001 R09: 7ffd91c84a99 [ 33.204093] R10: 0001 R11: 0246 R12: 0009 [ 33.205201] R13: 7f12a957e850 R14: 0001 R15: 1000 [ 33.206335] Code: 81 48 c7 c7 62 5e c2 81 31 c0 e8 4c e4 00 00 0f ff e9 dd fe ff ff 48 c7 c6 7f 57 c3 81 48 c7 c7 62 5e c2 81 31 c0 e8 30 e4 00 00 <0f> ff e9 0e ff ff ff 0f 1f 44 00 00 41 57 41 56 41 55 41 54 55 [ 33.209395] ---[ end trace 89cbd096682c3c22 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.14.0-rc7 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFC
[lkp-robot] [kprobes/x86] b664d57f39: BUG:using_smp_processor_id()in_preemptible
FYI, we noticed the following commit (built with gcc-4.9): commit: b664d57f39d01e775204d4f1a7e2f8bda77bc549 ("kprobes/x86: Remove IRQ disabling from jprobe handlers") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || ee213fc72f | b664d57f39 | ++++ | boot_successes | 82 | 2 | | boot_failures | 0 | 80 | | BUG:using_smp_processor_id()in_preemptible | 0 | 80 | | int3:#[##] | 0 | 17 | | RIP:jprobe_return_end | 0 | 17 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 17 | ++++ [ 43.572944] BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 [ 43.589378] caller is debug_smp_processor_id+0x1c/0x1e [ 43.603335] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-2-gb664d57 #2 [ 43.604188] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 43.604188] Call Trace: [ 43.604188] dump_stack+0x85/0xb0 [ 43.604188] check_preemption_disabled+0x11e/0x13a [ 43.604188] debug_smp_processor_id+0x1c/0x1e [ 43.604188] jprobe_return+0x1b/0x2e [ 43.604188] j_kprobe_target+0x48/0x4d [ 43.604188] init_test_probes+0x29a/0x5c3 [ 43.604188] init_kprobes+0x262/0x272 [ 43.604188] ? debugfs_kprobe_init+0xd6/0xd6 [ 43.604188] do_one_initcall+0xaa/0x1ae [ 43.604188] kernel_init_freeable+0x20d/0x2b5 [ 43.604188] ? rest_init+0x157/0x157 [ 43.604188] kernel_init+0x14/0x15d [ 43.604188] ? rest_init+0x157/0x157 [ 43.604188] ret_from_fork+0x25/0x30 [ 43.769768] tsc: Refined TSC clocksource calibration: 2693.508 MHz [ 43.774901] clocksource: tsc: mask: 0x max_cycles: 0x26d349e8249, max_idle_ns: 440795288087 ns [ 44.108271] BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 [ 44.115706] caller is debug_smp_processor_id+0x1c/0x1e [ 44.123287] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-2-gb664d57 #2 [ 44.136256] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 44.152148] Call Trace: [ 44.160150] dump_stack+0x85/0xb0 [ 44.168150] check_preemption_disabled+0x11e/0x13a [ 44.176132] debug_smp_processor_id+0x1c/0x1e [ 44.184148] jprobe_return+0x1b/0x2e [ 44.192157] j_kprobe_target+0x48/0x4d [ 44.200144] init_test_probes+0x341/0x5c3 [ 44.216147] init_kprobes+0x262/0x272 [ 44.220151] ? debugfs_kprobe_init+0xd6/0xd6 [ 44.236135] do_one_initcall+0xaa/0x1ae [ 44.244151] kernel_init_freeable+0x20d/0x2b5 [ 44.252152] ? rest_init+0x157/0x157 [ 44.260151] kernel_init+0x14/0x15d [ 44.268149] ? rest_init+0x157/0x157 [ 44.276148] ret_from_fork+0x25/0x30 [ 44.293463] BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 [ 44.309634] caller is debug_smp_processor_id+0x1c/0x1e [ 44.318450] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-2-gb664d57 #2 [ 44.319354] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 44.319354] Call Trace: [ 44.319354] dump_stack+0x85/0xb0 [ 44.319354] check_preemption_disabled+0x11e/0x13a [ 44.319354] debug_smp_processor_id+0x1c/0x1e [ 44.319354] jprobe_return+0x1b/0x2e [ 44.319354] j_kprobe_target+0x48/0x4d [ 44.319354] init_test_probes+0x37e/0x5c3 [ 44.319354] init_kprobes+0x262/0x272 [ 44.319354] ? debugfs_kprobe_init+0xd6/0xd6 [ 44.319354] do_one_initcall+0xaa/0x1ae [ 44.319354] kernel_init_freeable+0x20d/0x2b5 [ 44.319354] ? rest_init+0x157/0x157 [ 44.319354] kernel_init+0x14/0x15d [ 44.319354] ? rest_init+0x157/0x157 [ 44.319354] ret_from_fork+0x25/0x30 [ 44.479432] int3: [#1] PREEMPT SMP [ 44.480285] Modules linked in: [ 44.480285] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc3-2-gb664d57 #2 [ 44.480285] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 44.480285] task: 8c661c63 task.stack: 8c661c638000 [ 44.480285] RIP: 0010:jprobe_return_end+0x0/0x4 [ 44.480285] RSP: : EFLAGS: 0296 [ 44.480285] RAX: 8c661ca0 RBX: 8c661c63bd90 RCX: 8c661c63 [ 44.480285] RDX: RSI: 0001 RDI: 0296 [ 44.480285] RBP: 8c661c63bd98 R08: R09: 8c661c630c10 [ 44.480285] R10: fff5c8d7 R11: R12: 0001 [ 44.48028
[lkp-robot] [x86/cpuid] 0b00de857a: BUG:unable_to_handle_kernel
FYI, we noticed the following commit (built with gcc-4.9): commit: 0b00de857a648dafe7020878c7a27cf776f5edf4 ("x86/cpuid: Add generic table for CPUID dependencies") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/fpu in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | cbe9637502 | 0b00de857a | +-+++ | boot_successes | 22 | 0 | | boot_failures | 29 | 28 | | WARNING:at_arch/x86/mm/dump_pagetables.c:#note_page | 29 | | | EIP:note_page | 29 | | | WARNING:kernel_stack| 3 | | | BUG:unable_to_handle_kernel | 0 | 28 | | Oops:#[##] | 0 | 28 | | EIP:__ring_buffer_alloc | 0 | 28 | | Kernel_panic-not_syncing:Fatal_exception| 0 | 28 | | BUG:kernel_in_stage | 0 | 3 | +-+++ [0.796377] BUG: unable to handle kernel NULL pointer dereference at 0020 [0.796493] IP: __ring_buffer_alloc+0x34/0x126 [0.796493] *pdpt = *pde = f000ff53f000ff53 [0.796493] Oops: 0002 [#1] [0.796493] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.0-rc4-00129-g0b00de8 #1 [0.796493] task: 4f48 task.stack: 4f47a000 [0.796493] EIP: __ring_buffer_alloc+0x34/0x126 [0.796493] EFLAGS: 00210202 CPU: 0 [0.796493] EAX: 0010 EBX: 0010 ECX: EDX: 014080c0 [0.796493] ESI: 0001 EDI: 000f4240 EBP: 4f47bf1c ESP: 4f47bf0c [0.796493] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 [0.796493] CR0: 80050033 CR2: 0020 CR3: 01c74000 CR4: 06b0 [0.796493] Call Trace: [0.796493] ring_buffer_benchmark_init+0x1f/0x11f [0.796493] ? ftrace_init+0x374/0x374 [0.796493] do_one_initcall+0x8e/0x136 [0.796493] ? parse_args+0xe2/0x1e8 [0.796493] kernel_init_freeable+0xe8/0x15b [0.796493] ? rest_init+0x110/0x110 [0.796493] kernel_init+0xd/0xd0 [0.796493] ret_from_fork+0x19/0x30 [0.796493] Code: 8b 15 70 75 b9 41 89 c7 89 4d f0 89 d0 81 c2 f7 00 00 00 f7 d8 21 d0 ba c0 80 40 01 e8 bf 19 07 00 85 c0 89 c3 0f 84 ea 00 00 00 40 10 00 00 00 00 8d 87 f3 0f 00 00 31 d2 bf f4 0f 00 00 8b [0.796493] EIP: __ring_buffer_alloc+0x34/0x126 SS:ESP: 0068:4f47bf0c [0.796493] CR2: 0020 [0.796493] ---[ end trace ae8a21ea1c6bc359 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.14.0-rc4 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=3 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_K
9c2fb296dd ("Makefile: move stackprotector availability out of .."): BUG: kernel hang in early-boot stage, last printk:
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 9c2fb296dde16a1bb81277be7b32cec881fe1153 Author: Kees Cook AuthorDate: Mon Oct 16 20:01:58 2017 +0100 Commit: Mark Brown CommitDate: Mon Oct 16 20:01:58 2017 +0100 Makefile: move stackprotector availability out of Kconfig Various portions of the kernel, especially per-architecture pieces, need to know if the compiler is building it with the stack protector. This was done in the arch/Kconfig with 'select', but this doesn't allow a way to do auto-detected compiler support. In preparation for creating an on-if-available default, move the logic for the definition of CONFIG_CC_STACKPROTECTOR into the Makefile. Link: http://lkml.kernel.org/r/1506972007-80614-3-git-send-email-keesc...@chromium.org Signed-off-by: Kees Cook Cc: Masahiro Yamada Cc: Michal Marek Cc: Ingo Molnar Cc: Laura Abbott Cc: Nicholas Piggin Cc: Al Viro Cc: Rich Felker Cc: Yoshinori Sato Signed-off-by: Andrew Morton Signed-off-by: Mark Brown 007286d860 sh/boot: add static stack-protector to pre-kernel 9c2fb296dd Makefile: move stackprotector availability out of Kconfig a7dd40274d Add linux-next specific files for 20171017 +-+++---+ | | 007286d860 | 9c2fb296dd | next-20171017 | +-+++---+ | boot_successes | 567| 99 | 15| | boot_failures | 0 | 118| 14| | BUG:kernel_hang_in_boot_stage | 0 | 2 | | | BUG:kernel_in_stage | 0 | 70 | 6 | | BUG:kernel_reboot-without-warning_in_boot_stage | 0 | 37 | 1 | | BUG:kernel_hang_in_early-boot_stage,last_printk | 0 | 7 | 7 | | BUG:kernel_reboot-without-warning_in_test_stage | 0 | 2 | | +-+++---+ [0.015079] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0 [0.016011] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0 [0.016638] CPU: GenuineIntel Intel Core Processor (Haswell) (family: 0x6, model: 0x3c, stepping: 0x4) # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start a7dd40274d75326ca868479c62090b1198a357ad 33d930e59a98fa10a0db9f56c7fa2f21a4aef9b9 -- git bisect good 8380866c02eeababffd2e264708d64c658139581 # 10:10 G 15 00 0 Merge remote-tracking branch 'ipvs-next/master' git bisect good 44b9f8d8d385dd7d0af16df2924fceb142e7f8e6 # 10:31 G 15 00 0 Merge remote-tracking branch 'edac-amd/for-next' git bisect good e2ae73cd59f6d856c4997db797e6e842060a9ca7 # 11:23 G 15 00 0 Merge remote-tracking branch 'char-misc/char-misc-next' git bisect good f6b9165a42719739aebdc3bad280e05659f1e644 # 11:35 G 15 00 0 Merge remote-tracking branch 'gpio/for-next' git bisect good 5263e423a186d4709a183f8416fbb770ede70e67 # 11:46 G 15 00 0 Merge remote-tracking branch 'rtc/rtc-next' git bisect bad ec7b5698d29d347b9ee51a2bcac749c56de49a62 # 12:01 B 13 2 11 38 Merge branch 'akpm-current/current' git bisect good 37fc0c7ac586734b5a3ad70a174b8771c20bc6dd # 12:27 G 46 00 0 Merge remote-tracking branch 'kspp/for-next/kspp' git bisect good 626d91b3d40e30431314a7f7f2484bdb4754f5a9 # 12:37 G 46 00 0 ext4: use pagevec_lookup_range_tag() git bisect good 0c8d5b2ca10fc1235cf60606e7f15307c4f34f84 # 12:46 G 46 00 0 proc: document CoreDumping flag in /proc//status git bisect bad e60c6c50c29a31e028b300516725a397f7c1c079 # 12:58 B 16 26 30 rapidio: idtcps: constify rio_device_id git bisect bad cd0d7c937e3147c292d86281afa1a2b7ed156cea # 13:20 B 28 7 13 87 lib: add module support to string tests git bisect bad 123c48cf899dd3fbf31bc638d779a442727bb517 # 14:00 B 45 1 41 192 Makefile: introduce CONFIG_CC_STACKPROTECTOR_AUTO git bisect good 8bd8de96ee605349e108356b8b59f97ee5a517db # 14:16 G175 00 0 proc: use do-while in name_to_int() git bisect bad 9c2fb296dde16a1bb81277be7b32cec881fe1153 # 14:41 B 48 34 9 Makefile: move stackprotector availability out of Kconfig git bisect good 007286d860544e2aa115190815dc3d35bc1f92dc # 14:52 G185 00 0 sh/boot: add static stack-protector to pre-kernel # first bad commit: [9c2fb296dde16a1
[lkp-robot] [locking/lockdep] 2dcd5adfb7: WARNING:possible_circular_locking_dependency_detected
FYI, we noticed the following commit (built with gcc-5): commit: 2dcd5adfb7401b762ddbe4b86dcacc2f3de6b97b ("locking/lockdep: Remove the BROKEN flag from CONFIG_LOCKDEP_CROSSRELEASE and CONFIG_LOCKDEP_COMPLETIONS") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git locking/core in testcase: boot on test machine: qemu-system-i386 -enable-kvm -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | d141babe42 | 2dcd5adfb7 | +---+++ | boot_successes| 20 | 0 | | boot_failures | 0 | 20 | | WARNING:possible_circular_locking_dependency_detected | 0 | 20 | | BUG:kernel_hang_in_test_stage | 0 | 16 | +---+++ [4.442653] WARNING: possible circular locking dependency detected [4.443206] 4.14.0-rc6-00050-g2dcd5ad #1 Not tainted [4.443648] -- [4.444200] kworker/0:1/15 is trying to acquire lock: [4.444661] (ww_class_mutex){+.+.}, at: [] test_abba_work+0x3b/0x167 [4.445354] [4.445354] but now in release context of a crosslock acquired at the following: [4.446160] ((completion)&abba.b_ready){+.+.}, at: [] wait_for_common+0x1b/0x2b [4.446899] [4.446899] which lock already depends on the new lock. [4.446899] [4.447622] [4.447622] the existing dependency chain (in reverse order) is: [4.448297] [4.448297] -> #1 ((completion)&abba.b_ready){+.+.}: [4.448912]save_stack_trace+0x1e/0x2e [4.449336]__lock_acquire+0x1554/0x1ea3 [4.449797]save_trace+0x0/0xfc [4.450156]lock_acquire+0x25f/0x368 [4.450414]wait_for_common+0x1b/0x2b [4.450414]__wait_for_common+0x72/0x44b [4.450414]wait_for_common+0x1b/0x2b [4.450414]mark_held_locks+0x98/0xcb [4.450414]schedule_timeout+0x0/0x129 [4.450414]trace_hardirqs_on_caller+0x353/0x3ac [4.450414]wait_for_common+0x1b/0x2b [4.450414]wait_for_completion+0x1d/0x2c [4.450414]test_abba+0x180/0x351 [4.450414]test_abba_work+0x0/0x167 [4.450414]test_abba+0x14c/0x351 [4.450414]complete+0x1d/0x95 [4.450414]ww_acquire_fini+0x20/0xca [4.450414]test_aa+0x161/0x17a [4.450414]test_aa+0x4d/0x17a [4.450414]test_ww_mutex_init+0x17f/0x694 [4.450414]_raw_spin_unlock_irqrestore+0xbb/0x13e [4.450414]add_device_randomness+0x29d/0x368 [4.450414]test_ww_mutex_init+0x0/0x694 [4.450414]do_one_initcall+0x108/0x279 [4.450414]do_early_param+0xee/0x1a1 [4.450414]kernel_init_freeable+0x2b6/0x494 [4.450414]kernel_init_freeable+0x2b6/0x494 [4.450414]kernel_init_freeable+0x2ed/0x494 [4.450414]kernel_init+0x0/0x231 [4.450414]kernel_init+0x13/0x231 [4.450414]ret_from_fork+0x19/0x30 [4.450414] [4.450414] -> #0 (ww_class_mutex){+.+.}: [4.450414]test_abba_work+0x3b/0x167 [4.450414] [4.450414] other info that might help us debug this: [4.450414] [4.450414] Possible unsafe locking scenario by crosslock: [4.450414] [4.450414]CPU0CPU1 [4.450414] [4.450414] lock(ww_class_mutex); [4.450414] lock((completion)&abba.b_ready); [4.450414]lock(ww_class_mutex); [4.450414]unlock((completion)&abba.b_ready); [4.450414] [4.450414] *** DEADLOCK *** [4.450414] [4.450414] 5 locks held by kworker/0:1/15: [4.450414] #0: ("events"){+.+.}, at: [] process_one_work+0x210/0x9bd [4.450414] #1: ((&abba.work)){+.+.}, at: [] process_one_work+0x210/0x9bd [4.450414] #2: (ww_class_acquire){+.+.}, at: [] test_abba_work+0x24/0x167 [4.450414] #3: (ww_class_mutex){+.+.}, at: [] test_abba_work+0x3b/0x167 [4.450414] #4: (&x->wait#6){}, at: [] complete+0x1d/0x95 [4.450414] [4.450414] stack backtrace: [4.450414] CPU: 0 PID: 15 Comm: kworker/0:1 Not tainted 4.14.0-rc6-00050-g2dcd5ad #1 [4.450414] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [4.450414] Workqueue: events test_abba_work [4.450414] Call Trace: [4.450414] ? dump_stack+0x1a0/0x240 [4.450414] ? print_circular_bug+0x5b7/0x5d0 [4.450414] ? check_prev_add+0xaf/0x448 [4.450414] ? lock_commit_crossl
[lkp-robot] [proc] eb948c71f7: WARNING:at_mm/hugetlb.c:#hugetlb_add_hstate
FYI, we noticed the following commit (built with gcc-5): commit: eb948c71f790f4fd27440895ca19180a78fd3016 ("proc: mm: export PTE sizes directly in smaps") url: https://github.com/0day-ci/linux/commits/Fan-Du/proc-mm-export-PTE-sizes-directly-in-smaps/20171027-233355 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -m 320M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | f34157878d | eb948c71f7 | +-+++ | boot_successes | 8 | 0 | | boot_failures | 0 | 8 | | WARNING:at_mm/hugetlb.c:#hugetlb_add_hstate | 0 | 8 | | EIP:hugetlb_add_hstate | 0 | 8 | +-+++ [0.499097] WARNING: CPU: 0 PID: 1 at mm/hugetlb.c:2849 hugetlb_add_hstate+0x146/0x161 [0.501039] Modules linked in: [0.502228] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc6-00022-geb948c7 #1 [0.503064] task: b0138000 task.stack: b012a000 [0.504067] EIP: hugetlb_add_hstate+0x146/0x161 [0.505063] EFLAGS: 00210212 CPU: 0 [0.506064] EAX: EBX: 0001 ECX: EDX: 0001 [0.507064] ESI: ffc0 EDI: EBP: b012bee4 ESP: b012bed4 [0.508065] DS: 007b ES: 007b FS: 00d8 GS: SS: 0068 [0.509065] CR0: 80050033 CR2: CR3: 01cbe000 CR4: 0690 [0.510071] Call Trace: [0.511104] hugetlb_init+0x58/0x4e1 [0.512129] ? up_write+0x1b/0x37 [0.513096] ? blocking_notifier_chain_register+0x56/0x60 [0.514069] ? mm_compute_batch_notifier+0x19/0x19 [0.515070] ? hugetlb_init+0x4e1/0x4e1 [0.516095] hugetlb_init+0x16/0x1d [0.517070] do_one_initcall+0x80/0x14c [0.518130] ? do_early_param+0x78/0x78 [0.520096] ? kernel_init_freeable+0xe7/0x17a [0.521191] ? up_write+0x1b/0x37 [0.522070] ? kernel_init_freeable+0xe7/0x17a [0.523099] kernel_init_freeable+0x107/0x17a [0.525064] ? rest_init+0x115/0x115 [0.526096] kernel_init+0xd/0xd5 [0.527094] ret_from_fork+0x19/0x24 [0.528165] Code: b3 b1 83 c4 10 31 db 81 7d f0 ff ff 3f 00 6a 00 b8 b8 58 a8 b1 0f 97 c3 31 c9 89 da e8 55 ee 5e ff 81 7d f0 ff ff 3f 00 58 76 02 <0f> ff 6a 00 31 c9 89 da b8 a0 58 a8 b1 e8 39 ee 5e ff 58 8d 65 [0.532071] ---[ end trace 22f52a911eb8bbac ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.14.0-rc6 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y CONFIG_KERNEL_GZIP=y # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y # CONFIG_POSIX_MQUEUE is not set # CONFIG_CROSS_MEMORY_ATTACH is not set CONFIG_FHANDLE=y CONFIG_USELIB=y # CO
[lkp-robot] [x86/topology] 45d87f5bb7: WARNING:at_kernel/locking/lockdep.c:#lockdep_trace_alloc
FYI, we noticed the following commit (built with gcc-6): commit: 45d87f5bb794a19baa7f92fdf2fabdcb0575c66d ("x86/topology: Avoid wasting 128k for package id array") url: https://github.com/0day-ci/linux/commits/Prarit-Bhargava/perf-x86-intel-uncore-Cache-logical-pkg-id-in-uncore-driver/20171027-073006 in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu IvyBridge -smp 2 -m 1G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | a9ecaa6698 | 45d87f5bb7 | +--+++ | boot_successes | 4 | 2 | | boot_failures| 4 | 6 | | IP-Config:Auto-configuration_of_network_failed | 4 | 2 | | WARNING:at_kernel/locking/lockdep.c:#lockdep_trace_alloc | 0 | 4 | | BUG:KASAN:slab-out-of-bounds | 0 | 4 | +--+++ [0.004000] WARNING: CPU: 1 PID: 0 at kernel/locking/lockdep.c:2897 lockdep_trace_alloc+0x1f4/0x262 [0.004000] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.12.0-rc7-00079-g45d87f5 #1 [0.004000] task: 88002a01 task.stack: 88002a018000 [0.004000] RIP: 0010:lockdep_trace_alloc+0x1f4/0x262 [0.004000] RSP: :88002a01fda8 EFLAGS: 00010086 [0.004000] RAX: 002f RBX: 014000c0 RCX: [0.004000] RDX: 002f RSI: 0001 RDI: ed0005403fab [0.004000] RBP: 88002a01fdc0 R08: 0001 R09: [0.004000] R10: 88002ae1309f R11: fbfff16f1261 R12: 88002a01 [0.004000] R13: 0086 R14: 014000c0 R15: [0.004000] FS: () GS:88002ae0() knlGS: [0.004000] CS: 0010 DS: ES: CR0: 80050033 [0.004000] CR2: CR3: 11c2d000 CR4: 001406a0 [0.004000] Call Trace: [0.004000] slab_pre_alloc_hook+0x19/0x5c [0.004000] __kmalloc+0x43/0x134 [0.004000] topology_update_package_map+0x6c/0x1c5 [0.004000] identify_secondary_cpu+0x141/0x14e [0.004000] smp_store_cpu_info+0x140/0x147 [0.004000] start_secondary+0xa8/0x284 [0.004000] ? set_cpu_sibling_map+0xdeb/0xdeb [0.004000] secondary_startup_64+0x9f/0x9f [0.004000] Code: c0 03 38 d0 7c 09 84 d2 74 05 e8 06 6c 14 00 83 3d da 4e 28 05 00 75 24 48 c7 c6 40 0e e6 88 48 c7 c7 c0 e7 e5 88 e8 d5 95 0c 00 <0f> ff eb 0d be 02 00 00 00 4c 89 e7 e8 fd ed ff ff 65 48 8b 1c [0.004000] ---[ end trace ac56ee376ba3bd7c ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.12.0-rc7 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_KASAN_SHADOW_OFFSET=0xdc00 CONFIG_X86_64_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_
[lkp] [mm] 81c72584a4: -4.3% will-it-scale.per_process_ops
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master commit 81c72584a480c5a4b7eede527d0b990c83c2dcc9 ("mm: gup: make get_user_pages_fast and __get_user_pages_fast latency conscious") = tbox_group/testcase/rootfs/kconfig/compiler/cpufreq_governor/test: ivb42/will-it-scale/debian-x86_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/performance/futex1 commit: 4ae904c494e475048050994f669137c12274da85 81c72584a480c5a4b7eede527d0b990c83c2dcc9 4ae904c494e47504 81c72584a480c5a4b7eede527d -- %stddev %change %stddev \ |\ 5375911 ± 0% -4.3%5146855 ± 0% will-it-scale.per_process_ops 1605249 ± 1% -3.1%1555950 ± 0% will-it-scale.per_thread_ops 0.60 ± 1% -4.2% 0.58 ± 0% will-it-scale.scalability 9957 ± 27% -28.6% 7114 ± 0% numa-meminfo.node0.Mapped 1933 ± 17% +16.0% 2243 ± 6% numa-meminfo.node1.PageTables 2488 ± 27% -28.6% 1777 ± 0% numa-vmstat.node0.nr_mapped 483.00 ± 17% +16.0% 560.50 ± 6% numa-vmstat.node1.nr_page_table_pages 42.00 ± 12% -31.5% 28.75 ± 11% sched_debug.cfs_rq[0]:/.load 2032736 ± 5% -12.5%1779371 ± 7% sched_debug.cfs_rq[0]:/.min_vruntime -300090 ±-69%-103.1% 9378 ±1396% sched_debug.cfs_rq[10]:/.spread0 -235906 ±-47%-103.2% 7486 ±1760% sched_debug.cfs_rq[11]:/.spread0 -885383 ±-11% -29.4%-625333 ±-21% sched_debug.cfs_rq[13]:/.spread0 -883477 ±-12% -28.4%-632137 ±-19% sched_debug.cfs_rq[14]:/.spread0 -881069 ±-12% -28.6%-629181 ±-20% sched_debug.cfs_rq[15]:/.spread0 -888493 ±-12% -29.9%-622785 ±-19% sched_debug.cfs_rq[16]:/.spread0 -883314 ±-13% -28.9%-627753 ±-20% sched_debug.cfs_rq[17]:/.spread0 -1037778 ±-20% -39.9%-623972 ±-21% sched_debug.cfs_rq[18]:/.spread0 -882564 ±-12% -29.3%-623573 ±-20% sched_debug.cfs_rq[19]:/.spread0 -237868 ±-46%-106.0% 14369 ±854% sched_debug.cfs_rq[1]:/.spread0 -870685 ±-11% -29.7%-612118 ±-18% sched_debug.cfs_rq[20]:/.spread0 -879689 ±-12% -29.5%-620241 ±-20% sched_debug.cfs_rq[21]:/.spread0 -872185 ±-13% -27.7%-630771 ±-21% sched_debug.cfs_rq[22]:/.spread0 -882721 ±-12% -28.3%-633288 ±-21% sched_debug.cfs_rq[23]:/.spread0 13.25 ± 47% +98.1% 26.25 ± 29% sched_debug.cfs_rq[24]:/.tg_load_avg_contrib -198518 ±-57%-127.2% 53978 ±241% sched_debug.cfs_rq[25]:/.spread0 15.00 ± 33% -53.3% 7.00 ± 0% sched_debug.cfs_rq[26]:/.load_avg -166551 ±-60%-135.2% 58649 ±214% sched_debug.cfs_rq[26]:/.spread0 15.25 ± 34% -54.1% 7.00 ± 0% sched_debug.cfs_rq[26]:/.tg_load_avg_contrib -195491 ±-57%-128.4% 55586 ±227% sched_debug.cfs_rq[27]:/.spread0 -189456 ±-56%-130.0% 56778 ±222% sched_debug.cfs_rq[28]:/.spread0 -198122 ±-56%-131.1% 61555 ±202% sched_debug.cfs_rq[29]:/.spread0 -267573 ±-52%-105.6% 14934 ±816% sched_debug.cfs_rq[2]:/.spread0 -196299 ±-56%-129.7% 58206 ±217% sched_debug.cfs_rq[30]:/.spread0 -188828 ±-53%-130.7% 57930 ±219% sched_debug.cfs_rq[31]:/.spread0 -197148 ±-54%-131.1% 61392 ±204% sched_debug.cfs_rq[32]:/.spread0 -191912 ±-55%-130.1% 57741 ±218% sched_debug.cfs_rq[33]:/.spread0 -196722 ±-57%-129.5% 58104 ±215% sched_debug.cfs_rq[35]:/.spread0 -802782 ±-14% -31.0%-554283 ±-22% sched_debug.cfs_rq[37]:/.spread0 183.25 ± 7% -7.9% 168.75 ± 0% sched_debug.cfs_rq[37]:/.util_avg -798974 ±-14% -31.3%-548870 ±-24% sched_debug.cfs_rq[38]:/.spread0 -804061 ±-13% -31.9%-547569 ±-23% sched_debug.cfs_rq[39]:/.spread0 -241212 ±-46%-104.2% 10110 ±1225% sched_debug.cfs_rq[3]:/.spread0 -804833 ±-13% -32.5%-542990 ±-24% sched_debug.cfs_rq[40]:/.spread0 -802162 ±-13% -31.6%-548407 ±-23% sched_debug.cfs_rq[41]:/.spread0 -804352 ±-13% -33.8%-532778 ±-26% sched_debug.cfs_rq[43]:/.spread0 -803450 ±-13% -31.6%-549859 ±-22% sched_debug.cfs_rq[44]:/.spread0 -804660 ±-13% -32.2%-545711 ±-22% sched_debug.cfs_rq[45]:/.spread0 -803171 ±-14% -32.8%-540079 ±-22% sched_debug.cfs_rq[46]:/.spread0 -798603 ±-14% -32.2%-541575 ±-23% sched_debug.cfs_rq[47]:/.spread0 -236187 ±-45%-106.5% 15418 ±808% sched_debug.cfs_rq[4]:/.spread0 -240043 ±-46%-105.8% 13821 ±907% sched_debug.cfs_rq[5]:/.spread0 -241134 ±-45%-105.5% 13348 ±932% sched_debug.cfs_rq[6]:/.spread0 -232614 ±-43%-104.6% 10696 ±1210% sched_debug.cfs_rq[7]:/.spread0 -238112 ±-49%-104.9% 11721 ±1075
[lkp] [nfs] 048883e0b9: No primary result change, -70.4% fsmark.time.involuntary_context_switches
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 048883e0b934d9a5103d40e209cb14b7f33d2933 ("nfs: fix pg_test page count calculation") = tbox_group/testcase/rootfs/kconfig/compiler/iterations/nr_threads/disk/fs/fs2/filesize/test_size/sync_method/nr_directories/nr_files_per_directory: lkp-ws02/fsmark/debian-x86_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/1x/32t/1HDD/xfs/nfsv4/16MB/60G/fsyncBeforeClose/16d/256fpd commit: a41cbe86df3afbc82311a1640e20858c0cd7e065 048883e0b934d9a5103d40e209cb14b7f33d2933 a41cbe86df3afbc8 048883e0b934d9a5103d40e209 -- %stddev %change %stddev \ |\ 261986 ± 0% -70.4% 77543 ± 0% fsmark.time.involuntary_context_switches 272406 ± 0% -17.9% 223687 ± 0% fsmark.time.voluntary_context_switches 5443 ± 0% -38.6% 3342 ± 0% vmstat.system.cs 475248 ± 0% -50.9% 233285 ± 0% softirqs.NET_RX 157367 ± 1% -9.0% 143212 ± 0% softirqs.SCHED 261986 ± 0% -70.4% 77543 ± 0% time.involuntary_context_switches 272406 ± 0% -17.9% 223687 ± 0% time.voluntary_context_switches 248624 ± 1%+294.3% 980340 ± 0% meminfo.Active 223111 ± 2%+328.0% 954877 ± 0% meminfo.Active(file) 65657 ± 0% -13.1% 57050 ± 0% meminfo.SUnreclaim 1.34 ± 0% -5.2% 1.27 ± 0% turbostat.%Busy 5.19 ± 1% -28.5% 3.71 ± 3% turbostat.CPU%c1 12.41 ± 1% -52.3% 5.91 ± 4% turbostat.CPU%c3 14.86 ± 1% -23.3% 11.39 ± 3% turbostat.Pkg%pc3 16.35 ± 1% +41.8% 23.19 ± 1% turbostat.Pkg%pc6 2.675e+08 ± 4% -12.9% 2.329e+08 ± 7% cpuidle.C1-NHM.time 165684 ± 4% +12.4% 186205 ± 2% cpuidle.C1-NHM.usage 1.446e+08 ± 7% -75.9% 34785128 ± 12% cpuidle.C1E-NHM.time 79076 ± 1% -87.7% 9744 ± 3% cpuidle.C1E-NHM.usage 1.618e+09 ± 1% -55.5% 7.193e+08 ± 3% cpuidle.C3-NHM.time 510548 ± 0% -73.4% 135726 ± 1% cpuidle.C3-NHM.usage 1532641 ± 0% -9.8%1382714 ± 1% cpuidle.C6-NHM.usage 119890 ± 2%+322.8% 506915 ± 5% numa-meminfo.node0.Active 107993 ± 2%+356.4% 492854 ± 5% numa-meminfo.node0.Active(file) 34025 ± 3% -9.9% 30670 ± 1% numa-meminfo.node0.SUnreclaim 128802 ± 4%+267.7% 473544 ± 6% numa-meminfo.node1.Active 115176 ± 4%+301.2% 462134 ± 6% numa-meminfo.node1.Active(file) 1217 ± 4% -20.5% 967.25 ± 22% numa-meminfo.node1.Dirty 9663 ± 24% -29.4% 6824 ± 35% numa-meminfo.node1.Mapped 31637 ± 3% -16.6% 26381 ± 1% numa-meminfo.node1.SUnreclaim 11631847 ± 2% +19.8% 13937484 ± 4% numa-numastat.node0.local_node 3950957 ± 9% +58.3%6253584 ± 10% numa-numastat.node0.numa_foreign 11631855 ± 2% +19.8% 13937495 ± 4% numa-numastat.node0.numa_hit 4660337 ± 3% -27.1%3398872 ± 7% numa-numastat.node0.numa_miss 4660345 ± 3% -27.1%3398883 ± 7% numa-numastat.node0.other_node 13541675 ± 3% -24.6% 10208933 ± 9% numa-numastat.node1.local_node 4660333 ± 3% -27.1%3398872 ± 7% numa-numastat.node1.numa_foreign 13541683 ± 3% -24.6% 10208939 ± 9% numa-numastat.node1.numa_hit 3950957 ± 9% +58.3%6253604 ± 10% numa-numastat.node1.numa_miss 3950964 ± 9% +58.3%6253611 ± 10% numa-numastat.node1.other_node 55777 ± 2%+328.0% 238719 ± 0% proc-vmstat.nr_active_file 16414 ± 0% -13.1% 14262 ± 0% proc-vmstat.nr_slab_unreclaimable 8605572 ± 5% +12.1%9648367 ± 6% proc-vmstat.numa_foreign 8605590 ± 5% +12.1%9648366 ± 6% proc-vmstat.numa_miss 8605606 ± 5% +12.1%9648384 ± 6% proc-vmstat.numa_other 1080 ± 8% -14.5% 924.25 ± 5% proc-vmstat.numa_pages_migrated 68361 ± 5%+620.8% 492764 ± 2% proc-vmstat.pgactivate 1080 ± 8% -14.5% 924.25 ± 5% proc-vmstat.pgmigrate_success 4917430 ± 1% +8.5%5336634 ± 2% proc-vmstat.pgscan_kswapd_dma32 2245024 ± 0% -70.9% 653056 ± 0% proc-vmstat.slabs_scanned 26997 ± 2%+356.4% 123206 ± 5% numa-vmstat.node0.nr_active_file 8505 ± 3% -9.9% 7667 ± 1% numa-vmstat.node0.nr_slab_unreclaimable 1556010 ± 11% +72.7%2687972 ± 9% numa-vmstat.node0.numa_foreign 5466532 ± 2% +17.2%6404739 ± 5% numa-vmstat.node0.numa_hit 5466271 ± 2% +17.2%6404584 ± 5% numa-vmstat.node0.numa_local 2073926 ± 8% -27.8%1497829 ± 15% numa-vmstat.node0.numa_miss 2074187 ± 8% -27.8%1497984 ± 15% numa-vmstat.node0.numa_other 28794 ± 4%
[lkp] [f2fs] 15bec0ff5a: -7.5% fsmark.files_per_sec
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 15bec0ff5a9ba6d203178fa8772259df6207942a ("f2fs: do not skip dentry block writes") = tbox_group/testcase/rootfs/kconfig/compiler/cpufreq_governor/iterations/nr_threads/disk/fs/filesize/test_size/sync_method/nr_directories/nr_files_per_directory: nhm4/fsmark/debian-x86_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/performance/1x/32t/1HDD/f2fs/16MB/60G/NoSync/16d/256fpd commit: 1583667acb21aba71a8ba16a5f1596bba1cdbbfa 15bec0ff5a9ba6d203178fa8772259df6207942a 1583667acb21aba7 15bec0ff5a9ba6d203178fa877 -- %stddev %change %stddev \ |\ 9.60 ± 0% -7.5% 8.88 ± 2% fsmark.files_per_sec 25828 ± 14% +43.3% 37001 ± 9% fsmark.time.involuntary_context_switches 346865 ± 1% +5.1% 364446 ± 2% fsmark.time.voluntary_context_switches 149762 ± 1% -10.8% 133532 ± 1% meminfo.Writeback 25828 ± 14% +43.3% 37001 ± 9% time.involuntary_context_switches 10567 ± 0% -1.4% 10423 ± 0% vmstat.system.in 35272 ± 1% +13.7% 40088 ± 2% softirqs.BLOCK 55788 ± 2% -9.2% 50649 ± 2% softirqs.RCU 86.40 ± 0% +2.9% 88.90 ± 0% turbostat.Avg_MHz 15.04 ± 4% +51.2% 22.74 ± 7% turbostat.CPU%c6 95420434 ± 2% +11.1% 1.06e+08 ± 3% cpuidle.C1-NHM.time 76306793 ± 3% -25.7% 56703791 ± 6% cpuidle.C1E-NHM.time 136043 ± 3% +10.9% 150901 ± 1% cpuidle.C6-NHM.usage 85.60 ± 40%+149.5% 213.60 ± 32% proc-vmstat.allocstall 761.80 ±114% +1601.0% 12958 ± 32% proc-vmstat.nr_vmscan_immediate_reclaim 37430 ± 1% -10.8% 33381 ± 1% proc-vmstat.nr_writeback 4375 ± 2% +45.5% 6367 ± 10% proc-vmstat.pgactivate 307.90 ±138% +4385.4% 13810 ± 25% proc-vmstat.pgrotated 11195 ± 43%+150.1% 27994 ± 34% proc-vmstat.pgsteal_direct_dma32 274804 ± 7% -13.2% 238436 ± 6% sched_debug.cfs_rq[1]:/.min_vruntime 2498 ± 9% +44.4% 3607 ± 5% sched_debug.cfs_rq[4]:/.exec_clock 2769 ± 7% +39.7% 3869 ± 16% sched_debug.cfs_rq[5]:/.exec_clock 2667 ± 12% +40.3% 3741 ± 6% sched_debug.cfs_rq[6]:/.exec_clock 2631 ± 9% +43.1% 3765 ± 7% sched_debug.cfs_rq[7]:/.exec_clock -95.80 ±-32% +95.2%-187.00 ±-30% sched_debug.cpu#0.nr_uninterruptible 11444 ± 7% +57.4% 18012 ± 46% sched_debug.cpu#5.nr_load_updates 43.30 ± 29%+228.2% 142.10 ± 27% sched_debug.cpu#5.nr_uninterruptible 9204 ± 10% +3829.2% 361677 ±193% sched_debug.cpu#5.ttwu_local 0.00 ± -1% +Inf% 726873 ± 91% latency_stats.avg.get_request.blk_queue_bio.generic_make_request.submit_bio.__submit_merged_bio.[f2fs].f2fs_submit_merged_bio.[f2fs].ra_meta_pages.[f2fs].build_free_nids.[f2fs].alloc_nid.[f2fs].f2fs_new_inode.[f2fs].f2fs_create.[f2fs].vfs_create 0.00 ± -1% +Inf% 957001 ± 34% latency_stats.avg.get_request.blk_queue_bio.generic_make_request.submit_bio.__submit_merged_bio.[f2fs].f2fs_submit_merged_bio.[f2fs].ra_meta_pages.[f2fs].build_free_nids.[f2fs].alloc_nid.[f2fs].get_dnode_of_data.[f2fs].f2fs_reserve_block.[f2fs].f2fs_get_block.[f2fs] 0.00 ± -1% +Inf% 600712 ±106% latency_stats.avg.get_request.blk_queue_bio.generic_make_request.submit_bio.f2fs_submit_page_bio.[f2fs].get_read_data_page.[f2fs].find_data_page.[f2fs].f2fs_find_entry.[f2fs].f2fs_lookup.[f2fs].lookup_real.path_openat.do_filp_open 0.00 ± -1% +Inf% 60887 ± 77% latency_stats.avg.wait_iff_congested.shrink_inactive_list.shrink_lruvec.shrink_zone.do_try_to_free_pages.try_to_free_pages.__alloc_pages_nodemask.alloc_pages_current.__page_cache_alloc.pagecache_get_page.grab_cache_page_write_begin.f2fs_write_begin.[f2fs] 83681 ± 43%+128.1% 190851 ± 70% latency_stats.avg.wait_on_page_bit.f2fs_wait_on_page_writeback.[f2fs].f2fs_wait_on_page_writeback.[f2fs].get_dnode_of_data.[f2fs].f2fs_reserve_block.[f2fs].f2fs_get_block.[f2fs].f2fs_write_begin.[f2fs].generic_perform_write.__generic_file_write_iter.generic_file_write_iter.f2fs_file_write_iter.[f2fs].__vfs_write 0.00 ± -1% +Inf% 339404 ±117% latency_stats.avg.wait_on_page_bit.find_data_page.[f2fs].f2fs_find_entry.[f2fs].f2fs_lookup.[f2fs].lookup_real.path_openat.do_filp_open.do_sys_open.SyS_open.entry_SYSCALL_64_fastpath 0.00 ± -1% +Inf% 765971 ± 90% latency_stats.max.get_request.blk_queue_bio.generic_make_request.submit_bio.__submit_merged_bio.[f2fs].f2fs_submit_merged_bio.[f2fs].ra_meta_pages.[f2fs].build_free_nids.[f2fs].alloc_nid.[f2fs].f2fs_new_inode.[f2fs].f2fs_create.[f2fs].vfs_create
[lkp] [mm] 46cfb125d6: No primary result change, 11.3% fsmark.time.minor_page_faults
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 46cfb125d673f2f30acf06b3c02485bf693d54e9 ("mm: increase SWAP_CLUSTER_MAX to batch TLB flushes") = tbox_group/testcase/rootfs/kconfig/compiler/cpufreq_governor/iterations/nr_threads/disk/fs/filesize/test_size/sync_method/nr_directories/nr_files_per_directory: nhm4/fsmark/debian-x86_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/performance/1x/32t/1HDD/btrfs/16MB/60G/fsyncBeforeClose/16d/256fpd commit: 284f74b8c06045dcc1b5caaf5f412219f18cfc60 46cfb125d673f2f30acf06b3c02485bf693d54e9 284f74b8c06045dc 46cfb125d673f2f30acf06b3c0 -- %stddev %change %stddev \ |\ 14126 ± 3% +11.3% 15720 ± 4% fsmark.time.minor_page_faults 17.00 ± 0% +5.9% 18.00 ± 0% fsmark.time.percent_of_cpu_this_job_got 88.97 ± 0% +8.8% 96.80 ± 0% fsmark.time.system_time 52682 ± 0% -18.1% 43155 ± 0% softirqs.BLOCK 14126 ± 3% +11.3% 15720 ± 4% time.minor_page_faults 25179737 ± 8% -18.5% 20528816 ± 5% cpuidle.C1E-NHM.time 133847 ± 3% -14.1% 114908 ± 4% cpuidle.C3-NHM.usage 92678 ± 2% -20.8% 73391 ± 1% meminfo.Dirty 124930 ± 1% +21.4% 151629 ± 0% meminfo.Writeback 3.45 ± 1% +3.4% 3.56 ± 0% turbostat.%Busy 111.50 ± 1% +3.8% 115.75 ± 0% turbostat.Avg_MHz 101775 ±157%+329.9% 437551 ±169% latency_stats.max.btrfs_tree_lock.[btrfs].btrfs_lock_root_node.[btrfs].btrfs_search_slot.[btrfs].btrfs_insert_empty_items.[btrfs].btrfs_new_inode.[btrfs].btrfs_create.[btrfs].vfs_create.path_openat.do_filp_open.do_sys_open.SyS_open.entry_SYSCALL_64_fastpath 8005 ± 19% +5364.1% 437413 ±169% latency_stats.max.btrfs_tree_lock.[btrfs].btrfs_lock_root_node.[btrfs].btrfs_search_slot.[btrfs].btrfs_insert_empty_items.[btrfs].insert_with_overflow.[btrfs].btrfs_insert_dir_item.[btrfs].btrfs_add_link.[btrfs].btrfs_create.[btrfs].vfs_create.path_openat.do_filp_open.do_sys_open 469382 ± 66% -98.7% 6266 ± 18% latency_stats.max.btrfs_tree_lock.[btrfs].btrfs_search_slot.[btrfs].btrfs_lookup_inode.[btrfs].__btrfs_update_delayed_inode.[btrfs].btrfs_commit_inode_delayed_items.[btrfs].btrfs_log_inode.[btrfs].btrfs_log_inode_parent.[btrfs].btrfs_log_dentry_safe.[btrfs].btrfs_sync_file.[btrfs].vfs_fsync_range.do_fsync.SyS_fsync 363661 ±103%-100.0% 84.50 ± 19% latency_stats.max.btrfs_tree_read_lock.[btrfs].btrfs_read_lock_root_node.[btrfs].btrfs_search_slot.[btrfs].btrfs_insert_empty_items.[btrfs].copy_items.[btrfs].btrfs_log_inode.[btrfs].btrfs_log_inode_parent.[btrfs].btrfs_log_dentry_safe.[btrfs].btrfs_sync_file.[btrfs].vfs_fsync_range.do_fsync.SyS_fsync 404767 ±170% -98.6% 5611 ±114% latency_stats.max.btrfs_tree_read_lock.[btrfs].btrfs_read_lock_root_node.[btrfs].btrfs_search_slot.[btrfs].btrfs_lookup_dir_item.[btrfs].btrfs_lookup_dentry.[btrfs].btrfs_lookup.[btrfs].lookup_real.path_openat.do_filp_open.do_sys_open.SyS_open.entry_SYSCALL_64_fastpath 35516 ±145% +1126.2% 435514 ±170% latency_stats.max.btrfs_tree_read_lock.[btrfs].btrfs_read_lock_root_node.[btrfs].btrfs_search_slot.[btrfs].btrfs_lookup_xattr.[btrfs].__btrfs_getxattr.[btrfs].btrfs_getxattr.[btrfs].cap_inode_need_killpriv.security_inode_need_killpriv.dentry_needs_remove_privs.file_remove_privs.btrfs_file_write_iter.[btrfs].__vfs_write 1107650 ±130% -72.4% 305514 ± 96% latency_stats.max.wait_on_page_bit.__filemap_fdatawait_range.filemap_fdatawait_range.btrfs_wait_marked_extents.[btrfs].btrfs_write_and_wait_transaction.[btrfs].btrfs_commit_transaction.[btrfs].btrfs_sync_file.[btrfs].vfs_fsync_range.do_fsync.SyS_fsync.entry_SYSCALL_64_fastpath 199353 ± 84%+377.4% 951697 ±154% latency_stats.sum.btrfs_tree_lock.[btrfs].btrfs_lock_root_node.[btrfs].btrfs_search_slot.[btrfs].btrfs_insert_empty_items.[btrfs].btrfs_new_inode.[btrfs].btrfs_create.[btrfs].vfs_create.path_openat.do_filp_open.do_sys_open.SyS_open.entry_SYSCALL_64_fastpath 62503 ± 33%+657.0% 473167 ±155% latency_stats.sum.btrfs_tree_lock.[btrfs].btrfs_lock_root_node.[btrfs].btrfs_search_slot.[btrfs].btrfs_insert_empty_items.[btrfs].insert_with_overflow.[btrfs].btrfs_insert_dir_item.[btrfs].btrfs_add_link.[btrfs].btrfs_create.[btrfs].vfs_create.path_openat.do_filp_open.do_sys_open 5568453 ± 73% -75.9%1342137 ± 11% latency_stats.sum.btrfs_tree_lock.[btrfs].btrfs_search_slot.[btrfs].btrfs_lookup_inode.[btrfs].__btrfs_update_delayed_inode.[btrfs].btrfs_commit_inode_delayed_items.[btrfs].btrfs_log_inode.[btrfs].btrfs_log_inode_parent.[btrfs].btrfs_log_dentry_safe.[btrfs].btrfs_sync_file.[btrfs].vfs_fsync_range.do_fsync.SyS_fsync 1647770 ±118%
[lkp] [x86, pkeys] 2205cb3c40: 22.4% will-it-scale.per_thread_ops
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/daveh/x86-pkeys.git pkeys-v005-protsyscalls commit 2205cb3c40c2ba6521427c9f8f36b2d4f2f2a98d ("x86, pkeys: arch-specific protection bits") = tbox_group/testcase/rootfs/kconfig/compiler/cpufreq_governor/test: lkp-xbm/will-it-scale/debian-x86_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/performance/pread1 commit: d1d70274836b555fdc790a4957ce5ca24b427bf4 2205cb3c40c2ba6521427c9f8f36b2d4f2f2a98d d1d70274836b555f 2205cb3c40c2ba6521427c9f8f -- %stddev %change %stddev \ |\ 1440317 ± 0% +22.4%1762590 ± 0% will-it-scale.per_thread_ops 313.14 ± 0% -2.1% 306.57 ± 0% will-it-scale.time.system_time 27.99 ± 0% +24.0% 34.71 ± 0% will-it-scale.time.user_time 13.25 ± 20% -50.9% 6.50 ± 41% cpuidle.POLL.usage 27.99 ± 0% +24.0% 34.71 ± 0% time.user_time 1965 ± 0% -19.1% 1590 ± 3% vmstat.system.cs 37.50 ± 4% -24.0% 28.50 ± 9% sched_debug.cfs_rq[0]:/.nr_spread_over 144.50 ± 6% -17.8% 118.75 ± 9% sched_debug.cfs_rq[1]:/.load_avg 145.50 ± 6% -18.6% 118.50 ± 9% sched_debug.cfs_rq[1]:/.tg_load_avg_contrib lkp-xbm: Sandy Bridge Memory: 2G will-it-scale.per_thread_ops 1.8e+06 ++O-O--O--O-O-O--O-O-O-O--O--+ O O O O O O O OO O O O O 1.75e+06 ++ O | || 1.7e+06 ++ | 1.65e+06 ++ | || 1.6e+06 ++ | || 1.55e+06 ++ | 1.5e+06 ++ | | *..*..| 1.45e+06 ++ .. .* | *..*.*..*..*..*.*..*..*.**.*..*..*.*..*..*.*..*. | 1.4e+06 ++---+ will-it-scale.time.user_time 36 ++-+ | O O O | 35 ++ O O OO O O O O O O O O O O O 34 ++O O O| O O O | 33 ++ O | 32 ++ | | | 31 ++ | 30 ++ | | | 29 ++*..*.. | 28 ++ .. .*| *..*.. .*..*..*...**.*..*..*..*..*..*..*..*. | 27 ++*---*--*--*--+ will-it-scale.time.system_time 315 +++ 314 ++ .*...*.*..*..| *..*.*..*..*. *.. *..*.. .*..*..*..*. .*.. | 313 ++ *.. .. *.*.*| 312 ++ * | | | 311 ++| 310 ++| 309 ++| | O | 308 O+ O O| 307 ++O OO O OO | | OO O O O O O OO O O O O
[lkp] [string] 3fda0fa0f5: BUG: KASan: out of bounds access in strscpy+0xc2/0x290 at addr ffff880016b83ee0
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.core/strings commit 3fda0fa0f5ed4ef634e043c65709482aea0a37f6 ("string: Improve the generic strlcpy() implementation") +--+++ | | 314edb34c9 | 3fda0fa0f5 | +--+++ | boot_successes | 15 | 11 | | boot_failures| 0 | 4 | | BUG:KASan:out_of_bounds_access | 0 | 4 | | BUG_kmalloc-#(Not_tainted):kasan:bad_access_detected | 0 | 4 | | INFO:Slab#objects=#used=#fp=0x(null)flags= | 0 | 4 | | INFO:Object#@offset=#fp= | 0 | 4 | | backtrace:vfs_write | 0 | 4 | | backtrace:SyS_write | 0 | 4 | +--+++ Failed to configure loopback device: Operation not supported Using cgroup controller name=systemd. File system hierarchy is at /sys/fs/cgroup/systemd. [ 57.599568] == [ 57.600517] BUG: KASan: out of bounds access in strscpy+0xc2/0x290 at addr 880016b83ee0 [ 57.601541] Read of size 8 by task systemd/1 [ 57.602068] = [ 57.603081] BUG kmalloc-64 (Not tainted): kasan: bad access detected [ 57.603907] - [ 57.603907] [ 57.607113] Disabling lock debugging due to kernel taint [ 57.607113] INFO: Slab 0xea5ae0c0 objects=64 used=64 fp=0x (null) flags=0x4080 [ 57.607113] INFO: Object 0x880016b83ec0 @offset=3776 fp=0x7379732f62696c2f [ 57.607113] [ 57.607113] Bytes b4 880016b83eb0: 64 2f 73 6f 63 2f 78 74 65 6e 73 61 00 00 00 00 d/soc/xtensa [ 57.607113] Object 880016b83ec0: 2f 6c 69 62 2f 73 79 73 74 65 6d 64 2f 73 79 73 /lib/systemd/sys [ 57.607113] Object 880016b83ed0: 74 65 6d 64 2d 63 67 72 6f 75 70 73 2d 61 67 65 temd-cgroups-age [ 57.607113] Object 880016b83ee0: 6e 74 00 00 00 00 00 00 a0 95 bf 3f 00 88 ff ff nt.? [ 57.607113] Object 880016b83ef0: 00 00 00 00 00 00 00 00 e7 60 49 f8 07 00 00 00 .`I. [ 57.607113] CPU: 0 PID: 1 Comm: systemd Tainted: GB 4.3.0-rc4-00262-g3fda0fa #1 [ 57.607113] 1000 88002e86fb80 8133a029 88002e86fbb0 [ 57.607113] 81198982 88002e801b00 ea5ae0c0 880016b83ec0 [ 57.607113] 0020 88002e86fbd8 8119de31 88002e86fc68 [ 57.607113] Call Trace: [ 57.607113] [] dump_stack+0x19/0x20 [ 57.607113] [] print_trailer+0xd2/0x120 [ 57.607113] [] object_err+0x31/0x40 [ 57.607113] [] kasan_report_error+0x1dd/0x400 [ 57.607113] [] kasan_report+0x33/0x40 [ 57.607113] [] ? strscpy+0xc2/0x290 [ 57.607113] [] __asan_load8+0x64/0xa0 [ 57.607113] [] strscpy+0xc2/0x290 [ 57.607113] [] strlcpy+0x14/0x60 [ 57.607113] [] cgroup_release_agent_write+0x67/0xa0 [ 57.607113] [] cgroup_file_write+0x81/0x1d0 [ 57.607113] [] ? allocate_cgrp_cset_links+0xf0/0xf0 [ 57.607113] [] kernfs_fop_write+0x18a/0x210 [ 57.607113] [] __vfs_write+0x57/0x170 [ 57.607113] [] ? percpu_down_read+0x55/0x90 [ 57.607113] [] ? __sb_start_write+0xc0/0xe0 [ 57.607113] [] ? __sb_start_write+0xc0/0xe0 [ 57.607113] [] vfs_write+0xec/0x240 [ 57.607113] [] SyS_write+0x5d/0xc0 [ 57.607113] [] entry_SYSCALL_64_fastpath+0x12/0x76 [ 57.607113] Memory state around the buggy address: Thanks, Ying Huang # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.3.0-rc4 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_PERF_EVENTS_INTEL_UNCORE=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_MMU=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y
[lkp] [sched/numa] b52da86e0a: -1.4% will-it-scale.per_thread_ops
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit b52da86e0ad58f096710977fcda856fd84da9233 ("sched/numa: Fix task_tick_fair() from disabling numa_balancing") = tbox_group/testcase/rootfs/kconfig/compiler/cpufreq_governor/test: nhm4/will-it-scale/debian-x86_64-2015-02-07.cgz/x86_64-rhel/gcc-4.9/performance/readseek1 commit: e2bf1c4b17aff25f07e0d2952d8c1c66643f33fe b52da86e0ad58f096710977fcda856fd84da9233 e2bf1c4b17aff25f b52da86e0ad58f096710977fcd -- %stddev %change %stddev \ |\ 1868374 ± 0% -1.4%1843108 ± 0% will-it-scale.per_thread_ops 0.57 ± 0% +14.1% 0.65 ± 10% will-it-scale.scalability 14052 ± 0% -29.6% 9896 ± 0% will-it-scale.time.minor_page_faults 161.75 ± 45% -53.2% 75.75 ± 23% cpuidle.C1E-NHM.usage 14052 ± 0% -29.6% 9896 ± 0% time.minor_page_faults 6943 ± 0%-100.0% 0.00 ± -1% proc-vmstat.numa_hint_faults 6943 ± 0%-100.0% 0.00 ± -1% proc-vmstat.numa_hint_faults_local 7780 ± 0%-100.0% 0.00 ± -1% proc-vmstat.numa_pte_updates 1.19 ± 4% -14.1% 1.02 ± 4% perf-profile.cpu-cycles.__fget_light.sys_lseek.entry_SYSCALL_64_fastpath 5.47 ± 1% -11.8% 4.83 ± 2% perf-profile.cpu-cycles.entry_SYSCALL_64 1.17 ± 6% -16.7% 0.98 ± 12% perf-profile.cpu-cycles.fsnotify.vfs_read.sys_read.entry_SYSCALL_64_fastpath 1.70 ± 4% -15.0% 1.45 ± 4% perf-profile.cpu-cycles.shmem_file_llseek.sys_lseek.entry_SYSCALL_64_fastpath 5.39 ± 1% -12.8% 4.70 ± 5% perf-profile.cpu-cycles.sys_lseek.entry_SYSCALL_64_fastpath 116.50 ± 14% -35.4% 75.25 ± 13% sched_debug.cfs_rq[2]:/.load 95126 ± 8% +17.5% 111795 ± 10% sched_debug.cpu#0.nr_load_updates 2464 ± 6% -39.4% 1494 ± 29% sched_debug.cpu#2.curr->pid 116.50 ± 14% -35.4% 75.25 ± 13% sched_debug.cpu#2.load 1243 ± 2% +50.4% 1870 ± 22% sched_debug.cpu#3.curr->pid 17134 ± 29% +7834.3%1359530 ±110% sched_debug.cpu#4.nr_switches 17204 ± 29% +7802.5%1359602 ±110% sched_debug.cpu#4.sched_count 4538 ± 78% +12299.8% 562734 ±119% sched_debug.cpu#4.sched_goidle 950401 ± 4% -7.9% 875553 ± 4% sched_debug.cpu#7.avg_idle nhm4: Nehalem Memory: 4G proc-vmstat.numa_pte_updates 8000 ++---*---*-*-*-*-+ | * * *.* * 7000 ++ : | | : | | : | 6000 ++: | | : | 5000 ++: | | : | 4000 ++: | | : | |: | 3000 ++ : | *.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.* | 2000 ++---+ proc-vmstat.numa_hint_faults 7000 ++-*-*-*-*-*-*-*-*-*-* | : | 6000 ++ : | | : | | : | 5000 ++: | | : | 4000 ++: | | : | 3000 ++: | |: | |: | 2000 ++ : | *.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*
[lkp] [drm] 6a9b928d41: WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_crtc.c:3598 drm_property_create+0x11f/0x140()
FYI, we noticed the below changes on https://github.com/0day-ci/linux Shashank-Sharma/Color-Management-for-DRM-framework/20151020-202959 commit 6a9b928d4149ae2b195a2c13d55bf9c59a98c40c ("drm: Create Color Management query properties") +--+++ | | 44325dcfed | 6a9b928d41 | +--+++ | boot_successes | 15 | 0 | | boot_failures| 0 | 11 | | WARNING:at_drivers/gpu/drm/drm_crtc.c:#drm_property_create() | 0 | 11 | | backtrace:drm_property_create| 0 | 11 | | backtrace:drm_mode_config_init | 0 | 11 | | backtrace:bochs_kms_init | 0 | 11 | | backtrace:__pci_register_driver | 0 | 11 | | backtrace:drm_pci_init | 0 | 11 | | backtrace:bochs_init | 0 | 11 | | backtrace:kernel_init_freeable | 0 | 11 | +--+++ [3.088019] [TTM] Zone kernel: Available graphics memory: 80722 kiB [3.089216] [TTM] Initializing pool allocator [3.090150] [ cut here ] [3.091098] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_crtc.c:3598 drm_property_create+0x11f/0x140() [3.093218] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.3.0-rc3-00447-g6a9b928 #1 [3.109890] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [3.111674] cb46fcdc c155c5a2 cb46fd10 c104e132 c2a474cc [3.123017] 0001 c2b4b4ac 0e0e c173509f 0e0e c173509f c9bc55a0 [3.127796] c9bb2e1c c2ab39c1 cb46fd20 c104e21b 0009 cb46fd3c c173509f [3.130073] Call Trace: [3.130723] [] dump_stack+0x4b/0x79 [3.131648] [] warn_slowpath_common+0x82/0xc0 [3.132726] [] ? drm_property_create+0x11f/0x140 [3.142859] [] ? drm_property_create+0x11f/0x140 [3.150987] [] warn_slowpath_null+0x1b/0x20 [3.152008] [] drm_property_create+0x11f/0x140 [3.153109] [] drm_mode_config_init+0x502/0x570 [3.161237] [] bochs_kms_init+0x1a/0x120 [3.162235] [] bochs_load+0x6c/0x90 [3.163154] [] drm_dev_register+0x9e/0xb0 [3.164333] [] drm_get_pci_dev+0x74/0x1c0 [3.165326] [] bochs_pci_probe+0x70/0xa0 [3.166349] [] pci_device_probe+0x7f/0xf0 [3.167365] [] ? _raw_spin_unlock+0x10/0x30 [3.168421] [] ? devices_kset_move_last+0x56/0xa0 [3.169539] [] driver_probe_device+0x139/0x490 [3.170608] [] ? pci_match_device+0xc2/0xf0 [3.171670] [] __driver_attach+0x89/0x90 [3.172645] [] ? driver_probe_device+0x490/0x490 [3.193865] [] bus_for_each_dev+0x47/0x80 [3.194873] [] driver_attach+0x19/0x20 [3.203879] [] ? driver_probe_device+0x490/0x490 [3.204979] [] bus_add_driver+0x1d7/0x280 [3.206013] [] ? qxl_init+0x43/0x43 [3.206938] [] ? qxl_init+0x43/0x43 [3.207865] [] driver_register+0x54/0xe0 [3.208877] [] __pci_register_driver+0x2e/0x40 [3.209917] [] drm_pci_init+0xea/0x110 [3.210885] [] ? qxl_init+0x43/0x43 [3.211836] [] bochs_init+0x12/0x14 [3.223822] [] do_one_initcall+0x17f/0x192 [3.224847] [] ? repair_env_string+0x12/0x54 [3.225890] [] ? parse_args+0x1ef/0x4f0 [3.226878] [] ? __might_sleep+0x3b/0xc0 [3.227862] [] kernel_init_freeable+0x164/0x1e1 [3.228968] [] ? kernel_init_freeable+0x164/0x1e1 [3.230078] [] kernel_init+0xb/0xe0 [3.231002] [] ? schedule_tail+0x2a/0xa0 [3.232018] [] ret_from_kernel_thread+0x21/0x30 [3.253128] [] ? rest_init+0x80/0x80 [3.263116] ---[ end trace 067054755672de5e ]--- [3.264122] [ cut here ] Thanks, Ying Huang # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.3.0-rc3 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_PERF_EVENTS_INTEL_UNCORE=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_MMU=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_E
[lkp] [vivid] bcd56c5678: BUG: unable to handle kernel NULL pointer dereference at 0000003c
FYI, we noticed the below changes on git://linuxtv.org/hverkuil/media_tree.git sdrout commit bcd56c567886b1ff0d2569d9cfe056ebbdad59c1 ("vivid: wip for sdr output") [ 123.619858] evbug: Connected device: input1 (AT Translated Set 2 keyboard at isa0060/serio0/input0) [ 123.662942] isa i2c-pca-isa.0: Please specify I/O base [ 123.682577] vivid-000: using single planar format API [ 123.690945] BUG: unable to handle kernel NULL pointer dereference at 003c [ 123.691050] IP: [<4104ff19>] __lock_acquire+0x72/0xd33 [ 123.691050] *pde = [ 123.691050] Oops: [#1] [ 123.691050] CPU: 0 PID: 1 Comm: swapper Not tainted 4.3.0-rc1-00148-gbcd56c5 #2 [ 123.691050] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 123.691050] task: 40011000 ti: 40022000 task.ti: 40022000 [ 123.691050] EIP: 0060:[<4104ff19>] EFLAGS: 00010002 CPU: 0 [ 123.691050] EIP is at __lock_acquire+0x72/0xd33 [ 123.691050] EAX: 0046 EBX: 0246 ECX: EDX: [ 123.691050] ESI: 003c EDI: 40011000 EBP: 40023d70 ESP: 40023d14 [ 123.691050] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 [ 123.691050] CR0: 8005003b CR2: 003c CR3: 0242 CR4: 0690 [ 123.691050] Stack: [ 123.691050] 0002 40023d24 41005feb 0002 40023d30 41006475 40023d5c [ 123.691050] 41045751 cc8dfb3f 0001 40011428 0001 40011428 [ 123.691050] 40023d6c 4104f530 4224d940 4224d940 0246 003c 40023da0 [ 123.691050] Call Trace: [ 123.691050] [<41005feb>] ? paravirt_sched_clock+0x9/0xd [ 123.691050] [<41006475>] ? sched_clock+0x9/0xc [ 123.691050] [<41045751>] ? sched_clock_local+0xe/0x10c [ 123.691050] [<4104f530>] ? __lock_is_held+0x2d/0x43 [ 123.691050] [<41050eac>] lock_acquire+0x5e/0x7f [ 123.691050] [<4173768d>] ? v4l2_ctrl_handler_setup+0x20/0xbe [ 123.691050] [<41b17268>] mutex_lock_nested+0x48/0x2fd [ 123.691050] [<4173768d>] ? v4l2_ctrl_handler_setup+0x20/0xbe [ 123.691050] [<4173768d>] ? v4l2_ctrl_handler_setup+0x20/0xbe [ 123.691050] [<41b18868>] ? __mutex_unlock_slowpath+0xf5/0xfd [ 123.691050] [<4173768d>] v4l2_ctrl_handler_setup+0x20/0xbe [ 123.691050] [<417447f8>] vivid_probe+0xc9f/0x171a [ 123.691050] [<415b1695>] platform_drv_probe+0x3a/0x78 [ 123.691050] [<415b074f>] driver_probe_device+0xd1/0x1fa [ 123.691050] [<415b08bb>] __driver_attach+0x43/0x5f [ 123.691050] [<415af48b>] bus_for_each_dev+0x4e/0x6b [ 123.691050] [<415b0a46>] driver_attach+0x14/0x16 [ 123.691050] [<415b0878>] ? driver_probe_device+0x1fa/0x1fa [ 123.691050] [<415afaac>] bus_add_driver+0xb8/0x18a [ 123.691050] [<415b0f0b>] driver_register+0x6f/0xa4 [ 123.691050] [<415b1e3d>] __platform_driver_register+0x3b/0x3d [ 123.691050] [<423a7d31>] vivid_init+0x21/0x39 [ 123.691050] [<423a7d10>] ? viacam_driver_init+0x11/0x11 [ 123.691050] [<42375c35>] do_one_initcall+0x15e/0x16d [ 123.691050] [<4237545b>] ? repair_env_string+0x12/0x54 [ 123.691050] [<4103ecab>] ? parse_args+0x18e/0x264 [ 123.691050] [<42375dc7>] kernel_init_freeable+0x183/0x200 [ 123.691050] [<41b147d2>] kernel_init+0x8/0xb0 [ 123.691050] [<41b1a060>] ret_from_kernel_thread+0x20/0x30 [ 123.691050] [<41b147ca>] ? rest_init+0x10e/0x10e [ 123.691050] Code: 83 3d 00 ec c0 42 00 0f 85 97 00 00 00 68 45 c4 f6 41 68 5e 15 f6 41 68 11 0c 00 00 eb 6a 83 3d a8 c9 24 42 00 0f 84 80 00 00 00 <81> 3e 00 ea 42 42 b8 00 00 00 00 0f 45 45 0c 89 45 0c 83 fa 01 [ 123.691050] EIP: [<4104ff19>] __lock_acquire+0x72/0xd33 SS:ESP 0068:40023d14 [ 123.691050] CR2: 003c [ 123.691050] ---[ end trace f7bd198a8c34c9de ]--- [ 123.691050] Kernel panic - not syncing: Fatal exception Thanks, Ying Huang # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.3.0-rc1 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_PERF_EVENTS_INTEL_UNCORE=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_MMU=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx" CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # Genera
[lkp] [drm] 0e94a0bada: WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_crtc.c:3598 drm_property_create+0x1df/0x230()
FYI, we noticed the below changes on https://github.com/0day-ci/linux Shashank-Sharma/Color-Management-for-DRM/20151013-203652 commit 0e94a0bada080cd3c0d4d2516ef19a30064de1e0 ("drm: Create Color Management query properties") +--+++ | | 099a64467e | 0e94a0bada | +--+++ | boot_successes | 15 | 0 | | boot_failures| 0 | 13 | | WARNING:at_drivers/gpu/drm/drm_crtc.c:#drm_property_create() | 0 | 13 | | backtrace:drm_property_create| 0 | 13 | | backtrace:drm_mode_config_init | 0 | 13 | | backtrace:bochs_kms_init | 0 | 13 | | backtrace:__pci_register_driver | 0 | 13 | | backtrace:drm_pci_init | 0 | 13 | | backtrace:bochs_init | 0 | 13 | | backtrace:kernel_init_freeable | 0 | 13 | | invoked_oom-killer:gfp_mask=0x | 0 | 1 | | Mem-Info | 0 | 1 | | Out_of_memory:Kill_process | 0 | 1 | | backtrace:vfs_writev | 0 | 1 | | backtrace:SyS_writev | 0 | 1 | | backtrace:do_sys_open| 0 | 1 | | backtrace:SyS_open | 0 | 1 | | backtrace:process_vm_rw | 0 | 1 | | backtrace:SyS_process_vm_readv | 0 | 1 | +--+++ [ 12.562821] [TTM] Initializing pool allocator [ 12.582609] [ cut here ] [ 12.582609] [ cut here ] [ 12.595753] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_crtc.c:3598 drm_property_create+0x1df/0x230() [ 12.595753] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_crtc.c:3598 drm_property_create+0x1df/0x230() [ 12.606591] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.3.0-rc3-00427-g0e94a0b #1 [ 12.606591] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.3.0-rc3-00427-g0e94a0b #1 [ 12.621755] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 12.621755] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 12.641335] [ 12.641335] 8ae35cd8 8ae35cd8 81398350 81398350 824dbf98 824dbf98 [ 12.656876] 8ae35d0c [ 12.656876] 8ae35d0c 81076999 81076999 8244bf30 8244bf30 0001 0001 824dbf98 824dbf98 0e0e 0e0e 815d6b4f 815d6b4f [ 12.690585] 0e0e [ 12.690585] 0e0e 815d6b4f 815d6b4f 0001 0001 88a1c628 88a1c628 0001 0001 8ae35d1c 8ae35d1c 81076ab0 81076ab0 0009 0009 [ 12.711433] Call Trace: [ 12.711433] Call Trace: [ 12.721584] [<81398350>] dump_stack+0x7d/0xfd [ 12.721584] [<81398350>] dump_stack+0x7d/0xfd [ 12.733476] [<81076999>] warn_slowpath_common+0xa9/0x100 [ 12.733476] [<81076999>] warn_slowpath_common+0xa9/0x100 [ 12.735883] [<815d6b4f>] ? drm_property_create+0x1df/0x230 [ 12.735883] [<815d6b4f>] ? drm_property_create+0x1df/0x230 [ 12.757671] [<815d6b4f>] ? drm_property_create+0x1df/0x230 [ 12.757671] [<815d6b4f>] ? drm_property_create+0x1df/0x230 [ 12.770987] [<81076ab0>] warn_slowpath_null+0x20/0x30 [ 12.770987] [<81076ab0>] warn_slowpath_null+0x20/0x30 [ 12.787141] [<815d6b4f>] drm_property_create+0x1df/0x230 [ 12.787141] [<815d6b4f>] drm_property_create+0x1df/0x230 [ 12.796337] [<815ddcd3>] drm_mode_config_init+0x6e3/0x780 [ 12.796337] [<815ddcd3>] drm_mode_config_init+0x6e3/0x780 [ 12.798534] [<8174ed4f>] bochs_kms_init+0x1f/0x120 [ 12.798534] [<8174ed4f>] bochs_kms_init+0x1f/0x120 [ 12.812630] [<8174cdfb>] bochs_load+0xbb/0x110 [ 12.812630] [<8174cdfb>] bochs_load+0xbb/0x110 [ 12.824834] [<815caeb6>] drm_dev_register+0x106/0x130 [ 12.824834] [<815caeb6>] drm_dev_register+0x106/0x130 [ 12.840098] [<815ce2f2>] drm_get_pci_dev+0xf2/0x310 [ 12.840098] [<815ce2f2>] drm_get_pci_dev+0xf2/0x310 [ 12.848206] [<8174cd03>] bochs_pci_probe+
[lkp] [of] db59ef4cdc:
FYI, we noticed the below changes on https://github.com/pantoniou/linux-beagle-track-mainline.git bbb-overlays commit db59ef4cdc3261322ea61686e714b571ef709484 ("of: unittest: Unit-tests for target root overlays.") We found some OF unittests errors in kernel log, while the line marked with + is new after this commit. This is intended? Or should be fixed? [ 10.536161] overlay_is_topmost: #5 clashes #6 @/testcase-data/overlay-node/test-bus/test-unittest8 [ 10.541601] overlay_removal_is_ok: overlay #5 is not topmost [ 10.542464] of_overlay_destroy: removal check failed for overlay #5 [ 10.566327] find_target_node_direct: target "/testcase-data/overlay-node/test-bus/test-unittest18" not under target_root "/testcase-data/overlay-node/test-bus/test-unittest19" [ 10.570260] __of_overlay_create: of_build_overlay_info() failed for tree@/testcase-data/overlay19 [ 10.609190] ### dt-test ### end of unittest - 152 passed, 0 failed Thanks, Ying Huang # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.3.0-rc6 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_PERF_EVENTS_INTEL_UNCORE=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_HAVE_LATENCYTOP_SUPPORT=y CONFIG_MMU=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx" CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set CONFIG_KERNEL_LZMA=y # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y # CONFIG_POSIX_MQUEUE is not set CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_FHANDLE=y CONFIG_USELIB=y # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_PENDING_IRQ=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_DOMAIN_HIERARCHY=y # CONFIG_IRQ_DOMAIN_DEBUG is not set CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERIC_CMOS_UPDATE=y # # Timers subsystem # CONFIG_HZ_PERIODIC=y # CONFIG_NO_HZ_IDLE is not set # CONFIG_NO_HZ is not set # CONFIG_HIGH_RES_TIMERS is not set # # CPU/Task time and stats accounting # CONFIG_TICK_CPU_ACCOUNTING=y # CONFIG_IRQ_TIME_ACCOUNTING is not set # CONFIG_BSD_PROCESS_ACCT is not set # CONFIG_TASKSTATS is not set # # RCU Subsystem # CONFIG_TREE_RCU=y CONFIG_RCU_EXPERT=y CONFIG_SRCU=y # CONFIG_TASKS_RCU is not set CONFIG_RCU_STALL_COMMON=y CONFIG_RCU_FANOUT=32 CONFIG_RCU_FANOUT_LEAF=16 CONFIG_TREE_RCU_TRACE=y CONFIG_RCU_KTHREAD_PRIO=0 # CONFIG_RCU_NOCB_CPU is not set # CONFIG_RCU_EXPEDITE_BOOT is not set CONFIG_BUILD_BIN2C=y CONFIG_IKCONFIG=y # CONFIG_IKCONFIG_PROC is not set CONFIG_LOG_BUF_SHIFT=17 CONFIG_LOG_CPU_MAX_BUF_SHIFT=12 CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CGROUPS=y # CONFIG_CGROUP_DEBUG is not set # CONFIG_CGROUP_FREEZER is not set # CONFIG_CGROUP_PIDS is not set # CONFIG_CGROUP_DEVICE is not set # CONFIG_CPUSETS is not set # CONFIG_CGROUP_CPUACCT is not set # CONFIG_MEMCG is not set # CONFIG_CGROUP_HUGETLB is not set # CONFIG_CGROUP_PERF is not set # CONFIG_CGROUP_SCHED is not set CONFIG_CHECKPOINT_RESTORE=y # CONFIG_NAMESPACES is not set # CONFIG_SCHED_AUTOGROUP is not set # CONFIG_SYSFS_DEPRECATED is not set # CONFIG_RELAY is not set CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="" CONFIG_RD_GZIP=y # CONFIG_RD_BZIP2 is not set CONFIG_RD_LZMA=y # CONFIG_RD_XZ is not set CONFIG_RD_LZO=y # CONFIG_RD_LZ4 is no
[lkp-robot] [tty] b6da31b2c0: WARNING:possible_circular_locking_dependency_detected
FYI, we noticed the following commit (built with gcc-7): commit: b6da31b2c07c46f2dcad1d86caa835227a16d9ff ("tty: Fix data race in tty_insert_flip_string_fixed_flag") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu Nehalem -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || 638a6f4ebe | b6da31b2c0 | ++++ | boot_successes | 0 | 0 | | boot_failures | 12 | 12 | | WARNING:at_lib/debugobjects.c:#__debug_object_init | 12 | 12 | | RIP:__debug_object_init| 12 | 12 | | WARNING:suspicious_RCU_usage | 12 | 12 | | lib/test_rhashtable.c:#suspicious_rcu_dereference_protected()usage | 12 | 12 | | WARNING:possible_circular_locking_dependency_detected | 0 | 8 | ++++ [ 242.923454] WARNING: possible circular locking dependency detected [ 242.925453] 4.17.0-rc3-00051-gb6da31b #2 Tainted: GW [ 242.927353] -- [ 242.929490] S36udev-cache/214 is trying to acquire lock: [ 242.932560] (ptrval) (&obj_hash[i].lock){..-.}, at: debug_object_activate+0x7d/0x18a [ 242.936478] [ 242.936478] but task is already holding lock: [ 242.940058] (ptrval) (&(&port->lock)->rlock){-...}, at: pty_write+0x39/0x83 [ 242.944880] [ 242.944880] which lock already depends on the new lock. [ 242.944880] [ 242.949034] [ 242.949034] the existing dependency chain (in reverse order) is: [ 242.953209] [ 242.953209] -> #3 (&(&port->lock)->rlock){-...}: [ 242.956888]tty_port_tty_get+0x1b/0x46 [ 242.959260]tty_port_default_wakeup+0xb/0x26 [ 242.961381]serial8250_tx_chars+0x11c/0x198 [ 242.963306]serial8250_handle_irq+0x9e/0xba [ 242.964824]serial8250_default_handle_irq+0x24/0x37 [ 242.966162]serial8250_interrupt+0x3c/0xb0 [ 242.967275]__handle_irq_event_percpu+0xf6/0x26b [ 242.968301]handle_irq_event_percpu+0x1d/0x44 [ 242.969348]handle_irq_event+0x33/0x51 [ 242.970287]handle_edge_irq+0xd8/0xf4 [ 242.971074]handle_irq+0xe7/0xeb [ 242.971771]do_IRQ+0x42/0xb1 [ 242.972525]ret_from_intr+0x0/0x2e [ 242.973277]_raw_spin_unlock_irqrestore+0x49/0x57 [ 242.974292]uart_write+0xfe/0x13c [ 242.975073]n_tty_write+0x21e/0x3ac [ 242.975855]tty_write+0x1bd/0x256 [ 242.976668]__vfs_write+0x21/0x106 [ 242.977469]vfs_write+0xd9/0x17a [ 242.978268]ksys_write+0x50/0x8c [ 242.979113]do_syscall_64+0x91/0x1b8 [ 242.980012]entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 242.981039] [ 242.981039] -> #2 (&port_lock_key){-.-.}: [ 242.984256]serial8250_console_write+0x8c/0x1f6 [ 242.986546]console_unlock+0x340/0x51f [ 242.988486]vprintk_emit+0x37b/0x393 [ 242.990387]printk+0x43/0x4b [ 242.991835]register_console+0x2f1/0x33d [ 242.993999]univ8250_console_init+0x24/0x27 [ 242.996549]console_init+0x1a3/0x27b [ 242.997866]start_kernel+0x358/0x470 [ 242.999281]secondary_startup_64+0xa5/0xb0 [ 243.001047] [ 243.001047] -> #1 (console_owner){..-.}: [ 243.002334]vprintk_emit+0x37b/0x393 [ 243.003140]printk+0x43/0x4b [ 243.003915]__debug_object_init+0x419/0x439 [ 243.004856]rhashtable_init+0x1bc/0x201 [ 243.005896]rhltable_init+0xf/0x1b [ 243.006747]test_insert_dup+0x45/0x62d [ 243.007908]test_rht_init+0xd2e/0x1042 [ 243.008920]do_one_initcall+0xef/0x247 [ 243.010041]kernel_init_freeable+0x2a1/0x33d [ 243.011122]kernel_init+0xa/0xe6 [ 243.011862]ret_from_fork+0x24/0x30 [ 243.012742] [ 243.012742] -> #0 (&obj_hash[i].lock){..-.}: [ 243.014124]_raw_spin_lock_irqsave+0x42/0x51 [ 243.015303]debug_object_activate+0x7d/0x18a [ 243.016676]__queue_work+0x6b/0x3a8 [ 243.017780]queue_work_on+0x47/0x7e [ 243.019006]pty_write+0x63/0x83 [ 243.020357]n_tty_write+0x21e/0x3ac [ 243.021508]
[lkp-robot] [x86] 19efe000d3: PANIC:double_fault
FYI, we noticed the following commit (built with gcc-5): commit: 19efe000d3258032d9a1dfb25313a092f9454da0 ("x86: Remap the IRQ stack so it has guard pages") https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git x86/guard_pages in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu IvyBridge -m 420M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 0d997f71d5 | 19efe000d3 | +--+++ | boot_successes | 6 | 0 | | boot_failures| 5 | 32 | | invoked_oom-killer:gfp_mask=0x | 5 || | Mem-Info | 5 || | Out_of_memory:Kill_process | 3 || | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 3 || | RIP:__put_user_4 | 1 || | PANIC:double_fault | 0 | 32 | | RIP:trace_hardirqs_off_thunk | 0 | 32 | | Kernel_panic-not_syncing:Machine_halted | 0 | 32 | | WARNING:kernel_stack | 0 | 32 | +--+++ [0.004000] memory used by lock dependency info: 7871 kB [0.004000] per task-struct memory footprint: 2688 bytes [0.004000] ACPI: Core revision 20180531 [0.004000] clocksource: hpet: mask: 0x max_cycles: 0x, max_idle_ns: 19112604467 ns [0.004000] hpet clockevent registered [0.004000] PANIC: double fault, error_code: 0x0 [0.004000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.18.0-rc4-00074-g19efe000 #2 [0.004000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.004000] RIP: 0010:trace_hardirqs_off_thunk+0xb/0x1c [0.004000] Code: 5f 5d c3 55 48 89 e5 57 56 52 51 50 41 50 41 51 41 52 41 53 48 8b 7d 08 e8 f5 4e 2b 00 eb 34 55 48 89 e5 57 56 52 51 50 41 50 <41> 51 41 52 41 53 48 8b 7d 08 e8 eb 52 2b 00 eb 18 55 48 89 e5 57 [0.004000] RSP: :c900 EFLAGS: 00010087 [0.004000] RAX: 82800a97 RBX: 0001 RCX: 82800a97 [0.004000] RDX: RSI: 82800f68 RDI: 83678c68 [0.004000] RBP: c930 R08: R09: [0.004000] R10: R11: R12: [0.004000] R13: R14: R15: [0.004000] FS: () GS:88001340() knlGS: [0.004000] CS: 0010 DS: ES: CR0: 80050033 [0.004000] CR2: c8f8 CR3: 0366e000 CR4: 000406b0 [0.004000] Call Trace: [0.004000] Kernel panic - not syncing: Machine halted. [0.004000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.18.0-rc4-00074-g19efe000 #2 [0.004000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.004000] Call Trace: [0.004000] <#DF> [0.004000] dump_stack+0x9b/0xe7 [0.004000] panic+0x1ad/0x325 [0.004000] ? refcount_error_report+0x267/0x267 [0.004000] df_debug+0x32/0x32 [0.004000] do_double_fault+0x1b3/0x1c7 [0.004000] double_fault+0x23/0x30 [0.004000] RIP: 0010:trace_hardirqs_off_thunk+0xb/0x1c [0.004000] Code: 5f 5d c3 55 48 89 e5 57 56 52 51 50 41 50 41 51 41 52 41 53 48 8b 7d 08 e8 f5 4e 2b 00 eb 34 55 48 89 e5 57 56 52 51 50 41 50 <41> 51 41 52 41 53 48 8b 7d 08 e8 eb 52 2b 00 eb 18 55 48 89 e5 57 [0.004000] RSP: :c900 EFLAGS: 00010087 [0.004000] RAX: 82800a97 RBX: 0001 RCX: 82800a97 [0.004000] RDX: RSI: 82800f68 RDI: 83678c68 [0.004000] RBP: c930 R08: R09: [0.004000] R10: R11: R12: [0.004000] R13: R14: R15: [0.004000] ? native_iret+0x7/0x7 [0.004000] ? async_page_fault+0x8/0x30 [0.004000] WARNING: kernel stack regs at (ptrval) i
[LKP] [ovl] 24c944dd64: BUG:kernel_reboot-without-warning_in_boot_stage
FYI, we noticed the following commit (built with gcc-7): commit: 24c944dd64f807542a2ec72744c81f064d1a60da ("ovl: Modify ovl_lookup() and friends to lookup metacopy dentry") https://git.kernel.org/cgit/linux/kernel/git/mszeredi/vfs.git overlayfs-next in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 48b3292dcd | 24c944dd64 | +-+++ | boot_successes | 34 | 0 | | boot_failures | 10 | 48 | | BUG:kernel_hang_in_test_stage | 8 || | invoked_oom-killer:gfp_mask=0x | 2 || | Mem-Info| 2 || | Out_of_memory:Kill_process | 2 || | BUG:kernel_reboot-without-warning_in_boot_stage | 0 | 48 | +-+++ [0.00] BRK [0x1d3ee000, 0x1d3eefff] PGTABLE [0.00] RAMDISK: [mem 0x1e73c000-0x1ffd] [0.00] ACPI: Early table checksum verification disabled [0.00] ACPI: RSDP 0x000F6870 14 (v00 BOCHS ) [0.00] ACPI: RSDT 0x1FFE1628 30 (v01 BOCHS BXPCRSDT 0001 BXPC 0001) BUG: kernel reboot-without-warning in boot stage Elapsed time: 10 #!/bin/bash To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Rong, Chen # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.18.0-rc1 Kernel Configuration # # # Compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_KASAN_SHADOW_OFFSET=0xdc00 CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=70300 CONFIG_CLANG_VERSION=0 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set CONFIG_KERNEL_LZMA=y # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set CONFIG_CROSS_MEMORY_ATTACH=y # CONFIG_USELIB is not set # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_MSI_IRQ=y CONFIG_GENERIC_MSI_IRQ_DOMAIN=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y CONFIG_GENERIC_IRQ_DEBUGFS=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERIC_CMOS_UPDATE=y # # Timers subsystem # CONFIG_TICK_ONESHOT=y CONFIG_NO_HZ_COMMON=y # CONFIG_HZ_PERIODIC is not set CONFIG_NO_HZ_IDLE=y CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y # # CPU/Task time and stats accounting # CONFIG_TICK_CPU_ACCOUNTING=y # CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set # CON
[LKP] [rcutorture] 3b745c8969: WARNING:at_mm/slab_common.c:#kmalloc_slab
FYI, we noticed the following commit (built with gcc-5): commit: 3b745c8969c752601cb68c82a06735363563ab42 ("rcutorture: Make boost test more robust") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 450efca718 | 3b745c8969 | +-+++ | boot_successes | 0 | 0 | | boot_failures | 0 | 8 | | WARNING:at_mm/slab_common.c:#kmalloc_slab | 0 | 8 | | RIP:kmalloc_slab| 0 | 8 | | Mem-Info| 0 | 8 | | WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_stats_print | 0 | 8 | | RIP:rcu_torture_stats_print | 0 | 8 | +-+++ [3.525879] WARNING: CPU: 0 PID: 1 at mm/slab_common.c:1027 kmalloc_slab+0x54/0x60 [3.527377] CPU: 0 PID: 1 Comm: swapper Tainted: GT 4.18.0-rc1-00089-g3b745c8 #1 [3.528821] RIP: 0010:kmalloc_slab+0x54/0x60 [3.529142] Code: 8b 04 c5 20 8a a6 82 f3 c3 83 ef 01 b8 ff ff ff ff 0f bd c7 83 c0 01 48 8b 04 c5 20 8a a6 82 c3 31 c0 81 e6 00 02 00 00 75 dd <0f> 0b c3 66 0f 1f 84 00 00 00 00 00 89 f7 31 c9 89 d6 81 cf 00 40 [3.529142] RSP: :c900bd58 EFLAGS: 00010246 [3.529142] RAX: RBX: 2000 RCX: [3.529142] RDX: 8803c040 RSI: RDI: [3.529142] RBP: R08: 0001 R09: [3.529142] R10: 8800146ca000 R11: 7374736574203132 R12: 006000c0 [3.529142] R13: 82e08404 R14: R15: [3.529142] FS: () GS:82c71000() knlGS: [3.529142] CS: 0010 DS: ES: CR0: 80050033 [3.529142] CR2: CR3: 02c61000 CR4: 06b0 [3.529142] Call Trace: [3.529142] ? __kmalloc+0x19/0x1b0 [3.529142] ? test_kzalloc+0x122/0x122 [3.529142] ? test_kmalloc+0xd9/0x122 [3.529142] ? test_module_init+0x71/0xe42 [3.529142] ? poison_obj+0x1e/0x30 [3.529142] ? ___cache_free+0x204/0x450 [3.529142] ? list_sort_test+0x263/0x279 [3.529142] ? __virt_addr_valid+0xb2/0xf0 [3.529142] ? list_sort_test+0x268/0x279 [3.529142] ? test_kzalloc+0x122/0x122 [3.529142] ? do_one_initcall+0x73/0x166 [3.529142] ? kernel_init_freeable+0x14e/0x1f5 [3.529142] ? rest_init+0x150/0x150 [3.529142] ? kernel_init+0xf/0x170 [3.529142] ? rest_init+0x150/0x150 [3.529142] ? rest_init+0x150/0x150 [3.529142] ? ret_from_fork+0x1f/0x30 [3.529142] ---[ end trace dae708fbe548a44a ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Rong, Chen # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.18.0-rc1 Kernel Configuration # # # Compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010 # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_DYNAMIC_PHYSICAL_MASK=y CONFIG_PGTABLE_LEVELS=4 CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=50401 CONFIG_CLANG_VERSION=0 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_S
[LKP] [mm, oom] c1e4c54f9c: BUG:KASAN:null-ptr-deref_in_d
FYI, we noticed the following commit (built with gcc-5): commit: c1e4c54f9c750fc3ea4715f5363b92ea4d4efb29 ("mm, oom: reorganize the oom report in dump_header") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | fd1d082ee4 | c1e4c54f9c | +--+++ | boot_successes | 0 | 0 | | boot_failures| 8 | 8 | | invoked_oom-killer:gfp_mask=0x | 8 | 8 | | Mem-Info | 8 || | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 8 || | BUG:KASAN:null-ptr-deref_in_d| 0 | 8 | | BUG:unable_to_handle_kernel | 0 | 8 | | Oops:#[##] | 0 | 8 | | RIP:dump_header | 0 | 8 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | +--+++ [9.034310] BUG: KASAN: null-ptr-deref in dump_header+0x10c/0x448 [9.034310] Read of size 8 at addr 09b0 by task swapper/0/1 [9.034310] [9.034310] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-rc5-00455-gc1e4c54 #1 [9.034310] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [9.034310] Call Trace: [9.034310] dump_stack+0x8d/0xd3 [9.034310] kasan_report+0x222/0x252 [9.034310] dump_header+0x10c/0x448 [9.034310] out_of_memory+0x4c2/0x544 [9.034310] ? lock_acquire+0x9e/0xd9 [9.034310] ? oom_killer_disable+0x196/0x196 [9.034310] __alloc_pages_slowpath+0x9bb/0xaad [9.034310] ? gfp_pfmemalloc_allowed+0xb/0xb [9.034310] ? ___might_sleep+0xfa/0x29f [9.034310] __alloc_pages_nodemask+0x1e3/0x211 [9.034310] ? __alloc_pages_slowpath+0xaad/0xaad [9.034310] ? debug_show_all_locks+0x1b0/0x1b0 [9.034310] ? mark_held_locks+0x28/0x86 [9.034310] new_slab+0xf6/0x317 [9.034310] ? vfs_statx+0xab/0x111 [9.034310] ___slab_alloc+0x2ce/0x3c5 [9.034310] ? maybe_link+0x110/0x1b0 [9.034310] ? lock_release+0x1ee/0x2c4 [9.034310] ? lock_is_held_type+0x7e/0x8a [9.034310] ? maybe_link+0x110/0x1b0 [9.034310] ? __slab_alloc+0x4b/0x7e [9.034310] __slab_alloc+0x4b/0x7e [9.034310] ? maybe_link+0x110/0x1b0 [9.034310] kmem_cache_alloc+0x59/0xf6 [9.034310] maybe_link+0x110/0x1b0 [9.034310] ? write_buffer+0x3e/0x3e [9.034310] do_name+0xae/0x32b [9.034310] write_buffer+0x2d/0x3e [9.034310] flush_buffer+0x2e/0x96 [9.034310] ? md_run_setup+0x85/0x85 [9.034310] __gunzip+0x399/0x470 [9.034310] ? bunzip2+0x560/0x560 [9.034310] ? __gunzip+0x470/0x470 [9.034310] gunzip+0xe/0x11 [9.034310] ? md_run_setup+0x85/0x85 [9.034310] unpack_to_rootfs+0x1fe/0x393 [9.034310] ? md_run_setup+0x85/0x85 [9.034310] ? do_symlink+0xaf/0xaf [9.034310] ? populate_rootfs+0x10/0x1b2 [9.034310] ? populate_rootfs+0x4b/0x1b2 [9.034310] ? parse_header+0x1c9/0x1c9 [9.034310] populate_rootfs+0x96/0x1b2 [9.034310] ? parse_header+0x1c9/0x1c9 [9.034310] do_one_initcall+0xc4/0x1ce [9.034310] ? initcall_blacklisted+0x12f/0x12f [9.034310] ? lock_downgrade+0x298/0x298 [9.034310] kernel_init_freeable+0x282/0x317 [9.034310] ? rest_init+0xc6/0xc6 [9.034310] kernel_init+0x7/0xfe [9.034310] ? rest_init+0xc6/0xc6 [9.034310] ret_from_fork+0x24/0x30 [9.034310] == [9.034310] Disabling lock debugging due to kernel taint [9.086644] BUG: unable to handle kernel NULL pointer dereference at 09b0 [9.087338] PGD 0 P4D 0 [9.087338] Oops: [#1] PREEMPT SMP KASAN PTI [9.087338] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GB 4.18.0-rc5-00455-gc1e4c54 #1 [9.087338] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [9.087338] RIP: 0010:dump_header+0x10c/0x448 [9.087338] Code: 85 ed 0f 95 c2 4c 89 e9 48 c7 c7 60 67 09 82 e8 32 cf f7 ff e8 03 f5 fc ff e8 ea e8 ff ff 48 8d bd b0 09 00 00 e8 90 ff 04 00 <4c> 8b ad b0 09
[lkp-robot] [confidence: ] e181ae0c5d [ 0.000000] BUG: unable to handle kernel NULL pointer dereference at 00000000
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit e181ae0c5db9544de9c53239eb22bc012ce75033 Author: Pavel Tatashin AuthorDate: Sat Jul 14 09:15:07 2018 -0400 Commit: Linus Torvalds CommitDate: Sat Jul 14 11:02:20 2018 -0700 mm: zero unavailable pages before memmap init We must zero struct pages for memory that is not backed by physical memory, or kernel does not have access to. Recently, there was a change which zeroed all memmap for all holes in e820. Unfortunately, it introduced a bug that is discussed here: https://www.spinics.net/lists/linux-mm/msg156764.html Linus, also saw this bug on his machine, and confirmed that reverting commit 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into memblock.reserved") fixes the issue. The problem is that we incorrectly zero some struct pages after they were setup. The fix is to zero unavailable struct pages prior to initializing of struct pages. A more detailed fix should come later that would avoid double zeroing cases: one in __init_single_page(), the other one in zero_resv_unavail(). Fixes: 124049decbb1 ("x86/e820: put !E820_TYPE_RAM regions into memblock.reserved") Signed-off-by: Pavel Tatashin Signed-off-by: Linus Torvalds 2db39a2f49 Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux e181ae0c5d mm: zero unavailable pages before memmap init 28c20cc73b Merge tag 'drm-fixes-2018-07-20' of git://anongit.freedesktop.org/drm/drm 89cf553533 Add linux-next specific files for 20180720 +--++++---+ | | 2db39a2f49 | e181ae0c5d | 28c20cc73b | next-20180720 | +--++++---+ | boot_successes | 77 | 0 | 24 | 59| | boot_failures| 0 | 13 | 0 | 12| | BUG:unable_to_handle_kernel | 0 | 13 || | | Oops:#[##] | 0 | 13 || | | EIP:zero_resv_unavail| 0 | 13 || | | Kernel_panic-not_syncing:Fatal_exception | 0 | 13 || | | Kernel_panic-not_syncing:Fatal_exception]| 0 | 13 || | | invoked_oom-killer:gfp_mask=0x | 0 | 0 | 0 | 10| | Mem-Info | 0 | 0 | 0 | 11| | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 0 | 0 | 0 | 9 | | BUG:soft_lockup-CPU##stuck_for#s | 0 | 0 | 0 | 1 | | EIP:_raw_spin_unlock_irqrestore | 0 | 0 | 0 | 1 | | Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 0 | 0 | 1 | | Out_of_memory:Kill_process | 0 | 0 | 0 | 3 | +--++++---+ [0.00] Normal [mem 0x0100-0x0ffd1fff] [0.00] Movable zone start for each node [0.00] Early memory node ranges [0.00] node 0: [mem 0x1000-0x0009efff] [0.00] node 0: [mem 0x0010-0x0ffd1fff] [0.00] BUG: unable to handle kernel NULL pointer dereference at [0.00] *pde = [0.00] Oops: 0002 [#1] [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 4.18.0-rc4-00148-ge181ae0 #2 [0.00] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.00] EIP: zero_resv_unavail+0x92/0xed [0.00] Code: 00 00 c1 e9 0c 39 ca 73 2e 89 d1 81 e1 00 fc ff ff 3b 0d c8 29 25 82 73 18 8b 3d c4 29 25 82 b9 09 00 00 00 01 df 83 04 24 01 ab 83 54 24 04 00 42 83 c3 24 eb c1 6a 00 56 31 c9 55 68 48 9a [0.00] EAX: EBX: ECX: 0009 EDX: [0.00] ESI: 819c5ee8 EDI: E
[lkp-robot] [xarray] f0b90e702f: BUG:soft_lockup-CPU##stuck_for#s
FYI, we noticed the following commit (built with gcc-7): commit: f0b90e702fe74fa575b7382ec3474d341098d5b1 ("xarray: Add XArray unconditional store operations") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -m 360M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || 3d730c4294 | f0b90e702f | ++++ | boot_successes | 0 | 0 | | boot_failures | 14 | 25 | | WARNING:at_mm/slab_common.c:#kmalloc_slab | 14 | 25 | | EIP:kmalloc_slab | 14 | 25 | | Mem-Info | 14 | 25 | | INFO:trying_to_register_non-static_key | 14 | 25 | | BUG:unable_to_handle_kernel| 14 || | Oops:#[##] | 14 || | EIP:__pci_epf_register_driver | 14 || | Kernel_panic-not_syncing:Fatal_exception | 14 || | BUG:soft_lockup-CPU##stuck_for#s | 0 | 25 | | EIP:xa_entry | 0 | 5 | | Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 25 | | EIP:xa_is_node | 0 | 8 | | EIP:xas_load | 0 | 2 | | EIP:debug_lockdep_rcu_enabled | 0 | 1 | | EIP:xa_load| 0 | 3 | | EIP:xas_descend| 0 | 2 | | EIP:xa_head| 0 | 1 | | EIP:xas_start | 0 | 3 | ++++ [ 44.03] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper/0:1] [ 44.03] irq event stamp: 1072387 [ 44.03] hardirqs last enabled at (1072387): [<4106ebde>] console_unlock+0x3f3/0x42d [ 44.03] hardirqs last disabled at (1072386): [<4106e84f>] console_unlock+0x64/0x42d [ 44.03] softirqs last enabled at (1072364): [<417ecbeb>] __do_softirq+0x183/0x1b3 [ 44.03] softirqs last disabled at (1072357): [<41007967>] do_softirq_own_stack+0x1d/0x23 [ 44.03] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW 4.18.0-rc3-00012-gf0b90e7 #169 [ 44.03] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 44.03] EIP: xa_is_node+0x0/0x1a [ 44.03] Code: 89 73 08 89 7b 0c eb 0b 39 43 14 72 0c 8b 75 ec 8b 7d f0 89 73 10 89 7b 14 8d 4d ec 89 d8 e8 88 fe ff ff 5a 59 5b 5e 5f 5d c3 <89> c2 55 83 e2 03 83 fa 02 89 e5 0f 94 c2 3d 00 10 00 00 0f 97 c0 [ 44.03] EAX: 4c93caf2 EBX: 5442fec0 ECX: 4c93caf2 EDX: 0001 [ 44.03] ESI: EDI: EBP: 5442feb4 ESP: 5442feac [ 44.03] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00200293 [ 44.03] CR0: 80050033 CR2: CR3: 01d27000 CR4: 000406b0 [ 44.03] Call Trace: [ 44.03] ? xas_load+0x26/0x2f [ 44.03] ? xa_load+0x35/0x52 [ 44.03] ? xarray_checks+0x8c2/0x984 [ 44.03] ? check_xa_tag_1+0x308/0x308 [ 44.03] ? do_one_initcall+0x6a/0x13c [ 44.03] ? parse_args+0xd9/0x1e3 [ 44.03] ? kernel_init_freeable+0xe1/0x172 [ 44.03] ? rest_init+0xaf/0xaf [ 44.03] ? kernel_init+0x8/0xd0 [ 44.03] ? ret_from_fork+0x19/0x24 [ 44.03] Kernel panic - not syncing: softlockup: hung tasks [ 44.03] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GWL 4.18.0-rc3-00012-gf0b90e7 #169 [ 44.03] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 44.03] Call Trace: [ 44.03] ? dump_stack+0x79/0xab [ 44.03] ? panic+0x99/0x1d8 [ 44.03] ? watchdog_timer_fn+0x1ac/0x1d3 [ 44.03] ? __hrtimer_run_queues+0xa0/0x114 [ 44.03] ? watchdog+0x16/0x16 [ 44.03] ? hrtimer_run_queues+0xd2/0xe5 [ 44.03] ? run_local_timers+0x15/0x39 [ 44.03] ? update_process_times+0x18/0x39 [ 44.03] ? tick_nohz_handler+0xba/0xfb [ 44.03] ? smp_apic_timer_interrupt+0x54/0x67 [ 44.03] ? apic_timer_interrupt+0x41/0x48 [ 44.03] ? siphash_2u64+0x54f/0x7de [ 44.03] ? minmax_running_min+0x6f/0x6f [ 44.03] ? xas_load+0x26/0x2f [ 44.03] ? xa_load+0x35/0x52 [ 44.03] ? xarray_checks+0x8c2/0x984 [ 44.03] ? check_xa_tag_1+0x308/0x3
[lkp-robot] [debugobjects] 3f96d20faf: WARNING:at_kernel/locking/lockdep.c:#register_lock_class
FYI, we noticed the following commit (built with gcc-4.9): commit: 3f96d20fafb19e6dd869362ace53662b06e6f6c1 ("[PATCH] debugobjects: Disable lockdep tracking of debugobjects internal locks") url: https://github.com/0day-ci/linux/commits/Waiman-Long/debugobjects-Disable-lockdep-tracking-of-debugobjects-internal-locks/20180714-070310 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 3951dbf232 | 3f96d20faf | +--+++ | boot_successes | 0 | 0 | | boot_failures| 15 | 8 | | WARNING:at_mm/page_alloc.c:#__alloc_pages_nodemask | 15 | 8 | | EIP:__alloc_pages_nodemask | 15 | 8 | | Mem-Info | 15 | 8 | | WARNING:at_kernel/locking/lockdep.c:#register_lock_class | 0 | 8 | | EIP:register_lock_class | 0 | 8 | +--+++ [0.00] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:704 register_lock_class+0x3f0/0x4e0 [0.00] Modules linked in: [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 4.18.0-rc4-00144-g3f96d20 #1 [0.00] EIP: register_lock_class+0x3f0/0x4e0 [0.00] Code: 25 ff ff ff 68 a3 14 a7 81 68 6b fb a4 81 e8 47 48 fc ff 0f 0b 8b 15 4c a3 45 82 58 59 e9 0d ff ff ff 90 8d b4 26 00 00 00 00 <0f> 0b 8b 15 4c a3 45 82 e9 f8 fe ff ff 8d 76 00 8d 54 24 18 89 f8 [0.00] EAX: 81a8242d EBX: 8219b130 ECX: 81d920c0 EDX: [0.00] ESI: EDI: 81bb4530 EBP: ESP: 81b61e38 [0.00] DS: 007b ES: 007b FS: GS: SS: 0068 EFLAGS: 00210012 [0.00] CR0: 80050033 CR2: ffbff000 CR3: 01d86000 CR4: 06b0 [0.00] Call Trace: [0.00] ? __lock_acquire+0x65/0x1a90 [0.00] ? pcpu_alloc+0x495/0x810 [0.00] ? lock_release+0x126/0x290 [0.00] ? lock_acquire+0xa2/0x190 [0.00] ? __debug_object_init+0x255/0x450 [0.00] ? _raw_spin_lock+0x1f/0x30 [0.00] ? __debug_object_init+0x255/0x450 [0.00] ? __debug_object_init+0x255/0x450 [0.00] ? debug_mutex_init+0x21/0x30 [0.00] ? alloc_desc+0x83/0x120 [0.00] ? early_irq_init+0x14d/0x18b [0.00] ? start_kernel+0x3fa/0x60c [0.00] ? startup_32_smp+0x164/0x170 [0.00] irq event stamp: 0 [0.00] hardirqs last enabled at (0): [<>] (null) [0.00] hardirqs last disabled at (0): [<>] (null) [0.00] softirqs last enabled at (0): [<>] (null) [0.00] softirqs last disabled at (0): [<>] (null) [0.00] random: get_random_bytes called from init_oops_id+0x37/0x40 with crng_init=0 [0.00] ---[ end trace 2ecea7c3f5e2e513 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.18.0-rc4 Kernel Configuration # # # Compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 # CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=3 CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=40904 CONFIG_CLANG_VERSION=0 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_IN
[lkp-robot] [kernfs, sysfs, cgroup, intel_rdt] 5aad045543: kernel_BUG_at_fs/super.c
FYI, we noticed the following commit (built with gcc-7): commit: 5aad04554302fc1fbb5924d0f8f68946ec5c06f7 ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -m 420M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | b3f3ae1a5f | 5aad045543 | +---+++ | boot_successes| 0 | 0 | | boot_failures | 12 | 14 | | WARNING:possible_circular_locking_dependency_detected | 12 | 14 | | kernel_BUG_at_fs/super.c | 0 | 4 | | invalid_opcode:#[##] | 0 | 4 | | RIP:vfs_get_tree | 0 | 4 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 4 | +---+++ [ 23.386679] kernel BUG at fs/super.c:1703! [ 23.387314] invalid opcode: [#1] [ 23.387715] CPU: 0 PID: 1 Comm: init Not tainted 4.15.0-rc1-00105-g5aad045 #167 [ 23.388531] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 23.389749] task: 880018c7c000 task.stack: 880018c8 [ 23.390414] RIP: 0010:vfs_get_tree+0x10f/0x2e0 [ 23.390891] RSP: :880018c83e18 EFLAGS: 00010293 [ 23.391489] RAX: 880018c7c000 RBX: 880012cb5748 RCX: 8130d14f [ 23.392286] RDX: RSI: 0001 RDI: 842fa518 [ 23.393062] RBP: 880018c83e38 R08: R09: 0001 [ 23.393810] R10: R11: R12: 0003 [ 23.394569] R13: R14: 880012cb5748 R15: [ 23.395373] FS: () GS:83e8b000(0063) knlGS:f7f89690 [ 23.396224] CS: 0010 DS: 002b ES: 002b CR0: 80050033 [ 23.396845] CR2: f7f12588 CR3: 12cb7000 CR4: 06b0 [ 23.397648] DR0: DR1: DR2: [ 23.398415] DR3: DR6: fffe0ff0 DR7: 0400 [ 23.399144] Call Trace: [ 23.399423] ? vfs_set_fs_source+0xf0/0xf0 [ 23.399852] do_mount+0x145e/0x1750 [ 23.400232] ? strndup_user+0xca/0xe0 [ 23.400624] compat_SyS_mount+0x36a/0x3b0 [ 23.401041] do_int80_syscall_32+0xd3/0x440 [ 23.401520] entry_INT80_compat+0x32/0x40 [ 23.402111] RIP: 0023:0xf7f09c3e [ 23.402474] RSP: 002b:fff69eec EFLAGS: 0296 ORIG_RAX: 0015 [ 23.403256] RAX: ffda RBX: 0804a3a9 RCX: 0804a3a1 [ 23.404003] RDX: 0804a3a9 RSI: 000e RDI: [ 23.404733] RBP: fff69f88 R08: R09: [ 23.405490] R10: R11: R12: [ 23.406238] R13: R14: R15: [ 23.407028] Code: 84 4d 85 ed 41 0f 94 c4 31 c9 31 d2 44 89 e6 49 83 c4 02 e8 64 f6 ec ff 4a 83 04 e5 28 81 4e 84 01 4d 85 ed 75 07 e8 d1 cb ea ff <0f> 0b e8 ca cb ea ff 48 8b 43 10 45 31 ed 48 c7 c7 e8 a4 2f 84 [ 23.409202] RIP: vfs_get_tree+0x10f/0x2e0 RSP: 880018c83e18 [ 23.409895] ---[ end trace 7d8f303e5dad7e64 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.15.0-rc1 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBL
[lkp-robot] [x86/kasan] def0e7b54d: Kernel_panic-not_syncing:memblock_virt_alloc_try_nid:Failed_to_allocate#bytes_align=#nid=#from=#max_addr=
Hi, Andrey Is this panic log expected with your commit? FYI, we noticed the following commit (built with gcc-7): commit: def0e7b54d63bae120302a4957c272107563ad04 ("x86/kasan: Panic if there is not enough memory to boot") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git x86/pti in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -m 420M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | 99a9dc98ba | def0e7b54d | +---+++ | boot_successes | 0 | 0 | | boot_failures | 31 | 16 | | BUG:unable_to_handle_kernel | 18 || | Oops:#[##] | 18 || | RIP:kasan_populate_shadow | 18 || | Kernel_panic-not_syncing:Fatal_exception | 18 || | BUG:KASAN:use-after-scope_in_p | 13 | 4 | | invoked_oom-killer:gfp_mask=0x | 13 | 4 | | Mem-Info | 13 | 4 | | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 13 | 4 | | Kernel_panic-not_syncing:memblock_virt_alloc_try_nid:Failed_to_allocate#bytes_align=#nid=#from=#max_addr= | 0 | 12 | +---+++ [0.00] DMA zone: 64 pages used for memmap [0.00] DMA zone: 21 pages reserved [0.00] DMA zone: 3998 pages, LIFO batch:0 [0.00] DMA32 zone: 1616 pages used for memmap [0.00] DMA32 zone: 103392 pages, LIFO batch:31 [0.00] Kernel panic - not syncing: memblock_virt_alloc_try_nid: Failed to allocate 4096 bytes align=0x1000 nid=0 from=0x100 max_addr=0x0 [0.00] [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.0-00223-gdef0e7b5 #1 [0.00] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.00] Call Trace: [0.00] ? dump_stack+0x134/0x230 [0.00] ? _atomic_dec_and_lock+0x190/0x190 [0.00] ? panic+0x1c1/0x3aa [0.00] ? __stack_chk_fail+0x24/0x24 [0.00] ? memblock_virt_alloc_try_nid+0xf6/0x12d [0.00] ? early_alloc+0xcc/0x16c [0.00] ? kasan_populate_shadow+0xa58/0xc3f [0.00] ? kasan_init+0x314/0x577 [0.00] ? setup_arch+0x235a/0x25d8 [0.00] ? reserve_standard_io_resources+0x88/0x88 [0.00] ? vprintk_emit+0x43c/0x44e [0.00] ? vprintk_func+0x9f/0xb3 [0.00] ? printk+0xb7/0xe2 [0.00] ? show_regs_print_info+0x64/0x64 [0.00] ? stop_critical_timings+0xa/0xa [0.00] ? start_kernel+0xf8/0x101d [0.00] ? early_idt_handler_common+0x3b/0x52 [0.00] ? mem_encrypt_init+0x37/0x37 [0.00] ? memcpy_orig+0x54/0x110 [0.00] ? secondary_startup_64+0xa5/0xb0 [0.00] ---[ end Kernel panic - not syncing: memblock_virt_alloc_try_nid: Failed to allocate 4096 bytes align=0x1000 nid=0 from=0x100 max_addr=0x0 [0.00] Elapsed time: 10 #!/bin/bash To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.14.0 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_
[lkp-robot] [hugetlbfs] c0033af7ee: BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown()
FYI, we noticed the following commit (built with gcc-7): commit: c0033af7eec3e728c6b70d75950e632ace4c8a55 ("hugetlbfs: Convert to fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -m 420M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 5aad045543 | c0033af7ee | +-+++ | boot_successes | 0 | 1 | | boot_failures | 51 | 29 | | BUG:stack_guard_page_was_hit_at#(stack_is#..#) | 51 || | RIP:legacy_parse_monolithic | 51 || | Kernel_panic-not_syncing:Fatal_exception | 51 || | BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown() | 0 | 29 | | INFO:Slab#objects=#used=#fp=#flags= | 0 | 29 | | INFO:Object#@offset= | 0 | 29 | +-+++ [ 11.250915] HPET: 3 timers in total, 0 timers will be used for per-cpu timer [ 11.253249] hpet0: at MMIO 0xfed0, IRQs 2, 8, 0 [ 11.254354] hpet0: 3 comparators, 64-bit 100.00 MHz counter [ 11.275114] clocksource: Switched to clocksource hpet [ 11.334543] = [ 11.335993] BUG hugetlbfs_inode_cache (Not tainted): Objects remaining in hugetlbfs_inode_cache on __kmem_cache_shutdown() [ 11.336717] - [ 11.336717] [ 11.336717] Disabling lock debugging due to kernel taint [ 11.336717] INFO: Slab 0x9aa5d95bcc00 objects=15 used=1 fp=0x9aa5d8533870 flags=0x60008100 [ 11.336717] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GB 4.15.0-rc1-00106-gc0033af #98 [ 11.336717] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 11.336717] Call Trace: [ 11.336717] dump_stack+0x5d/0x79 [ 11.336717] slab_err+0x99/0xa7 [ 11.336717] ? balance_runtime+0x157/0x165 [ 11.336717] ? __kmem_cache_shutdown+0x7e/0x321 [ 11.336717] __kmem_cache_shutdown+0x18a/0x321 [ 11.336717] kmem_cache_destroy+0x31/0xcf [ 11.336717] init_hugetlbfs_fs+0x7d/0x154 [ 11.336717] ? init_ramfs_fs+0x1a/0x1a [ 11.336717] ? set_debug_rodata+0xc/0xc [ 11.336717] do_one_initcall+0x83/0x118 [ 11.336717] ? proc_cpuinfo_init+0x1a/0x1a [ 11.336717] ? start_kernel+0x4c4/0x4c4 [ 11.336717] ? set_debug_rodata+0xc/0xc [ 11.336717] kernel_init_freeable+0x19a/0x218 [ 11.336717] ? rest_init+0x134/0x134 [ 11.336717] kernel_init+0x5/0xe1 [ 11.336717] ret_from_fork+0x1f/0x30 [ 11.336717] INFO: Object 0x9aa5d853 @offset=0 [ 11.371475] kmem_cache_destroy hugetlbfs_inode_cache: Slab cache still has objects [ 11.385419] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GB 4.15.0-rc1-00106-gc0033af #98 [ 11.386577] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 11.387608] Call Trace: [ 11.388167] dump_stack+0x5d/0x79 [ 11.388739] kmem_cache_destroy+0x4a/0xcf [ 11.388998] init_hugetlbfs_fs+0x7d/0x154 [ 11.388998] ? init_ramfs_fs+0x1a/0x1a [ 11.388998] ? set_debug_rodata+0xc/0xc [ 11.388998] do_one_initcall+0x83/0x118 [ 11.388998] ? proc_cpuinfo_init+0x1a/0x1a [ 11.388998] ? start_kernel+0x4c4/0x4c4 [ 11.388998] ? set_debug_rodata+0xc/0xc [ 11.388998] kernel_init_freeable+0x19a/0x218 [ 11.388998] ? rest_init+0x134/0x134 [ 11.388998] kernel_init+0x5/0xe1 [ 11.388998] ret_from_fork+0x1f/0x30 [ 11.414825] pnp: PnP ACPI init [ 11.445651] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active) [ 11.451170] pnp 00:01: Plug
94d3a25408: kernel_BUG_at_kernel/fork.c
FYI, we noticed the following commit (built with gcc-7): commit: 94d3a254089a7cd4f11b7071b4323afd98eea0a6 ("Detect early free of a live mm") url: https://github.com/0day-ci/linux/commits/Mark-Rutland/Detect-early-free-of-a-live-mm/20180303-144149 in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+---++ | | v4.16-rc3 | 94d3a25408 | +--+---++ | boot_successes | 18| 6 | | boot_failures| 0 | 10 | | kernel_BUG_at_kernel/fork.c | 0 | 10 | | invalid_opcode:#[##] | 0 | 10 | | RIP:__mmdrop | 0 | 10 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 10 | +--+---++ [ 47.208935] kernel BUG at kernel/fork.c:599! [ 47.210365] invalid opcode: [#1] SMP PTI [ 47.211336] Modules linked in: [ 47.212145] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.16.0-rc3-1-g94d3a25 #1 [ 47.213966] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 47.215869] RIP: 0010:__mmdrop+0x136/0x170 [ 47.216866] RSP: 0018:82803dd8 EFLAGS: 00010293 [ 47.218160] RAX: 82818500 RBX: 88011577 RCX: 810ae876 [ 47.219758] RDX: RSI: 0001 RDI: 88011577 [ 47.221306] RBP: 82803e00 R08: 0001 R09: [ 47.223268] R10: R11: R12: 82818500 [ 47.224961] R13: 82a8ce20 R14: 88013ff534c0 R15: 03e7 [ 47.226716] FS: () GS:88013b20() knlGS: [ 47.228550] CS: 0010 DS: ES: CR0: 80050033 [ 47.229884] CR2: 7fbfc2cc0190 CR3: 02812000 CR4: 06f0 [ 47.231580] Call Trace: [ 47.232144] idle_task_exit+0x53/0x60 [ 47.232947] play_dead_common+0x9/0x20 [ 47.233906] native_play_dead+0x10/0xed [ 47.234804] ? cpuhp_report_idle_dead+0x5a/0x70 [ 47.236139] arch_cpu_idle_dead+0xa/0x10 [ 47.236954] do_idle+0x14d/0x1d0 [ 47.237834] cpu_startup_entry+0x6e/0x70 [ 47.238735] rest_init+0xc7/0xd0 [ 47.239612] ? update_intr_gate+0x1b/0x1b [ 47.240516] start_kernel+0x59f/0x5c2 [ 47.241282] x86_64_start_reservations+0x38/0x3a [ 47.242402] x86_64_start_kernel+0x72/0x75 [ 47.243328] secondary_startup_64+0xa5/0xb0 [ 47.244378] Code: 89 ff e8 06 32 07 00 eb 83 e8 f7 11 0d 00 4c 89 e7 e8 8f e7 0c 00 eb ba e8 e8 11 0d 00 0f 0b e8 e1 11 0d 00 0f 0b e8 da 11 0d 00 <0f> 0b e8 d3 11 0d 00 48 89 df e8 8b ed 15 00 e9 2e ff ff ff e8 [ 47.248938] RIP: __mmdrop+0x136/0x170 RSP: 82803dd8 [ 47.250243] ---[ end trace 0f4bf1066c11d4ef ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.16.0-rc3 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_64_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZ
[EXP softirq] 3f6b5ffc70: Kernel_panic-not_syncing:kmem_cache_create:Failed_to_create_slab'pid'.Error
FYI, we noticed the following commit (built with gcc-7): commit: 3f6b5ffc706a54598b82456ae0be395aa6465982 ("EXP softirq: Is it possible to RCUify BH disable/enable?") https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev.2018.03.01a in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 2G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 08c5ee9132 | 3f6b5ffc70 | +-+++ | boot_successes | 12 | 0 | | boot_failures | 0 | 21 | | Kernel_panic-not_syncing:kmem_cache_create:Failed_to_create_slab'pid'.Error | 0 | 19 | | BUG:kernel_in_stage | 0 | 2 | +-+++ [0.052000] tsc: Detected 2260.998 MHz processor [0.052036] clocksource: tsc-early: mask: 0x max_cycles: 0x20974986637, max_idle_ns: 440795286310 ns [0.056033] Calibrating delay loop (skipped) preset value.. 4521.99 BogoMIPS (lpj=9043992) [0.060062] pid_max: default: 32768 minimum: 301 [0.064030] kmem_cache_create(pid) integrity check failed [0.068033] Kernel panic - not syncing: kmem_cache_create: Failed to create slab 'pid'. Error -22 [0.068033] [0.072000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.16.0-rc1-00055-g3f6b5ff #33 [0.072000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.072000] Call Trace: [0.072000] dump_stack+0x5d/0x79 [0.072000] panic+0xd8/0x229 [0.072000] ? printk+0x43/0x4b [0.072000] kmem_cache_create_usercopy+0x1f2/0x224 [0.072000] kmem_cache_create+0x12/0x14 [0.072000] pid_idr_init+0xb0/0xba [0.072000] start_kernel+0x367/0x3f3 [0.072000] secondary_startup_64+0xa5/0xb0 Elapsed time: 10 #!/bin/bash To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.16.0-rc1 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_HAVE_INTEL_TXT=y CONFIG_X86_64_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y CONFIG_KERNEL_GZIP=y # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y CONFIG_POSIX_MQUEUE=y CONFIG_POSIX_MQUEUE_SYSCTL=y CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_USELIB=y CONFIG_AUDIT=y CONFIG_HAVE_ARCH_AUDITSYSCALL=y CONFIG_AUDITSYSCALL=y CONFIG_AUDIT_WATCH=y CONFIG_AUDIT_TREE=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y CONFIG_GENERIC_PENDING_IRQ=y CONFIG_GENERIC_IRQ_MIGRATION=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCH
[lkp-robot] [init, tracing] 2580d6b795: BUG:kernel_reboot-without-warning_in_boot_stage
FYI, we noticed the following commit (built with gcc-7): commit: 2580d6b795e25879c825a0891cf67390f665b11f ("init, tracing: Have printk come through the trace events for initcall_debug") url: https://github.com/0day-ci/linux/commits/Steven-Rostedt/init-tracing/20180407-130743 in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu Nehalem -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | ecf6709d07 | 2580d6b795 | +--+++ | boot_successes | 0 | 0 | | boot_failures| 8 | 8 | | invoked_oom-killer:gfp_mask=0x | 8 || | Mem-Info | 8 || | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 8 || | BUG:kernel_reboot-without-warning_in_boot_stage | 0 | 8 | +--+++ [0.00] RAMDISK: [mem 0x1b7e2000-0x1ffc] [0.00] ACPI: Early table checksum verification disabled [0.00] ACPI: RSDP 0x000F6860 14 (v00 BOCHS ) [0.00] ACPI: RSDT 0x1FFE1628 30 (v01 BOCHS BXPCRSDT 0001 BXPC 0001) [0.00] ACPI: FACP 0x1FFE147C 74 (v01 BOCHS BXPCFACP 0001 BXPC 0001) BUG: kernel reboot-without-warning in boot stage Elapsed time: 10 #!/bin/bash To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.16.0 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_KASAN_SHADOW_OFFSET=0xdc00 CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set CONFIG_KERNEL_LZO=y # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SWAP is not set # CONFIG_SYSVIPC is not set CONFIG_POSIX_MQUEUE=y CONFIG_POSIX_MQUEUE_SYSCTL=y CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_USELIB=y CONFIG_AUDIT=y CONFIG_HAVE_ARCH_AUDITSYSCALL=y CONFIG_AUDITSYSCALL=y CONFIG_AUDIT_WATCH=y CONFIG_AUDIT_TREE=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_MSI_IRQ=y CONFIG_GENERIC_MSI_IRQ_DOMAIN=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y CONFIG_GENERIC_IRQ_DEBUGFS=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERIC_CMOS_UPDATE=y # # Timers subsystem # CONFIG_TICK_ONESHOT=y CONFIG_NO_HZ_COMMON=y # CONFIG_HZ_PERIODIC is not se
[lkp-robot] [hugetlbfs] bfa5d8e197: WARNING:possible_recursive_locking_detected
FYI, we noticed the following commit (built with gcc-5): commit: bfa5d8e19798e76de39473b7ecf14f0ce08e8f78 ("hugetlbfs: Convert to fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: boot on test machine: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -m 360M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 7c1c3298bf | bfa5d8e197 | +-+++ | boot_successes | 2 | 0 | | boot_failures | 8 | 12 | | WARNING:at_arch/x86/mm/dump_pagetables.c:#note_page | 8 | 8 | | EIP:note_page | 8 | 8 | | WARNING:possible_recursive_locking_detected | 0 | 12 | | BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown() | 0 | 12 | | INFO:Slab#objects=#used=#fp=#flags= | 0 | 12 | | INFO:Object#@offset= | 0 | 12 | | INFO:Allocated_in_hugetlbfs_alloc_inode_age=#cpu=#pid= | 0 | 12 | +-+++ [0.37] WARNING: possible recursive locking detected [0.37] 4.16.0-10623-gbfa5d8e #2 Not tainted [0.37] [0.37] swapper/0/1 is trying to acquire lock: [0.37] 05b81b35 (&(&n->list_lock)->rlock){..-.}, at: get_partial_node+0x2f/0x31d [0.371016] [0.371016] but task is already holding lock: [0.372147] e4819006 (&(&n->list_lock)->rlock){..-.}, at: __kmem_cache_shutdown+0x61/0x374 [0.372150] [0.372150] other info that might help us debug this: [0.372150] Possible unsafe locking scenario: [0.372150] [0.372150]CPU0 [0.372150] [0.372150] lock(&(&n->list_lock)->rlock); [0.372150] lock(&(&n->list_lock)->rlock); [0.372150] [0.372150] *** DEADLOCK *** [0.372150] [0.372150] May be due to missing lock nesting notation [0.372150] [0.372150] 3 locks held by swapper/0/1: [0.372150] #0: f93bcb55 (cpu_hotplug_lock.rw_sem){.+.+}, at: kmem_cache_destroy+0x14/0xe9 [0.372150] #1: b696535c (slab_mutex){+.+.}, at: kmem_cache_destroy+0x20/0xe9 [0.372150] #2: e4819006 (&(&n->list_lock)->rlock){..-.}, at: __kmem_cache_shutdown+0x61/0x374 [0.372150] [0.372150] stack backtrace: [0.372150] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.16.0-10623-gbfa5d8e #2 [0.372150] Call Trace: [0.372150] dump_stack+0x76/0xa9 [0.372150] __lock_acquire+0x1040/0x18cb [0.372150] ? ret_from_fork+0x2e/0x38 [0.372150] ? __kernel_text_address+0xb/0x2d [0.372150] lock_acquire+0x8e/0xa8 [0.372150] ? get_partial_node+0x2f/0x31d [0.372150] _raw_spin_lock+0x3a/0x47 [0.372150] ? get_partial_node+0x2f/0x31d [0.372150] get_partial_node+0x2f/0x31d [0.372150] ? mark_held_locks+0x5c/0x7d [0.372150] ? __lock_acquire+0x3fc/0x18cb [0.372150] ___slab_alloc+0xb4/0x422 [0.372150] ? __kmem_cache_shutdown+0x137/0x374 [0.372150] ? mark_held_locks+0x5c/0x7d [0.372150] ? kfree+0xde/0x143 [0.372150] __slab_alloc+0x3b/0x70 [0.372150] ? __kmem_cache_shutdown+0x137/0x374 [0.372150] __kmalloc+0x16e/0x19c [0.372150] ? __kmem_cache_shutdown+0x137/0x374 [0.372150] __kmem_cache_shutdown+0x137/0x374 [0.372150] kmem_cache_destroy+0x44/0xe9 [0.372150] init_hugetlbfs_fs+0xec/0x11e [0.372150] ? init_ramfs_fs+0x1d/0x1d [0.372150] do_one_initcall+0x41/0x178 [0.372150] ? do_early_param+0x73/0x73 [0.372150] ? parse_args+0x197/0x2ac [0.372150] kernel_init_freeable+0xeb/0x168 [0.372150] ? rest_init+0x1e0/0x1e0 [0.372150] kernel_init+0xb/0xe5 [0.372150] ? schedule_tail_wrapper+0x9/0xc [0.372150] ret_from_fork+0x2e/0x38 [0.372150] ===
[lkp-robot] [hugetlbfs] e979e5a059: BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown()
FYI, we noticed the following commit (built with gcc-7): commit: e979e5a0591e70ad0b41cf876ee987de468a220e ("hugetlbfs: Convert to fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 838d9ecc64 | e979e5a059 | +-+++ | boot_successes | 0 | 0 | | boot_failures | 54 | 17 | | BUG:stack_guard_page_was_hit_at#(stack_is#..#) | 54 || | RIP:legacy_parse_monolithic | 54 || | Kernel_panic-not_syncing:Fatal_exception | 54 || | BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown() | 0 | 17 | | INFO:Slab#objects=#used=#fp=#flags= | 0 | 17 | | INFO:Object#@offset= | 0 | 17 | +-+++ [0.160565] PCI: pci_cache_line_size set to 64 bytes [0.161260] e820: reserve RAM buffer [mem 0x0009fc00-0x0009] [0.161969] e820: reserve RAM buffer [mem 0x1ffe-0x1fff] [0.163220] clocksource: Switched to clocksource kvm-clock [0.175560] = [0.176568] BUG hugetlbfs_inode_cache (Not tainted): Objects remaining in hugetlbfs_inode_cache on __kmem_cache_shutdown() [0.176640] - [0.176640] [0.176640] Disabling lock debugging due to kernel taint [0.176640] INFO: Slab 0x6376557a objects=17 used=1 fp=0x154e780a flags=0x40008100 [0.176640] CPU: 0 PID: 1 Comm: swapper Tainted: GB 4.16.0-10623-ge979e5a #1 [0.176640] Call Trace: [0.176640] slab_err+0xad/0xcf [0.176640] ? __kmem_cache_shutdown+0x93/0x301 [0.176640] ? __need_fs_reclaim+0x5/0x4e [0.176640] ? prefetch_freepointer+0x5/0x14 [0.176640] ? __kmalloc+0x122/0x1c4 [0.176640] __kmem_cache_shutdown+0x163/0x301 [0.176640] shutdown_cache+0x14/0xf7 [0.176640] kmem_cache_destroy+0x15c/0x1a5 [0.176640] init_hugetlbfs_fs+0x85/0x15c [0.176640] ? init_ramfs_fs+0x1f/0x1f [0.176640] ? set_debug_rodata+0x11/0x11 [0.176640] do_one_initcall+0x9c/0x148 [0.176640] kernel_init_freeable+0x11b/0x1a8 [0.176640] ? rest_init+0x119/0x119 [0.176640] kernel_init+0xa/0xe1 [0.176640] ret_from_fork+0x3a/0x50 [0.176640] INFO: Object 0xe4f03853 @offset=12768 [0.190206] kmem_cache_destroy hugetlbfs_inode_cache: Slab cache still has objects [0.191091] CPU: 0 PID: 1 Comm: swapper Tainted: GB 4.16.0-10623-ge979e5a #1 [0.192084] Call Trace: [0.192383] kmem_cache_destroy+0x175/0x1a5 [0.192889] init_hugetlbfs_fs+0x85/0x15c [0.193362] ? init_ramfs_fs+0x1f/0x1f [0.193809] ? set_debug_rodata+0x11/0x11 [0.194282] do_one_initcall+0x9c/0x148 [0.194738] kernel_init_freeable+0x11b/0x1a8 [0.195249] ? rest_init+0x119/0x119 [0.195673] kernel_init+0xa/0xe1 [0.196091] ret_from_fork+0x3a/0x50 [0.196575] pnp: PnP ACPI init [0.197162] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active) [0.198248] pnp 00:01: Plug and Play ACPI device, IDs PNP0303 (active) [0.199306] pnp 00:02: Plug and Play ACPI device, IDs PNP0f13 (active) [0.200357] pnp 00:03: [dma 2] To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.16.0 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_
[kernfs, sysfs, cgroup, intel_rdt] 6393e11b84: kernel_BUG_at_fs/super.c
FYI, we noticed the following commit (built with gcc-6): commit: 6393e11b84a5116ea99d7a05d0dcada2acea347f ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 33f54afb25 | 6393e11b84 | +--+++ | boot_successes | 8 | 2 | | boot_failures| 0 | 6 | | kernel_BUG_at_fs/super.c | 0 | 6 | | invalid_opcode:#[##] | 0 | 6 | | EIP:vfs_get_tree | 0 | 6 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 6 | +--+++ [ 10.046412] kernel BUG at fs/super.c:1716! [ 10.046901] invalid opcode: [#1] PREEMPT DEBUG_PAGEALLOC [ 10.047397] Modules linked in: [ 10.047721] CPU: 0 PID: 1 Comm: init Not tainted 4.16.0-rc4-00170-g6393e11 #129 [ 10.048344] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 10.049062] EIP: vfs_get_tree+0x5c/0xee [ 10.049399] EFLAGS: 00010286 CPU: 0 [ 10.049774] EAX: 0030 EBX: c9d00a00 ECX: 0001 EDX: 001c [ 10.050318] ESI: EDI: c1798780 EBP: 0027 ESP: c0027f14 [ 10.050859] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 [ 10.051327] CR0: 80050033 CR2: b7ef4588 CR3: 09d91d80 CR4: 06b0 [ 10.051919] Call Trace: [ 10.052140] ? do_mount+0x8a7/0xab0 [ 10.052454] ? memdup_user+0x36/0x4e [ 10.052776] ? SyS_mount+0x52/0x72 [ 10.053076] ? do_int80_syscall_32+0x57/0xc9 [ 10.053467] ? entry_INT80_32+0x31/0x31 [ 10.053854] Code: f0 e9 ae 00 00 00 8b 13 89 d8 ff 52 18 85 c0 0f 88 9f 00 00 00 8b 43 08 85 c0 75 11 8b 43 04 ff 30 68 f3 6f 6b c1 e8 5a 58 f7 ff <0f> 0b 8b b0 84 00 00 00 83 be 9c 00 00 00 00 75 02 0f 0b 8b 43 [ 10.055480] EIP: vfs_get_tree+0x5c/0xee SS:ESP: 0068:c0027f14 [ 10.056043] ---[ end trace 1d2e9a62012a7a13 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.16.0-rc4 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=3 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set CONFIG_KERNEL_LZ4=y CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set # CONFIG_CROSS_MEMORY_ATTACH is not set CONFIG_USELIB=y CONFIG_AUDIT=y CONFIG_HAVE_ARCH_AUDITSYSCALL=y CONFIG_AUDITSYSCALL=y CONFIG_AUDIT_WATCH=y CONFIG_AUDIT_TREE=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_R
[lkp-robot] [hugetlbfs] 49977c3afc: BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown()
FYI, we noticed the following commit (built with gcc-6): commit: 49977c3afcdd2d94237d4bf6866d3515c60762be ("hugetlbfs: Convert to fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -m 420M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 6393e11b84 | 49977c3afc | +-+++ | boot_successes | 20 | 0 | | boot_failures | 0 | 23 | | BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown() | 0 | 23 | | INFO:Slab#objects=#used=#fp=#flags= | 0 | 23 | | INFO:Object#@offset= | 0 | 23 | +-+++ [0.361013] PCI: pci_cache_line_size set to 64 bytes [0.362124] e820: reserve RAM buffer [mem 0x0009fc00-0x0009] [0.363022] e820: reserve RAM buffer [mem 0x1a3e-0x1bff] [0.366370] clocksource: Switched to clocksource kvm-clock [0.368700] = [0.369017] BUG hugetlbfs_inode_cache (Not tainted): Objects remaining in hugetlbfs_inode_cache on __kmem_cache_shutdown() [0.369017] - [0.369017] [0.369017] Disabling lock debugging due to kernel taint [0.369017] INFO: Slab 0x930ca6ea objects=15 used=1 fp=0xc0e31dfe flags=0x19008100 [0.369017] CPU: 0 PID: 1 Comm: swapper Tainted: GB 4.16.0-rc4-00171-g49977c3 #1 [0.369017] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.369017] Call Trace: [0.369017] dump_stack+0x40/0x5e [0.369017] slab_err+0x70/0x86 [0.369017] ? print_page_info+0x14/0x44 [0.369017] ? __kmalloc+0x156/0x1cf [0.369017] ? kzalloc+0x19/0x29 [0.369017] __kmem_cache_shutdown+0x277/0x483 [0.369017] kmem_cache_destroy+0x72/0x250 [0.369017] init_hugetlbfs_fs+0xbf/0x26c [0.369017] ? init_ramfs_fs+0x59/0x59 [0.369017] do_one_initcall+0x10c/0x25a [0.369017] ? parse_args+0x1ab/0x56a [0.369017] ? kernel_init_freeable+0x23b/0x3c8 [0.369017] kernel_init_freeable+0x26c/0x3c8 [0.369017] ? rest_init+0x186/0x186 [0.369017] kernel_init+0x16/0x248 [0.369017] ret_from_fork+0x19/0x24 [0.369017] INFO: Object 0xf7f2f941 @offset=0 [0.388495] kmem_cache_destroy hugetlbfs_inode_cache: Slab cache still has objects [0.389635] CPU: 0 PID: 1 Comm: swapper Tainted: GB 4.16.0-rc4-00171-g49977c3 #1 [0.390900] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.392163] Call Trace: [0.392627] dump_stack+0x40/0x5e [0.393198] kmem_cache_destroy+0x220/0x250 [0.393862] init_hugetlbfs_fs+0xbf/0x26c [0.394518] ? init_ramfs_fs+0x59/0x59 [0.395140] do_one_initcall+0x10c/0x25a [0.395783] ? parse_args+0x1ab/0x56a [0.396412] ? kernel_init_freeable+0x23b/0x3c8 [0.397108] kernel_init_freeable+0x26c/0x3c8 [0.397773] ? rest_init+0x186/0x186 [0.398372] kernel_init+0x16/0x248 [0.398959] ret_from_fork+0x19/0x24 [0.399643] pnp: PnP ACPI init [0.400351] pnp 00:00: Plug and Play ACPI device, IDs PNP0b00 (active) [0.401464] pnp 00:01: Plug and Play ACPI device, IDs PNP0303 (active) [0.402540] pnp 00:02: Plug and Play ACPI device, IDs PNP0f13 (active) [0.403509] pnp 00:03: [dma 2] To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Shun # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.16.0-rc4 Kernel Configuration # # CONFIG_64BIT is not set CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/
[LKP] [mm] fb420465c9: kernel_BUG_at_mm/slub.c
FYI, we noticed the following commit (built with gcc-7): commit: fb420465c9bcaf57aa6bff76ffe31add559ae1f9 ("[PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial") url: https://github.com/0day-ci/linux/commits/Wengang-Wang/mm-use-this_cpu_cmpxchg_double-in-put_cpu_partial/20181119-215159 in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 8G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+---++ | | v4.20-rc3 | fb420465c9 | +---+---++ | boot_successes| 185 | 0 | | boot_failures | 19| 29 | | End_of_test:RCU_HOTPLUG | 15| | | BUG:kernel_reboot-without-warning_in_test_stage | 4 | | | kernel_BUG_at_mm/slub.c | 0 | 29 | | invalid_opcode:#[##] | 0 | 29 | | RIP:put_cpu_partial | 0 | 29 | | RIP:default_idle | 0 | 15 | | Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 19 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 10 | | RIP:cma_init_reserved_areas | 0 | 1 | | RIP:_raw_spin_unlock_irqrestore | 0 | 1 | | RIP:console_unlock| 0 | 3 | +---+---++ [ 17.997088] kernel BUG at mm/slub.c:2300! [ 17.997617] invalid opcode: [#1] SMP PTI [ 18.001088] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.20.0-rc3-1-gfb42046 #3 [ 18.001088] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 18.001088] RIP: 0010:put_cpu_partial+0x8f/0x93 [ 18.001088] Code: 31 c9 66 8b 45 2a 0f b7 55 28 ff c1 89 4d 10 48 89 7d 08 25 ff 7f 00 00 29 d0 01 f0 89 45 14 48 8b 03 48 83 c0 18 a8 0f 74 02 <0f> 0b 0f 0b 0f 1f 44 00 00 4c 8d 54 24 08 48 83 e4 f0 41 ff 72 f8 [ 18.001088] RSP: :88823fc03ed8 EFLAGS: 00010202 [ 18.001088] RAX: 00025a98 RBX: 88822b053200 RCX: 0001 [ 18.001088] RDX: 0014 RSI: RDI: [ 18.001088] RBP: ea0008a8a680 R08: 0001 R09: 810b8700 [ 18.001088] R10: ea0008a8a680 R11: 0020 R12: 000a [ 18.001088] R13: 0202 R14: 0001 R15: [ 18.001088] FS: () GS:88823fc0() knlGS: [ 18.001088] CS: 0010 DS: ES: CR0: 80050033 [ 18.001088] CR2: CR3: 02212001 CR4: 001606f0 [ 18.001088] Call Trace: [ 18.001088] [ 18.001088] kmem_cache_free+0x132/0x191 [ 18.001088] rcu_process_callbacks+0x223/0x383 [ 18.001088] __do_softirq+0x120/0x297 [ 18.001088] ? clockevents_program_event+0xbc/0xde [ 18.001088] irq_exit+0x5d/0x9c [ 18.001088] smp_apic_timer_interrupt+0x127/0x13a [ 18.001088] apic_timer_interrupt+0xf/0x20 [ 18.001088] [ 18.001088] RIP: 0010:default_idle+0xa3/0x142 [ 18.001088] Code: 00 00 00 e8 b7 01 25 00 48 83 3b 00 eb e0 e8 f5 8d 70 ff 89 ee 48 c7 c7 00 02 26 82 e8 d4 4a 70 ff 65 ff 0d f7 39 66 7e fb f4 <65> 44 8b 25 ed de 65 7e 8b 05 7f a3 98 00 85 c0 0f 8e 82 00 00 00 [ 18.001088] RSP: :82203ea8 EFLAGS: 0246 ORIG_RAX: ff13 [ 18.001088] RAX: RBX: RCX: 0001 [ 18.001088] RDX: 0066 RSI: 88823fc1c280 RDI: [ 18.001088] RBP: R08: 8863 R09: 0006 [ 18.001088] R10: fff0 R11: 00025900 R12: [ 18.001088] R13: 8270d2e0 R14: R15: [ 18.001088] do_idle+0xdd/0x1ea [ 18.001088] cpu_startup_entry+0x1d/0x1f [ 18.001088] start_kernel+0x48b/0x4ab [ 18.001088] secondary_startup_64+0xa4/0xb0 [ 18.001088] Modules linked in: [ 18.001488] ---[ end trace 71ecba4b74b83907 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.20.0-rc3 Kernel Configuration # # # Compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=70300 CONFIG_CLANG_VERSION=0 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFI
Re: [PATCH] locks: fix performance regressions.
Hi, On Wed, Nov 28, 2018 at 11:53:48AM +1100, NeilBrown wrote: > > The kernel test robot reported two performance regressions > caused by recent patches. > Both appear to related to the global spinlock blocked_lock_lock > being taken more often. > > This patch avoids taking that lock in the cases tested. > > Reported-by: kernel test robot > Signed-off-by: NeilBrown > --- > > Hi Jeff, > you might like to merge these back into the patches that introduced > the problem. > Or you might like me to re-send the series with these merged in, > in which case, please ask. > > And a BIG thank-you to the kernel-test-robot team!! > > Thanks, > NeilBrown > > fs/locks.c | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/fs/locks.c b/fs/locks.c > index f456cd3d9d50..67519a43e27a 100644 > --- a/fs/locks.c > +++ b/fs/locks.c > @@ -444,6 +444,13 @@ static void locks_move_blocks(struct file_lock *new, > struct file_lock *fl) > { > struct file_lock *f; > > + /* > + * As ctx->flc_lock is held, new requests cannot be added to > + * ->fl_blocked_requests, so we don't need a lock to check if it > + * is empty. > + */ > + if (list_empty(&fl->fl_blocked_requests)) > + return; > spin_lock(&blocked_lock_lock); > list_splice_init(&fl->fl_blocked_requests, &new->fl_blocked_requests); > list_for_each_entry(f, &fl->fl_blocked_requests, fl_blocked_member) > @@ -749,6 +756,20 @@ int locks_delete_block(struct file_lock *waiter) > { > int status = -ENOENT; > > + /* > + * If fl_blocker is NULL, it won't be set again as this thread > + * "owns" the lock and is the only one that might try to claim > + * the lock. So it is safe to test fl_blocker locklessly. > + * Also if fl_blocker is NULL, this waiter is not listed on > + * fl_blocked_requests for some lock, so no other request can > + * be added to the list of fl_blocked_requests for this > + * request. So if fl_blocker is NULL, it is safe to > + * locklessly check if fl_blocked_requests is empty. If both > + * of these checks succeed, there is no need to take the lock. > + */ > + if (waiter->fl_blocker == NULL && > + list_empty(&waiter->fl_blocked_requests)) > + return status; > spin_lock(&blocked_lock_lock); > if (waiter->fl_blocker) > status = 0; > -- > 2.14.0.rc0.dirty > FYI, the performance recovered back, we didn't find any regression between the two commits. commit: 48a7a13ff3 ("locks: use properly initialized file_lock when unlocking.") 8f64e497be ("locks: fix performance regressions.") 48a7a13ff31f0728 8f64e497be9929a2d5904c39c4 -- %stddev change %stddev \ |\ 33.56 ± 3% 5% 35.30boot-time.boot 10497 ± 3%12% 11733 ± 4% proc-vmstat.nr_shmem 67392 68449proc-vmstat.nr_zone_active_anon 67392 68449proc-vmstat.nr_active_anon 16303 16206proc-vmstat.nr_slab_reclaimable 30602 29921proc-vmstat.nr_slab_unreclaimable 09e+03 9009 ± 80% latency_stats.avg.rpc_wait_bit_killable.__rpc_execute.rpc_run_task.rpc_call_sync.nfs3_rpc_wrapper.nfs3_do_create.nfs3_proc_create.nfs_create.path_openat.do_filp_open.do_sys_open.do_syscall_64 06e+03 5837 ±139% latency_stats.avg.rpc_wait_bit_killable.__rpc_execute.rpc_run_task.rpc_call_sync.nfs3_rpc_wrapper.nfs3_proc_lookup.nfs_lookup.path_openat.do_filp_open.do_sys_open.do_syscall_64.entry_SYSCALL_64_after_hwframe 149 ± 17% 5e+03 5457 ±137% latency_stats.avg.rpc_wait_bit_killable.__rpc_execute.rpc_run_task.rpc_call_sync.nfs3_rpc_wrapper.nfs3_proc_getattr.__nfs_revalidate_inode.nfs_do_access.nfs_permission.inode_permission.link_path_walk.path_lookupat 175 ± 29% 4e+03 3807 ±136% latency_stats.avg.rpc_wait_bit_killable.__rpc_execute.rpc_run_task.rpc_call_sync.nfs3_rpc_wrapper.nfs3_proc_lookup.nfs_lookup.__lookup_slow.lookup_slow.walk_component.path_lookupat.filename_lookup 52868 ±110% -4e+04 17482 ± 4% latency_stats.avg.max 45055 ±141% -5e+04 0 latency_stats.avg.io_schedule.nfs_lock_and_join_requests.nfs_updatepage.nfs_write_end.generic_perform_write.nfs_file_write.__vfs_write.vfs_write.ksys_write.do_syscall_64.entry_SYSCALL_64_after_hwframe 227 ± 10% 1e+04
[locking/lockdep] 62f18467c4: WARNING:at_kernel/locking/lockdep.c:#register_lock_class
FYI, we noticed the following commit (built with gcc-4.9): commit: 62f18467c40065cae25a8e52c41de0d9771cfd24 ("locking/lockdep: Complain if a lock object has no name") https://github.com/bvanassche/linux for-next in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 85c300bf33 | 62f18467c4 | +--+++ | boot_successes | 22 | 0 | | boot_failures| 0 | 10 | | WARNING:at_kernel/locking/lockdep.c:#register_lock_class | 0 | 10 | | EIP:register_lock_class | 0 | 10 | | EIP:_raw_spin_unlock_irqrestore | 0 | 10 | +--+++ [0.308396] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:746 register_lock_class+0x290/0x540 [0.309861] Modules linked in: [0.310284] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.20.0-rc4-00049-g62f1846 #1 [0.311315] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.312423] EIP: register_lock_class+0x290/0x540 [0.313066] Code: 68 34 18 9c c1 e8 bb 2c 01 00 68 5c 18 9c c1 e8 b1 2c 01 00 e8 2b cc 66 00 8b 06 83 c4 0c e9 28 fe ff ff 8d b4 26 00 00 00 00 <0f> 0b e9 8f fd ff ff e8 d4 82 22 00 85 c0 74 20 8b 0d dc 80 b8 c1 [0.315508] EAX: EBX: c1a8ac80 ECX: EDX: [0.316338] ESI: dbaf4dfc EDI: EBP: db439e3c ESP: db439e0c [0.317171] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00210046 [0.318067] CR0: 80050033 CR2: CR3: 01da6000 CR4: 00040690 [0.318901] DR0: DR1: DR2: DR3: [0.319697] DR6: fffe0ff0 DR7: 0400 [0.320211] Call Trace: [0.320527] [0.320823] __lock_acquire+0x5a/0x1580 [0.321312] ? mark_lock+0x44b/0x5e0 [0.321804] ? __lock_acquire+0xd6b/0x1580 [0.322327] ? pvclock_clocksource_read+0xae/0x1c0 [0.322949] lock_acquire+0x82/0x170 [0.323430] ? scheduler_tick+0x46/0x130 [0.323968] update_rq_clock+0xbe/0x230 [0.324475] ? scheduler_tick+0x46/0x130 [0.325043] ? prandom_u32+0x1b/0x30 [0.325518] scheduler_tick+0x46/0x130 [0.326038] update_process_times+0x36/0x40 [0.326585] tick_periodic+0x35/0xc0 [0.327092] tick_handle_periodic+0x1d/0x70 [0.327635] timer_interrupt+0xd/0x20 [0.328154] __handle_irq_event_percpu+0x75/0x410 [0.328786] handle_irq_event_percpu+0x26/0x60 [0.329367] handle_irq_event+0x29/0x50 [0.329910] ? irq_set_chained_handler_and_data+0x70/0x70 [0.330643] handle_level_irq+0x7a/0x110 [0.331219] handle_irq+0x121/0x160 [0.331674] [0.332005] do_IRQ+0x48/0x110 [0.332425] common_interrupt+0xec/0x100 [0.332970] EIP: _raw_spin_unlock_irqrestore+0x2c/0x50 [0.333626] Code: e5 56 53 89 c6 89 d3 8d 40 10 8b 4d 04 ba 01 00 00 00 e8 27 cc 96 ff 89 f0 e8 a0 1d 97 ff f6 c7 02 74 1b e8 76 15 9e ff 53 9d <64> ff 0d d0 57 c5 c1 5b 5e 5d c3 89 f6 8d bc 27 00 00 00 00 53 9d [0.336275] EAX: c1a8ac80 EBX: 00200246 ECX: 0001056c EDX: 0001 [0.337164] ESI: db420264 EDI: c1a9b440 EBP: c1a83f18 ESP: c1a83f10 [0.337986] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00200246 [0.338901] ? tracing_release+0x11b/0x190 [0.339439] ? kmsg_dump_get_buffer+0x48/0x3a0 [0.340007] __setup_irq+0x42b/0x6f0 [0.340479] setup_irq+0x70/0xd0 [0.340930] hpet_time_init+0x1d/0x2e [0.341429] x86_late_time_init+0x9/0x16 [0.341972] start_kernel+0x414/0x491 [0.342454] i386_start_kernel+0x8f/0x93 [0.343003] startup_32_smp+0x15f/0x170 [0.343507] irq event stamp: 3500 [0.343974] hardirqs last enabled at (3497): [] _raw_spin_unlock_irqrestore+0x2a/0x50 [0.345124] hardirqs last disabled at (3498): [] trace_hardirqs_off_thunk+0xc/0x1f [0.346225] softirqs last enabled at (3500): [] _local_bh_enable+0x4c/0x70 [0.347295] softirqs last disabled at (3499): [] irq_enter+0x50/0x70 [0.348297] ---[ end trace 04c6066979bd8a05 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.20.0-rc4 Kernel Configuration # # # Compiler: gcc-4.9
[locking/lockdep] fe7e1ef5c1: WARNING:at_kernel/locking/lockdep.c:#register_lock_class
FYI, we noticed the following commit (built with gcc-4.9): commit: fe7e1ef5c1044f3ef122b877b078a47e74360dea ("locking/lockdep: Complain if a lock object has no name") https://github.com/bvanassche/linux for-next in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 5a5c736d38 | fe7e1ef5c1 | +--+++ | boot_successes | 4 | 0 | | boot_failures| 0 | 10 | | WARNING:at_kernel/locking/lockdep.c:#register_lock_class | 0 | 10 | | EIP:register_lock_class | 0 | 10 | | EIP:_raw_spin_unlock_irqrestore | 0 | 10 | +--+++ [3.352301] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:749 register_lock_class+0x290/0x540 [3.372139] Modules linked in: [3.377973] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.20.0-rc4-00113-gfe7e1ef #1 [3.392870] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [3.409495] EIP: register_lock_class+0x290/0x540 [3.418406] Code: 68 78 18 9c c1 e8 bb 2c 01 00 68 a0 18 9c c1 e8 b1 2c 01 00 e8 bb cc 66 00 8b 06 83 c4 0c e9 28 fe ff ff 8d b4 26 00 00 00 00 <0f> 0b e9 8f fd ff ff e8 d4 82 22 00 85 c0 74 20 8b 0d 1c 81 b8 c1 [3.453446] EAX: EBX: c1a8ac80 ECX: EDX: [3.465266] ESI: dd2d4dfc EDI: EBP: dcc39e3c ESP: dcc39e0c [3.477580] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00210046 [3.489899] CR0: 80050033 CR2: CR3: 01da6000 CR4: 0690 [3.501403] Call Trace: [3.505909] [3.510025] __lock_acquire+0x5a/0x1580 [3.517802] ? mark_lock+0x44b/0x5e0 [3.524898] ? __lock_acquire+0xd6b/0x1580 [3.532707] ? pvclock_clocksource_read+0xae/0x1c0 [3.542397] lock_acquire+0x82/0x170 [3.549520] ? scheduler_tick+0x46/0x130 [3.557632] update_rq_clock+0xbe/0x230 [3.565400] ? scheduler_tick+0x46/0x130 [3.576551] ? prandom_u32+0x1b/0x30 [3.584813] scheduler_tick+0x46/0x130 [3.591975] update_process_times+0x36/0x40 [3.599822] tick_periodic+0x35/0xc0 [3.606977] tick_handle_periodic+0x1d/0x70 [3.615298] timer_interrupt+0xd/0x20 [3.623461] __handle_irq_event_percpu+0x75/0x410 [3.632593] handle_irq_event_percpu+0x26/0x60 [3.640826] handle_irq_event+0x29/0x50 [3.647859] ? irq_set_chained_handler_and_data+0x70/0x70 [3.657327] handle_level_irq+0x7a/0x110 [3.664393] handle_irq+0x121/0x160 [3.671878] [3.676245] do_IRQ+0x48/0x110 [3.682343] common_interrupt+0xec/0x100 [3.690738] EIP: _raw_spin_unlock_irqrestore+0x2c/0x50 [3.701138] Code: e5 56 53 89 c6 89 d3 8d 40 10 8b 4d 04 ba 01 00 00 00 e8 97 cb 96 ff 89 f0 e8 10 1d 97 ff f6 c7 02 74 1b e8 e6 14 9e ff 53 9d <64> ff 0d d0 57 c5 c1 5b 5e 5d c3 89 f6 8d bc 27 00 00 00 00 53 9d [3.739514] EAX: c1a8ac80 EBX: 00200246 ECX: 0001056c EDX: 0001 [3.751830] ESI: dcc20464 EDI: c1a9b440 EBP: c1a83f18 ESP: c1a83f10 [3.764572] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00200246 [3.779245] ? tracing_release+0x11b/0x190 [3.787741] ? kmsg_dump_get_buffer+0x48/0x3a0 [3.796330] __setup_irq+0x42b/0x6f0 [3.803196] setup_irq+0x70/0xd0 [3.809035] hpet_time_init+0x1d/0x2e [3.815808] x86_late_time_init+0x9/0x16 [3.823388] start_kernel+0x414/0x491 [3.830092] i386_start_kernel+0x8f/0x93 [3.837451] startup_32_smp+0x15f/0x170 [3.845072] irq event stamp: 3500 [3.853797] hardirqs last enabled at (3497): [] _raw_spin_unlock_irqrestore+0x2a/0x50 [3.868808] hardirqs last disabled at (3498): [] trace_hardirqs_off_thunk+0xc/0x1f [3.886173] softirqs last enabled at (3500): [] _local_bh_enable+0x4c/0x70 [3.900372] softirqs last disabled at (3499): [] irq_enter+0x50/0x70 [3.915483] ---[ end trace 11ad95b04038b91f ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.20.0-rc4 Kernel Configuration # # # Compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=40904 CONFIG_CLANG_VERSION=0 CONFIG_IRQ_WORK=y CONF
[locking/lockdep] f069edd342: WARNING:at_kernel/locking/lockdep.c:#register_lock_class
FYI, we noticed the following commit (built with gcc-4.9): commit: f069edd34280c56ed36bf35cc255c719df430abd ("locking/lockdep: Free lock classes that are no longer in use") https://github.com/bvanassche/linux for-next in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 3c40bb11a6 | f069edd342 | +--+++ | boot_successes | 0 | 0 | | boot_failures| 12 | 10 | | kernel_BUG_at_lib/list_debug.c | 12 | | | invalid_opcode:#[##] | 12 | | | EIP:__list_del_entry_valid | 12 | | | Kernel_panic-not_syncing:Fatal_exception | 12 | | | WARNING:at_kernel/locking/lockdep.c:#register_lock_class | 0 | 10 | | EIP:register_lock_class | 0 | 10 | | EIP:_raw_spin_unlock_irqrestore | 0 | 10 | +--+++ [3.905016] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:763 register_lock_class+0x430/0x5f0 [3.926405] Modules linked in: [3.932628] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.20.0-rc4-00120-gf069edd #1 [3.945183] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [3.957710] EIP: register_lock_class+0x430/0x5f0 [3.965515] Code: 68 10 28 9c c1 e8 ab 2f 01 00 68 38 28 9c c1 e8 a1 2f 01 00 e8 ab cf 66 00 8b 06 83 c4 0c e9 88 fc ff ff 8d b4 26 00 00 00 00 <0f> 0b e9 ef fb ff ff 0f 0b a1 2c ae 4d c2 e9 3c ff ff ff 64 a1 d4 [4.000626] EAX: EBX: c1a8ac80 ECX: EDX: [4.012492] ESI: dd2d5dfc EDI: EBP: dcc39e38 ESP: dcc39e04 [4.025032] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00210046 [4.038610] CR0: 80050033 CR2: CR3: 01da6000 CR4: 0690 [4.051081] Call Trace: [4.055718] [4.059579] ? startup_32_smp+0x15f/0x170 [4.067289] __lock_acquire+0x53/0x1940 [4.074454] ? mark_lock+0x44b/0x5e0 [4.081321] ? __lock_acquire+0xe97/0x1940 [4.089066] ? pvclock_clocksource_read+0xae/0x1c0 [4.100322] lock_acquire+0x82/0x170 [4.107093] ? scheduler_tick+0x46/0x130 [4.114482] update_rq_clock+0xbe/0x230 [4.121636] ? scheduler_tick+0x46/0x130 [4.129060] ? prandom_u32+0x1b/0x30 [4.135937] scheduler_tick+0x46/0x130 [4.142958] update_process_times+0x36/0x40 [4.150679] tick_periodic+0x35/0xc0 [4.157510] tick_handle_periodic+0x1d/0x70 [4.165520] timer_interrupt+0xd/0x20 [4.172416] __handle_irq_event_percpu+0x75/0x410 [4.181430] handle_irq_event_percpu+0x26/0x60 [4.190565] handle_irq_event+0x29/0x50 [4.197670] ? irq_set_chained_handler_and_data+0x70/0x70 [4.208029] handle_level_irq+0x7a/0x110 [4.216004] handle_irq+0x121/0x160 [4.222586] [4.226634] do_IRQ+0x48/0x110 [4.232796] common_interrupt+0xec/0x100 [4.240476] EIP: _raw_spin_unlock_irqrestore+0x2c/0x50 [4.250687] Code: e5 56 53 89 c6 89 d3 8d 40 10 8b 4d 04 ba 01 00 00 00 e8 57 d1 96 ff 89 f0 e8 10 1d 97 ff f6 c7 02 74 1b e8 e6 14 9e ff 53 9d <64> ff 0d d0 57 c5 c1 5b 5e 5d c3 89 f6 8d bc 27 00 00 00 00 53 9d [4.287255] EAX: c1a8ac80 EBX: 00200246 ECX: 1e2a EDX: 0001 [4.298991] ESI: dcc20864 EDI: c1a9b440 EBP: c1a83f18 ESP: c1a83f10 [4.30] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00200246 [4.324197] ? tracer_tracing_is_on+0x2b/0x30 [4.332820] ? perf_trace_console+0x8/0x160 [4.341245] __setup_irq+0x42b/0x6f0 [4.351587] setup_irq+0x70/0xd0 [4.359296] hpet_time_init+0x1d/0x2e [4.366168] x86_late_time_init+0x9/0x16 [4.373515] start_kernel+0x414/0x491 [4.380227] i386_start_kernel+0x8f/0x93 [4.387387] startup_32_smp+0x15f/0x170 [4.394930] irq event stamp: 3500 [4.401181] hardirqs last enabled at (3497): [] _raw_spin_unlock_irqrestore+0x2a/0x50 [4.418122] hardirqs last disabled at (3498): [] trace_hardirqs_off_thunk+0xc/0x1f [4.433681] softirqs last enabled at (3500): [] _local_bh_enable+0x4c/0x70 [4.448751] softirqs last disabled at (3499): [] irq_enter+0x50/0x70 [4.462711] ---[ end trace fb8b0e5b02994760 ]--- To reproduce
Re: [LKP] [patch v2 for-4.20] mm, thp: restore node-local hugepage allocations
On Wed, Dec 05, 2018 at 02:46:50PM -0800, David Rientjes wrote: > This is a full revert of ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for > MADV_HUGEPAGE mappings") and a partial revert of 89c83fb539f9 ("mm, thp: > consolidate THP gfp handling into alloc_hugepage_direct_gfpmask"). > > By not setting __GFP_THISNODE, applications can allocate remote hugepages > when the local node is fragmented or low on memory when either the thp > defrag setting is "always" or the vma has been madvised with > MADV_HUGEPAGE. > > Remote access to hugepages often has much higher latency than local pages > of the native page size. On Haswell, ac5b2c18911f was shown to have a > 13.9% access regression after this commit for binaries that remap their > text segment to be backed by transparent hugepages. > > The intent of ac5b2c18911f is to address an issue where a local node is > low on memory or fragmented such that a hugepage cannot be allocated. In > every scenario where this was described as a fix, there is abundant and > unfragmented remote memory available to allocate from, even with a greater > access latency. > > If remote memory is also low or fragmented, not setting __GFP_THISNODE was > also measured on Haswell to have a 40% regression in allocation latency. > > Restore __GFP_THISNODE for thp allocations. > > Fixes: ac5b2c18911f ("mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE > mappings") > Fixes: 89c83fb539f9 ("mm, thp: consolidate THP gfp handling into > alloc_hugepage_direct_gfpmask") > Signed-off-by: David Rientjes > --- > include/linux/mempolicy.h | 2 -- > mm/huge_memory.c | 42 +++ > mm/mempolicy.c| 2 +- > 3 files changed, 17 insertions(+), 29 deletions(-) > > diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h > --- a/include/linux/mempolicy.h > +++ b/include/linux/mempolicy.h > @@ -139,8 +139,6 @@ struct mempolicy *mpol_shared_policy_lookup(struct > shared_policy *sp, > struct mempolicy *get_task_policy(struct task_struct *p); > struct mempolicy *__get_vma_policy(struct vm_area_struct *vma, > unsigned long addr); > -struct mempolicy *get_vma_policy(struct vm_area_struct *vma, > - unsigned long addr); > bool vma_policy_mof(struct vm_area_struct *vma); > > extern void numa_default_policy(void); > diff --git a/mm/huge_memory.c b/mm/huge_memory.c > --- a/mm/huge_memory.c > +++ b/mm/huge_memory.c > @@ -632,37 +632,27 @@ static vm_fault_t __do_huge_pmd_anonymous_page(struct > vm_fault *vmf, > static inline gfp_t alloc_hugepage_direct_gfpmask(struct vm_area_struct > *vma, unsigned long addr) > { > const bool vma_madvised = !!(vma->vm_flags & VM_HUGEPAGE); > - gfp_t this_node = 0; > - > -#ifdef CONFIG_NUMA > - struct mempolicy *pol; > - /* > - * __GFP_THISNODE is used only when __GFP_DIRECT_RECLAIM is not > - * specified, to express a general desire to stay on the current > - * node for optimistic allocation attempts. If the defrag mode > - * and/or madvise hint requires the direct reclaim then we prefer > - * to fallback to other node rather than node reclaim because that > - * can lead to excessive reclaim even though there is free memory > - * on other nodes. We expect that NUMA preferences are specified > - * by memory policies. > - */ > - pol = get_vma_policy(vma, addr); > - if (pol->mode != MPOL_BIND) > - this_node = __GFP_THISNODE; > - mpol_cond_put(pol); > -#endif > + const gfp_t gfp_mask = GFP_TRANSHUGE_LIGHT | __GFP_THISNODE; > > + /* Always do synchronous compaction */ > if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_DIRECT_FLAG, > &transparent_hugepage_flags)) > - return GFP_TRANSHUGE | (vma_madvised ? 0 : __GFP_NORETRY); > + return GFP_TRANSHUGE | __GFP_THISNODE | > +(vma_madvised ? 0 : __GFP_NORETRY); > + > + /* Kick kcompactd and fail quickly */ > if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_FLAG, > &transparent_hugepage_flags)) > - return GFP_TRANSHUGE_LIGHT | __GFP_KSWAPD_RECLAIM | this_node; > + return gfp_mask | __GFP_KSWAPD_RECLAIM; > + > + /* Synchronous compaction if madvised, otherwise kick kcompactd */ > if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_KSWAPD_OR_MADV_FLAG, > &transparent_hugepage_flags)) > - return GFP_TRANSHUGE_LIGHT | (vma_madvised ? > __GFP_DIRECT_RECLAIM : > - > __GFP_KSWAPD_RECLAIM | this_node); > + return gfp_mask | (vma_madvised ? __GFP_DIRECT_RECLAIM : > + __GFP_KSWAPD_RECLAIM); > + > + /* Only do synchronous compaction if madvised */ > if (test_bit(TRANSPARENT_HUGEPAGE_DEFRAG_REQ_MADV_FLAG, > &transparent_hugepage_flags)) > - return GFP_TRANSHUGE_LIGHT | (vma_madvised ? > __GFP_DIRE
[NFS] b4e004cd5d: BUG:KASAN:null-ptr-deref_in_s
FYI, we noticed the following commit (built with gcc-6): commit: b4e004cd5da022650322c64e5c829443e55cb7e2 ("NFS: Add fs_context support.") https://git.kernel.org/cgit/linux/kernel/git/viro/vfs.git Q19 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu IvyBridge -smp 2 -m 2G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | b51dcaefdc | b4e004cd5d | +--+++ | boot_successes | 10 | 0 | | boot_failures| 0 | 8 | | BUG:KASAN:null-ptr-deref_in_s| 0 | 8 | | BUG:unable_to_handle_kernel | 0 | 8 | | Oops:#[##] | 0 | 8 | | RIP:security_sb_set_mnt_opts | 0 | 8 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | +--+++ [ 44.932165] BUG: KASAN: null-ptr-deref in security_sb_set_mnt_opts+0x30/0x9d [ 44.933385] Read of size 4 at addr 0010 by task mount.nfs/518 [ 44.934545] [ 44.934941] CPU: 0 PID: 518 Comm: mount.nfs Not tainted 4.20.0-rc1-00059-gb4e004c #2 [ 44.936339] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 44.937787] Call Trace: [ 44.938354] dump_stack+0x1e/0x20 [ 44.939014] kasan_report+0x239/0x26c [ 44.939722] __asan_load4+0x81/0x83 [ 44.940409] security_sb_set_mnt_opts+0x30/0x9d [ 44.941279] nfs_set_sb_security+0xbf/0x139 [ 44.942073] ? nfs_umount_begin+0xb6/0xb6 [ 44.942834] ? register_shrinker_prepared+0x89/0x92 [ 44.943715] ? nfs_initialise_sb+0x187/0x193 [ 44.944521] nfs_get_tree_common+0x669/0x6d9 [ 44.945320] nfs_try_get_tree+0x3d9/0x41c [ 44.946101] ? nfs_request_mount+0x2eb/0x2eb [ 44.947057] ? quarantine_reduce+0x56/0x1e0 [ 44.947847] ? kasan_poison_shadow+0x2f/0x31 [ 44.948644] ? kasan_unpoison_shadow+0x14/0x35 [ 44.949470] ? find_nfs_version+0x72/0x12e [ 44.950251] ? kasan_check_read+0x11/0x13 [ 44.951007] ? ftrace_likely_update+0x2bf/0x2ce [ 44.951856] ? ftrace_likely_update+0x2bf/0x2ce [ 44.952685] nfs_get_tree+0x1f0/0x223 [ 44.953405] vfs_get_tree+0xfc/0x349 [ 44.954102] ? do_mount+0xdb5/0xf7e [ 44.954774] do_mount+0xdbd/0xf7e [ 44.955440] ? copy_mount_string+0x3d/0x3d [ 44.956246] ? kasan_unpoison_shadow+0x14/0x35 [ 44.957060] ? kasan_kmalloc+0x7f/0x8b [ 44.957773] ? ftrace_likely_update+0x2bf/0x2ce [ 44.958647] ? copy_mount_options+0x51/0x2be [ 44.959448] ? ftrace_likely_update+0x2bf/0x2ce [ 44.960298] ksys_mount+0xfa/0x130 [ 44.960962] __x64_sys_mount+0x70/0x7c [ 44.961705] do_syscall_64+0x3b6/0x682 [ 44.962434] ? syscall_return_slowpath+0x16d/0x16d [ 44.963316] ? trace_hardirqs_off_caller+0xe5/0x128 [ 44.964222] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.965083] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.966012] RIP: 0033:0x7f7faf19924a [ 44.966700] Code: 48 8b 0d 51 fc 2a 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1e fc 2a 00 f7 d8 64 89 01 48 [ 44.969743] RSP: 002b:7ffcb2d2fcb8 EFLAGS: 0206 ORIG_RAX: 00a5 [ 44.971085] RAX: ffda RBX: RCX: 7f7faf19924a [ 44.972285] RDX: 5618ebd44f70 RSI: 5618ebd44f50 RDI: 5618ebd43210 [ 44.973483] RBP: 7ffcb2d2feb0 R08: 5618ebd50320 R09: 0060 [ 44.974685] R10: R11: 0206 R12: 7f7fafadd410 [ 44.975879] R13: 7ffcb2d2feb0 R14: 7ffcb2d2fdb0 R15: 5618ebd50300 [ 44.977083] == [ 44.978367] Disabling lock debugging due to kernel taint [ 45.100307] BUG: unable to handle kernel NULL pointer dereference at 0010 [ 45.101798] PGD 0 P4D 0 [ 45.102340] Oops: [#1] PREEMPT KASAN [ 45.103100] CPU: 0 PID: 518 Comm: mount.nfs Tainted: GB 4.20.0-rc1-00059-gb4e004c #2 [ 45.104671] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 45.106142] RIP: 0010:security_sb_set_mnt_opts+0x30/0x9d [ 45.107089] Code: 48 89 e5 41 57 41 56 41 55 41 54 49 89 f4 53 41 50 49 89 d6 49 89 cf 48 89 7d d0 e8 c8 42 b4 ff 49 8d 7c 24 10 e8 1b 10 c7 ff <45> 8b 6c 24 10 ba a1 ff ff ff 45 85 ed 44 0f 45 ea e8 a8 42 b4 ff [ 45.110149] RSP: :88004dee79a8 EFLAGS: 00010256 [ 45.111085] RAX: 0296 RBX: 11000
[lkp-robot] [x86/kernel] b1ff47aace: WARNING:at_kernel/jump_label.c:#__jump_label_update
FYI, we noticed the following commit (built with gcc-7): commit: b1ff47aacea95e5be1bedf2aee740395b52f4591 ("[PATCH 5/5] x86/kernel: jump_table: use relative references") url: https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/add-support-for-relative-references-in-jump-tables/20180628-021246 in testcase: boot on test machine: qemu-system-i386 -enable-kvm -m 360M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 1843c4017f | b1ff47aace | +-+++ | boot_successes | 57 | 46 | | boot_failures | 2 | 14 | | Mem-Info| 2 | 3 | | invoked_oom-killer:gfp_mask=0x | 1 | 3 | | Out_of_memory:Kill_process | 1 | 3 | | WARNING:at_kernel/jump_label.c:#__jump_label_update | 0 | 11 | | EIP:__jump_label_update | 0 | 11 | +-+++ [ 43.154660] WARNING: CPU: 0 PID: 351 at kernel/jump_label.c:388 __jump_label_update+0x101/0x130 [ 43.172391] Modules linked in: [ 43.176312] CPU: 0 PID: 351 Comm: trinity-main Not tainted 4.18.0-rc2-00124-gb1ff47a #206 [ 43.186389] EIP: __jump_label_update+0x101/0x130 [ 43.192131] Code: a5 bf fd ff 6a 01 31 c9 ba 01 00 00 00 b8 c0 02 cd b1 c6 05 ba 2e cb b1 01 e8 8b bf fd ff ff 33 68 8b 35 b2 b1 e8 cf 74 f3 ff <0f> 0b 6a 01 31 c9 ba 01 00 00 00 b8 a8 02 cd b1 e8 6a bf fd ff 83 [ 43.215879] EAX: 0021 EBX: b1cb67b0 ECX: EDX: [ 43.223498] ESI: b1cb67b8 EDI: b1cb2fbc EBP: b89c9dc0 ESP: b89c9d9c [ 43.231212] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 EFLAGS: 00010292 [ 43.239602] CR0: 80050033 CR2: 0805a000 CR3: 08979000 CR4: 0690 [ 43.247344] Call Trace: [ 43.250614] jump_label_update+0x95/0x120 [ 43.255705] static_key_slow_inc_cpuslocked+0xcd/0xe0 [ 43.261993] static_key_slow_inc+0xd/0x10 [ 43.266986] tracepoint_probe_register_prio+0x257/0x320 [ 43.273467] tracepoint_probe_register+0xf/0x20 [ 43.279104] trace_event_reg+0x90/0x100 [ 43.283964] perf_trace_init+0x222/0x280 [ 43.288833] perf_tp_event_init+0x1d/0x50 [ 43.293947] perf_try_init_event+0x27/0xb0 [ 43.299066] perf_event_alloc+0x757/0xb20 [ 43.304996] __do_sys_perf_event_open+0x3de/0xd60 [ 43.310932] sys_perf_event_open+0x17/0x20 [ 43.315362] do_int80_syscall_32+0x98/0x1f0 [ 43.319354] entry_INT80_32+0x33/0x33 [ 43.322816] EIP: 0xa7fa41b2 [ 43.325381] Code: 89 c2 31 c0 89 d7 f3 aa 8b 44 24 1c 89 30 c6 40 04 00 83 c4 2c 89 f0 5b 5e 5f 5d c3 90 90 90 90 90 90 90 90 90 90 90 90 cd 80 8d b6 00 00 00 00 8d bc 27 00 00 00 00 8b 1c 24 c3 8d b6 00 00 [ 43.346022] EAX: ffda EBX: 080d3000 ECX: 015f EDX: [ 43.355195] ESI: EDI: 0001 EBP: ESP: af819388 [ 43.362426] DS: 007b ES: 007b FS: GS: 0033 SS: 007b EFLAGS: 0282 [ 43.368681] ---[ end trace 323a8199e30cb153 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.18.0-rc2 Kernel Configuration # # # Compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 # CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=70300 CONFIG_CLANG_VERSION=0 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set CONFIG_LOC
[lkp-robot] ee410f15b1 BUG: kernel hang in boot stage
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit ee410f15b1418f2f4428e79980674c979081bcb7 Author: Thierry Escande AuthorDate: Thu Jun 14 15:28:15 2018 -0700 Commit: Linus Torvalds CommitDate: Fri Jun 15 07:55:25 2018 +0900 lib/test_printf.c: call wait_for_random_bytes() before plain %p tests If the test_printf module is loaded before the crng is initialized, the plain 'p' tests will fail because the printed address will not be hashed and the buffer will contain '(ptrval)' instead. This patch adds a call to wait_for_random_bytes() before plain 'p' tests to make sure the crng is initialized. Link: http://lkml.kernel.org/r/20180604113708.11554-1-thierry.esca...@linaro.org Signed-off-by: Thierry Escande Acked-by: Tobin C. Harding Reviewed-by: Andrew Morton Cc: David Miller Cc: Rasmus Villemoes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds 608dbdfb1f hexagon: drop the unused variable zero_page_mask ee410f15b1 lib/test_printf.c: call wait_for_random_bytes() before plain %p tests 883c9ab9eb Merge branch 'parisc-4.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux e3c7283c19 Add linux-next specific files for 20180629 +---++++---+ | | 608dbdfb1f | ee410f15b1 | 883c9ab9eb | next-20180629 | +---++++---+ | boot_successes| 35 | 0 | 19 | 13 | | boot_failures | 0 | 15 || | | BUG:kernel_hang_in_boot_stage | 0 | 15 || | +---++++---+ [9.488584] - [9.491008] Testing concurrent rhashtable access from 10 threads [ 21.577749] test 3125 add/delete pairs into rhlist [ 21.734553] test 3125 random rhlist add/delete operations [ 21.813107] Started 10 threads, 0 failed, rhltable test returns 0 BUG: kernel hang in boot stage # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 7daf201d7fe8334e2d2364d4e8ed3394ec9af819 v4.17 -- git bisect good a16afaf7928b74c30a4727cdcaa67bd10675a55d # 08:00 G 11 00 0 Merge tag 'for-v4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply git bisect good dc594c39f7a9dcdfd5dbb1a446ac6d06182e2472 # 08:13 G 11 00 0 Merge tag 'ceph-for-4.18-rc1' of git://github.com/ceph/ceph-client git bisect bad 81e97f01371f4e1701feeafe484665112cd9ddc2 # 08:33 B 0 1 15 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid git bisect bad 35773c93817c5f2df264d013978e7551056a063a # 08:55 B 0 1 15 0 Merge branch 'afs-proc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs git bisect bad 8949170cf48e91da7e4e69a59e2842d81d9a5885 # 09:26 B 0 1 15 0 Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm git bisect bad becfc5e97cbab00b25a592aabc36838ec7217d1f # 09:49 B 0 10 24 0 Merge tag 'drm-next-2018-06-15' of git://anongit.freedesktop.org/drm/drm git bisect good 7a932516f55cdf430c7cce78df2010ff7db6b874 # 10:21 G 11 00 0 Merge tag 'vfs-timespec64' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground git bisect bad b5d903c2d656e9bc54bc76554a477d796a63120d # 10:44 B 0 1 15 0 Merge branch 'akpm' (patches from Andrew) git bisect good 3fb3894b84c2e0f83cb1e4f4e960243742e6b3a6 # 11:06 G 10 00 0 kernel/relay.c: change return type to vm_fault_t git bisect good 14f28f5776927be30717986f86b765d49eec392c # 11:20 G 10 00 0 ipc: use new return type vm_fault_t git bisect good fe6bdfc8e1e131720abbe77a2eb990c94c9024cb # 11:44 G 10 00 0 mm: fix oom_kill event handling git bisect good 608dbdfb1f0299f4500e56d62b0d84c44dcfa3be # 11:56 G 11 00 0 hexagon: drop the unused variable zero_page_mask git bisect bad ee410f15b1418f2f4428e79980674c979081bcb7 # 12:16 B 0 1 15 0 lib/test_printf.c: call wait_for_random_bytes() before plain %p tests # first bad commit: [ee410f15b1418f2f4428e79980674c979081bcb7] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests git bisect good 608dbdfb1f0299f4500e56d62b0d84c44dcfa3be # 12:42 G 30 00 0 hexagon: drop the unused variable zero_page_mask # extra tests with debug options git bisect bad ee410f15b1418f2f4428e79980674c979081bcb7 # 13:00 B 0 11 25 0 lib/test_printf.c: call wait_for_random_by
[lkp-robot] 9a93848fe7 [ 1.383411] WARNING: CPU: 0 PID: 1 at arch/x86/mm/dump_pagetables.c:235 note_page
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 9a93848fe787a53aec404e4e00d8f7f9bbdaebb4 Author: Peter Zijlstra AuthorDate: Thu Feb 2 14:43:51 2017 +0100 Commit: Ingo Molnar CommitDate: Mon Mar 27 10:20:28 2017 +0200 x86/debug: Implement __WARN() using UD0 By using "UD0" for WARN()s we remove the function call and its possible __FILE__ and __LINE__ immediate arguments from the instruction stream. Total image size will not change much, what we win in the instruction stream we'll lose because of the __bug_table entries. Still, saves on I$ footprint and the total image size does go down a bit. textdata filename 107021234530992defconfig-build/vmlinux.orig 106824604530992defconfig-build/vmlinux.patched (UML didn't seem to use GENERIC_BUG at all, so remove it) Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Josh Poimboeuf Cc: Arjan van de Ven Cc: Borislav Petkov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Richard Weinberger Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar 1fa9d67a2f x86/ftrace: Use Makefile logic instead of #ifdef for compiling ftrace_*.o 9a93848fe7 x86/debug: Implement __WARN() using UD0 883c9ab9eb Merge branch 'parisc-4.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux e3c7283c19 Add linux-next specific files for 20180629 +-++++---+ | | 1fa9d67a2f | 9a93848fe7 | 883c9ab9eb | next-20180629 | +-++++---+ | boot_successes | 0 | 0 | 2 | 0 | | boot_failures | 55 | 22 | 22 | 6 | | WARNING:at_arch/x86/mm/dump_pagetables.c:#note_page | 55 | 22 | 22 | 6 | | EIP:note_page | 0 | 22 | 22 | 6 | | Mem-Info| 0 | 0 | 1 | | +-++++---+ [1.379767] Write protecting the kernel text: 7716k [1.380913] Write protecting the kernel read-only data: 3232k [1.381556] NX-protecting the kernel data: 6620k [1.382399] x86/mm: Found insecure W+X mapping at address 400a/0x400a [1.382947] [ cut here ] [1.383411] WARNING: CPU: 0 PID: 1 at arch/x86/mm/dump_pagetables.c:235 note_page+0x73d/0x970 [1.384159] Modules linked in: [1.384461] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-rc3-00046-g9a93848 #58 [1.385012] task: 4f43c000 task.stack: 4f43e000 [1.385611] EIP: note_page+0x73d/0x970 [1.386058] EFLAGS: 00210216 CPU: 0 [1.386490] EAX: 0041 EBX: 4f43ff40 ECX: 0228 EDX: [1.387184] ESI: 8000 EDI: EBP: 4f43ff10 ESP: 4f43fed8 [1.387897] DS: 007b ES: 007b FS: 00d8 GS: SS: 0068 [1.388523] CR0: 80050033 CR2: CR3: 0907 CR4: 001406b0 [1.389239] DR0: DR1: DR2: DR3: [1.389938] DR6: fffe0ff0 DR7: 0400 [1.390390] Call Trace: [1.390679] ? preempt_schedule_common+0x48/0x60 [1.391217] ptdump_walk_pgd_level_core+0x36e/0x4a0 [1.391773] ptdump_walk_pgd_level_checkwx+0x16/0x20 [1.392354] mark_rodata_ro+0xed/0x110 [1.392780] ? rest_init+0xb0/0xb0 [1.393219] kernel_init+0x2c/0x100 [1.393628] ? rest_init+0xb0/0xb0 [1.394018] ret_from_fork+0x21/0x2c [1.394451] Code: 00 00 00 b8 a0 54 f6 48 c6 05 44 df ec 48 01 e8 3a ab 0e 00 8b 43 0c c7 04 24 60 0f dd 48 89 44 24 08 89 44 24 04 e8 81 93 12 00 <0f> ff 31 c9 ba 01 00 00 00 c7 04 24 01 00 00 00 b8 88 54 f6 48 [1.396683] ---[ end trace b027e07a36e0a3c3 ]--- [1.397351] x86/mm: Checked W+X mappings: FAILED, 96 W+X pages found. # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start v4.12 v4.11 -- git bisect bad f3926e4c2a4b53c25a998de168d4eef6d0360369 # 17:32 B 0 1 19 4 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs git bisect bad 677375cef8cb7763ef620e007873117b9bad72a0 # 17:44 B 0 3 26 9 Merge tag 'fscrypt_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/fscrypt git bisect bad 76f1948a79b26d5f57a5ee9941876b745c6baaea # 17:53 B 0 5 22 3 Merge branch 'f
[lkp-robot] [rcu] 50b7ae6af5: BUG:spinlock_recursion_on_CPU
FYI, we noticed the following commit (built with gcc-7): commit: 50b7ae6af5671168cc6cf2de959b02584e4c3f87 ("rcu: Diagnostics for grace-period hangs") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -m 420M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || 8c42b1f39f | 50b7ae6af5 | ++++ | boot_successes | 0 | 0 | | boot_failures | 28 | 28 | | WARNING:at_mm/slab_common.c:#kmalloc_slab | 28 | 21 | | EIP:kmalloc_slab | 28 | 21 | | Mem-Info | 28 | 21 | | IP-Config:Auto-configuration_of_network_failed | 24 | 14 | | BUG:spinlock_recursion_on_CPU | 0 | 10 | ++++ [ 163.510428] BUG: spinlock recursion on CPU#0, rcu_torture_cbf/54 [ 163.511698] lock: rcu_sched_state+0x0/0x9a0, .magic: dead4ead, .owner: rcu_torture_cbf/54, .owner_cpu: 0 [ 163.512424] CPU: 0 PID: 54 Comm: rcu_torture_cbf Not tainted 4.18.0-rc1-4-g50b7ae6 #156 [ 163.512424] Call Trace: [ 163.512424] [ 163.512424] dump_stack+0x58/0x76 [ 163.512424] spin_dump+0x64/0xb0 [ 163.512424] do_raw_spin_lock+0x7d/0xb0 [ 163.512424] _raw_spin_lock+0x45/0x60 [ 163.512424] rcu_process_callbacks+0x991/0xba0 [ 163.512424] ? irqtime_account_irq+0x6e/0x80 [ 163.512424] __do_softirq+0xa3/0x1ba [ 163.512424] ? __irqentry_text_end+0x5/0x5 [ 163.512424] call_on_stack+0x40/0x50 [ 163.512424] [ 163.512424] ? irq_exit+0xb5/0xc0 [ 163.512424] ? smp_apic_timer_interrupt+0x51/0x80 [ 163.512424] ? apic_timer_interrupt+0x39/0x40 [ 163.512424] ? _raw_spin_unlock_irqrestore+0x24/0x40 [ 163.512424] ? __debug_object_init+0xba/0x490 [ 163.512424] ? debug_object_activate+0x1ae/0x210 [ 163.512424] ? __call_rcu+0x2b/0x250 [ 163.512424] ? rcu_torture_boost_cb+0x10/0x10 [ 163.512424] ? call_rcu_sched+0xf/0x20 [ 163.512424] ? rcu_torture_cbflood+0xe4/0x1b0 [ 163.512424] ? kthread+0xed/0x100 [ 163.512424] ? rcu_torture_err_cb+0x20/0x20 [ 163.512424] ? kthread_create_worker_on_cpu+0x20/0x20 [ 163.512424] ? ret_from_fork+0x2e/0x40 Elapsed time: 190 #!/bin/bash # To reproduce, # 1) save job-script and this script (both are attached in 0day report email) # 2) run this script with your compiled kernel and optional env $INSTALL_MOD_PATH kernel=$1 initrds=( /osimage/openwrt/openwrt-i386-2016-03-16.cgz /lkp/lkp/lkp-i386.cgz /osimage/pkg/debian-x86_64-2016-08-31.cgz/trinity-static-i386-x86_64-6ddabfd2_2017-11-10.cgz ) HTTP_PREFIX=https://download.01.org/0day-ci/lkp-qemu wget --timestamping "${initrds[@]/#/$HTTP_PREFIX}" { cat "${initrds[@]//*\//}" [[ $INSTALL_MOD_PATH ]] && ( cd "$INSTALL_MOD_PATH" find lib | cpio -o -H newc --quiet | gzip ) echo job-script | cpio -o -H newc --quiet | gzip } > initrd.img kvm=( qemu-system-x86_64 -kernel $kernel -initrd initrd.img -m 420 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -watchdog-action debug -rtc base=localtime -serial stdio -display none -monitor null ) append=( ip=vm-lkp-os-openwrt-ia32-13::dhcp root=/dev/ram0 user=lkp job=/job-script ARCH=i386 kconfig=i386-randconfig-i0-201825 branch=linux-devel/devel-spot-201806270834 commit=50b7ae6af5671168cc6cf2de959b02584e4c3f87 BOOT_IMAGE=/pkg/linux/i386-randconfig-i0-201825/gcc-7/50b7ae6af5671168cc6cf2de959b02584e4c3f87/vmlinuz-4.18.0-rc1-4-g50b7ae6 max_uptime=1500 RESULT_ROOT=/result/trinity/300s/vm-lkp-os-openwrt-ia32/openwrt-i386-2016-03-16.cgz/i386-randconfig-i0-201825/gcc-7/50b7ae6af5671168cc6cf2de959b02584e4c3f87/3 result_service=tmpfs debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job
[lkp-robot] [bisect done] ef1433f717 [ 7.049860] BUG: unable to handle kernel NULL pointer dereference at 0000004c
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit ef1433f717a2c63747a519d86965d73ff9bd08b3 Author: Kishon Vijay Abraham I AuthorDate: Mon Apr 2 18:59:35 2018 +0530 Commit: Lorenzo Pieralisi CommitDate: Fri May 18 16:40:50 2018 +0100 PCI: endpoint: Create configfs entry for each pci_epf_device_id table entry In order to be able to provide correct driver_data for pci_epf device, a separate configfs entry for each pci_epf_device_id table entry in pci_epf_driver is required. Add support to create configfs entry for each pci_epf_device_id table entry here. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Lorenzo Pieralisi Tested-by: Gustavo Pimentel ecc57efe9d misc: pci_endpoint_test: Use pci_irq_vector function ef1433f717 PCI: endpoint: Create configfs entry for each pci_epf_device_id table entry f5b7769eb0 Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent" 0468ba62dc Add linux-next specific files for 20180613 +--++++---+ | | ecc57efe9d | ef1433f717 | f5b7769eb0 | next-20180613 | +--++++---+ | boot_successes | 42 | 0 | 0 | 0 | | boot_failures| 4 | 15 | 19 | 57| | WARNING:at_arch/x86/include/asm/pgtable.h:#do_anonymous_page | 4 | || | | EIP:do_anonymous_page| 4 | || | | WARNING:at_arch/x86/include/asm/pgtable.h:#change_pte_range | 2 | || | | EIP:change_pte_range | 2 | || | | BUG:unable_to_handle_kernel | 0 | 15 | 19 | 57| | Oops:#[##] | 0 | 15 | 19 | 57| | EIP:__pci_epf_register_driver| 0 | 15 | 19 | 57| | Kernel_panic-not_syncing:Fatal_exception | 0 | 15 | 19 | 57| +--++++---+ [7.004551] crc32c: self tests passed, processed 225944 bytes in 114627 nsec [7.022096] crc32_combine: 8373 self tests passed [7.038149] crc32c_combine: 8373 self tests passed [7.038731] cpqphp: Compaq Hot Plug PCI Controller Driver version: 0.9.8 [7.039375] switchtec: loaded. [7.049860] BUG: unable to handle kernel NULL pointer dereference at 004c [7.050604] *pdpt = *pde = f000ff53f000ff53 [7.051110] Oops: 0002 [#1] PREEMPT SMP [7.051443] Modules linked in: [7.051711] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.17.0-rc1-5-gef1433f #1 [7.052364] EIP: __pci_epf_register_driver+0x8c/0xc0 [7.052791] EFLAGS: 00210202 CPU: 0 [7.053097] EAX: 41a78114 EBX: 41790220 ECX: 41a78114 EDX: 41a78114 [7.053632] ESI: 41a780c0 EDI: 41a78114 EBP: 40031f08 ESP: 40031ef8 [7.054170] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [7.054631] CR0: 80050033 CR2: 004c CR3: 01b5f000 CR4: 001406f0 [7.055171] DR0: DR1: DR2: DR3: [7.055704] DR6: fffe0ff0 DR7: 0400 [7.056037] Call Trace: [7.056255] ? pci_epf_init+0x28/0x28 [7.056573] ? pci_epf_test_init+0x2d/0x4a [7.056928] ? do_one_initcall+0x41/0x1a0 [7.057278] ? parse_args+0x189/0x2a0 [7.057601] ? kernel_init_freeable+0x19f/0x219 [7.057999] ? rest_init+0x1e0/0x1e0 [7.058309] ? kernel_init+0x8/0xf0 [7.058612] ? ret_from_fork+0x2e/0x38 [7.058946] Code: d2 b8 60 80 a7 41 e8 b4 ec 4a 00 8b 7e 58 8b 4d f0 b8 48 00 00 00 89 fa e8 72 d6 fa ff 84 c0 74 1b 8b 45 f0 c7 46 58 48 00 00 00 <89> 3d 4c 00 00 00 a3 48 00 00 00 c7 07 48 00 00 00 b8 60 80 a7 [7.059742] EIP: __pci_epf_register_driver+0x8c/0xc0 SS:ESP: 0068:40031ef8 [7.059742] CR2: 004c [7.059742] ---[ end trace 7624867efb8b23bc ]--- [7.059742] Kernel panic - not syncing: Fatal exception # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 0468ba62dc097465dfee1e65f83a171985653d15 29dcea88779c856c7dc92040a0c01233263101d4 -- git bisect bad 1aaccb5fa0eac996adde53538ca
[lkp-robot] [bisect done] 51bad67ffb [ 2.125035] int3: 0000 [#1] SMP DEBUG_PAGEALLOC
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/debug commit 51bad67ffbce0aaa44579f84ef5d05597054ec6a Author: Alexey Dobriyan AuthorDate: Tue May 8 00:37:55 2018 +0300 Commit: Ingo Molnar CommitDate: Mon May 14 11:43:03 2018 +0200 x86/asm: Pad assembly functions with INT3 instructions Use INT3 instead of NOP. All that padding between functions is an illegal area, no legitimate code should jump into it. I've checked x86_64 allyesconfig disassembly, all changes looks sane: INT3 is only used after RET or unconditional JMP. Signed-off-by: Alexey Dobriyan Acked-by: H. Peter Anvin Acked-by: Thomas Gleixner Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180507213755.GA32406@avx2 Signed-off-by: Ingo Molnar e0f6d1a526 x86/vdso: Remove unused file 51bad67ffb x86/asm: Pad assembly functions with INT3 instructions 2302d8647a objtool: Detect assembly code falling through to INT3 padding 7a36b8fc16 Merge branch 'WIP.x86/debug' 0468ba62dc Add linux-next specific files for 20180613 +--+++++---+ | | e0f6d1a526 | 51bad67ffb | 2302d8647a | 7a36b8fc16 | next-20180613 | +--+++++---+ | boot_successes | 37 | 0 | 0 | 0 | 13| | boot_failures| 0 | 15 | 26 | 19 | | | int3:#[##] | 0 | 15 | 26 | 19 | | | EIP:ret_from_exception | 0 | 15 | 26 | 19 | | | Kernel_panic-not_syncing:Fatal_exception | 0 | 15 | 26 | 19 | | +--+++++---+ [2.120938] registered taskstats version 1 [2.121341] page_owner is disabled [2.123093] debug: unmapping init [mem 0xc1bfc000-0xc1c94fff] [2.123717] Write protecting the kernel text: 7808k [2.124228] Write protecting the kernel read-only data: 3492k [2.125035] int3: [#1] SMP DEBUG_PAGEALLOC [2.125453] Modules linked in: [2.125732] CPU: 0 PID: 1 Comm: init Not tainted 4.17.0-rc3-00048-g51bad67 #2 [2.126400] EIP: ret_from_exception+0x17/0x20 [2.126787] EFLAGS: 0246 CPU: 0 [2.127099] EAX: 0003 EBX: ECX: 0001 EDX: 0100 [2.127654] ESI: EDI: c1039a7f EBP: 51c45fac ESP: d1c45fac [2.128205] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [2.128685] CR0: 80050033 CR2: b7f38da8 CR3: 105cc000 CR4: 06d0 [2.129236] Call Trace: [2.129475] Code: ff ff c7 44 24 18 00 00 00 00 eb d1 cc cc cc cc cc cc cc cc 8b 44 24 38 8a 44 24 34 25 03 00 02 00 83 f8 03 0f 82 ed 00 00 00 cc cc cc cc cc cc cc cc cc fa 8d b6 00 00 00 00 e8 da 42 86 ff [2.131228] EIP: ret_from_exception+0x17/0x20 SS:ESP: 0068:d1c45fac [2.131825] ---[ end trace 3c916ada3f4fdee3 ]--- [2.132241] Kernel panic - not syncing: Fatal exception # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 2c9d78ec0b7637dc19587260a32c8d6ea9519f29 29dcea88779c856c7dc92040a0c01233263101d4 -- git bisect good a5eae99e2c751a89f128207942cbf7acde75aacf # 05:44 G 10 00 0 Merge 'linux-review/Paul-Kocialkowski/Revert-drm-sun4i-Handle-DRM_BUS_FLAG_PIXDATA_-EDGE/20180613-162350' into devel-spot-201806140237 git bisect good 4058081f1acc44e3bcd7887b0a1216868b9e5400 # 06:09 G 10 00 0 Merge 'linux-review/Peng-Donglin/ARM-dump-Convert-to-use-DEFINE_SHOW_ATTRIBUTE-macro/20180613-092058' into devel-spot-201806140237 git bisect good 89db98eeb46e17ab01a4314df6ad2ade3ad05daf # 06:26 G 10 00 0 Merge 'linux-review/Nishanth-Menon/ARM-DRA7-OMAP5-Enable-ACTLR-0-Enable-invalidates-of-BTB-for-secondary-cores/20180613-053953' into devel-spot-201806140237 git bisect bad 048def10812f8734e06678c6f9d2c7d0646309a5 # 06:40 B 0 5 19 0 Merge 'linux-review/Richard-Weinberger/ubifs-Fix-memory-leak-in-lprobs-self-check/20180613-025142' into devel-spot-201806140237 git bisect good f17c96283b0eecea42f1bfaaebe9ff2be085201e # 07:06 G 11 00 2 Merge 'linux-review/Brian-Norris/power-supply-sbs-battery-don-t-assume-MANUFACTURER_DATA-formats/20180613-042318' into devel-spot-201806140237 git bisect bad 2a2f4b7863cd06e02fa654db300fa07b7b6
[lkp-robot] [bisect done] ca90800a91 [ 1.761734] WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:4061 __alloc_pages_nodemask
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit ca90800a91ba723d78ded634d037c1d2df8b54d6 Author: Kees Cook AuthorDate: Thu May 10 16:40:03 2018 -0700 Commit: Kees Cook CommitDate: Tue Jun 5 12:16:51 2018 -0700 test_overflow: Add memory allocation overflow tests Make sure that the memory allocators are behaving as expected in the face of overflows of multiplied arguments or when using the array_size()-family helpers. Example output of new tests (with the expected __alloc_pages_slowpath and vmalloc warnings about refusing giant allocations removed): [ 93.062076] test_overflow: kmalloc detected saturation [ 93.062988] test_overflow: kmalloc_node detected saturation [ 93.063818] test_overflow: kzalloc detected saturation [ 93.064539] test_overflow: kzalloc_node detected saturation [ 93.120386] test_overflow: kvmalloc detected saturation [ 93.143458] test_overflow: kvmalloc_node detected saturation [ 93.166861] test_overflow: kvzalloc detected saturation [ 93.189924] test_overflow: kvzalloc_node detected saturation [ 93.221671] test_overflow: vmalloc detected saturation [ 93.246326] test_overflow: vmalloc_node detected saturation [ 93.270260] test_overflow: vzalloc detected saturation [ 93.293824] test_overflow: vzalloc_node detected saturation [ 93.294597] test_overflow: devm_kmalloc detected saturation [ 93.295383] test_overflow: devm_kzalloc detected saturation [ 93.296217] test_overflow: all tests passed Signed-off-by: Kees Cook 610b15c50e overflow.h: Add allocation size calculation helpers ca90800a91 test_overflow: Add memory allocation overflow tests 35773c9381 Merge branch 'afs-proc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 4b373f94fe Add linux-next specific files for 20180615 +++++---+ || 610b15c50e | ca90800a91 | 35773c9381 | next-20180615 | +++++---+ | boot_successes | 57 | 0 | 0 | 0 | | boot_failures | 0 | 37 | 19 | 50| | WARNING:at_mm/page_alloc.c:#__alloc_pages_nodemask | 0 | 37 | 19 | 50| | EIP:__alloc_pages_nodemask | 0 | 37 | 19 | 50| | Mem-Info | 0 | 37 | 19 | 50| +++++---+ [1.756827] test_overflow: s8 : 19 tests [1.757722] test_overflow: u16: 17 tests [1.758673] test_overflow: s16: 17 tests [1.759738] test_overflow: u32: 17 tests [1.760677] test_overflow: s32: 17 tests [1.761734] WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:4061 __alloc_pages_nodemask+0x172/0xa40 [1.764050] Modules linked in: [1.764815] CPU: 0 PID: 1 Comm: swapper Not tainted 4.17.0-rc4-6-gca90800 #108 [1.765046] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [1.765046] EIP: __alloc_pages_nodemask+0x172/0xa40 [1.765046] EFLAGS: 00210246 CPU: 0 [1.765046] EAX: 00200140 EBX: ECX: EDX: c0039e14 [1.765046] ESI: c0039e14 EDI: EBP: c0039e5c ESP: c0039dd4 [1.765046] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 [1.765046] CR0: 80050033 CR2: CR3: 13ce6000 CR4: 06b0 [1.765046] Call Trace: [1.765046] kmalloc_order+0x13/0x30 [1.765046] __kmalloc+0x2f/0x140 [1.765046] test_module_init+0x1128/0x1ab0 [1.765046] ? vprintk_emit+0x3a2/0x400 [1.765046] ? vprintk_default+0x12/0x20 [1.765046] ? vprintk_func+0x55/0x60 [1.765046] ? printk+0xe/0x10 [1.765046] ? string_selftest_init+0x2a1/0x2a1 [1.765046] do_one_initcall+0x65/0x148 [1.765046] ? do_early_param+0x75/0x75 [1.765046] kernel_init_freeable+0xdf/0x16a [1.765046] ? rest_init+0xc0/0xc0 [1.765046] kernel_init+0x8/0xe0 [1.765046] ret_from_fork+0x19/0x24 [1.765046] Code: 89 f6 8d bc 27 00 00 00 00 39 5d bc c6 45 cc 00 74 07 89 5d bc 8d 74 26 00 83 7d b0 0a 76 1a 81 e7 00 02 00 00 0f 85 ae 08 00 00 <0f> 0b e9 a7 08 00 00 8d b4 26 00 00 00 00 89 f8 25 00 00 48 00 [1.765046] ---[ end trace ed0d4aa536181e08 ]--- [1.792892] test_overflow: kmalloc detected saturation # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 3e592428c3e9499beb29b6d32
[lkp-robot] [VFS] 56d9b2efe5: general_protection_fault:#[##]
FYI, we noticed the following commit (built with gcc-7): commit: 56d9b2efe552bceedd25e8efe0a0083ef9d541e6 ("VFS: Implement fsopen() to prepare for a mount") https://git.kernel.org/cgit/linux/kernel/git/viro/vfs.git mount-reordered in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | e357de7398 | 56d9b2efe5 | +--+++ | boot_successes | 2 | 2 | | boot_failures| 117| 66 | | BUG:unable_to_handle_kernel | 108| 44 | | Oops:#[##] | 110| 51 | | Kernel_panic-not_syncing:Fatal_exception | 117| 66 | | kernel_BUG_at_lib/list_debug.c | 7 | 2 | | invalid_opcode:#[##] | 7 | 3 | | RIP:__list_add_valid | 7 || | RIP:__list_del_entry_valid | 2 | 35 | | general_protection_fault:#[##] | 0 | 12 | | RIP:__x86_indirect_thunk_rax | 0 | 5 | | RIP:__lock_acquire | 0 | 12 | | kernel_BUG_at_mm/slob.c | 0 | 1 | | RIP:slob_alloc | 0 | 1 | +--+++ [ 181.808767] random: get_random_u64 called from arch_pick_mmap_layout+0x60/0x130 with crng_init=0 [ 186.714232] _warn_unseeded_randomness: 11 callbacks suppressed [ 186.714288] random: get_random_u64 called from copy_process+0x195/0x1ae0 with crng_init=0 [ 186.773591] random: get_random_u64 called from arch_pick_mmap_layout+0x60/0x130 with crng_init=0 [ 186.796449] random: get_random_u64 called from load_elf_binary+0x32e/0x16c6 with crng_init=0 [ 188.431860] general protection fault: [#1] PREEMPT [ 188.448873] CPU: 0 PID: 557 Comm: trinity-main Not tainted 4.17.0-rc5-00193-g56d9b2e #1 [ 188.456923] RIP: 0010:__list_del_entry_valid+0x60/0x110 [ 188.462220] RSP: 0018:88001908fd98 EFLAGS: 00010202 [ 188.467563] RAX: RBX: 880018c946d0 RCX: [ 188.474688] RDX: RSI: RDI: 82eb6298 [ 188.481752] RBP: dead0200 R08: R09: 0001 [ 188.45] R10: R11: 0001 R12: [ 188.496014] R13: dead4ead0001 R14: 82253360 R15: [ 188.503046] FS: 0104a880() GS:82a43000() knlGS: [ 188.511083] CS: 0010 DS: ES: CR0: 80050033 [ 188.516885] CR2: 7f91821ed000 CR3: 1b19f000 CR4: 06b0 [ 188.523950] Call Trace: [ 188.526609] list_lru_del+0x25/0x70 [ 188.530284] iput+0x1dc/0x310 [ 188.533328] __dentry_kill+0x114/0x210 [ 188.537144] ? dput+0x29/0x350 [ 188.540362] dentry_kill+0x8c/0x360 [ 188.543952] ? dput+0x29/0x350 [ 188.547163] dput+0x318/0x350 [ 188.550304] __fput+0x1e5/0x2e0 [ 188.553583] task_work_run+0x91/0xc0 [ 188.557209] ? native_irq_disable+0x10/0x10 [ 188.561489] exit_to_usermode_loop+0x101/0x110 [ 188.565956] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 188.571144] RIP: 0033:0x4573da [ 188.574255] RSP: 002b:7ffe9767ab18 EFLAGS: 0246 ORIG_RAX: 0009 [ 188.581807] RAX: ffea RBX: 0001 RCX: 004573da [ 188.588843] RDX: 0001 RSI: RDI: [ 188.596052] RBP: 001e R08: 001e R09: [ 188.603154] R10: 00042831 R11: 0246 R12: [ 188.610247] R13: R14: 00042831 R15: [ 188.617366] Code: ec 74 79 48 bd 00 02 00 00 00 00 ad de 31 f6 48 c7 c7 98 62 eb 82 49 39 ed 40 0f 94 c6 31 c9 31 d2 e8 d5 5f d7 ff 49 39 ed 74 65 <49> 8b 6d 00 31 f6 48 c7 c7 68 62 eb 82 48 39 dd 40 0f 95 c6 31 [ 188.636703] RIP: __list_del_entry_valid+0x60/0x110 RSP: 88001908fd98 [ 188.644757] ---[ end trace b5beff89e3c68ca1 ]--- [ 188.649780] Kernel panic - not syncing: Fatal exception [ 188.657072] Kernel Offset: disabled Elapsed time: 210 #!/bin/bash To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/x8
[lkp-robot] [Print the memcg's name when system] c385a55f52: BUG:KASAN:null-ptr-deref_in_m
FYI, we noticed the following commit (built with gcc-6): commit: c385a55f521e1649051d7f653bec9aa0ce711c9e ("Print the memcg's name when system-wide OOM happened") url: https://github.com/0day-ci/linux/commits/ufo19890607/Print-the-memcg-s-name-when-system-wide-OOM-happened/20180522-033834 in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 6741c4bb38 | c385a55f52 | +--+++ | boot_successes | 0 | 0 | | boot_failures| 12 | 30 | | invoked_oom-killer:gfp_mask=0x | 12 | 29 | | Mem-Info | 12 || | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 12 || | BUG:KASAN:null-ptr-deref_in_m| 0 | 29 | | BUG:unable_to_handle_kernel | 0 | 29 | | Oops:#[##] | 0 | 29 | | RIP:mem_cgroup_print_oom_memcg_name | 0 | 29 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 29 | | BUG:kernel_hang_in_boot_stage| 0 | 1 | +--+++ [5.366081] BUG: KASAN: null-ptr-deref in mem_cgroup_print_oom_memcg_name+0xdb/0x130 [5.366817] Read of size 8 at addr by task swapper/0/1 [5.366817] [5.366817] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.17.0-rc6-00081-gc385a55 #2 [5.370063] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [5.370063] Call Trace: [5.370063] dump_stack+0x137/0x1d5 [5.376789] ? mem_cgroup_print_oom_memcg_name+0xdb/0x130 [5.376789] kasan_report+0x330/0x3c0 [5.376789] __asan_load8+0x7d/0x80 [5.376789] mem_cgroup_print_oom_memcg_name+0xdb/0x130 [5.380065] dump_header+0x161/0x756 [5.380065] ? __asan_loadN+0xf/0x20 [5.380065] out_of_memory+0x69e/0x860 [5.380065] ? unregister_oom_notifier+0x20/0x20 [5.380065] __alloc_pages_slowpath+0x1399/0x1d20 [5.383398] ? fs_reclaim_release+0x60/0x60 [5.383398] ? __asan_loadN+0xf/0x20 [5.383398] ? ftrace_likely_update+0x8c/0xb0 [5.383398] ? __asan_loadN+0xf/0x20 [5.386811] __alloc_pages_nodemask+0x507/0x820 [5.386811] ? __alloc_pages_slowpath+0x1d20/0x1d20 [5.386811] ? __asan_loadN+0xf/0x20 [5.396789] cache_grow_begin+0x137/0x1260 [5.396789] ? fs_reclaim_release+0x3b/0x60 [5.403389] ? __asan_loadN+0xf/0x20 [5.403389] cache_alloc_refill+0x3c6/0x7d0 [5.403389] kmem_cache_alloc+0x1ba/0x540 [5.403389] getname_flags+0x7b/0x5c0 [5.406793] ? __asan_loadN+0xf/0x20 [5.410056] ? _parse_integer+0x1b3/0x1d0 [5.410056] user_path_at_empty+0x23/0x40 [5.410056] vfs_statx+0x191/0x250 [5.410056] ? __do_compat_sys_newfstat+0x100/0x100 [5.410056] clean_path+0x94/0x177 [5.416793] ? do_reset+0x85/0x85 [5.416793] ? __asan_loadN+0xf/0x20 [5.416793] ? trace_hardirqs_on+0x37/0x2c0 [5.416793] ? __asan_loadN+0xf/0x20 [5.416793] ? strcmp+0x5c/0xc0 [5.420054] do_name+0xc3/0x509 [5.420054] ? write_buffer+0x31/0x4c [5.420054] write_buffer+0x39/0x4c [5.423389] flush_buffer+0x110/0x140 [5.423389] __gunzip+0x667/0x842 [5.426788] ? bunzip2+0xa5b/0xa5b [5.430063] ? error+0x51/0x51 [5.430063] ? __gunzip+0x842/0x842 [5.430063] gunzip+0x11/0x13 [5.430063] ? do_start+0x23/0x23 [5.430063] unpack_to_rootfs+0x355/0x645 [5.436806] ? do_start+0x23/0x23 [5.436806] ? kmsg_dump_rewind+0xd0/0xf3 [5.436806] ? do_collect+0xc9/0xc9 [5.436806] populate_rootfs+0xf4/0x308 [5.436806] ? unpack_to_rootfs+0x645/0x645 [5.443389] do_one_initcall+0x289/0x755 [5.443389] ? trace_event_raw_event_initcall_finish+0x270/0x270 [5.443389] ? kasan_check_write+0x20/0x20 [5.446790] ? ftrace_likely_update+0x8c/0xb0 [5.446790] ? do_early_param+0x11b/0x11b [5.446790] ? cpumask_check+0x77/0x90 [5.446790] ? __asan_loadN+0xf/0x20 [5.453387] ? do_early_param+0x11b/0x11b [5.453387] kernel_init_freeable+0x1c1/0x2e6 [5.453387] ? rest_init+0x110/0x110 [5.453387] kernel_init+0x11/0x200 [5.453387] ? rest_init+0x110/0x110 [5.4533
[lkp-robot] [mm, oom] 2d251ff6e6: BUG:unable_to_handle_kernel
FYI, we noticed the following commit (built with gcc-7): commit: 2d251ff6e66d7978b3e7a9c69e99b7150de26926 ("mm, oom: fix unnecessary killing of additional processes") url: https://github.com/0day-ci/linux/commits/David-Rientjes/mm-oom-fix-unnecessary-killing-of-additional-processes/20180527-033815 base: git://git.cmpxchg.org/linux-mmotm.git master in testcase: boot on test machine: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -m 360M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 0b018d19da | 2d251ff6e6 | +--+++ | boot_successes | 4 | 0 | | boot_failures| 4 | 4 | | invoked_oom-killer:gfp_mask=0x | 4 | 2 | | Mem-Info | 4 | 4 | | Out_of_memory:Kill_process | 4 | 4 | | Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 4 || | BUG:unable_to_handle_kernel | 0 | 4 | | Oops:#[##] | 0 | 4 | | EIP:oom_reaper | 0 | 4 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 4 | +--+++ [ 11.063029] BUG: unable to handle kernel NULL pointer dereference at 0204 [ 11.064104] *pde = [ 11.064548] Oops: [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 11.065328] CPU: 0 PID: 21 Comm: oom_reaper Not tainted 4.17.0-rc5-mm1-00218-g2d251ff #1 [ 11.066537] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 11.067786] EIP: oom_reaper+0x115/0x296 [ 11.068374] Code: 01 00 00 bb 54 92 65 7e c7 05 ac a8 65 7e 00 02 00 00 b8 80 a8 65 7e e8 9c a2 63 00 85 db 0f 84 fa fe ff ff 8b 83 ac 04 00 00 <8b> b0 04 02 00 00 8b 86 c8 02 00 00 0f ba e0 15 0f 82 55 01 00 00 [ 11.071210] EAX: EBX: 7e659254 ECX: 0001 EDX: [ 11.072142] ESI: 78090960 EDI: 7816b500 EBP: 78167f8c ESP: 78167f68 [ 11.073073] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010202 [ 11.074075] CR0: 80050033 CR2: 0204 CR3: 033d7000 CR4: 00040690 [ 11.074994] Call Trace: [ 11.075380] ? wait_woken+0x75/0x75 [ 11.075911] ? kthread+0xef/0xf4 [ 11.076413] ? __oom_reap_task_mm+0x6f/0x6f [ 11.077036] ? kthread_create_on_node+0x1a/0x1a [ 11.077718] ? ret_from_fork+0x19/0x24 [ 11.078286] Modules linked in: [ 11.078747] CR2: 0204 [ 11.079253] ---[ end trace 881b7ebfce401a98 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.17.0-rc5-mm1 Kernel Configuration # CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set CONFIG_KERNEL
[lkp-robot] [rcu] e46874dd99: WARNING:suspicious_RCU_usage
FYI, we noticed the following commit (built with gcc-7): commit: e46874dd99fa8ef78802bee8e80fe2844ae95cd1 ("[PATCH RFC tip/core/rcu 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled") url: https://github.com/0day-ci/linux/commits/Paul-E-McKenney/RCU-consolidation-patches/20180628-045310 base: https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git rcu/next in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | bd917f682b | e46874dd99 | +--+++ | boot_successes | 208 | 112| | boot_failures| 2 | 95 | | invoked_oom-killer:gfp_mask=0x | 2 | 2 | | Mem-Info | 2 | 2 | | WARNING:suspicious_RCU_usage | 0 | 93 | | include/linux/rcupdate.h:#rcu_read_lock()used_illegally_while_idle | 0 | 93 | | WARNING:possible_circular_locking_dependency_detected| 0 | 89 | | include/linux/cgroup.h:#suspicious_rcu_dereference_check()usage | 0 | 1 | | include/linux/rcupdate.h:#rcu_read_unlock()used_illegally_while_idle | 0 | 4 | | BUG:kernel_hang_in_test_stage| 0 | 1 | | WARNING:possible_recursive_locking_detected | 0 | 1 | +--+++ [ 112.105779] WARNING: suspicious RCU usage [ 112.112065] 4.18.0-rc1-00121-ge46874d #1 Not tainted [ 112.119508] - [ 112.125574] include/linux/rcupdate.h:631 rcu_read_lock() used illegally while idle! [ 112.139965] [ 112.139965] other info that might help us debug this: [ 112.139965] [ 112.152087] [ 112.152087] RCU used illegally from idle CPU! [ 112.152087] rcu_scheduler_active = 2, debug_locks = 0 [ 112.168258] RCU used illegally from extended quiescent state! [ 112.177070] 3 locks held by grep/3278: [ 112.182897] #0: (ptrval) (&rsp->gp_wq){..-.}, at: swake_up+0x16/0x46 [ 112.193916] #1: (ptrval) (&p->pi_lock){-.-.}, at: try_to_wake_up+0x42/0x56f [ 112.205522] #2: (ptrval) (rcu_read_lock){}, at: select_task_rq_rt+0x22/0x20c [ 112.218160] [ 112.218160] stack backtrace: [ 112.224902] CPU: 0 PID: 3278 Comm: grep Not tainted 4.18.0-rc1-00121-ge46874d #1 [ 112.236302] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 112.248488] Call Trace: [ 112.252248] dump_stack+0xfa/0x16c [ 112.257374] lockdep_rcu_suspicious+0x166/0x176 [ 112.264109] select_task_rq_rt+0xd5/0x20c [ 112.270034] try_to_wake_up+0x257/0x56f [ 112.275647] wake_up_process+0x17/0x20 [ 112.281349] swake_up_locked+0x2d/0x67 [ 112.286922] swake_up+0x28/0x46 [ 112.291591] rcu_gp_kthread_wake+0x52/0x5b [ 112.297615] rcu_report_qs_rsp+0xaa/0xb6 [ 112.303417] rcu_preempt_deferred_qs_irqrestore+0x47a/0x5eb [ 112.311584] rcu_preempt_deferred_qs+0x5e/0x6a [ 112.318165] rcu_eqs_enter+0x14a/0x156 [ 112.325255] rcu_user_enter+0x8e/0x97 [ 112.330797] __context_tracking_enter+0x92/0xb1 [ 112.337376] prepare_exit_to_usermode+0x149/0x155 [ 112.344317] ? async_page_fault+0x5/0x20 [ 112.350209] retint_user+0x8/0x18 [ 112.355102] RIP: 0033:0x7f2062ad8dc0 [ 112.360389] Code: 00 00 e8 d3 e3 f8 ff 48 8d 0d bc ec 0d 00 48 8d 35 45 c4 0d 00 48 8d 3d 25 87 0d 00 ba e2 00 00 00 e8 b4 e3 f8 ff 0f 1f 40 00 <41> 57 31 c0 41 56 41 55 41 54 55 89 fd 53 48 83 ec 18 83 fe 01 0f [ 112.387996] RSP: 002b:7ffe5cc3a488 EFLAGS: 00010246 [ 112.395645] RAX: 0001 RBX: 0004 RCX: 7f206321c040 [ 112.405946] RDX: 7ffe5cc3a550 RSI: 000d RDI: 00bc [ 112.416289] RBP: 7ffe5cc3a528 R08: 7fff R09: 000e [ 112.426561] R10: 7ffe5cc3a260 R11: 7ffe5cc3a3e0 R12: 7f2062dea730 [ 112.437191] R13: 7ffe5cc3a550 R14: 7f2062dea730 R15: [ 112.447785] [ 112.447791] == [ 112.447815] WARNING: possible circular locking dependency detected [ 112.447818] 4.18.0-rc1-00121-ge46874d #1 Not tainted [ 112.447821] -- [ 112.447824] grep/3278 is trying to acquire lock: [ 112.44784
linux-kernel@vger.kernel.org
FYI, we noticed the following commit (built with gcc-7): commit: 32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f ("[PATCH] perf tests: Fix regex for record+probe_libc_inet_pton.sh") url: https://github.com/0day-ci/linux/commits/Sandipan-Das/perf-tests-Fix-regex-for-record-probe_libc_inet_pton-sh/20180521-130408 in testcase: perf-sanity-tests with following parameters: perf_compiler: gcc on test machine: qemu-system-x86_64 -enable-kvm -cpu kvm64,+ssse3 -smp 2 -m 8G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): 2018-05-22 17:41:14 sudo /usr/src/linux-perf-x86_64-fedora-25-32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f/tools/perf/perf test 62 62: probe libc's inet_pton & backtrace it with ping : FAILED! To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong #!/bin/sh export_top_env() { export suite='perf-sanity-tests' export testcase='perf-sanity-tests' export category='functional' export job_origin='/lkp/lkp/src/allot/rand/vm-lkp-nex04-8G/perf-sanity-tests.yaml' export testbox='vm-lkp-nex04-8G-2' export tbox_group='vm-lkp-nex04-8G' export kconfig='x86_64-fedora-25' export compiler='gcc-7' export queue='bisect' export branch='linux-devel/devel-spot-201805211347' export commit='32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f' export submit_id='5b03dff30b9a932b3a767d71' export job_file='/lkp/scheduled/vm-lkp-nex04-8G-2/perf-sanity-tests-gcc-debian-x86_64-2016-08-31.cgz-32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f-20180522-11066-yve2a-1.yaml' export id='1bdd8b616b538b8db798a8cdad4603b67ca4566f' export model='qemu-system-x86_64 -enable-kvm -cpu kvm64,+ssse3' export nr_vm=10 export nr_cpu=2 export memory='8G' export hdd_partitions='/dev/vda' export need_linux_perf=true export need_kconfig='CONFIG_KVM_GUEST=y' export ssh_base_port=23250 export rootfs='debian-x86_64-2016-08-31.cgz' export enqueue_time='2018-05-22 17:16:35 +0800' export _id='5b03e2ff0b9a932b3a767d72' export _rt='/result/perf-sanity-tests/gcc/vm-lkp-nex04-8G/debian-x86_64-2016-08-31.cgz/x86_64-fedora-25/gcc-7/32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f' export user='lkp' export result_root='/result/perf-sanity-tests/gcc/vm-lkp-nex04-8G/debian-x86_64-2016-08-31.cgz/x86_64-fedora-25/gcc-7/32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f/0' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-2016-08-31.cgz' export bootloader_append='root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-nex04-8G-2/perf-sanity-tests-gcc-debian-x86_64-2016-08-31.cgz-32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f-20180522-11066-yve2a-1.yaml ARCH=x86_64 kconfig=x86_64-fedora-25 branch=linux-devel/devel-spot-201805211347 commit=32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f BOOT_IMAGE=/pkg/linux/x86_64-fedora-25/gcc-7/32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f/vmlinuz-4.17.0-rc5-00073-g32a4deb max_uptime=3600 RESULT_ROOT=/result/perf-sanity-tests/gcc/vm-lkp-nex04-8G/debian-x86_64-2016-08-31.cgz/x86_64-fedora-25/gcc-7/32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw' export modules_initrd='/pkg/linux/x86_64-fedora-25/gcc-7/32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2016-08-31.cgz/run-ipconfig_2016-11-15.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2018-05-14.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/rsync-rootfs_2016-11-15.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/perf-sanity-tests_2017-12-29.cgz,/osimage/pkg/debian-x86_64-2016-08-31.cgz/perf-x86_64-771c577c23ba_2018-05-21.cgz' export linux_perf_initrd='/pkg/linux/x86_64-fedora-25/gcc-7/32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f/linux-perf.cgz' export lkp_initrd='/lkp/lkp/lkp-x86_64.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export kernel='/pkg/linux/x86_64-fedora-25/gcc-7/32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f/vmlinuz-4.17.0-rc5-00073-g32a4deb' export dequeue_time='2018-05-22 17:33:08 +0800' export job_initrd='/lkp/scheduled/vm-lkp-nex04-8G-2/perf-sanity-tests-gcc-debian-x86_64-2016-08-31.cgz-32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f-20180522-11066-yve2a-1.cgz' [ -n "$LKP_SRC" ] || export LKP_SRC=/lkp/${user:-lkp}/src } run_job() { echo $$ > $TMP/
[lkp-robot] [watchdog/softlockup] 4808e7a5dc: BUG:KASAN:null-ptr-deref_in_h
FYI, we noticed the following commit (built with gcc-5): commit: 4808e7a5dc055fd8776e6b59e02775730ea716f6 ("watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work") url: https://github.com/0day-ci/linux/commits/Peter-Zijlstra/kthread-smpboot-More-fixes/20180613-003329 in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || 1e88b12632 | 4808e7a5dc | ++++ | boot_successes | 0 | 0 | | boot_failures | 10 | 11 | | WARNING:at_lib/debugobjects.c:#__debug_object_init | 10 || | RIP:__debug_object_init| 10 || | WARNING:suspicious_RCU_usage | 10 || | lib/test_rhashtable.c:#suspicious_rcu_dereference_protected()usage | 10 || | WARNING:possible_circular_locking_dependency_detected | 9 || | BUG:workqueue_lockup-pool | 1 || | BUG:KASAN:null-ptr-deref_in_h | 0 | 11 | | BUG:unable_to_handle_kernel| 0 | 11 | | Oops:#[##] | 0 | 11 | | RIP:hrtimer_active | 0 | 11 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 11 | ++++ [0.037000] BUG: KASAN: null-ptr-deref in hrtimer_active+0x70/0xa0 [0.037000] Read of size 4 at addr 0010 by task swapper/1 [0.037000] [0.037000] CPU: 0 PID: 1 Comm: swapper Tainted: GT 4.17.0-11348-g4808e7a #1 [0.037000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.037000] Call Trace: [0.037000] ? kasan_report+0xe3/0x360 [0.037000] ? hrtimer_active+0x70/0xa0 [0.037000] ? hrtimer_try_to_cancel+0x17/0x210 [0.037000] ? hrtimer_cancel+0x15/0x20 [0.037000] ? softlockup_stop_fn+0x11/0x20 [0.037000] ? lockup_detector_reconfigure+0x25/0xa0 [0.037000] ? lockup_detector_init+0x51/0x5d [0.037000] ? kernel_init_freeable+0xa9/0x243 [0.037000] ? rest_init+0xd0/0xd0 [0.037000] ? kernel_init+0xf/0x120 [0.037000] ? rest_init+0xd0/0xd0 [0.037000] ? ret_from_fork+0x24/0x30 [0.037000] == [0.037000] Disabling lock debugging due to kernel taint [0.037032] BUG: unable to handle kernel NULL pointer dereference at 0010 [0.038000] PGD 0 P4D 0 [0.038000] Oops: [#1] PREEMPT KASAN PTI [0.038000] CPU: 0 PID: 1 Comm: swapper Tainted: GB T 4.17.0-11348-g4808e7a #1 [0.038000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [0.038000] RIP: 0010:hrtimer_active+0x70/0xa0 [0.038000] Code: 11 4c 89 f7 e8 a1 05 19 00 48 8b 45 30 48 39 c3 74 36 4c 89 f7 e8 90 05 19 00 48 8b 5d 30 4c 8d 6b 10 4c 89 ef e8 80 04 19 00 <44> 8b 63 10 41 f6 c4 01 74 a2 f3 90 eb ea 5b b8 01 00 00 00 5d 41 [0.038000] RSP: :8815fe68 EFLAGS: 00010282 [0.038000] RAX: 88154900 RBX: RCX: [0.038000] RDX: 0001 RSI: RDI: 8242a236 [0.038000] RBP: 8351ef20 R08: R09: [0.038000] R10: 0001 R11: fbfff09346c7 R12: [0.038000] R13: 0010 R14: 8351ef50 R15: 8351ef58 [0.038000] FS: () GS:83482000() knlGS: [0.038000] CS: 0010 DS: ES: CR0: 80050033 [0.038000] CR2: 0010 CR3: 03424000 CR4: 06b0 [0.038000] Call Trace: [0.038000] ? hrtimer_try_to_cancel+0x17/0x210 [0.038000] ? hrtimer_cancel+0x15/0x20 [0.038000] ? softlockup_stop_fn+0x11/0x20 [0.038000] ? lockup_detector_reconfigure+0x25/0xa0 [0.038000] ? lockup_detector_init+0x51/0x5d [0.038000] ? kernel_init_freeable+0xa9/0x243 [0.038000] ? rest_init+0xd0/0xd0 [0.038000] ? kernel_init+0xf/0x120 [0.038000] ? rest_init+0xd0/0xd0 [0.038000] ? ret_from_fork+0x24/0x30
[lkp-robot] [kernfs, sysfs, cgroup, intel_rdt] 0dd4eca846: kernel_BUG_at_fs/super.c
FYI, we noticed the following commit (built with gcc-6): commit: 0dd4eca846629b5dc7d11ca40ae2a1379334b9e4 ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | 76224b97f0 | 0dd4eca846 | +--+++ | boot_successes | 8 | 2 | | boot_failures| 0 | 4 | | kernel_BUG_at_fs/super.c | 0 | 4 | | invalid_opcode:#[##] | 0 | 4 | | EIP:vfs_get_tree | 0 | 4 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 4 | +--+++ [7.295290] kernel BUG at fs/super.c:1775! [7.297885] invalid opcode: [#1] PREEMPT SMP [7.303028] CPU: 0 PID: 1 Comm: init Not tainted 4.17.0-rc5-00204-g0dd4eca #54 [7.311821] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [7.322843] EIP: vfs_get_tree+0x16d/0x170 [7.326346] EFLAGS: 00010246 CPU: 0 [7.327808] EAX: 0030 EBX: ce1a19c0 ECX: EDX: ce1a19c0 [7.330450] ESI: ce1a19c0 EDI: EBP: c7de1f04 ESP: c7de1eec [7.336866] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [7.341293] CR0: 80050033 CR2: b7f3f588 CR3: 0bab1000 CR4: 0690 [7.346567] Call Trace: [7.349189] ? vfs_set_fs_source+0x70/0x70 [7.350853] ? vfs_set_fs_source+0x70/0x70 [7.352936] do_mount+0x21a/0xaa0 [7.355547] ksys_mount+0xc4/0x140 [7.359244] sys_mount+0x19/0x20 [7.362170] do_int80_syscall_32+0x76/0x190 [7.367179] entry_INT80_32+0x36/0x36 [7.371221] EIP: 0xb7f36c3e [7.375471] EFLAGS: 0296 CPU: 0 [7.378821] EAX: ffda EBX: 0804a3a9 ECX: 0804a3a1 EDX: 0804a3a9 [7.381308] ESI: 000e EDI: EBP: bfc00db8 ESP: bfc00d1c [7.383960] DS: 007b ES: 007b FS: GS: 0033 SS: 007b [7.388781] Code: c7 43 0c 00 00 00 00 e8 b2 e2 ff ff b8 f4 ff ff ff eb 8f 8d 76 00 b8 fe ff ff ff c3 8b 43 04 ff 30 68 e8 7d ec c1 e8 d4 b1 f0 ff <0f> 0b 90 55 89 c8 89 e5 5d c3 89 f6 8d bc 27 00 00 00 00 55 31 [7.408953] EIP: vfs_get_tree+0x16d/0x170 SS:ESP: 0068:c7de1eec [7.420191] ---[ end trace 2ff80a4e86e2d2e8 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.17.0-rc5 Kernel Configuration # CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set CONFIG_KERNEL_LZ4=y CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SWAP is not set # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set # CONFIG_CROSS_MEMORY_ATTACH is not set CONFIG_USELIB=y # CONFIG_AUDIT is
[lkp-robot] [x86/vdso] ab1bcc4420: BUG:kernel_hang_in_boot_stage
FYI, we noticed the following commit (built with gcc-4.9): commit: ab1bcc442070315bd0ce963331d5bb93d5c5476e ("x86/vdso: Move out the CPU number store") url: https://github.com/0day-ci/linux/commits/Chang-S-Bae/x86-fsgsbase-64-Introduce-FS-GS-base-helper-functions/20180605-095329 in testcase: boot on test machine: qemu-system-i386 -enable-kvm -cpu Haswell,+smep,+smap -m 360M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | 053d1414b3 | ab1bcc4420 | +---+++ | boot_successes| 8 | 0 | | boot_failures | 0 | 8 | | BUG:kernel_hang_in_boot_stage | 0 | 8 | +---+++ [0.00] clocksource: refined-jiffies: mask: 0x max_cycles: 0x, max_idle_ns: 1911260446275 ns [0.00] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1 [0.00] percpu: Embedded 342 pages/cpu @(ptrval) s1371088 r0 d29744 u1400832 [0.00] pcpu-alloc: s1371088 r0 d29744 u1400832 alloc=342*4096 [0.00] pcpu-alloc: [0] 0 BUG: kernel hang in boot stage Linux version 4.17.0-rc3-00290-gab1bcc4 #1 Command line: ip=vm-vp-quantal-i386-50::dhcp root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-vp-quantal-i386-50/boot-1-quantal-core-i386.cgz-ab1bcc442070315bd0ce963331d5bb93d5c5476e-20180610-7731-3wa87x-0.yaml ARCH=i386 kconfig=i386-randconfig-h1-06101053 branch=linux-devel/devel-catchup-201806101444 commit=ab1bcc442070315bd0ce963331d5bb93d5c5476e BOOT_IMAGE=/pkg/linux/i386-randconfig-h1-06101053/gcc-4.9/ab1bcc442070315bd0ce963331d5bb93d5c5476e/vmlinuz-4.17.0-rc3-00290-gab1bcc4 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-vp-quantal-i386/quantal-core-i386.cgz/i386-randconfig-h1-06101053/gcc-4.9/ab1bcc442070315bd0ce963331d5bb93d5c5476e/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw drbd.minor_count=8 rcuperf.shutdown=0 Elapsed time: 560 To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.17.0-rc3 Kernel Configuration # CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_FILTER_PGPROT=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_X86_32_SMP=y CONFIG_X86_32_LAZY_GS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMPILE="" # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set CONFIG_KERNEL_LZO=y # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y # CONFIG_POSIX_MQUEUE is not set CONFIG_CROSS_MEMORY_ATTACH=y CONFIG_USELIB=y CONFIG_AUDIT=y CONFIG_HAVE_ARCH_AUDITSYSCALL=y CONFIG_AUDITSYSCALL=y CONFIG_AUDIT_WATCH=y CONFIG_AUDIT_TREE=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y CONFIG_GENERIC_PENDING_IRQ=y CONFIG_GENERIC_IRQ_MIGRATION=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG
[lkp-robot] [rcutorture] 46e26223e3: WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_stats_print
FYI, we noticed the following commit (built with gcc-4.9): commit: 46e26223e39c64763e321f229e324be15179c505 ("rcutorture: Make boost test more robust") url: https://github.com/0day-ci/linux/commits/Joel-Fernandes/rcutorture-Disable-RT-throttling-for-boost-tests/20180611-074731 base: https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git rcu/next in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -smp 2 -m 320M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || c71f2f97e9 | 46e26223e3 | ++++ | boot_successes | 0 | 0 | | boot_failures | 16 | 12 | | WARNING:suspicious_RCU_usage | 16 | 12 | | lib/test_rhashtable.c:#suspicious_rcu_dereference_protected()usage | 16 | 12 | | BUG:workqueue_lockup-pool | 5 || | INFO:task_blocked_for_more_than#seconds| 5 | 3 | | WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_stats_print| 0 | 12 | | EIP:rcu_torture_stats_print| 0 | 12 | ++++ [ 74.158185] WARNING: CPU: 0 PID: 41 at kernel/rcu/rcutorture.c:1324 rcu_torture_stats_print+0x443/0x520 [ 74.160583] CPU: 0 PID: 41 Comm: rcu_torture_sta Not tainted 4.17.0-rc1-00151-g46e2622 #1 [ 74.161981] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 74.163331] EIP: rcu_torture_stats_print+0x443/0x520 [ 74.164187] EFLAGS: 00010202 CPU: 0 [ 74.164775] EAX: 7a8dcaa0 EBX: ECX: 0001 EDX: [ 74.165755] ESI: 8979df34 EDI: 7a607f32 EBP: 8979df6c ESP: 8979dee0 [ 74.166780] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 [ 74.167668] CR0: 80050033 CR2: 0806e270 CR3: 0ecc6000 CR4: 0690 [ 74.168721] Call Trace: [ 74.169145] ? schedule_timeout+0x286/0x6d0 [ 74.169913] rcu_torture_stats+0x34/0x80 [ 74.170576] kthread+0xe0/0x110 [ 74.171105] ? rcu_torture_stats_print+0x520/0x520 [ 74.171900] ? __kthread_bind_mask+0x40/0x40 [ 74.172718] ret_from_fork+0x2e/0x38 [ 74.173313] Code: 04 c7 04 24 f9 1a 5f 7a e8 64 01 ff ff ff 05 28 bc 26 7b 31 c9 ba 01 00 00 00 b8 a0 ca 8d 7a c7 04 24 01 00 00 00 e8 fd 89 05 00 <0f> 0b 31 c9 ba 01 00 00 00 b8 88 ca 8d 7a c7 04 24 01 00 00 00 [ 74.176618] irq event stamp: 138 [ 74.177169] hardirqs last enabled at (137): [<790c173d>] console_unlock+0x49d/0x6a0 [ 74.178459] hardirqs last disabled at (138): [<7a1a2a1c>] common_exception+0x46/0x66 [ 74.179719] softirqs last enabled at (120): [<7a1a4b60>] __do_softirq+0x4b0/0x57d [ 74.181013] softirqs last disabled at (89): [<7901e76c>] call_on_stack+0x4c/0x60 [ 74.182450] ---[ end trace 834273b866f313c1 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Xiaolong # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.17.0-rc1 Kernel Configuration # CONFIG_X86_32=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf32-i386" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/i386_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_BITS_MAX=16 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_BUG=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=2 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_CROSS_COMP
[LKP] [xarray] 93eb07f72c: RIP:__sanitizer_cov_trace_pc
FYI, we noticed the following commit (built with gcc-7): commit: 93eb07f72c8d86f8fe5e90907df1cc037f6ffbb7 ("xarray: Move multiorder_shrink to kernel tests") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 768M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | d6427f8179 | 93eb07f72c | +-+++ | boot_successes | 0 | 0 | | boot_failures | 80 | 94 | | WARNING:at_mm/slab_common.c:#kmalloc_slab | 80 | 94 | | RIP:kmalloc_slab| 80 | 94 | | Mem-Info| 80 | 94 | | invoked_oom-killer:gfp_mask=0x | 65 | 52 | | Out_of_memory_and_no_killable_processes | 63 | 52 | | Kernel_panic-not_syncing:System_is_deadlocked_on_memory | 63 | 52 | | BUG:soft_lockup-CPU##stuck_for#s| 2 | 34 | | RIP:native_flush_tlb_global | 1 | | | Kernel_panic-not_syncing:softlockup:hung_tasks | 2 | 34 | | RIP:lock_acquire| 1 | 4 | | RIP:poison_obj | 0 | 1 | | RIP:__sanitizer_cov_trace_pc| 0 | 21 | | RIP:lock_release| 0 | 2 | | RIP:ftrace_likely_update| 0 | 2 | | RIP:check_xa_mark_1 | 0 | 1 | | RIP:kmem_cache_alloc| 0 | 1 | | RIP:xas_find| 0 | 2 | | INFO:task_blocked_for_more_than#seconds | 0 | 2 | +-+++ [ 105.288689] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper/0:1] [ 105.288689] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GW 4.19.0-rc5-00319-g93eb07f #1 [ 105.288689] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 105.288689] RIP: 0010:__sanitizer_cov_trace_pc+0x54/0x86 [ 105.288689] Code: 7e 81 e2 00 01 1f 00 75 1a 48 ff 05 32 07 e9 03 8b 81 a0 23 00 00 83 f8 02 0f 94 c0 48 ff 05 27 07 e9 03 48 ff 05 40 07 e9 03 <84> c0 74 2d 48 8b 91 a8 23 00 00 8b 89 a4 23 00 00 48 8b 02 48 ff [ 105.288689] RSP: :88002cb07d90 EFLAGS: 0207 ORIG_RAX: ff13 [ 105.288689] RAX: RBX: 88002cb07e08 RCX: 88002cb00040 [ 105.288689] RDX: RSI: 824eccbe RDI: 88002cb07e08 [ 105.288689] RBP: 003f R08: R09: [ 105.317811] R10: 88002cb07b38 R11: 0020 R12: [ 105.317811] R13: 83cd2358 R14: R15: 88ce1db0 [ 105.321794] FS: () GS:88002ce0() knlGS: [ 105.321794] CS: 0010 DS: ES: CR0: 80050033 [ 105.321794] CR2: CR3: 0346a000 CR4: 000406b0 [ 105.325769] DR0: DR1: DR2: [ 105.325769] DR3: DR6: fffe0ff0 DR7: 0400 [ 105.325769] Call Trace: [ 105.325769] xas_move_index+0xd/0x36 [ 105.329763] xas_advance+0x28/0x31 [ 105.329763] xas_find+0x282/0x2d9 [ 105.329763] check_xa_mark_1+0x9ad/0xf6a [ 105.329763] ? check_xa_alloc+0x55d/0x55d [ 105.333763] check_xa_mark+0x1b/0x45 [ 105.333763] xarray_checks+0x36/0x154 [ 105.333763] do_one_initcall+0x282/0x619 [ 105.333763] ? ftrace_likely_update+0x27a/0x2aa [ 105.333763] kernel_init_freeable+0x646/0x783 [ 105.337780] ? rest_init+0x1d4/0x1d4 [ 105.337780] kernel_init+0x12/0x21f [ 105.337780] ? rest_init+0x1d4/0x1d4 [ 105.337780] ret_from_fork+0x24/0x30 [ 105.337780] Kernel panic - not syncing: softlockup: hung tasks [ 105.341753] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GWL 4.19.0-rc5-00319-g93eb07f #1 [ 105.353765] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01
[ide] ec7d9c9ce8: WARNING:at_fs/proc/generic.c:#remove_proc_entry
FYI, we noticed the following commit (built with gcc-7): commit: ec7d9c9ce897174243af4fcd201dbfc34df0f3a3 ("ide: replace ->proc_fops with ->proc_show") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: rcutorture with following parameters: runtime: 300s test: default test-description: rcutorture is rcutorture kernel module load/unload test. test-url: https://www.kernel.org/doc/Documentation/RCU/torture.txt on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 768M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 61fb5c043f | ec7d9c9ce8 | +-+++ | boot_successes | 4 | 0 | | boot_failures | 0 | 4 | | WARNING:at_fs/proc/generic.c:#remove_proc_entry | 0 | 4 | | RIP:remove_proc_entry | 0 | 4 | +-+++ [ 44.180514] WARNING: CPU: 1 PID: 165 at fs/proc/generic.c:662 remove_proc_entry+0xb9/0x155 [ 44.196842] Modules linked in: bochs_drm(+) ttm drm_kms_helper drm input_leds piix(+) serio_raw drm_panel_orientation_quirks ide_core evbug evdev [ 44.217807] CPU: 1 PID: 165 Comm: udevd Not tainted 4.17.0-rc5-00040-gec7d9c9 #1 [ 44.229700] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 44.243024] RIP: 0010:remove_proc_entry+0xb9/0x155 [ 44.250863] RSP: 0018:c920bab0 EFLAGS: 00010296 [ 44.259380] RAX: RBX: RCX: c920b93c [ 44.270823] RDX: 0004 RSI: 0004 RDI: 0246 [ 44.282325] RBP: a001e188 R08: 0008 R09: [ 44.293739] R10: 8800283ab2d9 R11: 82d20e07 R12: 88001ebec200 [ 44.305176] R13: a0022180 R14: 0001 R15: 001b [ 44.316678] FS: 7f9d22f99780() GS:88002cb0() knlGS: [ 44.329702] CS: 0010 DS: ES: CR0: 80050033 [ 44.338938] CR2: 7f9d2263e670 CR3: 1dc6 CR4: 06e0 [ 44.350383] Call Trace: [ 44.354594] ide_proc_unregister_device+0x19/0x53 [ide_core] [ 44.364085] drive_release_dev+0x10/0x39 [ide_core] [ 44.371964] device_release+0x53/0x7b [ 44.377989] kobject_put+0x76/0x8d [ 44.384015] __ide_port_unregister_devices+0x1d/0x43 [ide_core] [ 44.393931] ide_host_remove+0x51/0x101 [ide_core] [ 44.413087] ide_pci_remove+0x4f/0x81 [ide_core] [ 44.420374] pci_device_remove+0x23/0x4d [ 44.426440] driver_probe_device+0x18a/0x30f [ 44.433112] __driver_attach+0x6b/0x8b [ 44.439045] ? driver_probe_device+0x30f/0x30f [ 44.445917] bus_for_each_dev+0x5f/0xa0 [ 44.452003] bus_add_driver+0xe4/0x1c9 [ 44.457812] driver_register+0x7d/0xaf [ 44.463765] piix_ide_init+0xb1/0x1000 [piix] [ 44.470604] ? fs_reclaim_release+0x9/0x22 [ 44.476925] ? 0xa004b000 [ 44.482171] do_one_initcall+0x6e/0x144 [ 44.488137] do_init_module+0x72/0x3b6 [ 44.493715] load_module+0x1c8b/0x1ec1 [ 44.499611] ? vfs_read+0xfe/0x10a [ 44.504987] ? __se_sys_finit_module+0x90/0xb6 [ 44.511865] __se_sys_finit_module+0x90/0xb6 [ 44.518537] do_syscall_64+0xe7/0x16c [ 44.524270] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 44.532115] RIP: 0033:0x7f9d2266e4a9 [ 44.537724] RSP: 002b:7ffc4a1959c8 EFLAGS: 0246 ORIG_RAX: 0139 [ 44.549316] RAX: ffda RBX: 00647160 RCX: 7f9d2266e4a9 [ 44.560147] RDX: RSI: 7f9d2293a0aa RDI: 0008 [ 44.571101] RBP: 7f9d2293a0aa R08: R09: 00647160 [ 44.581960] R10: 0008 R11: 0246 R12: [ 44.592881] R13: 0002 R14: R15: 00647160 [ 44.603836] Code: 8d b8 a8 00 00 00 e8 53 32 54 00 48 c7 c7 60 e3 03 82 e8 e2 45 55 00 48 85 db 75 13 48 89 ee 48 c7 c7 8f 1b ec 81 e8 55 45 eb ff <0f> 0b eb 7a 48 89 df e8 d0 b4 ff ff 8b 83 c8 00 00 00 66 25 00 [ 44.633074] ---[ end trace d0fa34ec8e604638 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Rong Chen # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.17.0-rc5 Kernel Configuration # CONFIG_64BIT=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_M
[iommu/of] 641fb0efbf: BUG:KASAN:null-ptr-deref_in_i
FYI, we noticed the following commit (built with gcc-7): commit: 641fb0efbff063ed57f108c2eb4a4d26dbd5badd ("iommu/of: Don't call iommu_ops->add_device directly") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 768M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || cc5aed44a3 | 641fb0efbf | ++++ | boot_successes | 42 | 0 | | boot_failures | 3 | 25 | | BUG:kernel_hang_in_boot-around-mounting-root_stage | 3 || | BUG:KASAN:null-ptr-deref_in_i | 0 | 25 | | BUG:unable_to_handle_kernel| 0 | 25 | | Oops:#[##] | 0 | 25 | | RIP:iommu_probe_device | 0 | 25 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 25 | ++++ [ 23.649624] BUG: KASAN: null-ptr-deref in iommu_probe_device+0x5b/0x70 [ 23.650408] Read of size 8 at addr 0058 by task swapper/1 [ 23.651175] [ 23.651380] CPU: 0 PID: 1 Comm: swapper Not tainted 4.20.0-rc1-00031-g641fb0e #2 [ 23.652267] Call Trace: [ 23.652588] kasan_report+0x200/0x350 [ 23.653055] iommu_probe_device+0x5b/0x70 [ 23.653564] of_iommu_configure+0x1f0/0x290 [ 23.654097] ? of_get_dma_window+0x3e0/0x3e0 [ 23.654636] ? of_get_next_parent+0x51/0x70 [ 23.655158] ? lock_downgrade+0x290/0x290 [ 23.655665] ? of_get_next_parent+0x22/0x70 [ 23.656191] ? do_raw_spin_unlock+0xda/0xf0 [ 23.656722] ? of_get_next_parent+0x5a/0x70 [ 23.657252] of_dma_configure+0x2fe/0x3b0 [ 23.657764] ? of_device_get_match_data+0x90/0x90 [ 23.658358] ? devres_remove+0x37/0x1b0 [ 23.658853] ? __kasan_slab_free+0x200/0x210 [ 23.659563] ? kfree+0x15a/0x1f0 [ 23.659980] ? __driver_attach+0x170/0x170 [ 23.660494] ? devres_free+0x3d/0x50 [ 23.660950] ? __platform_register_drivers+0x150/0x150 [ 23.661586] platform_dma_configure+0x3d/0xd0 [ 23.662138] really_probe+0x1a3/0x5d0 [ 23.662619] ? __driver_attach+0x170/0x170 [ 23.663141] driver_probe_device+0x10a/0x170 [ 23.663712] __device_attach_driver+0x139/0x170 [ 23.664276] bus_for_each_drv+0xda/0x160 [ 23.664811] ? bus_for_each_dev+0x170/0x170 [ 23.665360] ? do_raw_spin_unlock+0xda/0xf0 [ 23.665913] __device_attach+0x141/0x210 [ 23.666431] ? device_bind_driver+0x80/0x80 [ 23.666961] ? kobject_uevent_env+0x9a0/0x9c0 [ 23.667538] bus_probe_device+0x6b/0x140 [ 23.668058] device_add+0x809/0xbd0 [ 23.668531] ? _dev_warn+0x110/0x110 [ 23.669003] ? of_get_property+0x50/0x50 [ 23.669519] ? do_raw_spin_unlock+0xda/0xf0 [ 23.670083] of_platform_device_create_pdata+0xf0/0x120 [ 23.670770] of_platform_bus_create+0x287/0x370 [ 23.671375] ? lock_downgrade+0x290/0x290 [ 23.671880] ? of_platform_device_create_pdata+0x120/0x120 [ 23.672561] ? of_get_next_child+0x1b/0x50 [ 23.673088] ? do_raw_spin_unlock+0xda/0xf0 [ 23.673636] of_platform_populate+0x87/0xf0 [ 23.674171] ? of_find_node_opts_by_path+0x1c7/0x1e0 [ 23.674801] of_unittest+0x2294/0x3659 [ 23.675285] ? dt_alloc_memory+0x22/0x22 [ 23.675788] ? initcall_blacklisted+0x101/0x160 [ 23.676364] ? try_to_run_init_process+0x40/0x40 [ 23.676954] ? kobject_add+0x149/0x180 [ 23.678220] ? ibft_init+0x66d/0x66d [ 23.678678] ? do_early_param+0xe1/0xe1 [ 23.679157] ? dt_alloc_memory+0x22/0x22 [ 23.679650] ? do_early_param+0xe1/0xe1 [ 23.680125] do_one_initcall+0xd2/0x200 [ 23.680618] ? initcall_blacklisted+0x160/0x160 [ 23.681174] ? kernel_init_freeable+0x12c/0x284 [ 23.681736] ? lock_downgrade+0x290/0x290 [ 23.682263] kernel_init_freeable+0x1ac/0x284 [ 23.682813] ? rest_init+0x140/0x140 [ 23.683287] kernel_init+0xf/0x160 [ 23.683725] ? _raw_spin_unlock_irq+0x1f/0x30 [ 23.684274] ? rest_init+0x140/0x140 [ 23.684737] ret_from_fork+0x35/0x40 [ 23.685200] == [ 23.686068] Disabling lock debugging due to kernel taint [ 23.686757] BUG: unable to handle kernel NULL pointer dereference at 0058 [ 23.687715] PGD 0 P4D 0 [ 23.688042] Oops: [#1] KASAN [ 23.688472] CPU: 0 PID: 1 Comm: swapper Tainted: GB 4.20.0-rc1-00
[vfs] cbc815d9ce: BUG:unable_to_handle_kernel
FYI, we noticed the following commit (built with gcc-6): commit: cbc815d9ce7ae30677c929e94b2e176d5f4a5a36 ("vfs: Simplify security mount option processing") https://git.kernel.org/cgit/linux/kernel/git/ebiederm/user-namespace.git mount-cleanups-testing in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 768M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | e06ef473d1 | cbc815d9ce | +--+++ | boot_successes | 4 | 0 | | boot_failures| 0 | 4 | | BUG:unable_to_handle_kernel | 0 | 4 | | Oops:#[##] | 0 | 4 | | RIP:join_options | 0 | 4 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 4 | +--+++ [2.150318] BUG: unable to handle kernel NULL pointer dereference at 0010 [2.153661] PGD 0 P4D 0 [2.153661] Oops: 0002 [#1] PTI [2.153661] CPU: 0 PID: 0 Comm: swapper Not tainted 4.20.0-rc1-00054-gcbc815d #1 [2.153661] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [2.153661] RIP: 0010:join_options+0x7c/0x85 [2.153661] Code: f6 74 27 4c 89 c9 48 89 f7 f2 ae 48 f7 d1 48 ff c9 4c 39 c2 74 06 c6 02 2c 48 ff c2 48 89 d7 48 83 c3 08 f3 a4 48 89 fa eb d1 02 00 4c 89 c0 5b 5d c3 31 c0 48 39 b7 f8 05 00 00 55 48 89 e5 [2.153661] RSP: :81e03da8 EFLAGS: 00010246 [2.153661] RAX: RBX: 8802fae8 RCX: [2.153661] RDX: 0010 RSI: RDI: [2.153661] RBP: 81e03db0 R08: 0010 R09: [2.153661] R10: 81e03dc0 R11: R12: [2.153661] R13: R14: 81e03e08 R15: [2.153661] FS: () GS:81e38000() knlGS: [2.153661] CS: 0010 DS: ES: CR0: 80050033 [2.153661] CR2: 0010 CR3: 01e1a000 CR4: 06b0 [2.153661] Call Trace: [2.153661] security_parse_options+0x4d/0x9e [2.153661] mount_fs+0x4e/0xad [2.153661] vfs_kern_mount+0x63/0x147 [2.153661] mnt_init+0x1b2/0x25d [2.153661] vfs_caches_init+0x7d/0xa8 [2.153661] start_kernel+0x5b3/0x63e [2.153661] x86_64_start_reservations+0x88/0xa9 [2.153661] x86_64_start_kernel+0x78/0x9b [2.153661] secondary_startup_64+0xa4/0xb0 [2.153661] Modules linked in: [2.153661] CR2: 0010 [2.153661] random: get_random_bytes called from init_oops_id+0x21/0x32 with crng_init=0 [2.153661] ---[ end trace b408251ec522a787 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.20.0-rc1 Kernel Configuration # # # Compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=60400 CONFIG_CLANG_VERSION=0 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set CONFIG_KERNEL_LZO=y # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set CONFIG_CROSS_MEMORY_ATTACH=y # CONFIG_USELIB is not set # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y CONFIG_GENERIC_IRQ_DEBUGFS=y CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_ARCH_CLOCKSOURCE_INIT=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CO
[rtc] 461e557b97: general_protection_fault:#[##]
FYI, we noticed the following commit (built with gcc-6): commit: 461e557b97277b693cd8008c32a9d01c7f8f453b ("rtc: nvmem: use devm_nvmem_register()") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +--+++ | | b28cc6cec3 | 461e557b97 | +--+++ | boot_successes | 38 | 6 | | boot_failures| 0 | 11 | | general_protection_fault:#[##] | 0 | 10 | | RIP:kernfs_name_hash | 0 | 11 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 11 | | BUG:unable_to_handle_kernel | 0 | 1 | | Oops:#[##] | 0 | 1 | +--+++ [ 109.608578] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 109.619447] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 109.772717] rtc_cmos 00:00: RTC can wake from S4 [ 109.902360] rtc_cmos 00:00: registered as rtc0 [ 109.942570] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes nvram, hpet irqs [ 109.954719] general protection fault: [#1] PREEMPT SMP PTI [ 109.958901] CPU: 0 PID: 1 Comm: swapper/0 Tainted: GT 4.20.0-rc1-9-g461e557 #1 [ 109.958901] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 109.958901] RIP: 0010:kernfs_name_hash+0x13/0x77 [ 109.958901] Code: 36 c2 81 74 04 48 8b 77 40 48 89 df e8 ea 9f 37 00 5a 5b 41 5c 5d c3 55 31 c0 48 89 e5 53 51 48 89 75 f0 48 83 c9 ff 48 89 fb ae 48 f7 d1 8d 79 ff 31 c9 48 39 cf 74 1f 48 0f be 04 0b 48 ff [ 109.958901] RSP: :880107c6bbd0 EFLAGS: 00010286 [ 109.958901] RAX: RBX: 00306d6172766e5f RCX: [ 109.958901] RDX: 81e48650 RSI: RDI: 00306d6172766e5f [ 109.958901] RBP: 880107c6bbe0 R08: 0002 R09: [ 109.958901] R10: 880107c6bc10 R11: R12: 00306d617276 [ 109.958901] R13: 00306d6172766e5f R14: R15: 880107e8c8a0 [ 109.958901] FS: () GS:88023780() knlGS: [ 109.958901] CS: 0010 DS: ES: CR0: 80050033 [ 109.958901] CR2: CR3: 01e12000 CR4: 000406b0 [ 109.958901] Call Trace: [ 109.958901] kernfs_find_ns+0x8d/0xd7 [ 109.958901] kernfs_remove_by_name_ns+0x48/0x74 [ 109.958901] sysfs_remove_bin_file+0x15/0x1a [ 109.958901] rtc_nvmem_unregister+0x1d/0x20 [ 109.958901] devm_rtc_release_device+0x10/0x2b [ 109.958901] release_nodes+0x143/0x166 [ 109.958901] devres_release_all+0x3f/0x42 [ 109.958901] really_probe+0x184/0x43b [ 109.958901] driver_probe_device+0xd3/0x109 [ 109.958901] __driver_attach+0xbb/0xed [ 109.958901] ? driver_probe_device+0x109/0x109 [ 109.958901] bus_for_each_dev+0x64/0x84 [ 109.958901] driver_attach+0x1d/0x20 [ 109.958901] bus_add_driver+0x12e/0x215 [ 109.958901] ? abb5zes3_driver_init+0x3e/0x3e [ 109.958901] driver_register+0x9e/0xd5 [ 109.958901] ? abb5zes3_driver_init+0x3e/0x3e [ 109.958901] pnp_register_driver+0x1d/0x20 [ 109.958901] cmos_init+0x29/0x124 [ 109.958901] do_one_initcall+0x64/0x13a [ 109.958901] kernel_init_freeable+0x1f5/0x312 [ 109.958901] ? rest_init+0xf1/0xf1 [ 109.958901] kernel_init+0x9/0xf5 [ 109.958901] ret_from_fork+0x1f/0x30 [ 109.958901] Modules linked in: [ 110.136281] _warn_unseeded_randomness: 532 callbacks suppressed [ 110.136448] random: get_random_bytes called from init_oops_id+0x21/0x32 with crng_init=0 [ 110.146604] ---[ end trace efccaee9b41f1345 ]--- [ 110.168116] RIP: 0010:kernfs_name_hash+0x13/0x77 [ 110.172161] Code: 36 c2 81 74 04 48 8b 77 40 48 89 df e8 ea 9f 37 00 5a 5b 41 5c 5d c3 55 31 c0 48 89 e5 53 51 48 89 75 f0 48 83 c9 ff 48 89 fb ae 48 f7 d1 8d 79 ff 31 c9 48 39 cf 74 1f 48 0f be 04 0b 48 ff [ 110.201209] RSP: :880107c6bbd0 EFLAGS: 00010286 [ 110.204379] RAX: RBX: 00306d6172766e5f RCX: [ 110.222891] RDX: 81e48650 RSI: RDI: 00306d6172766e5f [ 110.229003] RBP: 880107c6bbe0 R08: 0002 R09: [ 110.247797] R10: 880107c6bc10 R11: R12: 00306d617276 [ 110.252327] R13: 00306d6172766e5f R14: R15: 880107e8c8a0 [ 110.270803] FS: (0
1aba551c73 ("blk-mq: fix changelog"): BUG: unable to handle kernel NULL pointer dereference at 00000000
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup commit 1aba551c73de605983515118d5ad527594440ccb Author: Greg Kroah-Hartman AuthorDate: Fri Jan 4 14:06:22 2019 +0100 Commit: Greg Kroah-Hartman CommitDate: Sat Jan 5 18:42:10 2019 +0100 blk-mq: fix changelog 7d7009c53a wireless: fix changelog 1aba551c73 blk-mq: fix changelog 6044acd966 lib: WIP, break up +--++++ | | 7d7009c53a | 1aba551c73 | 6044acd966 | +--++++ | boot_successes | 32 | 0 | 0 | | boot_failures| 0 | 22 | 19 | | BUG:unable_to_handle_kernel | 0 | 22 | 19 | | Oops:#[##] | 0 | 22 | 19 | | EIP:debugfs_create_files | 0 | 22 | 19 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 22 | 19 | +--++++ [ 19.240778] parport_pc 00:04: reported by Plug and Play ACPI [ 19.249983] parport0: PC-style at 0x378, irq 7 [PCSPP(,...)] [ 19.259854] lp0: using parport0 (interrupt-driven). [ 19.266789] lp0: console ready [ 19.294331] brd: module loaded [ 19.303672] BUG: unable to handle kernel NULL pointer dereference at [ 19.311670] #PF error: [normal kernel read fault] [ 19.312646] *pdpt = *pde = f000ff53f000ff53 [ 19.312646] Oops: [#1] PTI [ 19.312646] CPU: 0 PID: 1 Comm: swapper Tainted: GT 4.20.0-11094-g1aba551 #440 [ 19.312646] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 19.312646] EIP: debugfs_create_files+0x20/0x60 [ 19.312646] Code: 74 26 00 8d bc 27 00 00 00 00 55 89 e5 56 89 c6 53 83 ec 08 85 c0 74 42 3d 00 f0 ff ff 77 3b 8b 40 10 89 cb 89 90 a4 00 00 00 <8b> 01 85 c0 74 2a 8d 76 00 8d bc 27 00 00 00 00 0f b7 53 04 b9 00 [ 19.312646] EAX: db0c1ae0 EBX: ECX: EDX: d9f41400 [ 19.312646] ESI: db0aa500 EDI: d9f41400 EBP: db45be38 ESP: db45be28 [ 19.312646] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 EFLAGS: 00210287 [ 19.312646] CR0: 80050033 CR2: CR3: 028ca000 CR4: 001406f0 [ 19.312646] Call Trace: [ 19.312646] blk_mq_debugfs_register_sched_hctx+0x36/0x40 [ 19.312646] blk_mq_debugfs_register+0xb1/0xd0 [ 19.312646] blk_register_queue+0xa1/0x170 [ 19.312646] __device_add_disk+0x2af/0x4a0 [ 19.312646] device_add_disk+0x12/0x20 [ 19.312646] loop_add+0x1b9/0x240 [ 19.312646] loop_init+0xfd/0x12f [ 19.312646] ? brd_init+0x15c/0x15c [ 19.312646] do_one_initcall+0x68/0x134 [ 19.312646] ? loglevel+0x47/0x47 [ 19.312646] kernel_init_freeable+0xe1/0x15b [ 19.312646] ? rest_init+0x90/0x90 [ 19.312646] kernel_init+0xb/0x100 [ 19.312646] ? schedule_tail_wrapper+0x9/0x10 [ 19.312646] ret_from_fork+0x19/0x30 [ 19.312646] CR2: [ 19.312646] ---[ end trace 3fa233f5a018a515 ]--- [ 19.312646] EIP: debugfs_create_files+0x20/0x60 # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 6044acd966af9b2abf150dde97c9092e174f5c32 3fed6ae4b027f9c93be18520f87bd06bdffd196b -- git bisect good 9e34cf7c199ca0088d4704b5c246a915ed336419 # 03:36 G 11 00 0 ti: wl1251: no need to check return value of debugfs_create functions git bisect good 2b1612f9f11109c49b327401b9deb5e7f42ae9aa # 03:48 G 11 00 2 gcov: no need to check return value of debugfs_create functions git bisect good ea485bd98e3c0b4a8ace4f43a6099b28ac37d62d # 03:59 G 11 00 0 l2tp: fix changelog git bisect bad 4f6a5da79aa189934d6ff9244efccb4e166d4648 # 04:11 B 0 10 31 7 gfs: no need to check return value of debugfs_create functions git bisect good 7d7009c53a3be411a6a790ac2788677db27d7286 # 04:24 G 11 00 0 wireless: fix changelog git bisect bad b73f975f76e48705feb505327cd888bb0ec9eb14 # 04:32 B 0 1 15 0 btrfs: no need to check return value of debugfs_create functions git bisect bad 1aba551c73de605983515118d5ad527594440ccb # 04:43 B 0 10 35 11 blk-mq: fix changelog # first bad commit: [1aba551c73de605983515118d5ad527594440ccb] blk-mq: fix changelog git bisect good 7d7009c53a3be411a6a790ac2788677db27d7286 # 04:48 G 30 00 0 wireless: fix changelog # extra tests with debug options git bisect bad 1aba551c73de605983515118d5ad527594440ccb # 05:00 B 0 11 25 0 blk-mq: fix changelog # extra tests on HEAD of driver-core/debugfs_cl
[LKP] bea5b158ff BUG: kernel reboot-without-warning in boot-around-mounting-root stage
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit bea5b158ff0da9c7246ff391f754f5f38e34577a Author: Rob Herring AuthorDate: Thu Aug 11 10:20:58 2016 -0500 Commit: Greg Kroah-Hartman CommitDate: Wed Aug 31 15:13:55 2016 +0200 driver core: add test of driver remove calls during probe In recent discussions on ksummit-discuss[1], it was suggested to do a sequence of probe, remove, probe for testing driver remove paths. This adds a kconfig option for said test. [1] https://lists.linuxfoundation.org/pipermail/ksummit-discuss/2016-August/003459.html Suggested-by: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Rob Herring Signed-off-by: Greg Kroah-Hartman cebf8fd169 driver core: fix race between creating/querying glue dir and its cleanup bea5b158ff driver core: add test of driver remove calls during probe e1ef035d27 Merge tag 'armsoc-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc 6a1d293238 Add linux-next specific files for 20181224 +--++++---+ | | cebf8fd169 | bea5b158ff | e1ef035d27 | next-20181224 | +--++++---+ | boot_successes | 31 | 0 | 0 | 0 | | boot_failures| 0 | 11 | 11 | 7 | | BUG:kernel_reboot-without-warning_in_boot-around-mounting-root_stage | 0 | 11 | 11 | 7 | +--++++---+ [ 14.073515] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 14.095297] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 14.177113] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 14.256672] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A [ 14.278578] console [ttyS0] disabled BUG: kernel reboot-without-warning in boot-around-mounting-root stage # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start v4.9 v4.8 -- git bisect bad 9fe68cad6e74967b88d0c6aeca7d9cd6b6e91942 # 15:38 B 0 11 26 0 Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 git bisect bad 5fa0eb0b4d4780fbd6d8a09850cc4fd539e9fe65 # 16:43 B 0 1 16 0 Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect bad d8ea757b25ec82687c497fc90aa83f9bcea24b5b # 17:22 B 0 2 17 0 Merge tag 'xtensa-20161005' of git://github.com/jcmvbkbc/linux-xtensa git bisect bad e6445f52d9c8b0e6557a45fa7d0e8e088d430a8c # 18:03 B 0 1 16 0 Merge tag 'usb-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb git bisect good 1a4a2bc460721bc8f91e4c1294d39b38e5af132f # 18:29 G 11 00 0 Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect good 49deffe0b0e4c2030696c7a6fd680bacf4761069 # 18:48 G 10 00 0 Merge tag 'arc-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc git bisect good 597f03f9d133e9837d00965016170271d4f87dcf # 19:03 G 10 00 0 Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect bad 9929780e86854833e649b39b290b5fe921eb1701 # 19:22 B 0 10 25 0 Merge tag 'driver-core-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core git bisect good 7a53eea1f7b527fd3b6d7ca992914840981afe99 # 20:11 G 10 00 0 Merge tag 'char-misc-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc git bisect bad 775115c06091fcfa1189a50aca488fa596839617 # 20:36 B 0 4 19 0 drivers/base dmam_declare_coherent_memory leaks git bisect bad 426bc8e789f8ac84270b196191904d347586032f # 20:59 B 0 3 18 0 base: soc: make it explicitly non-modular git bisect bad bea5b158ff0da9c7246ff391f754f5f38e34577a # 21:32 B 0 6 21 0 driver core: add test of driver remove calls during probe git bisect good cebf8fd16900fdfd58c0028617944f808f97fe50 # 21:56 G 11 00 0 driver core: fix race between creating/querying glue dir and its cleanup # first bad commit: [bea5b158ff0da9c7246ff391f754f5f38e34577a] driver core: add test of driver remove calls during p
[xarray] b803b42823: BUG:soft_lockup-CPU##stuck_for#s
FYI, we noticed the following commit (built with gcc-4.9): commit: b803b42823d0d9e8b6deccf01ffc2aba5d0738df ("xarray: Add XArray iterators") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 768M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | 41aec91f55 | b803b42823 | +---+++ | boot_successes| 18 | 5 | | boot_failures | 2 | 17 | | WARNING:at_drivers/ata/libata-core.c:#ata_host_detach[libata] | 2 | 4 | | EIP:ata_host_detach | 2 | 4 | | BUG:soft_lockup-CPU##stuck_for#s | 0 | 13 | | EIP:lock_is_held_type | 0 | 9 | | Kernel_panic-not_syncing:softlockup:hung_tasks| 0 | 13 | | EIP:lock_release | 0 | 1 | | EIP:xas_find | 0 | 1 | | EIP:lock_acquire | 0 | 2 | +---+++ [ 51.886077] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper:1] [ 51.886077] Modules linked in: [ 51.886077] irq event stamp: 2387290 [ 51.886077] hardirqs last enabled at (2387289): [<8ae9ab9d>] __call_rcu+0x7d/0xa0 [ 51.886077] hardirqs last disabled at (2387290): [<8ae015a9>] trace_hardirqs_off_thunk+0xc/0x13 [ 51.886077] softirqs last enabled at (2387276): [<8b69352d>] __do_softirq+0x31d/0x34f [ 51.886077] softirqs last disabled at (2387269): [<8ae1880c>] do_softirq_own_stack+0x1c/0x30 [ 51.886077] CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.0-rc5-00251-gb803b42 #1 [ 51.886077] EIP: lock_is_held_type+0xb3/0xf0 [ 51.886077] Code: c1 e1 05 31 db 29 c1 8a 84 0e fe 03 00 00 83 e0 03 39 c2 0f 94 c3 a1 20 31 a8 8b c7 80 e4 03 00 00 00 00 00 00 8b 45 ec 50 9d <66> 66 66 90 83 c4 0c 89 d8 5b 5e 5f 5d c3 8d b4 26 00 00 00 00 31 [ 51.886077] EAX: 00200246 EBX: ECX: 781103e8 EDX: 8bab9bd0 [ 51.886077] ESI: 0001 EDI: 7811 EBP: 78105ec0 ESP: 78105ea8 [ 51.886077] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 EFLAGS: 00200246 [ 51.886077] CR0: 80050033 CR2: CR3: 13c12000 CR4: 06d0 [ 51.886077] Call Trace: [ 51.886077] ? xas_find+0x11b/0x240 [ 51.886077] ? xa_find+0xc2/0xe0 [ 51.886077] ? check_find+0x11a/0x420 [ 51.886077] ? check_multi_store+0xa40/0xa40 [ 51.886077] ? xarray_checks+0x30/0x70 [ 51.886077] ? do_one_initcall+0x68/0x253 [ 51.886077] ? parse_args+0x18a/0x2d0 [ 51.886077] ? rcu_read_lock_sched_held+0x33/0x70 [ 51.886077] ? trace_initcall_level+0x57/0x8d [ 51.886077] ? kernel_init_freeable+0x164/0x232 [ 51.886077] ? rest_init+0xb0/0xb0 [ 51.886077] ? kernel_init+0x8/0xf0 [ 51.886077] ? ret_from_fork+0x19/0x30 [ 51.886077] Kernel panic - not syncing: softlockup: hung tasks [ 51.886077] CPU: 0 PID: 1 Comm: swapper Tainted: G L 4.19.0-rc5-00251-gb803b42 #1 [ 51.886077] Call Trace: [ 51.886077] ? dump_stack+0x16/0x26 [ 51.886077] ? panic+0x8b/0x1c8 [ 51.886077] ? watchdog_timer_fn+0x24a/0x250 [ 51.886077] ? __lockup_detector_cleanup+0x30/0x30 [ 51.886077] ? __hrtimer_run_queues+0x17c/0x3b0 [ 51.886077] ? __lockup_detector_cleanup+0x30/0x30 [ 51.886077] ? hrtimer_run_queues+0x8c/0xe0 [ 51.886077] ? run_local_timers+0x8/0x30 [ 51.886077] ? update_process_times+0x17/0x40 [ 51.886077] ? tick_periodic+0x29/0xc0 [ 51.886077] ? tick_handle_periodic+0x13/0x60 [ 51.886077] ? smp_apic_timer_interrupt+0x77/0x1b0 [ 51.886077] ? apic_timer_interrupt+0xd6/0xe0 [ 51.886077] ? printk+0x5/0x10 [ 51.886077] ? lock_is_held_type+0xb3/0xf0 [ 51.886077] ? xas_find+0x11b/0x240 [ 51.886077] ? xa_find+0xc2/0xe0 [ 51.886077] ? check_find+0x11a/0x420 [ 51.886077] ? check_multi_store+0xa40/0xa40 [ 51.886077] ? xarray_checks+0x30/0x70 [ 51.886077] ? do_one_initcall+0x68/0x253 [ 51.886077] ? parse_args+0x18a/0x2d0 [ 51.886077] ? rcu_read_lock_sched_held+0x33/0x70 [ 51.886077] ? trace_initcall_level+0x57/0x8d [ 51.886077] ? kernel_init_freeable+0x164/0x232 [ 51.886077] ? rest_init+0xb0
[LKP] fde06e0775 [ 9.203072] kernel BUG at lib/list_debug.c:31!
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit fde06e07750477f049f12d7d471ffa505338a3e7 Author: Pingfan Liu AuthorDate: Thu Oct 4 07:43:01 2018 +1000 Commit: Stephen Rothwell CommitDate: Sat Oct 6 12:17:09 2018 +1000 mm/slub: remove useless condition in deactivate_slab The var l should be used to reflect the original list, on which the page should be. But c->page is not on any list. Furthermore, the current code does not update the value of l. Hence remove the related logic Link: http://lkml.kernel.org/r/1537941430-16217-1-git-send-email-kernelf...@gmail.com Signed-off-by: Pingfan Liu Acked-by: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell 8a497b6945 mm/slub.c: switch to bitmap_zalloc() fde06e0775 mm/slub: remove useless condition in deactivate_slab 570b7bdeaf Add linux-next specific files for 20181009 +--+++---+ | | 8a497b6945 | fde06e0775 | next-20181009 | +--+++---+ | boot_successes | 104| 31 | 290 | | boot_failures| 0 | 4 | 67 | | kernel_BUG_at_lib/list_debug.c | 0 | 4 | 64 | | invalid_opcode:#[##] | 0 | 4 | 64 | | RIP:__list_add_valid | 0 | 4 | 64 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 4 | 67 | | BUG:unable_to_handle_kernel | 0 | 0 | 3 | | Oops:#[##] | 0 | 0 | 3 | | RIP:known_siginfo_layout | 0 | 0 | 3 | +--+++---+ [9.022206] NILFS version 2 loaded [9.023347] befs: version: 0.9.3 [9.024958] pstore: using lz4 compression [9.199222] list_add double add: new=ea7ea088, prev=88000fc01a50, next=ea7ea088. [9.201763] [ cut here ] [9.203072] kernel BUG at lib/list_debug.c:31! [9.203154] invalid opcode: [#1] PREEMPT SMP PTI [9.203154] CPU: 0 PID: 96 Comm: kthreadd Not tainted 4.19.0-rc6-00291-gfde06e0 #1 [9.203154] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [9.203154] RIP: 0010:__list_add_valid+0x63/0x70 [9.203154] Code: 0b 48 89 d1 48 c7 c7 50 aa 62 a4 48 89 f2 48 89 c6 e8 83 12 a9 ff 0f 0b 48 89 fe 48 89 c1 48 c7 c7 a8 aa 62 a4 e8 6f 12 a9 ff <0f> 0b 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 8b 07 48 ba 00 01 00 [9.203154] RSP: :88001faa7cb0 EFLAGS: 00010082 [9.203154] RAX: 0058 RBX: 80120008 RCX: [9.203154] RDX: RSI: 0046 RDI: 0001 [9.203154] RBP: 88001faa7cb0 R08: 8002 R09: 01a5 [9.203154] R10: 88001faa7db0 R11: 072007200720075b R12: 88000fc027c0 [9.203154] R13: ea7ea080 R14: 88001fa83b08 R15: 88001fa82d88 [9.203154] FS: () GS:88001dc0() knlGS: [9.203154] CS: 0010 DS: ES: CR0: 80050033 [9.203154] CR2: CR3: 0a00a000 CR4: 06b0 [9.203154] Call Trace: [9.203154] deactivate_slab+0x327/0x690 [9.235616] ? debug_smp_processor_id+0x17/0x20 [9.235616] ? set_track+0xd9/0x130 [9.235616] ___slab_alloc+0x5b9/0x5e0 [9.235616] ? deactivate_slab+0x5/0x690 [9.235616] ? ___slab_alloc+0x5b9/0x5e0 [9.235616] ? kthread+0x46/0x140 [9.235616] __slab_alloc+0x61/0xa0 [9.235616] ? ___slab_alloc+0x5/0x5e0 [9.235616] ? __slab_alloc+0x61/0xa0 [9.235616] ? kthread+0x46/0x140 [9.235616] kmem_cache_alloc_trace+0x176/0x1d0 [9.235616] ? __kthread_create_on_node+0x1b0/0x1b0 [9.235616] kthread+0x46/0x140 [9.235616] ? cryptomgr_probe+0xd0/0xd0 [9.235616] ? __kthread_create_on_node+0x1b0/0x1b0 [9.235616] ret_from_fork+0x24/0x30 [9.235616] ---[ end trace 6ee70473c984de0d ]--- [9.235616] RIP: 0010:__list_add_valid+0x63/0x70 # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 570b7bdeaf18a5d66dc76d79d7f1e36cb10b5da0 0238df646e6224016a45505d2c111a24669ebe21 -- git bisect good 073ceed8e5a6c9835a915549d248569067e11268 # 23:12 G 35 00 0 Merge remote-tracking branch 'opp
[LKP] [mm] 68c37ccedc: BUG:kernel_hang_in_early-boot_stage,last_printk:early_console_in_setup_code
FYI, we noticed the following commit (built with gcc-7): commit: 68c37ccedcde10514898f4ba3b28c0de85c590d1 ("mm: nobootmem: remove bootmem allocation APIs") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 2G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-+++ | | 6881a1e729 | 68c37ccedc | +-+++ | boot_successes | 4 | 0 | | boot_failures | 0 | 4 | | BUG:kernel_hang_in_early-boot_stage,last_printk:early_console_in_setup_code | 0 | 4 | +-+++ early console in setup code BUG: kernel hang in early-boot stage, last printk: early console in setup code Linux version 4.19.0-rc8-12429-g68c37cc #2 Command line: ip=vm-vp-2G-10::dhcp root=/dev/ram0 user=lkp job=/lkp/jobs/scheduled/vm-vp-2G-10/boot-1-debian-x86_64-2018-04-03.cgz-68c37ccedcde10514898f4ba3b28c0de85c590d1-20181029-86192-158289k-3.yaml ARCH=x86_64 kconfig=x86_64-randconfig-a0-10272028 branch=linux-devel/devel-catchup-201810280034 commit=68c37ccedcde10514898f4ba3b28c0de85c590d1 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-a0-10272028/gcc-7/68c37ccedcde10514898f4ba3b28c0de85c590d1/vmlinuz-4.19.0-rc8-12429-g68c37cc max_uptime=600 RESULT_ROOT=/result/boot/1/vm-vp-2G/debian-x86_64-2018-04-03.cgz/x86_64-randconfig-a0-10272028/gcc-7/68c37ccedcde10514898f4ba3b28c0de85c590d1/3 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw rcuperf.shutdown=0 Elapsed time: 670 To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/x86_64 4.19.0-rc8 Kernel Configuration # # # Compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=70300 CONFIG_CLANG_VERSION=0 CONFIG_CONSTRUCTORS=y CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y CONFIG_KERNEL_GZIP=y # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SWAP is not set CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y CONFIG_POSIX_MQUEUE=y CONFIG_POSIX_MQUEUE_SYSCTL=y # CONFIG_CROSS_MEMORY_ATTACH is not set CONFIG_USELIB=y # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y # CONFIG_GENERIC_IRQ_DEBUGFS is not set CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_ARCH_CLOCKSOURCE_INIT=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERIC_CMOS_UPDATE=y # # Timers subsystem # CONFIG_HZ_PERIODIC=y # CONFIG_NO_HZ_IDLE is not set # CONFIG_NO_HZ is not set # CONFIG_HIGH_RES_TIMERS is not set # CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y # CONFIG_PREEMPT is not set CONFIG_PREEMPT_COUNT=y # # CPU/Task time and stats accounting # CONFIG_VIRT_CPU_ACCOUNTING=y # CONFIG_TICK_CPU_ACCOUNTING is not set CONFIG_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_IRQ_TIME_ACCOUNTING=y # CONFIG_BSD_PROCESS_ACCT is not set CONFIG_TASKSTATS=y # CONFIG_TASK_DELAY_ACCT is not set # CONFIG_TASK_XACCT is not set # CONFIG_PSI is not set # # RCU Subsystem # CONFIG_TINY_RCU=y CONFIG_RCU_EXPERT=y CONFIG_SRCU=y CONFIG_TINY_SRCU=y CONFIG_TASKS_RCU=y CONFIG_CONTEXT_TRACKING=y CONFIG_CONTEXT_TRACKING_FORCE=y CONFIG_BUILD_BIN
[LKP] 499ac3b60f [ 2.479301] WARNING: CPU: 0 PID: 1 at lib/debugobjects.c:328 __debug_object_init
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 499ac3b60f657dae82055fc81c7b01e6242ac9bc Author: Paul Blakey AuthorDate: Sun Mar 4 17:29:49 2018 +0200 Commit: David S. Miller CommitDate: Wed Mar 7 10:44:03 2018 -0500 test_rhashtable: add test case for rhltable with duplicate objects Tries to insert duplicates in the middle of bucket's chain: bucket 1: [[val 21 (tid=1)]] -> [[ val 1 (tid=2), val 1 (tid=0) ]] Reuses tid to distinguish the elements insertion order. Signed-off-by: Paul Blakey Acked-by: Herbert Xu Signed-off-by: David S. Miller d3dcf8eb61 rhashtable: Fix rhlist duplicates insertion 499ac3b60f test_rhashtable: add test case for rhltable with duplicate objects 69d5b97c59 HID: we do not randomly make new drivers 'default y' 8c60c36d0b Add linux-next specific files for 20181019 +++++---+ || d3dcf8eb61 | 499ac3b60f | 69d5b97c59 | next-20181019 | +++++---+ | boot_successes | 31 | 0 | 0 | 0 | | boot_failures | 0 | 11 | 11 | 11| | WARNING:at_lib/debugobjects.c:#__debug_object_init | 0 | 11 | 11 | 11| | EIP:__debug_object_init| 0 | 11 | 11 | 11| | WARNING:suspicious_RCU_usage | 0 | 11 || | | lib/test_rhashtable.c:#suspicious_rcu_dereference_protected()usage | 0 | 11 || | +++++---+ [2.446663] Duration of test: 327878701 ns [2.477209] test if its possible to exceed max_size 8192: no, ok [2.478020] Average test time: 316717656 [2.478351] test inserting duplicates [2.478695] ODEBUG: object is on stack, but not annotated [2.479301] WARNING: CPU: 0 PID: 1 at lib/debugobjects.c:328 __debug_object_init+0x1c3/0x390 [2.480022] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.16.0-rc4-00130-g499ac3b #1 [2.480022] EIP: __debug_object_init+0x1c3/0x390 [2.480022] EFLAGS: 00210082 CPU: 0 [2.480022] EAX: 002d EBX: 401e7e08 ECX: 4018dea8 EDX: [2.480022] ESI: 4cc18e94 EDI: 4bf60600 EBP: 401e7d64 ESP: 401e7d40 [2.480022] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [2.480022] CR0: 80050033 CR2: CR3: 0c3df000 CR4: 001406b0 [2.480022] DR0: DR1: DR2: DR3: [2.480022] DR6: fffe0ff0 DR7: 0400 [2.480022] Call Trace: [2.480022] ? config_sync_direct_show+0x40/0x40 [2.480022] ? debug_object_init+0x1a/0x20 [2.480022] ? __init_work+0x16/0x30 [2.480022] ? rhashtable_init+0x163/0x2d0 [2.480022] ? rhltable_init+0x12/0x30 [2.480022] ? test_insert_dup+0x43/0x67d [2.480022] ? sched_clock_cpu+0x10f/0x130 [2.480022] ? config_sync_direct_show+0x40/0x40 [2.480022] ? jhash+0x130/0x130 [2.480022] ? my_hashfn+0x30/0x30 [2.480022] ? test_rht_init+0x2b8/0x563 [2.480022] ? kfree+0x22a/0x2a0 [2.480022] ? igb_xmit_frame_ring+0x382/0xb90 [2.480022] ? test_rhashtable+0x773/0x773 [2.480022] ? do_one_initcall+0x90/0x13b [2.480022] ? parse_args+0x1c0/0x2c0 [2.480022] ? do_early_param+0x78/0x78 [2.480022] ? kernel_init_freeable+0xf3/0x166 [2.480022] ? rest_init+0x1f0/0x1f0 [2.480022] ? kernel_init+0xd/0xf0 [2.480022] ? ret_from_fork+0x2e/0x38 [2.480022] Code: 39 d3 0f 83 03 01 00 00 83 7d dc 01 0f 84 d4 fe ff ff 68 00 06 f6 4b 83 c0 01 89 4d e4 a3 2c 49 c0 4c e8 90 43 d7 ff 5f 8b 4d e4 <0f> 0b e9 b4 fe ff ff 8d b6 00 00 00 00 a3 74 45 18 4c e9 fa fe [2.480022] ---[ end trace e4315fcaa0eaa1bc ]--- [2.507561] # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start v4.16 v4.15 -- git bisect good 1388c80438e69fc01d83fbe98da3cac24c3c8731 # 01:00 G 11 00 0 Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect good 98577c6aa2cddf73d55b6f1e2825a1f333ea1723 # 01:14 G 11 00 0 Merge tag 'chrome-platform-4.16-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bleung/chrome-platform git bisect good efac2483e8f289cd879e750075e63a9d16
[LKP] ca90800a91 [ 9.462982] WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:4061 __alloc_pages_nodemask
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit ca90800a91ba723d78ded634d037c1d2df8b54d6 Author: Kees Cook AuthorDate: Thu May 10 16:40:03 2018 -0700 Commit: Kees Cook CommitDate: Tue Jun 5 12:16:51 2018 -0700 test_overflow: Add memory allocation overflow tests Make sure that the memory allocators are behaving as expected in the face of overflows of multiplied arguments or when using the array_size()-family helpers. Example output of new tests (with the expected __alloc_pages_slowpath and vmalloc warnings about refusing giant allocations removed): [ 93.062076] test_overflow: kmalloc detected saturation [ 93.062988] test_overflow: kmalloc_node detected saturation [ 93.063818] test_overflow: kzalloc detected saturation [ 93.064539] test_overflow: kzalloc_node detected saturation [ 93.120386] test_overflow: kvmalloc detected saturation [ 93.143458] test_overflow: kvmalloc_node detected saturation [ 93.166861] test_overflow: kvzalloc detected saturation [ 93.189924] test_overflow: kvzalloc_node detected saturation [ 93.221671] test_overflow: vmalloc detected saturation [ 93.246326] test_overflow: vmalloc_node detected saturation [ 93.270260] test_overflow: vzalloc detected saturation [ 93.293824] test_overflow: vzalloc_node detected saturation [ 93.294597] test_overflow: devm_kmalloc detected saturation [ 93.295383] test_overflow: devm_kzalloc detected saturation [ 93.296217] test_overflow: all tests passed Signed-off-by: Kees Cook 610b15c50e overflow.h: Add allocation size calculation helpers ca90800a91 test_overflow: Add memory allocation overflow tests 0778a9f2dd Merge branch 'for-4.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup 771b65e89c Add linux-next specific files for 20181011 +++++---+ || 610b15c50e | ca90800a91 | 0778a9f2dd | next-20181011 | +++++---+ | boot_successes | 33 | 0 | 0 | 0 | | boot_failures | 0 | 11 | 19 | 11| | WARNING:at_mm/page_alloc.c:#__alloc_pages_nodemask | 0 | 11 | 19 | 11| | EIP:__alloc_pages_nodemask | 0 | 11 | 19 | 11| | Mem-Info | 0 | 11 | 19 | 11| +++++---+ [9.460416] test_overflow: s8 : 19 tests [9.460879] test_overflow: u16: 17 tests [9.461344] test_overflow: s16: 17 tests [9.461794] test_overflow: u32: 17 tests [9.462274] test_overflow: s32: 17 tests [9.462982] WARNING: CPU: 0 PID: 1 at mm/page_alloc.c:4061 __alloc_pages_nodemask+0x8df/0x13b0 [9.463703] CPU: 0 PID: 1 Comm: swapper Not tainted 4.17.0-rc4-6-gca90800 #2 [9.463703] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [9.463703] EIP: __alloc_pages_nodemask+0x8df/0x13b0 [9.463703] EFLAGS: 00210246 CPU: 0 [9.463703] EAX: EBX: 78013e44 ECX: EDX: [9.463703] ESI: EDI: EBP: 78013e8c ESP: 78013df8 [9.463703] DS: 007b ES: 007b FS: GS: 00e0 SS: 0068 [9.463703] CR0: 80050033 CR2: CR3: 0353a000 CR4: 00140690 [9.463703] DR0: DR1: DR2: DR3: [9.463703] DR6: fffe0ff0 DR7: 0400 [9.463703] Call Trace: [9.463703] ? __lock_acquire+0x362/0x12f0 [9.463703] ? fs_reclaim_release+0x30/0x70 [9.463703] ? slob_new_pages+0x22/0x70 [9.463703] ? __kmalloc+0xab/0x110 [9.463703] ? test_kmalloc+0x152/0x1d7 [9.463703] ? test_module_init+0x1a63/0x22ef [9.463703] ? test_vzalloc_node+0x1b5/0x1b5 [9.463703] ? do_one_initcall+0xd8/0x28d [9.463703] ? do_early_param+0x128/0x128 [9.463703] ? kernel_init_freeable+0x25b/0x3aa [9.463703] ? rest_init+0x1f0/0x1f0 [9.463703] ? kernel_init+0x19/0x260 [9.463703] ? schedule_tail_wrapper+0x9/0xc [9.463703] ? ret_from_fork+0x2e/0x38 [9.463703] Code: 7b 00 0f 0b 81 e6 ff ff f7 ff 83 05 e8 90 bc 7b 01 83 15 ec 90 bc 7b 00 e9 6f f9 ff ff 83 05 d8 90 bc 7b 01 83 15 dc 90 bc 7b 00 <0f> 0b e9 e8 f8 ff ff 8d 76 00 8d bc 27 00 00 00 00 c7 45 a8 04 [9.463703] random: get_random_bytes called from init_oops_id+0x58/0x70 with crng_init=0 [9.463703] ---[ end trace 418e45661914bb6
[LKP] [xarray] 0e9446c35a: WARNING:at_include/linux/xarray.h:#xa_mk_value
FYI, we noticed the following commit (built with gcc-6): commit: 0e9446c35a80931044b6d8d2d74a9cabd248539f ("xarray: Add range store functionality") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 512M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): ++++ || 4f06d6302d | 0e9446c35a | ++++ | boot_successes | 0 | 0 | | boot_failures | 2 | 5 | | INFO:trying_to_register_non-static_key | 2 | 5 | | WARNING:at_include/linux/xarray.h:#xa_mk_value | 0 | 5 | | EIP:xa_mk_value| 0 | 5 | | BUG:workqueue_lockup-pool | 0 | 5 | ++++ [7.782700] INFO: trying to register non-static key. [7.783426] the code is fine but needs lockdep annotation. [7.784282] turning off the locking correctness validator. [7.784300] CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.0-rc5-00321-g0e9446c #1082 [7.784300] Call Trace: [7.784300] dump_stack+0x16/0x18 [7.784300] register_lock_class+0xb0/0x2c9 [7.784300] ? check_chain_key+0x86/0xe1 [7.784300] __lock_acquire+0x83/0x535 [7.784300] lock_acquire+0x55/0x71 [7.784300] ? ida_alloc_range+0x6e/0x271 [7.784300] _raw_spin_lock_irqsave+0x2e/0x3e [7.784300] ? ida_alloc_range+0x6e/0x271 [7.784300] ? ida_check_destroy_1+0x6e/0x6e [7.784300] ida_alloc_range+0x6e/0x271 [7.784300] ? ida_check_destroy_1+0x6e/0x6e [7.784300] ida_alloc+0x12/0x14 [7.784300] ida_checks+0x64/0x409 [7.784300] ? ida_check_destroy_1+0x6e/0x6e [7.784300] do_one_initcall+0x68/0x13c [7.784300] ? parse_args+0xb3/0x1e4 [7.784300] kernel_init_freeable+0xea/0x174 [7.784300] ? rest_init+0xbb/0xbb [7.784300] kernel_init+0x8/0xd5 [7.784300] ret_from_fork+0x2e/0x38 [7.836203] IDA: 147321 of 147321 tests passed [7.844144] Running rhashtable test nelem=8, max_size=0, shrinking=0 [7.844873] Test 00: [7.845204] Adding 5 keys [7.867003] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [7.879473] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [7.880945] Deleting 5 keys [7.894870] Duration of test: 49291795 ns [7.895561] Test 01: [7.895935] Adding 5 keys [7.921117] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [7.930886] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [7.931857] Deleting 5 keys [7.945511] Duration of test: 49131953 ns [7.946111] Test 02: [7.946459] Adding 5 keys [7.981622] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [7.994316] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [7.995612] Deleting 5 keys [8.010064] Duration of test: 63114566 ns [8.010902] Test 03: [8.011439] Adding 5 keys [8.039327] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [8.049556] Traversal complete: counted=5, nelems=5, entries=5, table-jumps=0 [8.051717] Deleting 5 keys [8.066370] Duration of test: 54316782 ns [8.072054] test if its possible to exceed max_size 8192: no, ok [8.072824] Average test time: 53963774 [8.073359] test inserting duplicates [8.074002] [8.074002] ht: [8.074002] bucket[1] -> [[ val 1 (tid=0) ]] -> [[ val 21 (tid=1) ]] [8.074002] - [8.075543] [8.075543] ht: [8.075543] bucket[1] -> [[ val 1 (tid=2), val 1 (tid=0) ]] -> [[ val 21 (tid=1) ]] [8.075543] - [8.077243] [8.077243] ht: [8.077243] bucket[1] -> [[ val 21 (tid=1) ]] -> [[ val 1 (tid=0) ]] [8.077243] - [8.078745] [8.078745] ht: [8.078745] bucket[1] -> [[ val 21 (tid=1) ]] -> [[ val 1 (tid=2), val 1 (tid=0) ]] [8.078745] - [8.080424] Testing concurrent rhashtable access from 10 threads [9.293946] test 3125 add/delete pairs into rhlist [9.317554] test 3125 random rhlist add/delete operations [9.344294] Started 10 threads, 0 failed, rhltable test returns 0 [9.345095]
[LKP] bd00db8b16 [ 48.718069] BUG: spinlock trylock failure on UP on CPU#0, kworker/u2:1/27
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://github.com/bvanassche/linux for-next commit bd00db8b160b8cb2a61e6321aee5a68c6d823075 Author: Bart Van Assche AuthorDate: Tue Oct 16 13:57:06 2018 -0700 Commit: Bart Van Assche CommitDate: Wed Oct 17 16:17:43 2018 -0700 drivers/base: Probe devices concurrently if requested by the driver Instead of probing devices sequentially in the PROBE_PREFER_ASYNCHRONOUS mode, scan devices concurrently. This helps when the wall clock time for a single probe is significantly above the CPU time needed for a single probe, e.g. when scanning SCSI LUNs over a storage network. Cc: Lee Duncan Cc: Hannes Reinecke Cc: Luis Chamberlain Cc: Johannes Thumshirn Cc: Christoph Hellwig Cc: Greg Kroah-Hartman Cc: Dan Williams Signed-off-by: Bart Van Assche 49e249b0dd drivers/base: Verify struct device locking requirements at runtime bd00db8b16 drivers/base: Probe devices concurrently if requested by the driver 9294000d6d IB/srp: Drain the send queue before destroying a QP ++++-+ || 49e249b0dd | bd00db8b16 | bvanassche/for-next | ++++-+ | boot_successes | 39 | 0 | 12 | | boot_failures | 0 | 12 | | | BUG:spinlock_trylock_failure_on_UP_on_CPU | 0 | 11 | | | BUG:unable_to_handle_kernel| 0 | 11 | | | Oops:#[##] | 0 | 11 | | | EIP:__list_add_valid | 0 | 11 | | | Kernel_panic-not_syncing:Fatal_exception | 0 | 11 | | | genirq:Flags_mismatch_irq##(sir_ir)vs.#(serial_ir) | 0 | 1 | | ++++-+ [ 42.926637] CE: hpet increased min_delta_ns to 25312 nsec [ 42.926776] CE: hpet increased min_delta_ns to 37968 nsec [ 48.630057] [drm] Initialized vgem 1.0.0 20120112 for virtual device on minor 0 [ 48.631889] parport_pc 00:04: reported by Plug and Play ACPI [ 48.633342] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE] [ 48.718069] BUG: spinlock trylock failure on UP on CPU#0, kworker/u2:1/27 [ 48.719387] lock: 0xcd89bc44, .magic: c224d69c, .owner: /-1, .owner_cpu: 0 [ 48.720968] CPU: 0 PID: 27 Comm: kworker/u2:1 Not tainted 4.19.0-rc1-00171-gbd00db8 #1 [ 48.722617] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 48.724360] Workqueue: events_unbound async_run_entry_fn [ 48.725391] Call Trace: [ 48.726152] dump_stack+0x16/0x26 [ 48.726948] spin_dump+0x66/0xa0 [ 48.727729] do_raw_spin_trylock+0x3c/0x60 [ 48.728586] _raw_spin_lock+0x2f/0x60 [ 48.729380] ? __mutex_lock+0xd9/0x460 [ 48.730190] __mutex_lock+0xd9/0x460 [ 48.730974] ? sched_clock_local+0x15/0x120 [ 48.732012] ? _raw_spin_unlock_irqrestore+0x32/0x70 [ 48.733027] mutex_lock_nested+0x14/0x20 [ 48.733904] ? __driver_probe_device_async+0x1f/0x50 [ 48.734889] __driver_probe_device_async+0x1f/0x50 [ 48.735841] async_run_entry_fn+0x34/0xe0 [ 48.736786] process_one_work+0x275/0x4b0 [ 48.737669] worker_thread+0x279/0x400 [ 48.738511] kthread+0xf9/0x100 [ 48.739250] ? process_one_work+0x4b0/0x4b0 [ 48.740117] ? __kthread_create_on_node+0x130/0x130 [ 48.741094] ret_from_fork+0x19/0x24 [ 48.741890] BUG: unable to handle kernel NULL pointer dereference at [ 48.743166] *pde = [ 48.743877] Oops: [#1] PREEMPT PTI [ 48.744741] CPU: 0 PID: 27 Comm: kworker/u2:1 Not tainted 4.19.0-rc1-00171-gbd00db8 #1 [ 48.746368] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 48.746717] Workqueue: events_unbound async_run_entry_fn [ 48.746717] EIP: __list_add_valid+0x20/0x60 [ 48.746717] Code: 90 90 90 90 90 90 90 90 90 90 55 89 e5 56 53 8b 59 04 39 d3 74 14 51 53 52 68 70 fb e0 c1 e8 68 96 c0 ff 0f 0b 90 8d 74 26 00 <8b> 33 39 ce 74 12 53 56 51 68 ec fb e0 c1 e8 4e 96 c0 ff 0f 0b 8d [ 48.746717] EAX: cf5e7ec8 EBX: ECX: cd89bc6c EDX: [ 48.746717] ESI: cd89bc6c EDI: cd89bc40 EBP: cf5e7e84 ESP: cf5e7e7c [ 48.746717] DS: 007b ES: 007b FS: GS: SS: 0068 EFLAGS: 00210246 [ 48.746717] CR0: 80050033 CR2: CR3: 0223c000 CR4: 00140690 [ 48.746717] DR0: DR1: DR2: DR3: [ 48.74671
[LKP] [x86/mm/cpa] c77d419f92: WARNING:at_arch/x86/mm/pageattr.c:#__change_page_attr_set_clr
FYI, we noticed the following commit (built with gcc-5): commit: c77d419f9248f8c40bbf773d59aa5b6cbc0d60f0 ("[patch V2 07/10] x86/mm/cpa: Add sanity check for existing mappings") url: https://github.com/0day-ci/linux/commits/Thomas-Gleixner/x86-mm-cpa-Improve-large-page-preservation-handling/20180915-062636 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | 03ae905b93 | c77d419f92 | +---+++ | boot_successes| 35 | 0 | | boot_failures | 1 | 7 | | Mem-Info | 1 | | | WARNING:at_arch/x86/mm/pageattr.c:#__change_page_attr_set_clr | 0 | 7 | | EIP:__change_page_attr_set_clr| 0 | 7 | +---+++ [5.168861] WARNING: CPU: 0 PID: 1 at arch/x86/mm/pageattr.c:829 __change_page_attr_set_clr+0x324/0x7b8 [5.170140] Modules linked in: [5.170503] CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.0-rc2-00018-gc77d419 #2 [5.171321] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [5.172255] EIP: __change_page_attr_set_clr+0x324/0x7b8 [5.172846] Code: 75 b8 ff 75 bc 8b 45 b0 8b 7d ac c1 e0 0c 8d 44 07 ff 50 ff 75 ac 68 ce e7 83 79 68 01 68 83 79 68 e0 e7 83 79 e8 bb 03 04 00 <0f> 0b 80 4b 1c 02 83 c4 20 be 01 00 00 00 e9 9b 00 00 00 89 f0 89 [5.174915] EAX: 0077 EBX: 85833f24 ECX: 0006 EDX: 0003 [5.175619] ESI: 01e1 EDI: 7980 EBP: 85833f04 ESP: 85833e68 [5.176311] DS: 007b ES: 007b FS: GS: SS: 0068 EFLAGS: 00010202 [5.177074] CR0: 80050033 CR2: 080c2008 CR3: 01ad5000 CR4: 000406d0 [5.177783] Call Trace: [5.178071] ? mutex_unlock+0xb/0xd [5.178498] ? vm_unmap_aliases+0x160/0x168 [5.178966] change_page_attr_set_clr+0x101/0x29c [5.179497] ? preempt_count_add+0x5b/0x8c [5.179953] set_memory_ro+0x19/0x1b [5.180356] set_pages_ro+0x14/0x16 [5.180757] mark_rodata_ro+0x73/0xa5 [5.181167] ? rest_init+0x1e2/0x1e2 [5.181576] kernel_init+0x25/0xd5 [5.181955] ret_from_fork+0x19/0x30 [5.182355] irq event stamp: 2163908 [5.182763] hardirqs last enabled at (2163907): [<79064c74>] console_unlock+0x401/0x44c [5.183649] hardirqs last disabled at (2163908): [<79000fbe>] trace_hardirqs_off_thunk+0xc/0x10 [5.184606] softirqs last enabled at (2163904): [<795e0462>] __do_softirq+0x272/0x31a [5.185485] softirqs last disabled at (2163815): [<7900da03>] do_softirq_own_stack+0x26/0x2c [5.186397] ---[ end trace e9f576b73c312d83 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.19.0-rc2 Kernel Configuration # # # Compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010 # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=50401 CONFIG_CLANG_VERSION=0 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set CONFIG_KERNEL_LZMA=y # CONFIG_KERNEL_XZ is not set # CONFIG_KERNEL_LZO is not set # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" # CONFIG_SYSVIPC is not set # CONFIG_POSIX_MQUEUE is not set # CONFIG_CROSS_MEMORY_ATTACH is not set # CONFIG_USELIB is not set # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y # CONFIG_GENERIC_IRQ_DEBUGFS is not set CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERI
[LKP] [x86/mm/cpa] 68ad427583: WARNING:at_arch/x86/mm/pageattr.c:#__change_page_attr
FYI, we noticed the following commit (built with gcc-4.9): commit: 68ad4275838d223a06a3211fb2f27c8b6f44cd24 ("x86/mm/cpa: Add sanity check for existing mappings") https://github.com/0day-ci/linux UPDATE-20180916-004446/Thomas-Gleixner/x86-mm-cpa-Improve-large-page-preservation-handling/20180915-063911 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +---+++ | | cc13b49187 | 68ad427583 | +---+++ | boot_successes| 10 | 0 | | boot_failures | 0 | 8 | | WARNING:at_arch/x86/mm/pageattr.c:#__change_page_attr | 0 | 8 | | EIP:__change_page_attr| 0 | 8 | +---+++ [ 12.633167] WARNING: CPU: 0 PID: 1 at arch/x86/mm/pageattr.c:830 __change_page_attr+0xd21/0x10f0 [ 12.634536] Modules linked in: [ 12.634958] CPU: 0 PID: 1 Comm: swapper Tainted: GT 4.19.0-rc2-00018-g68ad427 #1 [ 12.636083] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 12.637166] EIP: __change_page_attr+0xd21/0x10f0 [ 12.637778] Code: 8b 45 e4 8b 55 e8 89 c6 81 e6 00 f0 ff ff 81 e2 ff ff 0f 00 e9 31 ff ff ff b8 ff ff ff ff c7 45 dc 00 00 00 00 e9 6f fb ff ff <0f> 0b 8b 45 c0 80 48 24 02 e9 19 f4 ff ff 81 c4 e0 00 00 00 b8 f4 [ 12.640184] EAX: 0002 EBX: ECX: EDX: 0002 [ 12.641003] ESI: 1800 EDI: 01e3 EBP: cd1d7e94 ESP: cd1d7da8 [ 12.641802] DS: 007b ES: 007b FS: GS: SS: 0068 EFLAGS: 00010202 [ 12.642677] CR0: 80050033 CR2: 08497008 CR3: 01d53000 CR4: 000406f0 [ 12.643496] Call Trace: [ 12.643846] ? find_held_lock+0x34/0xc0 [ 12.644375] __change_page_attr_set_clr+0x3c/0x180 [ 12.645017] ? mutex_unlock+0x10/0x20 [ 12.645493] ? vm_unmap_aliases+0x12d/0x1d0 [ 12.646063] ? vm_unmap_aliases+0x1b/0x1d0 [ 12.646639] ? _raw_spin_unlock+0x2c/0x50 [ 12.647170] change_page_attr_set_clr+0x131/0x3a0 [ 12.647797] set_memory_ro+0x44/0x50 [ 12.648303] set_pages_ro+0x1b/0x20 [ 12.648769] mark_rodata_ro+0x8a/0xf0 [ 12.649266] ? rest_init+0x1d0/0x1d0 [ 12.649755] kernel_init+0x31/0x110 [ 12.650203] ? schedule_tail_wrapper+0x9/0xc [ 12.650798] ret_from_fork+0x2e/0x38 [ 12.651273] irq event stamp: 2257432 [ 12.651753] hardirqs last enabled at (2257431): [] console_unlock+0x215/0x5d0 [ 12.652819] hardirqs last disabled at (2257432): [] trace_hardirqs_off_thunk+0xc/0x10 [ 12.653960] softirqs last enabled at (2257428): [] __do_softirq+0x38b/0x3c1 [ 12.654958] softirqs last disabled at (2257395): [] call_on_stack+0x4c/0x60 [ 12.655965] ---[ end trace e0f028e4efa9dcc5 ]--- To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp # # Automatically generated file; DO NOT EDIT. # Linux/i386 4.19.0-rc2 Kernel Configuration # # # Compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=40904 CONFIG_CLANG_VERSION=0 CONFIG_IRQ_WORK=y CONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y # # General setup # CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # CONFIG_COMPILE_TEST is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y # CONFIG_KERNEL_GZIP is not set # CONFIG_KERNEL_BZIP2 is not set # CONFIG_KERNEL_LZMA is not set # CONFIG_KERNEL_XZ is not set CONFIG_KERNEL_LZO=y # CONFIG_KERNEL_LZ4 is not set CONFIG_DEFAULT_HOSTNAME="(none)" CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SYSCTL=y # CONFIG_POSIX_MQUEUE is not set CONFIG_CROSS_MEMORY_ATTACH=y # CONFIG_USELIB is not set # CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y # # IRQ subsystem # CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_CHIP=y CONFIG_IRQ_DOMAIN=y CONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_GENERIC_MSI_IRQ=y CONFIG_GENERIC_MSI_IRQ_DOMAIN=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y # CONFIG_GENERIC_IRQ_DEBUGFS is not set CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_DATA=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_G