Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp237747ybt; Fri, 19 Jun 2020 00:17:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNuIO1CahWUsz7t441dEu6d5/RHAVKKJ1SGTX3VRO2kWbxn4I8LdpH5XF6yiueh7jkEzjS X-Received: by 2002:a50:ee9a:: with SMTP id f26mr1833311edr.347.1592551063359; Fri, 19 Jun 2020 00:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592551063; cv=none; d=google.com; s=arc-20160816; b=R5IR8d0LE3jzTG1cYa5jQzXBOPuGOQSe4CcCrQyafVav3Et/frgGYmHAZmF/kkFvnd uWRypg7pyERlsY0xf+/pJlSsZVKA0Q4F+wcnlNoeaPGk13oAVrviVqPyPKl4Phhs+2LV Axxt9GyQhWSubyHnZp6SOG+OMwAT97gnP16NqcxpaOmnhmNgvyrsTMmUQnt99uiGNFEs GIgjg48+Vj35ryZ0TxNkSiJA/kZtKjYqvk+G1z91FrZ2uSWLqgQE4Fg53uP4JA5Bz9EC QozqxauoUgQwaSJYKeVmWig9fIhP8udo5UnJHmrmUozXAn1b3GVDlh/TGBIPgylXpeIL vQRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:reply-to:from:date; bh=/190vG2BZHrC8ebjs7SPeu9fWM2eBmhvOIuqhlRGAv4=; b=lOsfNDNJi1wEclR98G1MhXfLg6MC3gD5WL8qzeVSNUlZvZDRta9mL9hXT0QnZ+G9FS JqHH98hlDOnlkfjp2Y7pniR+ZoqjbzxnF1uokS67JbE8cl9X0a6j7u3bx+Pu8q9QuxJY rdOcwz1Tr9HYdJBt+x3ZoDFqdLyUCTgIh5xaIv70cwR5E00kGr9Ti3e+jRWEU7CXgo1t HHBC0ENEoiaZLyogJqcRFWGJJGKoHFVGtsxAdxI68uKtt3wQvuSLYJZDtCmQOXi/r7cN MzRutfK5+top9R3MrZA2Nm8/gWG7sxkEt4dof25CZD6xW6gktRYn9347WIT2kC2BeMPe 6ddQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j25si3366584ejs.86.2020.06.19.00.17.21; Fri, 19 Jun 2020 00:17:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730277AbgFSHOi (ORCPT + 99 others); Fri, 19 Jun 2020 03:14:38 -0400 Received: from l2mail1.panix.com ([166.84.1.75]:56829 "EHLO l2mail1.panix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729859AbgFSHOh (ORCPT ); Fri, 19 Jun 2020 03:14:37 -0400 X-Greylist: delayed 1026 seconds by postgrey-1.27 at vger.kernel.org; Fri, 19 Jun 2020 03:14:36 EDT Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by l2mail1.panix.com (Postfix) with ESMTPS id 49p8kf2y85zDSs for ; Fri, 19 Jun 2020 02:57:30 -0400 (EDT) Received: from xps-7390 (cpe-23-242-39-94.socal.res.rr.com [23.242.39.94]) by mailbackend.panix.com (Postfix) with ESMTPSA id 49p8kc55jszTg9; Fri, 19 Jun 2020 02:57:28 -0400 (EDT) Date: Thu, 18 Jun 2020 23:57:27 -0700 (PDT) From: "Kenneth R. Crudup" Reply-To: "Kenneth R. Crudup" To: Christoph Hellwig cc: Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: Commit 25f12ae45fc1 ("maccess: rename probe_kernel_address to get_kernel_nofault") causing several OOPSes In-Reply-To: <20200619065007.GA3041@lst.de> Message-ID: References: <20200619065007.GA3041@lst.de> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Jun 2020, Christoph Hellwig wrote: > That is indeed really strange, as that commit is just a rename. > Well, Linus also added swapping of the argument order, but again it > shouldn't change much. Thing is, there's other examples of the previous version in the kernel tree- any chance there's a usage conflict (Thunderbolt has a ROM in it, maybe something in "probe_roms.c"? (Just guessing, no idea): ---- afind probe_kernel_address ./lib/test_lockup.c: probe_kernel_address(ptr, buf) || ./lib/test_lockup.c: probe_kernel_address(ptr + size - 1, buf)) { ./lib/test_lockup.c: if (probe_kernel_address(ptr, magic) || magic != expected) { ./arch/arm64/kernel/traps.c: if (probe_kernel_address((__force __le32 *)pc, instr_le)) ./arch/sh/kernel/traps.c: if (probe_kernel_address((insn_size_t *)addr, opcode)) ./arch/x86/kernel/traps.c: if (probe_kernel_address((unsigned short *)addr, ud)) ./arch/x86/kernel/probe_roms.c: if (probe_kernel_address(rom_list, device) != 0) ./arch/x86/kernel/probe_roms.c: if (probe_kernel_address(rom + 0x18, offset) != 0) ./arch/x86/kernel/probe_roms.c: if (probe_kernel_address(rom + offset + 0x4, vendor) != 0) ./arch/x86/kernel/probe_roms.c: if (probe_kernel_address(rom + offset + 0x6, device) != 0) ./arch/x86/kernel/probe_roms.c: if (probe_kernel_address(rom + offset + 0x8, list) == 0 && ./arch/x86/kernel/probe_roms.c: probe_kernel_address(rom + offset + 0xc, rev) == 0 && ./arch/x86/kernel/probe_roms.c: return probe_kernel_address(ptr, sig) == 0 && sig == ROMSIGNATURE; ./arch/x86/kernel/probe_roms.c: for (sum = 0; length && probe_kernel_address(rom++, c) == 0; length--) ./arch/x86/kernel/probe_roms.c: if (probe_kernel_address(rom + 2, c) != 0) ./arch/x86/kernel/probe_roms.c: if (probe_kernel_address(rom + 2, c) != 0) ./arch/x86/mm/fault.c: if (probe_kernel_address(instr, opcode)) ./arch/x86/mm/fault.c: if (probe_kernel_address(instr, opcode)) ./arch/x86/mm/fault.c: return probe_kernel_address((unsigned long *)p, dummy); ./arch/x86/pci/pcbios.c: if (probe_kernel_address(&check->fields.signature, sig)) ./arch/arm/mm/alignment.c: fault = probe_kernel_address(ip, instr); ./arch/arm/mm/alignment.c: fault = probe_kernel_address(ip, instr); ./arch/s390/mm/fault.c: return probe_kernel_address((unsigned long *)p, dummy); ./arch/powerpc/kernel/process.c: probe_kernel_address((const void *)pc, instr)) { ./arch/powerpc/kernel/kprobes.c: if (probe_kernel_address(addr, instr)) ./arch/powerpc/sysdev/fsl_pci.c: ret = probe_kernel_address((void *)regs->nip, inst); ./arch/riscv/kernel/kgdb.c: if (probe_kernel_address((void *)pc, op_code)) ./arch/riscv/kernel/kgdb.c: error = probe_kernel_address((void *)addr, stepped_opcode); ./arch/riscv/kernel/traps.c: if (probe_kernel_address((bug_insn_t *)pc, insn)) ./arch/riscv/kernel/traps.c: if (probe_kernel_address((bug_insn_t *)pc, insn)) ---- > Do you see any compiler warnings or something > odd in the kernel log before the actual crash? Not that I could see, but I'll try building again later on. -Kenny -- Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Silicon Valley