Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* WARNING in bdev_getblk
@ 2026-06-26 21:29 sanan.hasanou
  0 siblings, 0 replies; only message in thread
From: sanan.hasanou @ 2026-06-26 21:29 UTC (permalink / raw)
  To: akpm, vbabka, surenb, mhocko, jackmanb, hannes, ziy, linux-mm,
	linux-kernel
  Cc: syzkaller, contact

Good day, dear maintainers,

We found a bug using a modified version of syzkaller.

Kernel Branch: 7.0-rc1
Kernel Config: <https://drive.google.com/open?id=1I8_6za7gDPbA6deS4Bad6VdpoR41-ODM>
Reproducer: <https://drive.google.com/open?id=1xQ5SMK9Hx-abwuL0OR8zB7Uv3-R6rT9S>
Thank you!

Best regards,
Sanan Hasanov

------------[ cut here ]------------
current->flags & PF_MEMALLOC
WARNING: mm/page_alloc.c:4741 at __alloc_pages_slowpath+0xd1e/0xd50 mm/page_alloc.c:4741, CPU#0: kswapd1/87
Modules linked in:
CPU: 0 UID: 0 PID: 87 Comm: kswapd1 Not tainted 7.0.0-rc1 #1 PREEMPT(full) 
Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__alloc_pages_slowpath+0xd1e/0xd50 mm/page_alloc.c:4741
Code: 8b 1c 25 08 00 ba 90 48 83 c3 2c 48 89 d8 48 c1 e8 03 0f b6 04 08 84 c0 75 23 f6 43 01 08 48 8b 54 24 08 0f 84 2d f3 ff ff 90 <0f> 0b 90 e9 24 f3 ff ff e8 55 26 fd 08 90 0f 0b 90 eb c1 89 d9 80
RSP: 0018:ffffc9000156e7f8 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff88804128802c RCX: dffffc0000000000
RDX: ffffc9000156e920 RSI: 0000000000000000 RDI: 0000000000148c48
RBP: 0000000000148c48 R08: ffff88803fffd9b0 R09: 00000000000095f5
R10: dffffc0000000000 R11: ffffed100fffb449 R12: ffffc9000156e920
R13: 1ffff920002add20 R14: 0000000000148c48 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88809b080000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007facf51fc504 CR3: 000000001b54e000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __alloc_frozen_pages_noprof+0x314/0x370 mm/page_alloc.c:5263
 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2484
 alloc_frozen_pages_noprof mm/mempolicy.c:2555 [inline]
 alloc_pages_noprof+0xa9/0x190 mm/mempolicy.c:2575
 folio_alloc_noprof+0x1e/0x30 mm/mempolicy.c:2585
 filemap_alloc_folio_noprof+0x107/0x470 mm/filemap.c:1013
 __filemap_get_folio_mpol+0x3fc/0xb00 mm/filemap.c:2006
 __filemap_get_folio include/linux/pagemap.h:774 [inline]
 grow_dev_folio fs/buffer.c:1047 [inline]
 grow_buffers fs/buffer.c:1113 [inline]
 __getblk_slow fs/buffer.c:1131 [inline]
 bdev_getblk+0x1f7/0x6e0 fs/buffer.c:1458
 __getblk include/linux/buffer_head.h:380 [inline]
 sb_getblk include/linux/buffer_head.h:386 [inline]
 ext4_xattr_block_set+0x1d6b/0x2ab0 fs/ext4/xattr.c:2131
 ext4_xattr_move_to_block fs/ext4/xattr.c:2669 [inline]
 ext4_xattr_make_inode_space fs/ext4/xattr.c:2744 [inline]
 ext4_expand_extra_isize_ea+0x12da/0x1ea0 fs/ext4/xattr.c:2832
 __ext4_expand_extra_isize+0x308/0x400 fs/ext4/inode.c:6297
 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6340 [inline]
 __ext4_mark_inode_dirty+0x45c/0x730 fs/ext4/inode.c:6418
 ext4_dirty_inode+0xcb/0x110 fs/ext4/inode.c:6450
 __mark_inode_dirty+0x39d/0x1470 fs/fs-writeback.c:2608
 mark_inode_dirty_sync include/linux/fs.h:2217 [inline]
 sync_lazytime+0x13b/0x2d0 fs/fs-writeback.c:1722
 iput+0x230/0xe80 fs/inode.c:1997
 __dentry_kill+0x198/0x5d0 fs/dcache.c:670
 shrink_kill+0xa9/0x2c0 fs/dcache.c:1147
 shrink_dentry_list+0x2e0/0x5e0 fs/dcache.c:1174
 prune_dcache_sb+0x10e/0x170 fs/dcache.c:1256
 super_cache_scan+0x365/0x4a0 fs/super.c:223
 do_shrink_slab+0x6d2/0x1160 mm/shrinker.c:437
 shrink_slab_memcg mm/shrinker.c:550 [inline]
 shrink_slab+0x7ef/0x10d0 mm/shrinker.c:628
 shrink_one+0x2d9/0x720 mm/vmscan.c:4928
 shrink_many mm/vmscan.c:4989 [inline]
 lru_gen_shrink_node mm/vmscan.c:5067 [inline]
 shrink_node+0x3134/0x3a20 mm/vmscan.c:6047
 kswapd_shrink_node mm/vmscan.c:6894 [inline]
 balance_pgdat mm/vmscan.c:7070 [inline]
 kswapd+0x1688/0x2d50 mm/vmscan.c:7343
 kthread+0x389/0x480 kernel/kthread.c:467
 ret_from_fork+0x507/0xb90 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:245
 </TASK>

<<<<<<<<<<<<<<< tail report >>>>>>>>>>>>>>>

Modules linked in:
CPU: 0 UID: 0 PID: 87 Comm: kswapd1 Not tainted 7.0.0-rc1 #1 PREEMPT(full) 
Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:__alloc_pages_slowpath+0xd1e/0xd50
Code: 8b 1c 25 08 00 ba 90 48 83 c3 2c 48 89 d8 48 c1 e8 03 0f b6 04 08 84 c0 75 23 f6 43 01 08 48 8b 54 24 08 0f 84 2d f3 ff ff 90 <0f> 0b 90 e9 24 f3 ff ff e8 55 26 fd 08 90 0f 0b 90 eb c1 89 d9 80
RSP: 0018:ffffc9000156e7f8 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff88804128802c RCX: dffffc0000000000
RDX: ffffc9000156e920 RSI: 0000000000000000 RDI: 0000000000148c48
RBP: 0000000000148c48 R08: ffff88803fffd9b0 R09: 00000000000095f5
R10: dffffc0000000000 R11: ffffed100fffb449 R12: ffffc9000156e920
R13: 1ffff920002add20 R14: 0000000000148c48 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88809b080000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007facf51fc504 CR3: 000000001b54e000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __alloc_frozen_pages_noprof+0x314/0x370
 alloc_pages_mpol+0x232/0x4a0
 alloc_pages_noprof+0xa9/0x190
 folio_alloc_noprof+0x1e/0x30
 filemap_alloc_folio_noprof+0x107/0x470
 __filemap_get_folio_mpol+0x3fc/0xb00
 bdev_getblk+0x1f7/0x6e0
 ext4_xattr_block_set+0x1d6b/0x2ab0
 ext4_expand_extra_isize_ea+0x12da/0x1ea0
 __ext4_expand_extra_isize+0x308/0x400
 __ext4_mark_inode_dirty+0x45c/0x730
 ext4_dirty_inode+0xcb/0x110
 __mark_inode_dirty+0x39d/0x1470
 sync_lazytime+0x13b/0x2d0
 iput+0x230/0xe80
 __dentry_kill+0x198/0x5d0
 shrink_kill+0xa9/0x2c0
 shrink_dentry_list+0x2e0/0x5e0
 prune_dcache_sb+0x10e/0x170
 super_cache_scan+0x365/0x4a0
 do_shrink_slab+0x6d2/0x1160
 shrink_slab+0x7ef/0x10d0
 shrink_one+0x2d9/0x720
 shrink_node+0x3134/0x3a20
 kswapd+0x1688/0x2d50
 kthread+0x389/0x480
 ret_from_fork+0x507/0xb90
 ret_from_fork_asm+0x11/0x20
 </TASK>
Kernel panic - not syncing: kernel: panic_on_warn set ...
CPU: 0 UID: 0 PID: 87 Comm: kswapd1 Not tainted 7.0.0-rc1 #1 PREEMPT(full) 
Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
 <TASK>
 vpanic+0x41f/0xa20
 panic+0xb9/0xc0
 __warn+0x317/0x500
 __report_bug+0x28d/0x500
 report_bug+0x16a/0x220
 handle_bug+0x98/0x200
 exc_invalid_op+0x1a/0x50
 asm_exc_invalid_op+0x1a/0x20
RIP: 0010:__alloc_pages_slowpath+0xd1e/0xd50
Code: 8b 1c 25 08 00 ba 90 48 83 c3 2c 48 89 d8 48 c1 e8 03 0f b6 04 08 84 c0 75 23 f6 43 01 08 48 8b 54 24 08 0f 84 2d f3 ff ff 90 <0f> 0b 90 e9 24 f3 ff ff e8 55 26 fd 08 90 0f 0b 90 eb c1 89 d9 80
RSP: 0018:ffffc9000156e7f8 EFLAGS: 00010202
RAX: 0000000000000000 RBX: ffff88804128802c RCX: dffffc0000000000
RDX: ffffc9000156e920 RSI: 0000000000000000 RDI: 0000000000148c48
RBP: 0000000000148c48 R08: ffff88803fffd9b0 R09: 00000000000095f5
R10: dffffc0000000000 R11: ffffed100fffb449 R12: ffffc9000156e920
R13: 1ffff920002add20 R14: 0000000000148c48 R15: 0000000000000000
 __alloc_frozen_pages_noprof+0x314/0x370
 alloc_pages_mpol+0x232/0x4a0
 alloc_pages_noprof+0xa9/0x190
 folio_alloc_noprof+0x1e/0x30
 filemap_alloc_folio_noprof+0x107/0x470
 __filemap_get_folio_mpol+0x3fc/0xb00
 bdev_getblk+0x1f7/0x6e0
 ext4_xattr_block_set+0x1d6b/0x2ab0
 ext4_expand_extra_isize_ea+0x12da/0x1ea0
 __ext4_expand_extra_isize+0x308/0x400
 __ext4_mark_inode_dirty+0x45c/0x730
 ext4_dirty_inode+0xcb/0x110
 __mark_inode_dirty+0x39d/0x1470
 sync_lazytime+0x13b/0x2d0
 iput+0x230/0xe80
 __dentry_kill+0x198/0x5d0
 shrink_kill+0xa9/0x2c0
 shrink_dentry_list+0x2e0/0x5e0
 prune_dcache_sb+0x10e/0x170
 super_cache_scan+0x365/0x4a0
 do_shrink_slab+0x6d2/0x1160
 shrink_slab+0x7ef/0x10d0
 shrink_one+0x2d9/0x720
 shrink_node+0x3134/0x3a20
 kswapd+0x1688/0x2d50
 kthread+0x389/0x480
 ret_from_fork+0x507/0xb90
 ret_from_fork_asm+0x11/0x20
 </TASK>
Kernel Offset: disabled
Rebooting in 86400 seconds..

<<<<<<<<<<<<<<< tail report >>>>>>>>>>>>>>>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-26 21:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26 21:29 WARNING in bdev_getblk sanan.hasanou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox