From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751351AbdFYNH2 (ORCPT ); Sun, 25 Jun 2017 09:07:28 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:8379 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbdFYNHZ (ORCPT ); Sun, 25 Jun 2017 09:07:25 -0400 Message-ID: <594FB572.4000506@huawei.com> Date: Sun, 25 Jun 2017 21:06:58 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Greg KH CC: Yisheng Xie , , , , , Hanjun Guo Subject: Re: [RFC] memory corruption caused by efi driver? References: <9372b781-62ed-fcad-6306-42a0da1a37ca@huawei.com> <20170624111205.GA16218@kroah.com> In-Reply-To: <20170624111205.GA16218@kroah.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090205.594FB586.00AF,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0fe1547464697b6566595d48e8016abf Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017/6/24 19:12, Greg KH wrote: > On Sat, Jun 24, 2017 at 05:52:23PM +0800, Yisheng Xie wrote: >> hi all, >> >> I met an Oops problem with linux-3.10. The RIP is sysfs_open_file+0x46/0x2b0 (I will and the full >> crash log in the end of this mail). > > 3.10 is _very_ old and obsolete, can you duplicate this on a modern > kernel, like 4.11? > > thanks, > > greg k-h > > . > Hi, if I disable CONFIG_EFI_VARS, it seems OK now. And I cann't reproduce the problem on mainline(v4.12). Here is my test, run some stress test, then cat /sys/firmware/efi/efivars/* or cat /sys/firmware/efi/vars/*/* 1) 3.10, get warning CONFIG_EFI_VARS=y CONFIG_EFIVAR_FS=y 2) 3.10, get warning CONFIG_EFI_VARS=y CONFIG_EFIVAR_FS=n 3) 3.10, ok CONFIG_EFI_VARS=n CONFIG_EFIVAR_FS=y 4) mainline, ok CONFIG_EFI_VARS=y CONFIG_EFIVAR_FS=y log: [78872.389117] WARNING: at fs/sysfs/file.c:343 sysfs_open_file+0x222/0x2b0() [78872.389118] missing sysfs attribute operations for kobject: (null) [78872.389177] Modules linked in: gen_timer(OVE) tun zram(C) ext4 jbd2 mbcache loop regmap_i2c binfmt_misc scsi_transport_iscsi cfg80211 ip6t_rpfilter ip6t_REJECT ipt_REJECT xt_conntrack rfk ill ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw iptable_filter ip_tables sg iTCO_wdt ipmi_devintf iTCO_ve ndor_support vfat fat intel_powerclamp coretemp kvm_intel kvm nfsd crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel ipmi_ssif aesni_intel lrw gf128mul auth_rpcgss glue_helper a blk_helper i7core_edac nfs_acl cryptd lpc_ich pcspkr [78872.389197] ipmi_si i2c_i801 edac_core shpchp mfd_core lockd ipmi_msghandler acpi_cpufreq grace sunrpc uinput xfs libcrc32c sd_mod sr_mod crc_t10dif cdrom crct10dif_common ixgbe igb ahci mdio libahci ptp i2c_algo_bit pps_core libata i2c_core megaraid_sas dca dm_mirror dm_region_hash dm_log dm_mod [last unloaded: gen_timer] [78872.389202] CPU: 52 PID: 28434 Comm: cat Tainted: G WC OE ----V------- 3.10.0-327.55.58.81.x86_64 #2 [78872.389204] Hardware name: HUAWEI TECHNOLOGIES CO.,LTD. Tecal RH5885 V2/CH91RGPUC, BIOS RGPUC-BIOS-V058 06/23/2013 [78872.389207] ffff88200a61fc10 00000000df10e27d ffff88200a61fbc8 ffffffff8163ed14 [78872.389208] ffff88200a61fc00 ffffffff8107b300 00000000fffffff3 ffff88103f6473a0 [78872.389209] ffff8880236cb700 ffff88103f6473a0 ffff8860281d8838 ffff88200a61fc68 [78872.389210] Call Trace: [78872.389224] [] dump_stack+0x19/0x1b [78872.389233] [] warn_slowpath_common+0x70/0xb0 [78872.389234] [] warn_slowpath_fmt+0x5c/0x80 [78872.389236] [] sysfs_open_file+0x222/0x2b0 [78872.389242] [] do_dentry_open+0x1a7/0x2e0 [78872.389244] [] ? sysfs_schedule_callback+0x1c0/0x1c0 [78872.389245] [] vfs_open+0x39/0x70 [78872.389251] [] do_last+0x1ed/0x12a0 [78872.389259] [] ? kmem_cache_alloc_trace+0x1ce/0x1f0 [78872.389261] [] path_openat+0xc2/0x490 [78872.389267] [] ? call_rcu_sched+0x1d/0x20 [78872.389275] [] ? shmem_destroy_inode+0x2d/0x40 [78872.389281] [] ? evict+0x106/0x170 [78872.389283] [] do_filp_open+0x4b/0xb0 [78872.389286] [] ? __alloc_fd+0xa7/0x130 [78872.389290] [] do_sys_open+0xf3/0x1f0 [78872.389291] [] SyS_open+0x1e/0x20 [78872.389297] [] system_call_fastpath+0x16/0x1b [78872.389298] ---[ end trace cbe34632be0fdedf ]--- [78872.390067] ------------[ cut here ]------------