ci starts bisection 2023-01-25 22:05:03.646637537 +0000 UTC m=+269617.592699622 bisecting fixing commit since 55be6084c8e0e0ada9278c2ab60b7a584378efda building syzkaller on 67cb024cd1a3c95e311263a5c95e957f9abfd8ca ensuring issue is reproducible on original commit 55be6084c8e0e0ada9278c2ab60b7a584378efda testing commit 55be6084c8e0e0ada9278c2ab60b7a584378efda gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 922962a646db555527f16870da183023f8a409cbf6c7dcbd71d250fa208d470e all runs: crashed: general protection fault in end_page_writeback testing current HEAD 7c46948a6e9cf47ed03b0d489fde894ad46f1437 testing commit 7c46948a6e9cf47ed03b0d489fde894ad46f1437 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c8c66c862e7a162ee743a1abb7ca01d2d6b6ea27908c54f741d4fef477df0525 all runs: OK # git bisect start 7c46948a6e9cf47ed03b0d489fde894ad46f1437 55be6084c8e0e0ada9278c2ab60b7a584378efda Bisecting: 11249 revisions left to test after this (roughly 13 steps) [542d3c03fd895eb8370992293498332ea383a3b9] media: sun6i-isp: params: Unregister pending buffer on cleanup testing commit 542d3c03fd895eb8370992293498332ea383a3b9 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5fd5fb0150ed088c7764b16e948f3d4dd6dcb906754e896a7b06eeb16264447d all runs: OK # git bisect bad 542d3c03fd895eb8370992293498332ea383a3b9 Bisecting: 5107 revisions left to test after this (roughly 12 steps) [bf82d38c91f857083f2d1b9770fa3df55db2ca3b] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm testing commit bf82d38c91f857083f2d1b9770fa3df55db2ca3b gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6594f5c1fc1b83942ba8abc47658bd2ff92ab2aacdf96bbe240ec13b02fb542e all runs: OK # git bisect bad bf82d38c91f857083f2d1b9770fa3df55db2ca3b Bisecting: 2547 revisions left to test after this (roughly 11 steps) [91080ab38f3eaa2a0af4888220d007698a2e7b03] Merge tag 'for-linus-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux testing commit 91080ab38f3eaa2a0af4888220d007698a2e7b03 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 94ffb66deeca8355cc69c2d24d4022cda752f4608581ddecebfffc5aca5828ff all runs: boot failed: WARNING in cpumask_next_wrap # git bisect skip 91080ab38f3eaa2a0af4888220d007698a2e7b03 Bisecting: 2547 revisions left to test after this (roughly 11 steps) [9f187ba0d5170b242561133724188142b62dc34c] Merge tag 'fix-log-recovery-misuse-6.1_2022-10-31' of git://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into xfs-6.1-fixes testing commit 9f187ba0d5170b242561133724188142b62dc34c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 131c6b53483461a7138b5d335f3c4be33347ab8d412821010ed60a6ba615aa20 all runs: boot failed: WARNING in __netif_set_xps_queue # git bisect skip 9f187ba0d5170b242561133724188142b62dc34c Bisecting: 2547 revisions left to test after this (roughly 11 steps) [3867bbd44f2894a4e2b01286b3b378c058992cd7] drm/amd/display: Fix bug preventing FCLK Pstate allow message being sent testing commit 3867bbd44f2894a4e2b01286b3b378c058992cd7 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 10a7377c3a136dba77a86c934daaf94f0055ebc35514080a159eed207c3d36db all runs: crashed: general protection fault in end_page_writeback # git bisect good 3867bbd44f2894a4e2b01286b3b378c058992cd7 Bisecting: 2511 revisions left to test after this (roughly 11 steps) [b7270c69a36efc61ed6ebd31a8a458f354a6edc0] Merge tag 'rtc-6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux testing commit b7270c69a36efc61ed6ebd31a8a458f354a6edc0 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9ca6b731dab1abc1d6fff072f75be78cf7a47cc187813cb3d6fd1f3a006b71f3 all runs: boot failed: WARNING in cpumask_next_wrap # git bisect skip b7270c69a36efc61ed6ebd31a8a458f354a6edc0 Bisecting: 2511 revisions left to test after this (roughly 11 steps) [00a7829ba8a44d720269e8a7562b51d4c68c03f7] Merge branch 'slab/for-6.1/slub_validation_locking' into slab/for-next testing commit 00a7829ba8a44d720269e8a7562b51d4c68c03f7 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: accb7e180826450e93a0d087dec6afcbf43a5ea0fdddc767aa26ce704c384339 all runs: crashed: general protection fault in end_page_writeback # git bisect good 00a7829ba8a44d720269e8a7562b51d4c68c03f7 Bisecting: 2499 revisions left to test after this (roughly 11 steps) [41410965c3629367cbd0889dc0c8bddfb9e8a2d5] Merge tag 'pci-v6.1-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci testing commit 41410965c3629367cbd0889dc0c8bddfb9e8a2d5 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 13bd3df84880d327436c656c81e7283d558c31e46696e564474e4f0d8659a63c all runs: boot failed: WARNING in cpumask_next_wrap # git bisect skip 41410965c3629367cbd0889dc0c8bddfb9e8a2d5 Bisecting: 2499 revisions left to test after this (roughly 11 steps) [180418e2eb33be5c8d0b703c843e0ebc045aef80] KVM: debugfs: Return retval of simple_attr_open() if it fails testing commit 180418e2eb33be5c8d0b703c843e0ebc045aef80 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1ce3fa0acfd85106e61f43c4f28ba09daa050c17b3c95db91d9cc2d29996bf96 all runs: boot failed: WARNING in __netif_set_xps_queue # git bisect skip 180418e2eb33be5c8d0b703c843e0ebc045aef80 Bisecting: 2499 revisions left to test after this (roughly 11 steps) [2ba3e38517f5a4ebf9c997168079dca01b7f9fc6] media: v4l: subdev: Fail graciously when getting try data for NULL state testing commit 2ba3e38517f5a4ebf9c997168079dca01b7f9fc6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 434f8b97c629fbfb1ac1ef6f5ece0f35f315cf197acbc671037e84d6a5378362 run #0: boot failed: BUG: unable to handle kernel paging request in kernel_execve run #1: boot failed: BUG: unable to handle kernel paging request in kernel_execve run #2: boot failed: general protection fault in driver_register run #3: boot failed: possible deadlock in vivid_update_format_cap run #4: boot failed: possible deadlock in vivid_update_format_cap run #5: boot failed: possible deadlock in vivid_update_format_cap run #6: boot failed: possible deadlock in vivid_update_format_cap run #7: boot failed: general protection fault in driver_register run #8: boot failed: WARNING: ODEBUG bug in __do_softirq run #9: boot failed: general protection fault in driver_register # git bisect skip 2ba3e38517f5a4ebf9c997168079dca01b7f9fc6 Bisecting: 2499 revisions left to test after this (roughly 11 steps) [08ac85521cb2e26f25b885492180815ce8eaf4b7] mm: /proc/pid/smaps_rollup: fix maple tree search testing commit 08ac85521cb2e26f25b885492180815ce8eaf4b7 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d070fa4e5216e43513af510764ee9e105363c480a5a6e1415bf70bc8874dc6e0 all runs: boot failed: WARNING in __netif_set_xps_queue # git bisect skip 08ac85521cb2e26f25b885492180815ce8eaf4b7 Bisecting: 2499 revisions left to test after this (roughly 11 steps) [8f0efa81dfbc6abf86bf410549e61a2636753c86] mm/page_owner.c: add llseek for page_owner testing commit 8f0efa81dfbc6abf86bf410549e61a2636753c86 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d336354ab238360b6b9718f0ed36bf120eddc1fe633bc39587acbece3bf10590 all runs: crashed: general protection fault in end_page_writeback # git bisect good 8f0efa81dfbc6abf86bf410549e61a2636753c86 Bisecting: 2444 revisions left to test after this (roughly 11 steps) [2fcd8f108f25ef0cbbfcb57acf1c42934c238ed5] Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux testing commit 2fcd8f108f25ef0cbbfcb57acf1c42934c238ed5 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e385c51e5e364335ffe52bb35164d7b131e1abaa7b125046462b62e26cd5ae75 all runs: boot failed: WARNING in __netif_set_xps_queue # git bisect skip 2fcd8f108f25ef0cbbfcb57acf1c42934c238ed5 Bisecting: 2444 revisions left to test after this (roughly 11 steps) [2a4ea83bb8e54986703187edce59c9130a75eb26] phy: tegra: xusb: Fix crash during pad power on/down testing commit 2a4ea83bb8e54986703187edce59c9130a75eb26 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ddcfbf5675e03c137f6f14809510c0b2e46e4fecb7635d8b4eb82e0aff811e54 all runs: boot failed: WARNING in __netif_set_xps_queue # git bisect skip 2a4ea83bb8e54986703187edce59c9130a75eb26 Bisecting: 2444 revisions left to test after this (roughly 11 steps) [ba891436c2d2b2a6d6c1bc3733bab3b72f07e87f] drm/amdgpu/mst: Stop ignoring error codes and deadlocking testing commit ba891436c2d2b2a6d6c1bc3733bab3b72f07e87f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ae718c869d3139d62f6aa5a49047b2052c22df4d6b51ee95577089d94f5eddf7 all runs: crashed: general protection fault in end_page_writeback # git bisect good ba891436c2d2b2a6d6c1bc3733bab3b72f07e87f Bisecting: 158 revisions left to test after this (roughly 7 steps) [08ad43d554bacb9769c6a69d5f771f02f5ba411c] Merge tag 'net-6.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 08ad43d554bacb9769c6a69d5f771f02f5ba411c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 06b05c9ecdceccfe98820e677399835def087c4392b3b811e1a48fcb45e10ff0 all runs: crashed: general protection fault in end_page_writeback # git bisect good 08ad43d554bacb9769c6a69d5f771f02f5ba411c Bisecting: 79 revisions left to test after this (roughly 6 steps) [081f359ef5334b0e034979e4e930c2ce80f3001b] Merge tag 'hyperv-fixes-signed-20221125' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux testing commit 081f359ef5334b0e034979e4e930c2ce80f3001b gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d4b157cfd65e914b6eb0ddc5c8c9d5b1fb36e89089711286834bbd3a38c497ba all runs: OK # git bisect bad 081f359ef5334b0e034979e4e930c2ce80f3001b Bisecting: 33 revisions left to test after this (roughly 5 steps) [ca66e58001ad9418e937ceb56bce8b1fe183c62e] Merge tag 'sound-6.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound testing commit ca66e58001ad9418e937ceb56bce8b1fe183c62e gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bcdcbd5c130ed97f3b08840a1e15298c4834af50283c5476bed177b3af542e2f all runs: crashed: general protection fault in end_page_writeback # git bisect good ca66e58001ad9418e937ceb56bce8b1fe183c62e Bisecting: 16 revisions left to test after this (roughly 4 steps) [f850c84948ef2d4f5e11fd8e528c2ac3b3c3d9c4] proc/meminfo: fix spacing in SecPageTables testing commit f850c84948ef2d4f5e11fd8e528c2ac3b3c3d9c4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ea8b4096fd6230178fd2c7c671727396010b4232896a6ea0b567dd3f404794de all runs: crashed: general protection fault in end_page_writeback # git bisect good f850c84948ef2d4f5e11fd8e528c2ac3b3c3d9c4 Bisecting: 9 revisions left to test after this (roughly 3 steps) [de3db3f883a82c4800f4af0ae2cc3b96a408ee9b] test_kprobes: fix implicit declaration error of test_kprobes testing commit de3db3f883a82c4800f4af0ae2cc3b96a408ee9b gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9f6a405b19051e9d95832fdb80d843b7052e94ef8293bd4715519ccfec7b1cdc all runs: OK # git bisect bad de3db3f883a82c4800f4af0ae2cc3b96a408ee9b Bisecting: 3 revisions left to test after this (roughly 2 steps) [de1ccfb648243a031cfbdc2d5571dfdaf5023106] swapfile: fix soft lockup in scan_swap_map_slots testing commit de1ccfb648243a031cfbdc2d5571dfdaf5023106 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1ef139ff6ccd35c3fea3e0e3fc7bc52402f907ae799b5ed08bef193d9be2f7d0 all runs: crashed: general protection fault in end_page_writeback # git bisect good de1ccfb648243a031cfbdc2d5571dfdaf5023106 Bisecting: 1 revision left to test after this (roughly 1 step) [81a70c21d9170de67a45843bdd627f4cce9c4215] mm/cgroup/reclaim: fix dirty pages throttling on cgroup v1 testing commit 81a70c21d9170de67a45843bdd627f4cce9c4215 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4b3f377fa356337c85e86596f3f15fb22f6cb8eb06c70877362284f22ba68577 all runs: crashed: general protection fault in end_page_writeback # git bisect good 81a70c21d9170de67a45843bdd627f4cce9c4215 Bisecting: 0 revisions left to test after this (roughly 0 steps) [512c5ca01a3610ab14ff6309db363de51f1c13a6] nilfs2: fix nilfs_sufile_mark_dirty() not set segment usage as dirty testing commit 512c5ca01a3610ab14ff6309db363de51f1c13a6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ca10e34705cc27f1b65567e31a226454463e5da49e96afd4a56fb428b890c3a6 all runs: OK # git bisect bad 512c5ca01a3610ab14ff6309db363de51f1c13a6 512c5ca01a3610ab14ff6309db363de51f1c13a6 is the first bad commit commit 512c5ca01a3610ab14ff6309db363de51f1c13a6 Author: Chen Zhongjin Date: Fri Nov 18 14:33:04 2022 +0800 nilfs2: fix nilfs_sufile_mark_dirty() not set segment usage as dirty When extending segments, nilfs_sufile_alloc() is called to get an unassigned segment, then mark it as dirty to avoid accidentally allocating the same segment in the future. But for some special cases such as a corrupted image it can be unreliable. If such corruption of the dirty state of the segment occurs, nilfs2 may reallocate a segment that is in use and pick the same segment for writing twice at the same time. This will cause the problem reported by syzkaller: https://syzkaller.appspot.com/bug?id=c7c4748e11ffcc367cef04f76e02e931833cbd24 This case started with segbuf1.segnum = 3, nextnum = 4 when constructed. It supposed segment 4 has already been allocated and marked as dirty. However the dirty state was corrupted and segment 4 usage was not dirty. For the first time nilfs_segctor_extend_segments() segment 4 was allocated again, which made segbuf2 and next segbuf3 had same segment 4. sb_getblk() will get same bh for segbuf2 and segbuf3, and this bh is added to both buffer lists of two segbuf. It makes the lists broken which causes NULL pointer dereference. Fix the problem by setting usage as dirty every time in nilfs_sufile_mark_dirty(), which is called during constructing current segment to be written out and before allocating next segment. [chenzhongjin@huawei.com: add lock protection per Ryusuke] Link: https://lkml.kernel.org/r/20221121091141.214703-1-chenzhongjin@huawei.com Link: https://lkml.kernel.org/r/20221118063304.140187-1-chenzhongjin@huawei.com Fixes: 9ff05123e3bf ("nilfs2: segment constructor") Signed-off-by: Chen Zhongjin Reported-by: Reported-by: Liu Shixin Acked-by: Ryusuke Konishi Tested-by: Ryusuke Konishi Cc: Signed-off-by: Andrew Morton fs/nilfs2/sufile.c | 8 ++++++++ 1 file changed, 8 insertions(+) culprit signature: ca10e34705cc27f1b65567e31a226454463e5da49e96afd4a56fb428b890c3a6 parent signature: 4b3f377fa356337c85e86596f3f15fb22f6cb8eb06c70877362284f22ba68577 revisions tested: 25, total time: 6h7m10.880913137s (build: 2h55m25.392890559s, test: 3h6m45.648726246s) first good commit: 512c5ca01a3610ab14ff6309db363de51f1c13a6 nilfs2: fix nilfs_sufile_mark_dirty() not set segment usage as dirty recipients (to): ["akpm@linux-foundation.org" "chenzhongjin@huawei.com" "konishi.ryusuke@gmail.com"] recipients (cc): []