arm64: perf test 26 rpi4 oops

From: Mike Galbraith
Date: Fri Jul 28 2023 - 00:07:43 EST


perf test 26 in virgin master inspired the below.

The oops is not brand new, apparently arriving sometime after 6.1, as
the stock 6.1.21 Raspian/PiOS kernel does not reproduce but the rpi-
6.4.y pi kernel (https://github.com/raspberrypi/linux.git) branch does.

[ 65.416656] Unable to handle kernel paging request at virtual address ffffffd080a00000
[ 65.416680] Mem abort info:
[ 65.416685] ESR = 0x0000000096000007
[ 65.416690] EC = 0x25: DABT (current EL), IL = 32 bits
[ 65.416696] SET = 0, FnV = 0
[ 65.416701] EA = 0, S1PTW = 0
[ 65.416705] FSC = 0x07: level 3 translation fault
[ 65.416710] Data abort info:
[ 65.416715] ISV = 0, ISS = 0x00000007, ISS2 = 0x00000000
[ 65.416720] CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[ 65.416725] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[ 65.416731] swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000000f51000
[ 65.416737] [ffffffd080a00000] pgd=10000001fffff003, p4d=10000001fffff003, pud=10000001fffff003, pmd=10000001ffffe003, pte=0000000000000000
[ 65.416758] Internal error: Oops: 0000000096000007 [#1] SMP
[ 65.416764] Modules linked in: rfcomm nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables nfnetlink cmac algif_hash aes_arm64 aes_generic algif_skcipher af_alg bnep vc4 brcmfmac_wcc 8021q brcmfmac garp stp llc snd_soc_hdmi_codec drm_display_helper hci_uart drm_dma_helper drm_kms_helper btbcm bluetooth cfg80211 bcm2835_v4l2(C) cec videobuf2_vmalloc snd_soc_core videobuf2_memops bcm2835_mmal_vchiq(C) videobuf2_v4l2 videodev snd_pcm_dmaengine snd_bcm2835(C) v3d snd_pcm videobuf2_common snd_timer sg ecdh_generic ecc drm_shmem_helper mc rfkill snd gpu_sched brcmutil i2c_brcmstb raspberrypi_hwmon pwm_bcm2835 i2c_bcm2835 libaes uio_pdrv_genirq uio nvmem_rmem drm nfsd fuse i2c_dev drm_panel_orientation_quirks backlight ip_tables x_tables ipv6
[ 65.416903] CPU: 0 PID: 1769 Comm: objdump Tainted: G C 6.5.0.g0a8db05-master #1
[ 65.416909] Hardware name: Raspberry Pi 4 Model B Rev 1.4 (DT)
[ 65.416913] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 65.416919] pc : __arch_copy_to_user+0x180/0x240
[ 65.416929] lr : _copy_to_iter+0xe8/0x4d0
[ 65.416936] sp : ffffffc08219b970
[ 65.416939] x29: ffffffc08219b970 x28: ffffffd080a00000 x27: ffffffd081d5cd30
[ 65.416948] x26: 0000000000000000 x25: ffffffd080a00000 x24: 0000000000000000
[ 65.416956] x23: ffffffc08219bd40 x22: ffffffd081c00000 x21: ffffffc08219bd40
[ 65.416964] x20: ffffffd081c005c0 x19: 0000000000000400 x18: 0000000000000000
[ 65.416972] x17: 0000000000000000 x16: 0000000000000000 x15: ffffffd080a00000
[ 65.416980] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 65.416987] x11: 0000008000000000 x10: ffffffd081c005c0 x9 : 0000000000000230
[ 65.416995] x8 : 0000000004000000 x7 : 0000007e08000000 x6 : 000000559ae52840
[ 65.417003] x5 : 000000559ae52c40 x4 : 0000000000000000 x3 : 0000000000000400
[ 65.417010] x2 : 0000000000000380 x1 : ffffffd080a00000 x0 : 000000559ae52840
[ 65.417018] Call trace:
[ 65.417021] __arch_copy_to_user+0x180/0x240
[ 65.417026] read_kcore_iter+0x5b4/0x830
[ 65.417035] proc_reg_read_iter+0x8c/0xe8
[ 65.417042] vfs_read+0x200/0x2a8
[ 65.417049] ksys_read+0x70/0x108
[ 65.417054] __arm64_sys_read+0x24/0x38
[ 65.417060] invoke_syscall+0x50/0x128
[ 65.417067] el0_svc_common.constprop.0+0x68/0x120
[ 65.417073] do_el0_svc+0x40/0xb8
[ 65.417079] el0_svc+0x30/0x98
[ 65.417086] el0t_64_sync_handler+0xc0/0xc8
[ 65.417092] el0t_64_sync+0x190/0x198
[ 65.417098] Code: d503201f d503201f d503201f d503201f (a8c12027)