bisecting fixing commit since 71c061d2443814de15e177489d5cc00a4a253ef3 building syzkaller on c104d4a3bfc1f83e7ed33b4dca70e099402ce39f testing commit 71c061d2443814de15e177489d5cc00a4a253ef3 with gcc (GCC) 10.2.1 20210217 kernel signature: d5feff6190074564332542e3393830296c72e511ab4d6fb21398f7bb89186e36 all runs: crashed: KASAN: null-ptr-deref Write in bdi_put testing current HEAD fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 testing commit fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 with gcc (GCC) 10.2.1 20210217 kernel signature: 44ef41aa8cce0f370b6cb508e22c8769905837f828ffffdc06cfc6390e74ec25 all runs: OK # git bisect start fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 71c061d2443814de15e177489d5cc00a4a253ef3 Bisecting: 6923 revisions left to test after this (roughly 13 steps) [9c5b80b795e9c847a7b7f5e63c6bcf07873fbcdf] Merge tag 'hyperv-next-signed-20210216' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux testing commit 9c5b80b795e9c847a7b7f5e63c6bcf07873fbcdf with gcc (GCC) 10.2.1 20210217 kernel signature: 84710639eea58ef4286c8061c7026912cddb195fafad46ad06023a20974d725d all runs: OK # git bisect bad 9c5b80b795e9c847a7b7f5e63c6bcf07873fbcdf Bisecting: 3315 revisions left to test after this (roughly 12 steps) [79201f358d64f3af5cc8a2bf01bde9dbe59b618e] Merge tag 'wireless-drivers-next-2021-02-12' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next testing commit 79201f358d64f3af5cc8a2bf01bde9dbe59b618e with gcc (GCC) 10.2.1 20210217 kernel signature: 2458b9d4a4651b482262e587bef0f8144b80ff494e72b361b087a5b1d539f4e5 all runs: OK # git bisect bad 79201f358d64f3af5cc8a2bf01bde9dbe59b618e Bisecting: 1745 revisions left to test after this (roughly 11 steps) [7c2d18357f2c4d26e727e76245e297ffdbc03097] Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input testing commit 7c2d18357f2c4d26e727e76245e297ffdbc03097 with gcc (GCC) 10.2.1 20210217 kernel signature: 14d953f27c1a8e0abb6c0efc2de39b29997324da65553c56a55f9173a13f47a3 all runs: OK # git bisect bad 7c2d18357f2c4d26e727e76245e297ffdbc03097 Bisecting: 878 revisions left to test after this (roughly 10 steps) [329a3678ec69962aa67c91397efbd46d36635f91] igc: fix link speed advertising testing commit 329a3678ec69962aa67c91397efbd46d36635f91 with gcc (GCC) 10.2.1 20210217 kernel signature: c1156be55318d0450dc5a8f1f5503d6c89a24a4cd4c2b87d928a9495e211b558 all runs: OK # git bisect bad 329a3678ec69962aa67c91397efbd46d36635f91 Bisecting: 429 revisions left to test after this (roughly 9 steps) [e609571b5ffa3528bf85292de1ceaddac342bc1c] Merge tag 'nfs-for-5.11-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs testing commit e609571b5ffa3528bf85292de1ceaddac342bc1c with gcc (GCC) 10.2.1 20210217 kernel signature: 623d0c50a98935e94a764da7c8fe65e96c1b5cb4eaa5778288b0ee8077c8ba26 all runs: OK # git bisect bad e609571b5ffa3528bf85292de1ceaddac342bc1c Bisecting: 220 revisions left to test after this (roughly 8 steps) [be31d940b3b62c57a5d9506090e66e177b7eba90] Merge tag 'pm-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm testing commit be31d940b3b62c57a5d9506090e66e177b7eba90 with gcc (GCC) 10.2.1 20210217 kernel signature: ecd305ee6895f38a7a5ad26e901e0a4753a5a25f231e4a34b83bd9d52c0451b3 run #0: crashed: KASAN: null-ptr-deref Write in bdi_put run #1: crashed: KASAN: null-ptr-deref Write in bdi_put run #2: crashed: KASAN: null-ptr-deref Write in bdi_put run #3: crashed: KASAN: null-ptr-deref Write in bdi_put run #4: crashed: KASAN: null-ptr-deref Write in bdi_put run #5: crashed: KASAN: null-ptr-deref Write in bdi_put run #6: crashed: KASAN: null-ptr-deref Write in bdi_put run #7: crashed: KASAN: null-ptr-deref Write in bdi_put run #8: crashed: KASAN: null-ptr-deref Write in bdi_put run #9: crashed: BUG: unable to handle kernel NULL pointer dereference in bdi_put # git bisect good be31d940b3b62c57a5d9506090e66e177b7eba90 Bisecting: 122 revisions left to test after this (roughly 7 steps) [4ad9a28f56d70b950b1232151b2354636853727a] Merge tag 'staging-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging testing commit 4ad9a28f56d70b950b1232151b2354636853727a with gcc (GCC) 10.2.1 20210217 kernel signature: cba6539297f65a8d938f1990d3797e8e2357eb60b928bf6292a0e17b16790767 all runs: crashed: KASAN: null-ptr-deref Write in bdi_put # git bisect good 4ad9a28f56d70b950b1232151b2354636853727a Bisecting: 71 revisions left to test after this (roughly 6 steps) [d430adfea8d2c5baa186cabb130235f72fecbd5b] Merge tag 'io_uring-5.11-2021-01-10' of git://git.kernel.dk/linux-block testing commit d430adfea8d2c5baa186cabb130235f72fecbd5b with gcc (GCC) 10.2.1 20210217 kernel signature: 9113f7d4fdffabb5b1bc733c86b672b09cdeed3803da6002bfad6082c075e04d all runs: crashed: KASAN: null-ptr-deref Write in bdi_put # git bisect good d430adfea8d2c5baa186cabb130235f72fecbd5b Bisecting: 32 revisions left to test after this (roughly 5 steps) [20210a98463e2abac31676ee141459fc23252927] Merge tag 'kbuild-fixes-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild testing commit 20210a98463e2abac31676ee141459fc23252927 with gcc (GCC) 10.2.1 20210217 kernel signature: 97c58202b031e508aa6a78ec495800253291aaf9f3157525745a3c6f89e62c02 all runs: OK # git bisect bad 20210a98463e2abac31676ee141459fc23252927 Bisecting: 19 revisions left to test after this (roughly 4 steps) [80f99093d81370c5cec37fca3b5a6bdf6bddf0f6] block/rnbd-clt: Fix sg table use after free testing commit 80f99093d81370c5cec37fca3b5a6bdf6bddf0f6 with gcc (GCC) 10.2.1 20210217 kernel signature: f2ce8bf4284387cfacbe28de3e3b32d7390b24e09b4f6ba7c95849a264698012 all runs: OK # git bisect bad 80f99093d81370c5cec37fca3b5a6bdf6bddf0f6 Bisecting: 9 revisions left to test after this (roughly 3 steps) [5c11f7d9f843bdd24cd29b95401938bc3f168070] nvme-tcp: Fix possible race of io_work and direct send testing commit 5c11f7d9f843bdd24cd29b95401938bc3f168070 with gcc (GCC) 10.2.1 20210217 kernel signature: 75b40f93d531e71838f1efb7298d1b7daf0665dd16edfd971eb1845ed3561d41 run #0: crashed: KASAN: null-ptr-deref Write in bdi_put run #1: crashed: KASAN: null-ptr-deref Write in bdi_put run #2: crashed: KASAN: null-ptr-deref Write in bdi_put run #3: crashed: KASAN: null-ptr-deref Write in bdi_put run #4: crashed: BUG: unable to handle kernel NULL pointer dereference in bdi_put run #5: crashed: KASAN: null-ptr-deref Write in bdi_put run #6: crashed: KASAN: null-ptr-deref Write in bdi_put run #7: crashed: KASAN: null-ptr-deref Write in bdi_put run #8: crashed: KASAN: null-ptr-deref Write in bdi_put run #9: crashed: BUG: unable to handle kernel NULL pointer dereference in bdi_put # git bisect good 5c11f7d9f843bdd24cd29b95401938bc3f168070 Bisecting: 5 revisions left to test after this (roughly 2 steps) [2b59787a223b79228fed9ade1bf6936194ddb8cd] nvme: remove the unused status argument from nvme_trace_bio_complete testing commit 2b59787a223b79228fed9ade1bf6936194ddb8cd with gcc (GCC) 10.2.1 20210217 kernel signature: 1ed560b9e155ee9d7bb533a3681d0e1f0667c9eb1f1682f24e34728a3ad9c30a all runs: crashed: KASAN: null-ptr-deref Write in bdi_put # git bisect good 2b59787a223b79228fed9ade1bf6936194ddb8cd Bisecting: 2 revisions left to test after this (roughly 2 steps) [2d2f6f1b4799428d160c021dd652bc3e3593945e] block: pre-initialize struct block_device in bdev_alloc_inode testing commit 2d2f6f1b4799428d160c021dd652bc3e3593945e with gcc (GCC) 10.2.1 20210217 kernel signature: 3236a19a8f9da2a2ab0ce5cc0710b10fb3b6d2f6acf339b0643079377c9187f1 all runs: OK # git bisect bad 2d2f6f1b4799428d160c021dd652bc3e3593945e Bisecting: 0 revisions left to test after this (roughly 1 step) [04b1ecb6a4844cf347a1c0d7eb9b63b5eddbfeff] Merge tag 'nvme-5.11-2021-01-07' of git://git.infradead.org/nvme into block-5.11 testing commit 04b1ecb6a4844cf347a1c0d7eb9b63b5eddbfeff with gcc (GCC) 10.2.1 20210217 kernel signature: a89487b0e71dbd78007d7ee9b82f59c53e0a5e465bb9f22f8db304ec0dcb4ba3 all runs: crashed: KASAN: null-ptr-deref Write in bdi_put # git bisect good 04b1ecb6a4844cf347a1c0d7eb9b63b5eddbfeff 2d2f6f1b4799428d160c021dd652bc3e3593945e is the first bad commit commit 2d2f6f1b4799428d160c021dd652bc3e3593945e Author: Christoph Hellwig Date: Thu Jan 7 19:36:40 2021 +0100 block: pre-initialize struct block_device in bdev_alloc_inode bdev_evict_inode and bdev_free_inode are also called for the root inode of bdevfs, for which bdev_alloc is never called. Move the zeroing o f struct block_device and the initialization of the bd_bdi field into bdev_alloc_inode to make sure they are initialized for the root inode as well. Fixes: e6cb53827ed6 ("block: initialize struct block_device in bdev_alloc") Reported-by: Alexey Kardashevskiy Tested-by: Alexey Kardashevskiy Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe fs/block_dev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) culprit signature: 3236a19a8f9da2a2ab0ce5cc0710b10fb3b6d2f6acf339b0643079377c9187f1 parent signature: a89487b0e71dbd78007d7ee9b82f59c53e0a5e465bb9f22f8db304ec0dcb4ba3 revisions tested: 16, total time: 3h18m7.925880089s (build: 1h31m34.144135354s, test: 1h45m6.377001162s) first good commit: 2d2f6f1b4799428d160c021dd652bc3e3593945e block: pre-initialize struct block_device in bdev_alloc_inode recipients (to): ["aik@ozlabs.ru" "axboe@kernel.dk" "hch@lst.de"] recipients (cc): []