Re: [Bug 207325] New: Bad swap file entry 740167b7, kernel NULL pointer dereference and Oops after hours of building

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Fri, 17 Apr 2020 15:27:36 +0000 bugzilla-daemon@xxxxxxxxxxxxxxxxxxx wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=207325
> 
>             Bug ID: 207325
>            Summary: Bad swap file entry 740167b7, kernel NULL pointer
>                     dereference and Oops after hours of building
>            Product: Memory Management
>            Version: 2.5
>     Kernel Version: 5.7-rc1
>           Hardware: IA-32
>                 OS: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>           Assignee: akpm@xxxxxxxxxxxxxxxxxxxx
>           Reporter: erhard_f@xxxxxxxxxxx
>         Regression: No
> 
> Created attachment 288559
>   --> https://bugzilla.kernel.org/attachment.cgi?id=288559&action=edit
> dmesg (kernel 5.7-rc1, Shuttle XPC FS51, Pentium 4)
> 
> [...]
> Apr 17 12:10:05 hakla04 kernel: get_swap_device: Bad swap file entry 740167b7
> Apr 17 12:10:05 hakla04 kernel: BUG: kernel NULL pointer dereference, address:
> 00000000
> Apr 17 12:10:05 hakla04 kernel: #PF: supervisor read access in kernel mode
> Apr 17 12:10:05 hakla04 kernel: #PF: error_code(0x0000) - not-present page
> Apr 17 12:10:05 hakla04 kernel: *pde = 00000000 
> Apr 17 12:10:05 hakla04 kernel: Oops: 0000 [#1] SMP
> Apr 17 12:10:05 hakla04 kernel: CPU: 0 PID: 12912 Comm: cc1plus Not tainted
> 5.7.0-rc1-Pentium4 #1
> Apr 17 12:10:05 hakla04 kernel: Hardware name:  /FS51, BIOS 6.00 PG 12/02/2003
> Apr 17 12:10:05 hakla04 kernel: EIP: do_swap_page+0x9d/0x42c
> Apr 17 12:10:05 hakla04 kernel: Code: 8b 80 20 0d 00 00 83 48 24 01 8b 4b 10 89
> f2 8b 45 e8 e8 e2 36 01 00 89 45 f0 85 c0 0f 85 ed 00 00 00 8b 45 e8 e8 60 57
> 01 00 <8b> 00 0f ba e0 0c 0f 83 a6 00 00 00 8b 45 e8 e8 0b 58 01 00 48 0f
> Apr 17 12:10:05 hakla04 kernel: EAX: 00000000 EBX: c2d59f2c ECX: f63c41fc EDX:
> 00000002
> Apr 17 12:10:05 hakla04 kernel: ESI: cf0c8f60 EDI: c2d59f64 EBP: c2d59f18 ESP:
> c2d59ef8
> Apr 17 12:10:05 hakla04 kernel: DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
> EFLAGS: 00010246
> Apr 17 12:10:05 hakla04 kernel: CR0: 80050033 CR2: 00000000 CR3: 2fbfc000 CR4:
> 000006d0
> Apr 17 12:10:05 hakla04 kernel: Call Trace:
> Apr 17 12:10:05 hakla04 kernel:  ? kmap_atomic_prot+0x2a/0x88
> Apr 17 12:10:05 hakla04 kernel:  handle_mm_fault+0x282/0x81c
> Apr 17 12:10:05 hakla04 kernel:  do_page_fault+0x350/0x435
> Apr 17 12:10:05 hakla04 kernel:  ? vmalloc_sync_unmappings+0xa/0xa
> Apr 17 12:10:05 hakla04 kernel:  common_exception_read_cr2+0x12d/0x132
> Apr 17 12:10:05 hakla04 kernel: EIP: 0xb7bb7263
> Apr 17 12:10:05 hakla04 kernel: Code: 84 37 06 00 00 85 c0 75 df 89 e8 c1 e8 04
> 8d 14 00 83 c2 10 01 d2 01 d2 03 54 24 10 8d 5a f8 8b 7a 04 39 fb 0f 84 b5 00
> 00 00 <8b> 47 0c 39 78 08 0f 85 a1 05 00 00 8d 0c 2f 83 49 04 01 89 42 04
> Apr 17 12:10:05 hakla04 kernel: EAX: 00000010 EBX: b7cf87f8 ECX: 00000003 EDX:
> b7cf8800
> Apr 17 12:10:05 hakla04 kernel: ESI: b7cf8000 EDI: 0d9dd7a8 EBP: 00000100 ESP:
> bfd08540
> Apr 17 12:10:05 hakla04 kernel: DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b
> EFLAGS: 00010286
> Apr 17 12:10:05 hakla04 kernel:  ? nmi+0xb4/0x114
> Apr 17 12:10:05 hakla04 kernel: Modules linked in: auth_rpcgss nfsv4
> dns_resolver nfs lockd grace sunrpc rt2500pci eeprom_93cx6 rt2x00pci rt2x00mmio
> rt2x00lib led_class mac80211 evdev firewire_ohci sr_mod firewire_core ohci_pci
> cdrom crc_itu_t cfg80211 thermal fan snd_intel8x0 snd_ac97_codec ohci_hcd
> ehci_pci ac97_bus ehci_hcd 8250 snd_pcm 8250_base rfkill usbcore libarc4
> serial_core 8139too snd_timer sis_agp usb_common button mii agpgart snd
> i2c_sis96x soundcore zstd zram zsmalloc
> Apr 17 12:10:05 hakla04 kernel: CR2: 0000000000000000
> Apr 17 12:10:05 hakla04 kernel: ---[ end trace fac9f1455600dffb ]---
> Apr 17 12:10:05 hakla04 kernel: EIP: do_swap_page+0x9d/0x42c
> Apr 17 12:10:05 hakla04 kernel: Code: 8b 80 20 0d 00 00 83 48 24 01 8b 4b 10 89
> f2 8b 45 e8 e8 e2 36 01 00 89 45 f0 85 c0 0f 85 ed 00 00 00 8b 45 e8 e8 60 57
> 01 00 <8b> 00 0f ba e0 0c 0f 83 a6 00 00 00 8b 45 e8 e8 0b 58 01 00 48 0f
> Apr 17 12:10:05 hakla04 kernel: EAX: 00000000 EBX: c2d59f2c ECX: f63c41fc EDX:
> 00000002
> Apr 17 12:10:05 hakla04 kernel: ESI: cf0c8f60 EDI: c2d59f64 EBP: c2d59f18 ESP:
> c2d59ef8
> Apr 17 12:10:05 hakla04 kernel: DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
> EFLAGS: 00010246
> Apr 17 12:10:05 hakla04 kernel: CR0: 80050033 CR2: 00000000 CR3: 2fbfc000 CR4:
> 000006d0
> Apr 17 12:10:05 hakla04 kernel: swap_info_get: Bad swap file entry 74016721
> Apr 17 12:10:05 hakla04 kernel: BUG: Bad page map in process cc1plus 
> pte:02ce423e pmd:7bd55067
> Apr 17 12:10:05 hakla04 kernel: addr:0b365000 vm_flags:00100073
> anon_vma:d8333e70 mapping:00000000 index:b365
> Apr 17 12:10:05 hakla04 kernel: file:(null) fault:0x0 mmap:0x0 readpage:0x0
> Apr 17 12:10:05 hakla04 kernel: CPU: 0 PID: 12912 Comm: cc1plus Tainted: G     
> D           5.7.0-rc1-Pentium4 #1
> Apr 17 12:10:05 hakla04 kernel: Hardware name:  /FS51, BIOS 6.00 PG 12/02/2003
> Apr 17 12:10:05 hakla04 kernel: Call Trace:
> Apr 17 12:10:05 hakla04 kernel:  dump_stack+0x6c/0x94
> Apr 17 12:10:05 hakla04 kernel:  print_bad_pte+0x14d/0x167
> Apr 17 12:10:05 hakla04 kernel:  unmap_page_range+0x2b9/0x3cb
> Apr 17 12:10:05 hakla04 kernel:  unmap_single_vma+0x8a/0x94
> Apr 17 12:10:05 hakla04 kernel:  unmap_vmas+0x52/0x69
> Apr 17 12:10:05 hakla04 kernel:  exit_mmap+0x93/0xde
> Apr 17 12:10:05 hakla04 kernel:  ? do_exit+0x2ad/0x82d
> Apr 17 12:10:05 hakla04 kernel:  __mmput+0x39/0xc6
> Apr 17 12:10:05 hakla04 kernel:  mmput+0x1e/0x21
> Apr 17 12:10:05 hakla04 kernel:  do_exit+0x2fd/0x82d
> Apr 17 12:10:05 hakla04 kernel:  rewind_stack_do_exit+0x11/0x13
> Apr 17 12:10:05 hakla04 kernel: EIP: 0xb7bb7263
> Apr 17 12:10:05 hakla04 kernel: Code: 84 37 06 00 00 85 c0 75 df 89 e8 c1 e8 04
> 8d 14 00 83 c2 10 01 d2 01 d2 03 54 24 10 8d 5a f8 8b 7a 04 39 fb 0f 84 b5 00
> 00 00 <8b> 47 0c 39 78 08 0f 85 a1 05 00 00 8d 0c 2f 83 49 04 01 89 42 04
> Apr 17 12:10:05 hakla04 kernel: EAX: 00000010 EBX: b7cf87f8 ECX: 00000003 EDX:
> b7cf8800
> Apr 17 12:10:05 hakla04 kernel: ESI: b7cf8000 EDI: 0d9dd7a8 EBP: 00000100 ESP:
> bfd08540
> Apr 17 12:10:05 hakla04 kernel: DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b
> EFLAGS: 00010286
> Apr 17 12:10:05 hakla04 kernel:  ? nmi+0xb4/0x114
> Apr 17 12:10:05 hakla04 kernel: swap_info_get: Bad swap file entry 74016722
> Apr 17 12:10:05 hakla04 kernel: BUG: Bad page map in process cc1plus 
> pte:02ce443e pmd:7bd55067
> Apr 17 12:10:05 hakla04 kernel: addr:0b366000 vm_flags:00100073
> anon_vma:d8333e70 mapping:00000000 index:b366
> Apr 17 12:10:05 hakla04 kernel: file:(null) fault:0x0 mmap:0x0 readpage:0x0
> Apr 17 12:10:05 hakla04 kernel: CPU: 0 PID: 12912 Comm: cc1plus Tainted: G    B
> D           5.7.0-rc1-Pentium4 #1
> Apr 17 12:10:05 hakla04 kernel: Hardware name:  /FS51, BIOS 6.00 PG 12/02/2003
> Apr 17 12:10:05 hakla04 kernel: Call Trace:
> Apr 17 12:10:05 hakla04 kernel:  dump_stack+0x6c/0x94
> Apr 17 12:10:05 hakla04 kernel:  print_bad_pte+0x14d/0x167
> Apr 17 12:10:05 hakla04 kernel:  unmap_page_range+0x2b9/0x3cb
> Apr 17 12:10:05 hakla04 kernel:  unmap_single_vma+0x8a/0x94
> Apr 17 12:10:05 hakla04 kernel:  unmap_vmas+0x52/0x69
> Apr 17 12:10:05 hakla04 kernel:  exit_mmap+0x93/0xde
> Apr 17 12:10:05 hakla04 kernel:  ? do_exit+0x2ad/0x82d
> Apr 17 12:10:05 hakla04 kernel:  __mmput+0x39/0xc6
> Apr 17 12:10:05 hakla04 kernel:  mmput+0x1e/0x21
> Apr 17 12:10:05 hakla04 kernel:  do_exit+0x2fd/0x82d
> Apr 17 12:10:05 hakla04 kernel:  rewind_stack_do_exit+0x11/0x13
> [...]
> Please find the full dmesg (journalctl -k) attached, it is rather long. The bug
> leaves the machine in a working state via ssh. Swap usage looks rather
> unobtrusive. /dev/zram0 is generated via /sbin/zram-init -d0 -s2 -azstd
> -Lzram_swap 256.
> 
>  # cat /proc/swaps 
> Filename                Type            Size    Used    Priority
> /dev/zram0              partition       262140  3328    16383
> /dev/sda3               partition       16777212        0       -2
> 
>  # inxi -b
> System:    Host: hakla04 Kernel: 5.7.0-rc1-Pentium4 i686 bits: 32 Console: tty
> 1 
>            Distro: Gentoo Base System release 2.6 
> Machine:   Type: Desktop Mobo: Shuttle model: FS51 serial: N/A BIOS: Phoenix v:
> 6.00 PG 
>            date: 12/02/2003 
> CPU:       Single Core: Intel Pentium 4 type: MCP speed: 2796 MHz 
> Graphics:  Device-1: AMD RV350 [Radeon 9550/9600/X1050 Series] driver: N/A 
>            Display: server: X.org 1.20.7 driver: radeon tty: 104x53 
>            Message: Advanced graphics data unavailable in console for root. 
> Network:   Device-1: Ralink RT2500 Wireless 802.11bg driver: rt2500pci 
>            Device-2: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
> driver: 8139too 
> Drives:    Local Storage: total: 76.69 GiB used: 7.30 GiB (9.5%) 
> Info:      Processes: 92 Uptime: 14h 38m Memory: 1.97 GiB used: 146.3 MiB
> (7.3%) Init: systemd 
>            Shell: bash inxi: 3.0.38
> 
> -- 
> You are receiving this mail because:
> You are the assignee for the bug.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux