ci starts bisection 2023-06-14 02:11:07.977302636 +0000 UTC m=+35618.313226596 bisecting cause commit starting from 1f6ce8392d6ff486af5ca96df9ded5882c4b6977 building syzkaller on d2ee9228555a1697ea8957f68403df8e4c55f42d ensuring issue is reproducible on original commit 1f6ce8392d6ff486af5ca96df9ded5882c4b6977 testing commit 1f6ce8392d6ff486af5ca96df9ded5882c4b6977 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2356bdc404b49ab9f3d5e5fef19a4f9f938003f9c61f187627c0fbbc4caf6ccb all runs: crashed: WARNING in blkdev_get_by_dev testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7d6f25e4b790954252f2c75f3f43c8f538c33ef208945bded8636b2b90f6d9ae all runs: OK # git bisect start 1f6ce8392d6ff486af5ca96df9ded5882c4b6977 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 12424 revisions left to test after this (roughly 14 steps) [c5eb8bf76718cf2e2f36aac216a99014f00927de] Merge tag 'leds-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/leds testing commit c5eb8bf76718cf2e2f36aac216a99014f00927de gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 21c3db37d23a34ff2bbe2dd3b2a216390ba24ed5074bf853c16efde2f7c01b43 all runs: OK # git bisect good c5eb8bf76718cf2e2f36aac216a99014f00927de Bisecting: 6138 revisions left to test after this (roughly 13 steps) [52090b5a33119989350af55d269d4464c255a2df] Merge branch 'master' of git://linuxtv.org/mchehab/media-next.git testing commit 52090b5a33119989350af55d269d4464c255a2df gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9c75ba3f5a0585057d6422c9ecb0b9c867d479a8226e9417cb8f672da7e74080 all runs: OK # git bisect good 52090b5a33119989350af55d269d4464c255a2df Bisecting: 3072 revisions left to test after this (roughly 12 steps) [ad090d05baab08568c61a0dfe93b9faf5cc1f4f1] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git testing commit ad090d05baab08568c61a0dfe93b9faf5cc1f4f1 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0120eb10a315f5b78aca6023a15b58e818f93023ba4f236f1436b40a1db32ce6 all runs: OK # git bisect good ad090d05baab08568c61a0dfe93b9faf5cc1f4f1 Bisecting: 1504 revisions left to test after this (roughly 11 steps) [d9bdd39a63c166fc986ad0ab548981139b86570d] Merge branch 'rcu/next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git testing commit d9bdd39a63c166fc986ad0ab548981139b86570d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f3265c8a2d294de90da474198f3b98dbb1bc9828e2eed9427371dda8144f2af4 all runs: crashed: WARNING in blkdev_get_by_dev # git bisect bad d9bdd39a63c166fc986ad0ab548981139b86570d Bisecting: 782 revisions left to test after this (roughly 10 steps) [608a831394129d05d2464ad0cead7938fb8180ba] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata.git testing commit 608a831394129d05d2464ad0cead7938fb8180ba gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 661ebaf5dea3e526e054ba23a1a775895d079071af9ac081f00b114278143c3c all runs: crashed: WARNING in blkdev_get_by_dev # git bisect bad 608a831394129d05d2464ad0cead7938fb8180ba Bisecting: 318 revisions left to test after this (roughly 9 steps) [ba6e1ec4eb9dee3cd8b52ef27528f7ec532af301] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git testing commit ba6e1ec4eb9dee3cd8b52ef27528f7ec532af301 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 59a753a97df3cb4b448e0fad93120be6edde714306167787968e0d367f137576 all runs: OK # git bisect good ba6e1ec4eb9dee3cd8b52ef27528f7ec532af301 Bisecting: 159 revisions left to test after this (roughly 7 steps) [80d994d2a71f88e0809dcaccef2259c791d2e3ef] pktcdvd: Use DEFINE_SHOW_ATTRIBUTE() to simplify code testing commit 80d994d2a71f88e0809dcaccef2259c791d2e3ef gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f5b1299e3cd9c5a0d6f59470384f4c1a4a17432f4c9a61630a21abb4e44908ed all runs: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) # git bisect skip 80d994d2a71f88e0809dcaccef2259c791d2e3ef Bisecting: 158 revisions left to test after this (roughly 7 steps) [046636a4bac575aff78e44c7e1cff84c83a345a9] pktcdvd: Use put_unaligned_be16() and get_unaligned_be16() testing commit 046636a4bac575aff78e44c7e1cff84c83a345a9 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d44b4e517dc37f9333b796877fe63f3d45eb30e1a843df0908304756c1afa180 all runs: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) # git bisect skip 046636a4bac575aff78e44c7e1cff84c83a345a9 Bisecting: 158 revisions left to test after this (roughly 7 steps) [a370798201b537f78288e4ef5e0f7fc70889e7ee] block: Introduce op_needs_zoned_write_locking() testing commit a370798201b537f78288e4ef5e0f7fc70889e7ee gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 11cde17855ca1a5f37aada4eb38eb2e77399ef1900bb4f3d00b6cd9fba9d3b7b all runs: OK # git bisect good a370798201b537f78288e4ef5e0f7fc70889e7ee Bisecting: 154 revisions left to test after this (roughly 7 steps) [b0488411e919368014907850f74191d03e25f031] block/rnbd: kill rnbd_flags_supported testing commit b0488411e919368014907850f74191d03e25f031 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1494f416ec3c519f041fccb0e1e776865ce001704d05b2db86285158210cf5b1 all runs: OK # git bisect good b0488411e919368014907850f74191d03e25f031 Bisecting: 76 revisions left to test after this (roughly 6 steps) [48c00a3e100847e9dceaba76809f4eaa064e2047] Merge branch 'for-6.5/block' into for-next testing commit 48c00a3e100847e9dceaba76809f4eaa064e2047 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2678279f461d30b54e59dd2c3ead9908afd2e3ba4887e67ac6c67df7cf90f1f0 all runs: crashed: WARNING in blkdev_get_by_dev # git bisect bad 48c00a3e100847e9dceaba76809f4eaa064e2047 Bisecting: 39 revisions left to test after this (roughly 5 steps) [4f1731df60f9033669f024d06ae26a6301260b55] blk-mq: fix potential io hang by wrong 'wake_batch' testing commit 4f1731df60f9033669f024d06ae26a6301260b55 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7415f8551106aa9a93417577bb0fcb439a36c1a0a155899f8096b36d25e2d853 all runs: crashed: WARNING in blkdev_get_by_dev # git bisect bad 4f1731df60f9033669f024d06ae26a6301260b55 Bisecting: 18 revisions left to test after this (roughly 4 steps) [29499ab060fec044161be73fb0e448eab97b4813] bcache: don't pass a stack address to blkdev_get_by_path testing commit 29499ab060fec044161be73fb0e448eab97b4813 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1bbb590e09a2d51e551db8a2dfec386c104216dbc97a8280d0410086cc4dc530 all runs: OK # git bisect good 29499ab060fec044161be73fb0e448eab97b4813 Bisecting: 8 revisions left to test after this (roughly 3 steps) [658afed19ceed54a52b9e9e69c0791c8868ff55d] mtd: block: use a simple bool to track open for write testing commit 658afed19ceed54a52b9e9e69c0791c8868ff55d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c4c3534d4d599ece5796fa5bf08ed8c88b01a3b70681500c715f0293cb779f7d all runs: crashed: WARNING in blkdev_get_by_dev # git bisect bad 658afed19ceed54a52b9e9e69c0791c8868ff55d Bisecting: 4 revisions left to test after this (roughly 2 steps) [81b1fb7d17c0110df839e13468ada9e99bb6e5f4] fs: remove sb->s_mode testing commit 81b1fb7d17c0110df839e13468ada9e99bb6e5f4 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1131a584cb571b76b4e9110c574c40aed93ada4f8c8e67f99684600d7310c156 all runs: crashed: WARNING in blkdev_get_by_dev # git bisect bad 81b1fb7d17c0110df839e13468ada9e99bb6e5f4 Bisecting: 1 revision left to test after this (roughly 1 step) [2736e8eeb0ccdc71d1f4256c9c9a28f58cc43307] block: use the holder as indication for exclusive opens testing commit 2736e8eeb0ccdc71d1f4256c9c9a28f58cc43307 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d44e18b34c578fbc0b0bd4eed0a715f784df6d178451ae8184736a0900307632 all runs: crashed: WARNING in blkdev_get_by_dev # git bisect bad 2736e8eeb0ccdc71d1f4256c9c9a28f58cc43307 Bisecting: 0 revisions left to test after this (roughly 1 step) [2ef789288afd365f4245ba97e56189062de5148e] btrfs: don't pass a holder for non-exclusive blkdev_get_by_path testing commit 2ef789288afd365f4245ba97e56189062de5148e gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 694a065ef3d37f72a865d727f100e0ddc8b70fa53ddeddc9c6e86c650826516a all runs: OK # git bisect good 2ef789288afd365f4245ba97e56189062de5148e 2736e8eeb0ccdc71d1f4256c9c9a28f58cc43307 is the first bad commit commit 2736e8eeb0ccdc71d1f4256c9c9a28f58cc43307 Author: Christoph Hellwig Date: Thu Jun 8 13:02:43 2023 +0200 block: use the holder as indication for exclusive opens The current interface for exclusive opens is rather confusing as it requires both the FMODE_EXCL flag and a holder. Remove the need to pass FMODE_EXCL and just key off the exclusive open off a non-NULL holder. For blkdev_put this requires adding the holder argument, which provides better debug checking that only the holder actually releases the hold, but at the same time allows removing the now superfluous mode argument. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Acked-by: Christian Brauner Acked-by: David Sterba [btrfs] Acked-by: Jack Wang [rnbd] Link: https://lore.kernel.org/r/20230608110258.189493-16-hch@lst.de Signed-off-by: Jens Axboe block/bdev.c | 37 ++++++++++++++++++++---------------- block/fops.c | 6 ++++-- block/genhd.c | 5 ++--- block/ioctl.c | 5 ++--- drivers/block/drbd/drbd_nl.c | 23 +++++++++++++--------- drivers/block/pktcdvd.c | 13 ++++++------- drivers/block/rnbd/rnbd-srv.c | 4 ++-- drivers/block/xen-blkback/xenbus.c | 2 +- drivers/block/zram/zram_drv.c | 8 ++++---- drivers/md/bcache/super.c | 15 +++++++-------- drivers/md/dm.c | 6 +++--- drivers/md/md.c | 38 +++++++++++++++++++------------------ drivers/mtd/devices/block2mtd.c | 4 ++-- drivers/nvme/target/io-cmd-bdev.c | 2 +- drivers/s390/block/dasd_genhd.c | 2 +- drivers/target/target_core_iblock.c | 6 +++--- drivers/target/target_core_pscsi.c | 8 +++----- fs/btrfs/dev-replace.c | 6 +++--- fs/btrfs/ioctl.c | 12 ++++++------ fs/btrfs/volumes.c | 28 +++++++++++++-------------- fs/btrfs/volumes.h | 6 +++--- fs/erofs/super.c | 7 ++++--- fs/ext4/super.c | 11 +++-------- fs/f2fs/super.c | 2 +- fs/jfs/jfs_logmgr.c | 6 +++--- fs/nfs/blocklayout/dev.c | 4 ++-- fs/nilfs2/super.c | 6 +++--- fs/ocfs2/cluster/heartbeat.c | 4 ++-- fs/reiserfs/journal.c | 19 +++++++++---------- fs/reiserfs/reiserfs.h | 1 - fs/super.c | 20 +++++++++---------- fs/xfs/xfs_super.c | 15 ++++++++------- include/linux/blkdev.h | 2 +- kernel/power/hibernate.c | 12 ++++-------- kernel/power/power.h | 2 +- kernel/power/swap.c | 21 +++++++++----------- mm/swapfile.c | 7 +++---- 37 files changed, 183 insertions(+), 192 deletions(-) culprit signature: d44e18b34c578fbc0b0bd4eed0a715f784df6d178451ae8184736a0900307632 parent signature: 694a065ef3d37f72a865d727f100e0ddc8b70fa53ddeddc9c6e86c650826516a revisions tested: 19, total time: 8h37m47.308905165s (build: 6h22m44.756717714s, test: 2h11m52.82348551s) first bad commit: 2736e8eeb0ccdc71d1f4256c9c9a28f58cc43307 block: use the holder as indication for exclusive opens recipients (to): ["axboe@kernel.dk" "brauner@kernel.org" "hare@suse.de" "hch@lst.de"] recipients (cc): [] crash: WARNING in blkdev_get_by_dev ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5432 at block/bdev.c:794 bdev_is_partition include/linux/blkdev.h:1081 [inline] WARNING: CPU: 0 PID: 5432 at block/bdev.c:794 blkdev_get_by_dev.part.0+0x789/0xa50 block/bdev.c:808 Modules linked in: CPU: 0 PID: 5432 Comm: syz-executor.0 Not tainted 6.4.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:blkdev_get_by_dev.part.0+0x789/0xa50 block/bdev.c:794 Code: 49 8b 7d 78 89 44 24 08 e8 34 bd c6 fd 48 85 ed 4c 63 6c 24 08 0f 85 f9 f9 ff ff e9 5f fa ff ff e8 4c d8 1e fe e9 b6 fb ff ff <0f> 0b 49 c7 c5 fb ff ff ff e9 57 fa ff ff 48 8d ba f0 04 00 00 48 RSP: 0018:ffffc90004a0fce0 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff88801cdf2280 RCX: ffffffff892279b8 RDX: 1ffff110039be452 RSI: 0000000000000004 RDI: ffff88801cdf2ae0 RBP: 0000000000000000 R08: 0000000000000001 R09: ffff88801cdf2ae3 R10: ffffed10039be55c R11: 0000000000000000 R12: ffff88801dc4a000 R13: 00000000484a009d R14: 0000000000000000 R15: 0000000002b00000 FS: 00007fc4b4860700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc4b3ba80c0 CR3: 000000001dad1000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: disk_scan_partitions+0x187/0x290 block/genhd.c:368 blkdev_common_ioctl+0x4af/0x1620 block/ioctl.c:531 blkdev_ioctl+0x272/0x6b0 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x123/0x190 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc4b3a8c199 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007fc4b4860168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc4b3babf80 RCX: 00007fc4b3a8c199 RDX: 0000000000000000 RSI: 000000000000125f RDI: 0000000000000003 RBP: 00007fc4b3ae7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeac07e7cf R14: 00007fc4b4860300 R15: 0000000000022000