syzbot


BUG: corrupted list in ip6_dst_destroy

Status: auto-obsoleted due to no activity on 2023/06/24 14:48
Subsystems: net
[Documentation on labels]
First crash: 457d, last: 457d
Cause bisection: introduced by (bisect log) :
commit 920756a3306a35f1c08f25207d375885bef98975
Author: David Howells <dhowells@redhat.com>
Date: Sat Jan 21 12:51:18 2023 +0000

  block: Convert bio_iov_iter_get_pages to use iov_iter_extract_pages

Crash: BUG: Bad rss-counter state (log)
Repro: C syz .config
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in ip6_dst_destroy C inconclusive 11 848d 1654d 0/1 upstream: reported C repro on 2019/10/25 22:35
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/05/15 22:22 22m retest repro linux-next OK log

Sample crash report:
list_del corruption. next->prev should be ffff88807c94ae90, but was 0000000000000000. (next=ffff88802a27f0d0)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:62!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5338 Comm: syz-executor165 Not tainted 6.2.0-rc6-next-20230203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:__list_del_entry_valid+0x133/0x1b0 lib/list_debug.c:62
Code: e8 e2 09 4b fd 0f 0b 4c 89 c2 48 c7 c7 40 08 a7 8a e8 d1 09 4b fd 0f 0b 48 89 d1 48 c7 c7 c0 08 a7 8a 4c 89 c2 e8 bd 09 4b fd <0f> 0b 48 89 34 24 e8 b2 2c b6 fd 48 8b 34 24 e9 e3 fe ff ff 48 89
RSP: 0018:ffffc900001e0db8 EFLAGS: 00010282
RAX: 000000000000006d RBX: ffff88807c94adc0 RCX: 0000000000000100
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88807c94ae90 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000302 R11: 0000000000000001 R12: 0000000000000001
R13: ffff88807c94ae98 R14: ffff8880b993dcc0 R15: ffff88807c94adf8
FS:  0000555556c11400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000025caa000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __list_del_entry include/linux/list.h:134 [inline]
 list_del_init include/linux/list.h:206 [inline]
 rt6_uncached_list_del net/ipv6/route.c:155 [inline]
 ip6_dst_destroy+0x12b/0x460 net/ipv6/route.c:363
 dst_destroy+0x10f/0x4a0 net/core/dst.c:115
 rcu_do_batch kernel/rcu/tree.c:2115 [inline]
 rcu_core+0x874/0x1b30 kernel/rcu/tree.c:2375
 __do_softirq+0x2e3/0xae3 kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650
 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:unwind_next_frame+0x163b/0x1f60 arch/x86/kernel/unwind_orc.c:641
Code: 7d 40 48 89 fa 48 89 c5 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 84 aa f7 ff ff e8 2a 25 9a 00 e9 a0 f7 ff ff <48> b8 00 00 00 00 00 fc ff df 48 8b 54 24 08 48 c1 ea 03 80 3c 02
RSP: 0018:ffffc90004e1ef90 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000001
RDX: 1ffff920009c3e00 RSI: ffffc90004e1f210 RDI: ffffc90004e1f040
RBP: ffffea000097da80 R08: ffffffff8f075bb6 R09: ffffc90004e1f034
R10: 0000000000000000 R11: ffffc90004e1f228 R12: ffffc90004e1f035
R13: ffffc90004e1f000 R14: ffffc90004e1f210 R15: ffffffff8f075bba
 arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x90/0xc0 kernel/stacktrace.c:122
 save_stack+0x151/0x1e0 mm/page_owner.c:128
 __set_page_owner+0x1f/0x60 mm/page_owner.c:192
 prep_new_page mm/page_alloc.c:2552 [inline]
 get_page_from_freelist+0x11bb/0x2d50 mm/page_alloc.c:4328
 __alloc_pages+0x1cb/0x5c0 mm/page_alloc.c:5594
 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2283
 push_anon lib/iov_iter.c:239 [inline]
 append_pipe+0x19a/0x660 lib/iov_iter.c:296
 pipe_zero lib/iov_iter.c:783 [inline]
 iov_iter_zero+0x450/0x13a0 lib/iov_iter.c:799
 iomap_dio_hole_iter fs/iomap/direct-io.c:382 [inline]
 iomap_dio_iter fs/iomap/direct-io.c:430 [inline]
 __iomap_dio_rw+0xf4a/0x1d80 fs/iomap/direct-io.c:594
 iomap_dio_rw+0x40/0xa0 fs/iomap/direct-io.c:682
 ext4_dio_read_iter fs/ext4/file.c:94 [inline]
 ext4_file_read_iter+0x4be/0x690 fs/ext4/file.c:145
 call_read_iter include/linux/fs.h:1845 [inline]
 generic_file_splice_read+0x182/0x4b0 fs/splice.c:309
 do_splice_to+0x1b9/0x240 fs/splice.c:793
 splice_direct_to_actor+0x2ab/0x8a0 fs/splice.c:865
 do_splice_direct+0x1ab/0x280 fs/splice.c:974
 do_sendfile+0xb19/0x12c0 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x1d0/0x210 fs/read_write.c:1309
 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:0x7ff41bd93159
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 18 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:00007ffd951d3888 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff41bd93159
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007ffd951d38a0 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000001dd00 R11: 0000000000000246 R12: 00007ffd951d394c
R13: 00007ffd951d3960 R14: 00007ffd951d39a0 R15: 00000000000000f8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid+0x133/0x1b0 lib/list_debug.c:62
Code: e8 e2 09 4b fd 0f 0b 4c 89 c2 48 c7 c7 40 08 a7 8a e8 d1 09 4b fd 0f 0b 48 89 d1 48 c7 c7 c0 08 a7 8a 4c 89 c2 e8 bd 09 4b fd <0f> 0b 48 89 34 24 e8 b2 2c b6 fd 48 8b 34 24 e9 e3 fe ff ff 48 89
RSP: 0018:ffffc900001e0db8 EFLAGS: 00010282
RAX: 000000000000006d RBX: ffff88807c94adc0 RCX: 0000000000000100
RDX: 0000000000000000 RSI: ffffffff8168dfbc RDI: 0000000000000005
RBP: ffff88807c94ae90 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000302 R11: 0000000000000001 R12: 0000000000000001
R13: ffff88807c94ae98 R14: ffff8880b993dcc0 R15: ffff88807c94adf8
FS:  0000555556c11400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000025caa000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	7d 40                	jge    0x42
   2:	48 89 fa             	mov    %rdi,%rdx
   5:	48 89 c5             	mov    %rax,%rbp
   8:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   f:	fc ff df
  12:	48 c1 ea 03          	shr    $0x3,%rdx
  16:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  1a:	0f 84 aa f7 ff ff    	je     0xfffff7ca
  20:	e8 2a 25 9a 00       	callq  0x9a254f
  25:	e9 a0 f7 ff ff       	jmpq   0xfffff7ca
* 2a:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax <-- trapping instruction
  31:	fc ff df
  34:	48 8b 54 24 08       	mov    0x8(%rsp),%rdx
  39:	48 c1 ea 03          	shr    $0x3,%rdx
  3d:	80                   	.byte 0x80
  3e:	3c 02                	cmp    $0x2,%al

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/04 01:30 linux-next 4fafd96910ad 1b2f701a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in ip6_dst_destroy
* Struck through repros no longer work on HEAD.