bisecting cause commit starting from 5103a5be098c0dae5d4b057520d7e9f4c5570979 building syzkaller on 6a81331a1d4c744da9204d02ec88d558f7eea9c9 testing commit 5103a5be098c0dae5d4b057520d7e9f4c5570979 with gcc (GCC) 10.2.1 20210217 kernel signature: bccd068f9f975f8fdf1e881117aef97272589ca85f1627c6ca9e5b3b71f471fd all runs: crashed: WARNING in blk_rq_append_bio testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b with gcc (GCC) 10.2.1 20210217 kernel signature: 293e6579f0d65cbda46b2d20e15f30555f6e4ea292502f9356c74a1affb84b2f all runs: OK # git bisect start 5103a5be098c0dae5d4b057520d7e9f4c5570979 f40ddce88593482919761f74910f42f4b84c004b Bisecting: 12002 revisions left to test after this (roughly 14 steps) [66f3431a87339f332a2ca674e9fbca48a6014f89] Merge tag 'tegra-for-5.13-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/drivers testing commit 66f3431a87339f332a2ca674e9fbca48a6014f89 with gcc (GCC) 10.2.1 20210217 kernel signature: fc25b3643210e25bf40e0994dceb333d57977a4e767b610ad21205ee78262dab run #0: OK run #1: boot failed: WARNING in kvm_wait run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 66f3431a87339f332a2ca674e9fbca48a6014f89 Bisecting: 5905 revisions left to test after this (roughly 13 steps) [8a9264abfc59506fdb1a98c0331b0573624abc07] Merge remote-tracking branch 'net-next/master' testing commit 8a9264abfc59506fdb1a98c0331b0573624abc07 with gcc (GCC) 10.2.1 20210217 kernel signature: 4ba29113d26137ca5f194edf8211ca9943c17f6d993509fd5bc02f3f10cc9f96 all runs: OK # git bisect good 8a9264abfc59506fdb1a98c0331b0573624abc07 Bisecting: 2888 revisions left to test after this (roughly 12 steps) [f1d05100c4922dbb9b5a050178ca85e4b7859abe] Merge remote-tracking branch 'tip/auto-latest' testing commit f1d05100c4922dbb9b5a050178ca85e4b7859abe with gcc (GCC) 10.2.1 20210217 kernel signature: 68e9d05d0906be779399b16132db528eec9c33b98e939e0c2da214d96ca9bdab all runs: crashed: WARNING in blk_rq_append_bio # git bisect bad f1d05100c4922dbb9b5a050178ca85e4b7859abe Bisecting: 1540 revisions left to test after this (roughly 11 steps) [a0d08aa3b46905d0694331d31977702da746b96a] Merge remote-tracking branch 'amdgpu/drm-next' testing commit a0d08aa3b46905d0694331d31977702da746b96a with gcc (GCC) 10.2.1 20210217 kernel signature: ea7f44e54bf758cee8302d215d03da96e153e8f9fe2c0e2976ddda593841fc97 all runs: OK # git bisect good a0d08aa3b46905d0694331d31977702da746b96a Bisecting: 688 revisions left to test after this (roughly 10 steps) [0fc91ca2b61766e171f44f4ecfd6a8267c38138b] Merge remote-tracking branch 'block/for-next' testing commit 0fc91ca2b61766e171f44f4ecfd6a8267c38138b with gcc (GCC) 10.2.1 20210217 kernel signature: 44e8103810f7bfed869740b789f5c5119ebf9edba6012cfba09c50e3584968cb all runs: crashed: WARNING in blk_rq_append_bio # git bisect bad 0fc91ca2b61766e171f44f4ecfd6a8267c38138b Bisecting: 447 revisions left to test after this (roughly 9 steps) [0aa5056addf6f9e8dc74af6a3c3244ded1c88138] Merge remote-tracking branch 'asoc/for-5.13' into asoc-next testing commit 0aa5056addf6f9e8dc74af6a3c3244ded1c88138 with gcc (GCC) 10.2.1 20210217 kernel signature: fe4d6cf586e9f368a01519ea0f258fa05fc0433e4d2773891dbea1519bdb33d8 all runs: OK # git bisect good 0aa5056addf6f9e8dc74af6a3c3244ded1c88138 Bisecting: 221 revisions left to test after this (roughly 8 steps) [fe58b17624156909fe752ca53d9840fffc79b580] Merge remote-tracking branch 'input/next' testing commit fe58b17624156909fe752ca53d9840fffc79b580 with gcc (GCC) 10.2.1 20210217 kernel signature: 917580e6773f9e6078e5e90b4a69cf447f5c3385a8eb6261971303353c13e818 all runs: OK # git bisect good fe58b17624156909fe752ca53d9840fffc79b580 Bisecting: 135 revisions left to test after this (roughly 7 steps) [75e7b799a7116e2e2e7a1814b0689130a4df46c5] io_uring: don't attempt re-add of multishot poll request if racing testing commit 75e7b799a7116e2e2e7a1814b0689130a4df46c5 with gcc (GCC) 10.2.1 20210217 kernel signature: 892d5565cf4579b618a8af0d6d3231c46e1b89444ebb13b1ebc37e9c2602722d all runs: OK # git bisect good 75e7b799a7116e2e2e7a1814b0689130a4df46c5 Bisecting: 65 revisions left to test after this (roughly 6 steps) [197653779521e7678d2e9207d54b9484c351bf05] Merge branch 'for-5.13/drivers' into for-next testing commit 197653779521e7678d2e9207d54b9484c351bf05 with gcc (GCC) 10.2.1 20210217 kernel signature: 238f5feb470c4e87fd462fd7fe5ba477ae51a69f8f4777f5e750a90774ff35d0 all runs: OK # git bisect good 197653779521e7678d2e9207d54b9484c351bf05 Bisecting: 32 revisions left to test after this (roughly 5 steps) [8609c63fce58e94d82f6b6bf29c7806062e2e867] nvme: fix handling of large MDTS values testing commit 8609c63fce58e94d82f6b6bf29c7806062e2e867 with gcc (GCC) 10.2.1 20210217 kernel signature: cae21f37dcb1938cd3711b990fd040d2b730fe45f14826aede1c17b33ed648a3 run #0: boot failed: WARNING in kvm_wait run #1: boot failed: WARNING in kvm_wait run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 8609c63fce58e94d82f6b6bf29c7806062e2e867 Bisecting: 13 revisions left to test after this (roughly 4 steps) [555615384ee2223ad78838d33bae63e624fcb5d5] Merge branch 'for-5.13/drivers' into for-next testing commit 555615384ee2223ad78838d33bae63e624fcb5d5 with gcc (GCC) 10.2.1 20210217 kernel signature: d809797f74a807e23487383b99689f101f8f108ca04d518f4f0261346df5609f all runs: OK # git bisect good 555615384ee2223ad78838d33bae63e624fcb5d5 Bisecting: 6 revisions left to test after this (roughly 3 steps) [aaff5ebaa2694f283b7d07fdd55fb287ffc4f1e9] scsi: remove the unchecked_isa_dma flag testing commit aaff5ebaa2694f283b7d07fdd55fb287ffc4f1e9 with gcc (GCC) 10.2.1 20210217 kernel signature: 9a038fe28a62bd0ca8a2b39555423f9a83d6f88ca4792bf55019dd4133b9aa17 all runs: OK # git bisect good aaff5ebaa2694f283b7d07fdd55fb287ffc4f1e9 Bisecting: 3 revisions left to test after this (roughly 2 steps) [393bb12e00580aaa23356504eed38d8f5571153a] block: stop calling blk_queue_bounce for passthrough requests testing commit 393bb12e00580aaa23356504eed38d8f5571153a with gcc (GCC) 10.2.1 20210217 kernel signature: 3edd8b7ca1b5072996e2fb00eae66313422adcce9c1853baf311002bd49ff6cb all runs: crashed: WARNING in blk_rq_append_bio # git bisect bad 393bb12e00580aaa23356504eed38d8f5571153a Bisecting: 0 revisions left to test after this (roughly 1 step) [9bb33f24abbd0fa2fadad01ec75438d7cc239189] block: refactor the bounce buffering code testing commit 9bb33f24abbd0fa2fadad01ec75438d7cc239189 with gcc (GCC) 10.2.1 20210217 kernel signature: e5c50bfa0d9e593707581eb1fc9f41bb87d87b71157eea77fdadd5e6e8361ab3 all runs: OK # git bisect good 9bb33f24abbd0fa2fadad01ec75438d7cc239189 393bb12e00580aaa23356504eed38d8f5571153a is the first bad commit commit 393bb12e00580aaa23356504eed38d8f5571153a Author: Christoph Hellwig Date: Wed Mar 31 09:30:01 2021 +0200 block: stop calling blk_queue_bounce for passthrough requests Instead of overloading the passthrough fast path with the deprecated block layer bounce buffering let the users that combine an old undermaintained driver with a highmem system pay the price by always falling back to copies in that case. Signed-off-by: Christoph Hellwig Acked-by: Martin K. Petersen Reviewed-by: Hannes Reinecke Link: https://lore.kernel.org/r/20210331073001.46776-9-hch@lst.de Signed-off-by: Jens Axboe block/blk-map.c | 116 ++++++++++--------------------------- block/bounce.c | 11 +--- drivers/nvme/host/lightnvm.c | 2 +- drivers/target/target_core_pscsi.c | 4 +- include/linux/blkdev.h | 2 +- 5 files changed, 36 insertions(+), 99 deletions(-) culprit signature: 3edd8b7ca1b5072996e2fb00eae66313422adcce9c1853baf311002bd49ff6cb parent signature: e5c50bfa0d9e593707581eb1fc9f41bb87d87b71157eea77fdadd5e6e8361ab3 revisions tested: 16, total time: 4h22m43.774482602s (build: 1h49m17.49296377s, test: 2h31m12.455241856s) first bad commit: 393bb12e00580aaa23356504eed38d8f5571153a block: stop calling blk_queue_bounce for passthrough requests recipients (to): ["axboe@kernel.dk" "hare@suse.de" "hch@lst.de" "martin.petersen@oracle.com"] recipients (cc): [] crash: WARNING in blk_rq_append_bio ------------[ cut here ]------------ WARNING: CPU: 0 PID: 222 at block/blk-map.c:488 blk_rq_append_bio+0x46e/0x600 block/blk-map.c:506 Modules linked in: CPU: 0 PID: 222 Comm: kworker/u4:5 Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound async_run_entry_fn RIP: 0010:blk_rq_append_bio+0x46e/0x600 block/blk-map.c:488 Code: df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 01 00 00 49 89 9e a0 00 00 00 31 c0 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f c3 <0f> 0b 48 83 c4 20 b8 ea ff ff ff 5b 5d 41 5c 41 5d 41 5e 41 5f c3 RSP: 0018:ffffc900018ff730 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff888019e0ef00 RCX: 0000000000000008 RDX: 1ffff110033c1e73 RSI: ffff88803cfd5400 RDI: ffff888019e0f398 RBP: ffff888019e0ef00 R08: 0000000000000000 R09: ffff88803cfd5470 R10: fffffbfff186b941 R11: 0000000000000001 R12: ffff88803cfd5400 R13: 0000000000000008 R14: ffff88803e2e4000 R15: ffff888143cdb400 FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000030ea708 CR3: 0000000010786000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: blk_rq_map_kern+0x434/0x570 block/blk-map.c:653 __scsi_execute+0x442/0x560 drivers/scsi/scsi_lib.c:224 scsi_execute_req include/scsi/scsi_device.h:461 [inline] read_capacity_10+0x143/0x5a0 drivers/scsi/sd.c:2442 sd_read_capacity drivers/scsi/sd.c:2519 [inline] sd_revalidate_disk.isra.0+0x177a/0x6940 drivers/scsi/sd.c:3203 sd_probe+0x8b2/0xf10 drivers/scsi/sd.c:3459 really_probe+0x1fd/0xc60 drivers/base/dd.c:554 driver_probe_device+0x1ed/0x380 drivers/base/dd.c:740 bus_for_each_drv+0x11e/0x1a0 drivers/base/bus.c:431 __device_attach_async_helper+0x191/0x240 drivers/base/dd.c:872 async_run_entry_fn+0xbb/0x640 kernel/async.c:123 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2275 worker_thread+0x598/0xf80 kernel/workqueue.c:2421 kthread+0x36f/0x450 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294