syzbot


kernel BUG in __phys_addr (2)

Status: upstream: reported C repro on 2023/07/15 19:54
Subsystems: mm reiserfs
[Documentation on labels]
Reported-by: syzbot+daa1128e28d3c3961cb2@syzkaller.appspotmail.com
First crash: 285d, last: 18d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] [reiserfs?] kernel BUG in __phys_addr (2) 0 (2) 2024/02/28 23:16
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in __phys_addr C done 2 318d 349d 3/3 fixed on 2023/07/17 13:09
upstream kernel BUG at arch/x86/mm/physaddr.c:LINE! (6) raid 90 866d 1362d 0/26 auto-closed as invalid on 2022/04/07 07:37
linux-4.14 kernel BUG at arch/x86/mm/physaddr.c:LINE! C inconclusive 23 1123d 1579d 0/1 upstream: reported C repro on 2019/12/26 02:01
linux-4.19 kernel BUG at arch/x86/mm/physaddr.c:LINE! (3) 76 602d 1378d 0/1 auto-obsoleted due to no activity on 2022/12/26 22:17
upstream kernel BUG in __phys_addr net 1 366d 362d 0/26 auto-obsoleted due to no activity on 2023/06/21 10:32
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/01/22 05:14 28m retest repro linux-next error OK
2024/01/21 04:48 20m retest repro upstream OK log
2023/11/11 02:53 0m retest repro linux-next error OK
2023/09/01 23:16 1h23m retest repro linux-next report log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/08/02 15:25 59m bisect linux-next error job log (0)
2023/07/11 22:38 4h22m bisect linux-next error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:28!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5041 Comm: syz-executor387 Not tainted 6.5.0-rc1-next-20230711-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:__phys_addr+0xd7/0x140 arch/x86/mm/physaddr.c:28
Code: e3 44 89 e9 31 ff 48 d3 eb 48 89 de e8 02 ec 4a 00 48 85 db 75 0f e8 b8 ef 4a 00 4c 89 e0 5b 5d 41 5c 41 5d c3 e8 a9 ef 4a 00 <0f> 0b e8 a2 ef 4a 00 48 c7 c0 10 e0 79 8c 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc900039feeb0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 06100164000013b6 RCX: 0000000000000000
RDX: ffff88807e7f1dc0 RSI: ffffffff813a2f67 RDI: 0000000000000006
RBP: 06100164800013b6 R08: 0000000000000006 R09: 06100164800013b6
R10: 061078e4000013b6 R11: 0000000000000001 R12: 061078e4000013b6
R13: ffffc900039fef18 R14: 06100164000013b6 R15: 0000000000000000
FS:  000055555695c480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055fb6fc92f18 CR3: 0000000074063000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 virt_to_folio include/linux/mm.h:1263 [inline]
 virt_to_slab mm/kasan/../slab.h:213 [inline]
 qlink_to_cache mm/kasan/quarantine.c:129 [inline]
 qlist_free_all+0x86/0x170 mm/kasan/quarantine.c:182
 kasan_quarantine_reduce+0x195/0x220 mm/kasan/quarantine.c:292
 __kasan_slab_alloc+0x63/0x90 mm/kasan/common.c:305
 kasan_slab_alloc include/linux/kasan.h:186 [inline]
 slab_post_alloc_hook mm/slab.h:762 [inline]
 slab_alloc_node mm/slub.c:3470 [inline]
 slab_alloc mm/slub.c:3478 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3485 [inline]
 kmem_cache_alloc+0x173/0x390 mm/slub.c:3494
 kmem_cache_zalloc include/linux/slab.h:693 [inline]
 jbd2_alloc_handle include/linux/jbd2.h:1602 [inline]
 new_handle fs/jbd2/transaction.c:476 [inline]
 jbd2__journal_start+0x190/0x850 fs/jbd2/transaction.c:503
 __ext4_journal_start_sb+0x411/0x5d0 fs/ext4/ext4_jbd2.c:111
 __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
 ext4_dirty_inode+0xa5/0x130 fs/ext4/inode.c:5919
 __mark_inode_dirty+0x1e0/0xd60 fs/fs-writeback.c:2430
 mark_inode_dirty include/linux/fs.h:2150 [inline]
 generic_write_end+0x354/0x440 fs/buffer.c:2317
 ext4_da_write_end+0x1f9/0xb50 fs/ext4/inode.c:2988
 generic_perform_write+0x331/0x5d0 mm/filemap.c:3936
 ext4_buffered_write_iter+0x123/0x3d0 fs/ext4/file.c:299
 ext4_file_write_iter+0x8f2/0x1880 fs/ext4/file.c:722
 __kernel_write_iter+0x262/0x7e0 fs/read_write.c:517
 dump_emit_page fs/coredump.c:888 [inline]
 dump_user_range+0x23c/0x710 fs/coredump.c:915
 elf_core_dump+0x27f4/0x3790 fs/binfmt_elf.c:2142
 do_coredump+0x2f44/0x4050 fs/coredump.c:764
 get_signal+0x1c16/0x2650 kernel/signal.c:2875
 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:309
 exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
 exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:310
 exc_page_fault+0xc0/0x170 arch/x86/mm/fault.c:1568
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x7f92da04d4f3
Code: 3f 00 00 77 02 c3 90 48 89 77 20 31 c0 c3 66 0f 1f 84 00 00 00 00 00 41 55 41 54 55 53 48 83 ec 08 64 48 8b 04 25 10 00 00 00 <4c> 8b a0 98 06 00 00 4c 03 a0 90 06 00 00 4c 29 e6 64 48 8b 1c 25
RSP: 002b:00007fffbd381320 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000001 RCX: 00007f92da0a4af5
RDX: 0000000000000006 RSI: 00007fffbd381348 RDI: 00007f92da1025b0
RBP: 00007f92da1025b0 R08: 0000000000000000 R09: 00007fffbd588080
R10: 0000000000000000 R11: 0000000000000293 R12: 00007fffbd47ebf0
R13: 000000000001ef5f R14: 00007fffbd47ec30 R15: 0000000000000004
 </TASK>
Modules linked in:

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/11 19:51 linux-next 8e4b7f2f3d60 2f19aa4f .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/01/06 23:33 upstream 95c8a35f1c01 d0304e9c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root kernel BUG in __phys_addr
2024/04/04 10:56 linux-next 727900b675b7 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/04 09:13 linux-next 727900b675b7 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/04 06:39 linux-next 727900b675b7 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/03 23:16 linux-next 727900b675b7 fed899ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/03 07:06 linux-next c0b832517f62 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/02 21:13 linux-next c0b832517f62 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/02 21:05 linux-next c0b832517f62 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/02 21:05 linux-next c0b832517f62 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 15:47 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 13:48 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 13:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 12:36 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 11:28 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 11:28 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 01:12 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 01:12 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/04/01 01:10 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 23:59 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 20:51 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 18:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 17:57 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 17:57 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 16:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 07:22 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/31 00:20 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 22:09 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 22:03 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 20:55 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 20:55 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 18:51 linux-next a6bd6c933339 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 08:49 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 08:10 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 07:07 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/30 00:29 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 22:49 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 16:45 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 14:12 linux-next a6bd6c933339 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 08:00 linux-next a6bd6c933339 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
2024/03/29 06:50 linux-next a6bd6c933339 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in __phys_addr
* Struck through repros no longer work on HEAD.