bisecting cause commit starting from 0974b8411a58cd5b4c7c3cfe28f4874c0b7267e7 building syzkaller on 3037caa999f22cdb40f1fa5c6b1b13e5d6af9781 testing commit 0974b8411a58cd5b4c7c3cfe28f4874c0b7267e7 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ed952332eff1a67078945c46f47f058a8782d1614edf828068fd38412fe06e34 run #0: crashed: general protection fault in kernfs_name_hash run #1: crashed: general protection fault in del_gendisk run #2: crashed: general protection fault in del_gendisk run #3: crashed: general protection fault in kernfs_name_hash run #4: crashed: general protection fault in del_gendisk run #5: crashed: general protection fault in kernfs_name_hash run #6: crashed: general protection fault in del_gendisk run #7: crashed: general protection fault in del_gendisk run #8: crashed: general protection fault in del_gendisk run #9: crashed: general protection fault in kernfs_name_hash run #10: crashed: general protection fault in kernfs_name_hash run #11: crashed: general protection fault in del_gendisk run #12: crashed: general protection fault in del_gendisk run #13: crashed: general protection fault in kernfs_name_hash run #14: crashed: general protection fault in del_gendisk run #15: crashed: general protection fault in kernfs_name_hash run #16: crashed: general protection fault in del_gendisk run #17: crashed: general protection fault in del_gendisk run #18: crashed: general protection fault in del_gendisk run #19: crashed: general protection fault in del_gendisk testing release v5.10.117 testing commit 7686a5c2a8d398196259b1bf3fa369a4fd6bcd6f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0417c6324fe36adb3c3c570fcd9d92cc9aa461d171c2c4c14430f344a5dfffc5 all runs: OK # git bisect start 0974b8411a58cd5b4c7c3cfe28f4874c0b7267e7 7686a5c2a8d398196259b1bf3fa369a4fd6bcd6f Bisecting: 2952 revisions left to test after this (roughly 12 steps) [fd10db46d00327f730807d776db03eae98948a00] FROMGIT: kasan, mm: optimize krealloc poisoning testing commit fd10db46d00327f730807d776db03eae98948a00 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 mm/memory.c:4800:10: error: assignment of member 'vma' in read-only object mm/memory.c:4942:12: error: assignment of member 'pgoff' in read-only object mm/memory.c:4943:15: error: assignment of member 'gfp_mask' in read-only object # git bisect skip fd10db46d00327f730807d776db03eae98948a00 Bisecting: 2950 revisions left to test after this (roughly 12 steps) [9e7985701d28e10e26a8d2382a4cbd7700ea4f08] FROMGIT: arm64: kasan: simplify and inline MTE functions testing commit 9e7985701d28e10e26a8d2382a4cbd7700ea4f08 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 mm/memory.c:4800:10: error: assignment of member 'vma' in read-only object mm/memory.c:4942:12: error: assignment of member 'pgoff' in read-only object mm/memory.c:4943:15: error: assignment of member 'gfp_mask' in read-only object # git bisect skip 9e7985701d28e10e26a8d2382a4cbd7700ea4f08 Bisecting: 2950 revisions left to test after this (roughly 12 steps) [9a92773dc8cb5978f5894317c25b9763dd389447] ANDROID: GKI: ethtool.h: add Android ABI padding to a structure testing commit 9a92773dc8cb5978f5894317c25b9763dd389447 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 3dca412193f89a27166d9624ac6d79546a0661f146e8ec2e3b5eb22cd26a96b4 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 9a92773dc8cb5978f5894317c25b9763dd389447 Bisecting: 2950 revisions left to test after this (roughly 12 steps) [8846927a0240573859426b83419d93b9a95a0719] ANDROID: GKI: rockchip: Enable symbols for dwc2 testing commit 8846927a0240573859426b83419d93b9a95a0719 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 32d238c019faaa85579ad42a74769636d71ef14717a1c427c2c053425828a1eb run #0: crashed: general protection fault in kernfs_name_hash run #1: crashed: general protection fault in del_gendisk run #2: crashed: general protection fault in kernfs_name_hash run #3: crashed: general protection fault in del_gendisk run #4: crashed: general protection fault in del_gendisk run #5: crashed: general protection fault in del_gendisk run #6: crashed: general protection fault in kernfs_name_hash run #7: crashed: general protection fault in kernfs_name_hash run #8: crashed: general protection fault in kernfs_name_hash run #9: crashed: general protection fault in del_gendisk # git bisect bad 8846927a0240573859426b83419d93b9a95a0719 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [7a42edb4fcd17704c3f4e76930f708a1adf9e952] UPSTREAM: arm64: Make the Meltdown mitigation state available testing commit 7a42edb4fcd17704c3f4e76930f708a1adf9e952 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: aa16c62b11ffd749ade4fd9635b1f97aa806be441e79205c33b94f5eb3bff270 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 7a42edb4fcd17704c3f4e76930f708a1adf9e952 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [ed92ca7c782c0e83da4dda54ca24e754cf0e1569] Revert "ANDROID: arm64: kvm: Hide asym aarch32 systems from KVM" testing commit ed92ca7c782c0e83da4dda54ca24e754cf0e1569 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e9c7e548c99f766af078617bbc3f5bb5f51b1f0772007f52ca275d13a844561c all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip ed92ca7c782c0e83da4dda54ca24e754cf0e1569 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [eef08d7dc9a3ea953605fa2b4d7d98a87fdd3084] ANDROID: Update the qcom symbol list testing commit eef08d7dc9a3ea953605fa2b4d7d98a87fdd3084 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 01741eb4763b70d568c40ee8a4525eef2f06382f984d84b02c56496f3f3c5c58 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip eef08d7dc9a3ea953605fa2b4d7d98a87fdd3084 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [4e0450b1cd640af5f35e8c323af40db3b5ccb090] UPSTREAM: usb: typec: Standardize PD Revision format with Type-C Revision testing commit 4e0450b1cd640af5f35e8c323af40db3b5ccb090 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9ac90a743e26e1aaf1ca218a87124289762026e366080af09df2280368fe1e1d all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 4e0450b1cd640af5f35e8c323af40db3b5ccb090 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [ab8b108b0a250254daec39f7aba7d6bcd5012bb7] Merge 5.10.31 into android12-5.10 testing commit ab8b108b0a250254daec39f7aba7d6bcd5012bb7 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bf2a8b2981fe83ad13cd954819ddcb73eff962450d7264cf0379ab3c10c0ed66 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip ab8b108b0a250254daec39f7aba7d6bcd5012bb7 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [5ec78398b3db4b1bb7b97732fd7110a3f6e64632] UPSTREAM: kasan: fix HW_TAGS boot parameters testing commit 5ec78398b3db4b1bb7b97732fd7110a3f6e64632 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c1046a997d28ded9761b56ea966cb00b2d91b8a52cb22bc8d5f7f72e716ba0a5 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 5ec78398b3db4b1bb7b97732fd7110a3f6e64632 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [e706f27c765b7fb40ed6febc1f8e85ed44ce4623] ANDROID: fix redefinition error for restricted vendor hooks testing commit e706f27c765b7fb40ed6febc1f8e85ed44ce4623 compiler: gcc (GCC) 8.4.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 93f2611a3176a5904094be1535a73f7465b0f19ace33e839a9236d18eadca64b all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip e706f27c765b7fb40ed6febc1f8e85ed44ce4623 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [b55d8223cabd7da65c24ed8d2688d99c22db2d7e] ANDROID: Fix sparse warning in wp_page_copy caused by SPF patchset testing commit b55d8223cabd7da65c24ed8d2688d99c22db2d7e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 29e77852bcd344ba44dee3f2bc1bce2ed372f78f406b3130c664da4a6c33925a all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip b55d8223cabd7da65c24ed8d2688d99c22db2d7e Bisecting: 2550 revisions left to test after this (roughly 11 steps) [b40c7d63a0849f7ffd15134c0d4e72d696dab149] ANDROID: GKI: enable UFS for x86 gki builds and SCSI_UFSHCD_PCI testing commit b40c7d63a0849f7ffd15134c0d4e72d696dab149 compiler: gcc (GCC) 8.4.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c6e2b1b4c7d6fa831e1ffcad38fc528a665b1ac2162b00ac82c03e04376485ca all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip b40c7d63a0849f7ffd15134c0d4e72d696dab149 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [b742959e1a5100739859eded1982b29aa2945218] UPSTREAM: KVM: arm64: Map AArch32 cp15 register to AArch64 sysregs testing commit b742959e1a5100739859eded1982b29aa2945218 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7f81c4daa39af6a16626e921f82309ef456c09217d6bd8f9bcd117886803972c all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip b742959e1a5100739859eded1982b29aa2945218 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [a73718de286fb6c30981253937d708a40b72c494] UPSTREAM: iommu/mediatek: Add get_domain_id from dev->dma_range_map testing commit a73718de286fb6c30981253937d708a40b72c494 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 96290ee2ae4fc0ef1b968c4dbd8bb331ea485d1505c3424331d38f3ea02f9212 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip a73718de286fb6c30981253937d708a40b72c494 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [7f3bc706adcade06e573dba2ce0d790082ad6568] UPSTREAM: psci: Split functions to v0.1 and v0.2+ variants testing commit 7f3bc706adcade06e573dba2ce0d790082ad6568 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bd7df12d256298dbe258d3e34435e5a952bad8a02136904745b4702ab3730b67 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 7f3bc706adcade06e573dba2ce0d790082ad6568 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [f25741f0470a54cb43036e5e81f1df623df8ba78] ANDROID: sched/fair: Do not sync task util with SD_BALANCE_FORK testing commit f25741f0470a54cb43036e5e81f1df623df8ba78 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 18fe7f7dfee02fc81d522576ae126d1b0dedcdf277f9fbf6f8be22097c5d4931 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip f25741f0470a54cb43036e5e81f1df623df8ba78 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [8b4355a9c1cd1d666a83628be59195ee35fd223e] UPSTREAM: KVM: arm64: Delay the polling of the GICR_VPENDBASER.Dirty bit testing commit 8b4355a9c1cd1d666a83628be59195ee35fd223e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d7c2bfbff340614b509e600f5b7016747096bf0d18e79ba2eb442fe24ccafe69 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 8b4355a9c1cd1d666a83628be59195ee35fd223e Bisecting: 2550 revisions left to test after this (roughly 11 steps) [0af83133e31fc0d6cb19a02669372956a6ad76da] FROMLIST: KVM: arm64: Add kvm_pgtable_stage2_find_range() testing commit 0af83133e31fc0d6cb19a02669372956a6ad76da compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f9add54bb052b0e775cf9a80a0f0c6589a2bc3b4743224c0abb668193cd67019 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 0af83133e31fc0d6cb19a02669372956a6ad76da Bisecting: 2550 revisions left to test after this (roughly 11 steps) [72cc4e08eeede28646a918c01c98c63e5626b593] f2fs: introduce a new per-sb directory in sysfs testing commit 72cc4e08eeede28646a918c01c98c63e5626b593 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 68ae3aac03872531b9f8c50b29e8cb64a8bebfe30a62b534e0ecaf7a814d1eb3 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 72cc4e08eeede28646a918c01c98c63e5626b593 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [082e8dcea9a8df7967266dd7d1204f67ad496a15] UPSTREAM: powercap/drivers/dtpm: Add API for dynamic thermal power management testing commit 082e8dcea9a8df7967266dd7d1204f67ad496a15 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 517ed2b28fc691395c666227f2efabf339a4d0867edf66e8d865149394d58b63 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 082e8dcea9a8df7967266dd7d1204f67ad496a15 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [9b42d1c8d455be23ed255ecdea3cb4f6d375de47] f2fs: modify open brace '{' following function definitions testing commit 9b42d1c8d455be23ed255ecdea3cb4f6d375de47 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ab4ef014acdb695ffb20a077b9ddf68f9abb50830f8ad9bb15d1037fd68cf6e6 all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 9b42d1c8d455be23ed255ecdea3cb4f6d375de47 Bisecting: 2550 revisions left to test after this (roughly 11 steps) [44043ee002fa87a84cc3e43557d7d42cfa1b7f9f] ANDROID: printk: printk_deferred for modules testing commit 44043ee002fa87a84cc3e43557d7d42cfa1b7f9f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 670e3b252c556060f0d18468f6a8db6a367c9ff6b9da7743175429bbc013ec9c all runs: basic kernel testing failed: KASAN: use-after-free Read in task_active_pid_ns # git bisect skip 44043ee002fa87a84cc3e43557d7d42cfa1b7f9f Bisecting: 2550 revisions left to test after this (roughly 11 steps) [989fb724d56eed6f48293ca159f6e92b1bace013] ANDROID: GKI: sort the list of symbol lists testing commit 989fb724d56eed6f48293ca159f6e92b1bace013 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d4475ee4a7ee5117e886458ab5ba5cda4f143fb8117762754d2f8054a9ac3043 all runs: OK # git bisect good 989fb724d56eed6f48293ca159f6e92b1bace013 Bisecting: 106 revisions left to test after this (roughly 7 steps) [a844dfbbcba62b0a2167723e53d1ae65d0eef1bb] UPSTREAM: usb: gadget: u_audio: convert to strscpy testing commit a844dfbbcba62b0a2167723e53d1ae65d0eef1bb compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: af2a026fcd5cf2065ef5fa626732f686e8d359d8d428010920b4e78dabd98f17 run #0: crashed: general protection fault in del_gendisk run #1: crashed: general protection fault in del_gendisk run #2: crashed: general protection fault in del_gendisk run #3: crashed: general protection fault in kernfs_name_hash run #4: crashed: general protection fault in del_gendisk run #5: crashed: general protection fault in kernfs_name_hash run #6: crashed: general protection fault in del_gendisk run #7: crashed: general protection fault in kernfs_name_hash run #8: crashed: general protection fault in kernfs_name_hash run #9: crashed: general protection fault in del_gendisk # git bisect bad a844dfbbcba62b0a2167723e53d1ae65d0eef1bb Bisecting: 52 revisions left to test after this (roughly 6 steps) [2493757f88b40a798ec06979ab05ed80950042b3] BACKPORT: ALSA: usb-audio: fix incorrect clock source setting testing commit 2493757f88b40a798ec06979ab05ed80950042b3 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b3d124c538094455cc16163ae078a089147a3a11fe9770b674dc0db18c1d9732 run #0: crashed: general protection fault in del_gendisk run #1: crashed: general protection fault in del_gendisk run #2: crashed: general protection fault in del_gendisk run #3: crashed: general protection fault in kernfs_name_hash run #4: crashed: general protection fault in del_gendisk run #5: crashed: general protection fault in kernfs_name_hash run #6: crashed: general protection fault in del_gendisk run #7: crashed: general protection fault in del_gendisk run #8: crashed: general protection fault in del_gendisk run #9: crashed: general protection fault in del_gendisk # git bisect bad 2493757f88b40a798ec06979ab05ed80950042b3 Bisecting: 26 revisions left to test after this (roughly 5 steps) [8914725a582861666a2a298efbcb5ae7613a47b7] FROMGIT: usb: typec: tcpm: Keep other events when receiving FRS and Sourcing_vbus events testing commit 8914725a582861666a2a298efbcb5ae7613a47b7 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8af0315b7c3c3dbe3708adb191e9b6faad01e0f84ac5fd83149649e949bb765d all runs: OK # git bisect good 8914725a582861666a2a298efbcb5ae7613a47b7 Bisecting: 12 revisions left to test after this (roughly 4 steps) [82b96336e5e6f58cdae1dcc27fbf2dfae51980d7] ANDROID: scsi: ufs: Make CONFIG_SCSI_UFS_HPB compatible with the GKI testing commit 82b96336e5e6f58cdae1dcc27fbf2dfae51980d7 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 50b5ad4a50c9145c11f1cada9a014daf63d9521ee270c2c0b15cd691ac1e2300 run #0: crashed: general protection fault in kernfs_name_hash run #1: crashed: general protection fault in del_gendisk run #2: crashed: general protection fault in kernfs_name_hash run #3: crashed: general protection fault in del_gendisk run #4: crashed: general protection fault in kernfs_name_hash run #5: crashed: general protection fault in del_gendisk run #6: crashed: general protection fault in del_gendisk run #7: crashed: general protection fault in kernfs_name_hash run #8: crashed: general protection fault in del_gendisk run #9: crashed: general protection fault in del_gendisk # git bisect bad 82b96336e5e6f58cdae1dcc27fbf2dfae51980d7 Bisecting: 6 revisions left to test after this (roughly 3 steps) [4bb5a5c55bcd47c52dbfb3f050671fb5d7c24b8d] FROMGIT: sched/deadline: Fix reset_on_fork reporting of DL tasks testing commit 4bb5a5c55bcd47c52dbfb3f050671fb5d7c24b8d compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1f12602fe07d6e7af538d62de0ec3e7ab01ca48f154ed98b63a8dfd3b178a7e8 run #0: crashed: general protection fault in del_gendisk run #1: crashed: general protection fault in kernfs_name_hash run #2: crashed: general protection fault in del_gendisk run #3: crashed: general protection fault in del_gendisk run #4: crashed: general protection fault in del_gendisk run #5: crashed: general protection fault in del_gendisk run #6: crashed: general protection fault in kernfs_name_hash run #7: crashed: general protection fault in kernfs_name_hash run #8: crashed: general protection fault in kernfs_name_hash run #9: crashed: general protection fault in kernfs_name_hash # git bisect bad 4bb5a5c55bcd47c52dbfb3f050671fb5d7c24b8d Bisecting: 3 revisions left to test after this (roughly 2 steps) [1efc36b815769cb8c7dae1d53373b190c017f5d1] ANDROID: sched: add a helper function to change PELT half-life testing commit 1efc36b815769cb8c7dae1d53373b190c017f5d1 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d220990e8f9ab8890bf027643facfb38e3fe55ab4ef52a14b3bb6ba2da499f1b run #0: crashed: general protection fault in kernfs_name_hash run #1: crashed: general protection fault in del_gendisk run #2: crashed: general protection fault in del_gendisk run #3: crashed: general protection fault in del_gendisk run #4: crashed: general protection fault in del_gendisk run #5: crashed: general protection fault in del_gendisk run #6: crashed: general protection fault in kernfs_name_hash run #7: crashed: general protection fault in kernfs_name_hash run #8: crashed: general protection fault in kernfs_name_hash run #9: crashed: general protection fault in del_gendisk # git bisect bad 1efc36b815769cb8c7dae1d53373b190c017f5d1 Bisecting: 0 revisions left to test after this (roughly 1 step) [bda49ad0602e5250a9d3dd61deda19d3e5615c54] FROMGIT: loop: Select I/O scheduler 'none' from inside add_disk() testing commit bda49ad0602e5250a9d3dd61deda19d3e5615c54 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8913ddc27623f2315b19f30953bd278486cadbe61205682e1d57487358b23252 run #0: crashed: general protection fault in del_gendisk run #1: crashed: general protection fault in kernfs_name_hash run #2: crashed: general protection fault in kernfs_name_hash run #3: crashed: general protection fault in kernfs_name_hash run #4: crashed: general protection fault in del_gendisk run #5: crashed: general protection fault in del_gendisk run #6: crashed: general protection fault in del_gendisk run #7: crashed: general protection fault in del_gendisk run #8: crashed: general protection fault in kernfs_name_hash run #9: crashed: general protection fault in del_gendisk # git bisect bad bda49ad0602e5250a9d3dd61deda19d3e5615c54 Bisecting: 0 revisions left to test after this (roughly 0 steps) [d8b946254effbe36780f0b855da509a07470b8d2] FROMGIT: blk-mq: Introduce the BLK_MQ_F_NO_SCHED_BY_DEFAULT flag testing commit d8b946254effbe36780f0b855da509a07470b8d2 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ee1610ca24623055502251fbe06b200b95ec828dbae65868d30193eb597df1b5 all runs: OK # git bisect good d8b946254effbe36780f0b855da509a07470b8d2 bda49ad0602e5250a9d3dd61deda19d3e5615c54 is the first bad commit commit bda49ad0602e5250a9d3dd61deda19d3e5615c54 Author: Bart Van Assche Date: Mon Aug 2 10:05:29 2021 -0700 FROMGIT: loop: Select I/O scheduler 'none' from inside add_disk() We noticed that the user interface of Android devices becomes very slow under memory pressure. This is because Android uses the zram driver on top of the loop driver for swapping, because under memory pressure the swap code alternates reads and writes quickly, because mq-deadline is the default scheduler for loop devices and because mq-deadline delays writes by five seconds for such a workload with default settings. Fix this by making the kernel select I/O scheduler 'none' from inside add_disk() for loop devices. This default can be overridden at any time from user space, e.g. via a udev rule. This approach has an advantage compared to changing the I/O scheduler from userspace from 'mq-deadline' into 'none', namely that synchronize_rcu() does not get called. Additionally, this patch reduces the Android boot time on my test setup with 0.5 seconds compared to configuring the loop I/O scheduler from user space. Signed-off-by: Bart Van Assche Bug: 194450129 (cherry picked from commit 2112f5c1330a671fa852051d85cb9eadc05d7eb7 git://git.kernel.dk/linux-block/ for-5.15/block) Change-Id: I6f9579b4cd2cb22fcb5c858d4f292f1870336fdd Signed-off-by: Bart Van Assche drivers/block/loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) culprit signature: 8913ddc27623f2315b19f30953bd278486cadbe61205682e1d57487358b23252 parent signature: ee1610ca24623055502251fbe06b200b95ec828dbae65868d30193eb597df1b5 revisions tested: 32, total time: 4h19m45.476235463s (build: 2h31m22.52084132s, test: 1h44m42.446353196s) first bad commit: bda49ad0602e5250a9d3dd61deda19d3e5615c54 FROMGIT: loop: Select I/O scheduler 'none' from inside add_disk() recipients (to): ["axboe@kernel.dk" "bvanassche@acm.org" "bvanassche@google.com" "linux-block@vger.kernel.org"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: general protection fault in del_gendisk RBP: 00007fb8eca8308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9bfb25df R14: 00007fb8ec99f300 R15: 0000000000022000 ---[ end trace f19dc383288789ef ]--- general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7] CPU: 0 PID: 416 Comm: syz-executor.0 Tainted: G W 5.10.43-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kill_device drivers/base/core.c:3354 [inline] RIP: 0010:device_del+0xe3/0xd00 drivers/base/core.c:3382 Code: c1 ea 03 80 3c 02 00 0f 85 c5 0a 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 68 49 8d bc 24 d0 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e a6 09 00 00 41 0f b6 84 24 d0 00 00 RSP: 0018:ffffc90000887ca0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88810c1d9068 RCX: ffffffff84262aa9 RDX: 000000000000001a RSI: 0000000000000008 RDI: 00000000000000d0 RBP: ffffc90000887d58 R08: 0000000000000001 R09: ffffc90000887c3f R10: fffff52000110f87 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88810c1d9108 R14: fffffbfff0cdf1c8 R15: 0000000000000008 FS: 00007fb8ec99f700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb8ecb3d090 CR3: 000000010bc76000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: del_gendisk+0x611/0xa60 block/genhd.c:953 loop_remove drivers/block/loop.c:2194 [inline] loop_control_ioctl drivers/block/loop.c:2293 [inline] loop_control_ioctl+0x30d/0x3d0 drivers/block/loop.c:2259 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x129/0x1a0 fs/ioctl.c:739 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fb8eca29109 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb8ec99f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb8ecb3bf60 RCX: 00007fb8eca29109 RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000003 RBP: 00007fb8eca8308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9bfb25df R14: 00007fb8ec99f300 R15: 0000000000022000 Modules linked in: ---[ end trace f19dc383288789f0 ]--- RIP: 0010:kill_device drivers/base/core.c:3354 [inline] RIP: 0010:device_del+0xe3/0xd00 drivers/base/core.c:3382 Code: c1 ea 03 80 3c 02 00 0f 85 c5 0a 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 68 49 8d bc 24 d0 00 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 06 0f 8e a6 09 00 00 41 0f b6 84 24 d0 00 00 RSP: 0018:ffffc90000887ca0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88810c1d9068 RCX: ffffffff84262aa9 RDX: 000000000000001a RSI: 0000000000000008 RDI: 00000000000000d0 RBP: ffffc90000887d58 R08: 0000000000000001 R09: ffffc90000887c3f R10: fffff52000110f87 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88810c1d9108 R14: fffffbfff0cdf1c8 R15: 0000000000000008 FS: 00007fb8ec99f700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb8ecb3d090 CR3: 000000010bc76000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: c1 ea 03 shr $0x3,%edx 3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 7: 0f 85 c5 0a 00 00 jne 0xad2 d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 14: fc ff df 17: 4c 8b 63 68 mov 0x68(%rbx),%r12 1b: 49 8d bc 24 d0 00 00 lea 0xd0(%r12),%rdi 22: 00 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 06 je 0x38 32: 0f 8e a6 09 00 00 jle 0x9de 38: 41 rex.B 39: 0f .byte 0xf 3a: b6 84 mov $0x84,%dh 3c: 24 d0 and $0xd0,%al