Hello,
syzbot tried to test the proposed patch but the build/boot failed:
53 testing simple program...
[ 38.048381][ T5020] cgroup: Unknown subsys name 'net'
[ 38.144096][ T5020] cgroup: Unknown subsys name 'rlimit'
executing program
executing program
[ 45.312571][ T5020] kmemleak: 1 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
[ 46.020316][ T5020] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k
[ 46.030096][ T5016] syz-fuzzer[5016]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
[ 46.039760][ T5016] syz-fuzzer[5016]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
[ 46.091389][ T5026] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1
[ 46.098787][ T5026] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9
[ 46.106111][ T5026] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9
[ 46.113742][ T5026] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4
[ 46.121019][ T5026] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3
[ 46.128205][ T5026] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2
[ 46.206730][ T5023] chnl_net:caif_netlink_parms(): no params data found
[ 46.244389][ T5023] bridge0: port 1(bridge_slave_0) entered blocking state
[ 46.251667][ T5023] bridge0: port 1(bridge_slave_0) entered disabled state
[ 46.258894][ T5023] bridge_slave_0: entered allmulticast mode
[ 46.265537][ T5023] bridge_slave_0: entered promiscuous mode
[ 46.272703][ T5023] bridge0: port 2(bridge_slave_1) entered blocking state
[ 46.280396][ T5023] bridge0: port 2(bridge_slave_1) entered disabled state
[ 46.288066][ T5023] bridge_slave_1: entered allmulticast mode
[ 46.294823][ T5023] bridge_slave_1: entered promiscuous mode
[ 46.311947][ T5023] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link
[ 46.322710][ T5023] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link
[ 46.343136][ T5023] team0: Port device team_slave_0 added
[ 46.350340][ T5023] team0: Port device team_slave_1 added
[ 46.367590][ T5023] batman_adv: batadv0: Adding interface: batadv_slave_0
[ 46.374605][ T5023] batman_adv: batadv0: The MTU of interface batadv_slave_0 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 46.401086][ T5023] batman_adv: batadv0: Not using interface batadv_slave_0 (retrying later): interface not active
[ 46.413021][ T5023] batman_adv: batadv0: Adding interface: batadv_slave_1
[ 46.420064][ T5023] batman_adv: batadv0: The MTU of interface batadv_slave_1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1560 would solve the problem.
[ 46.446391][ T5023] batman_adv: batadv0: Not using interface batadv_slave_1 (retrying later): interface not active
[ 46.473592][ T5023] hsr_slave_0: entered promiscuous mode
[ 46.479735][ T5023] hsr_slave_1: entered promiscuous mode
[ 46.543832][ T5023] netdevsim netdevsim0 netdevsim0: renamed from eth0
[ 46.552655][ T5023] netdevsim netdevsim0 netdevsim1: renamed from eth1
[ 46.561763][ T5023] netdevsim netdevsim0 netdevsim2: renamed from eth2
[ 46.570426][ T5023] netdevsim netdevsim0 netdevsim3: renamed from eth3
[ 46.586605][ T5023] bridge0: port 2(bridge_slave_1) entered blocking state
[ 46.594143][ T5023] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 46.601501][ T5023] bridge0: port 1(bridge_slave_0) entered blocking state
[ 46.608669][ T5023] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 46.643919][ T5023] 8021q: adding VLAN 0 to HW filter on device bond0
[ 46.656872][ T5023] 8021q: adding VLAN 0 to HW filter on device team0
[ 46.665110][ T8] bridge0: port 1(bridge_slave_0) entered disabled state
[ 46.673161][ T8] bridge0: port 2(bridge_slave_1) entered disabled state
[ 46.691487][ T22] bridge0: port 1(bridge_slave_0) entered blocking state
[ 46.699009][ T22] bridge0: port 1(bridge_slave_0) entered forwarding state
[ 46.707513][ T22] bridge0: port 2(bridge_slave_1) entered blocking state
[ 46.714673][ T22] bridge0: port 2(bridge_slave_1) entered forwarding state
[ 46.772885][ T5023] 8021q: adding VLAN 0 to HW filter on device batadv0
[ 46.794139][ T5023] veth0_vlan: entered promiscuous mode
[ 46.804606][ T5023] veth1_vlan: entered promiscuous mode
[ 46.821987][ T5023] veth0_macvtap: entered promiscuous mode
[ 46.830513][ T5023] veth1_macvtap: entered promiscuous mode
[ 46.843066][ T5023] batman_adv: batadv0: Interface activated: batadv_slave_0
[ 46.854088][ T5023] batman_adv: batadv0: Interface activated: batadv_slave_1
[ 46.863330][ T5023] netdevsim netdevsim0 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0
[ 46.872461][ T5023] netdevsim netdevsim0 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0
[ 46.881548][ T5023] netdevsim netdevsim0 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0
[ 46.890297][ T5023] netdevsim netdevsim0 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0
executing program
2023/09/03 11:43:02 building call list...
[ 46.921916][ T22] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 46.930025][ T22] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 46.948583][ T22] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 46.956718][ T22] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
[ 48.150369][ T5047] damon-dbgfs: DAMON debugfs interface is deprecated, so users should move to DAMON_SYSFS. If you cannot, please report your usecase to
da...@lists.linux.dev and
linu...@kvack.org.
[ 48.248399][ T5047] can: request_module (can-proto-0) failed.
[ 48.261421][ T5047] can: request_module (can-proto-0) failed.
[ 48.274077][ T5047] can: request_module (can-proto-0) failed.
[ 48.437939][ T5047] UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 48.550231][ T5047] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
[ 48.595248][ T5047] kmemleak: Cannot insert 0xffff888108a8e800 into the object search tree (overlaps existing)
[ 48.605931][ T5047] CPU: 1 PID: 5047 Comm: syz-fuzzer Not tainted 6.5.0-syzkaller-10885-g0468be89b3fa-dirty #0
[ 48.616071][ T5047] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
[ 48.626123][ T5047] Call Trace:
[ 48.629398][ T5047] <TASK>
[ 48.632598][ T5047] dump_stack_lvl+0x72/0xa0
[ 48.637182][ T5047] __create_object+0x2e9/0x430
[ 48.641958][ T5047] __kmem_cache_alloc_node+0x1ee/0x300
[ 48.647592][ T5047] ? sk_prot_alloc+0x112/0x1b0
[ 48.652475][ T5047] ? sk_prot_alloc+0x112/0x1b0
[ 48.657410][ T5047] __kmalloc+0x4b/0x150
[ 48.661652][ T5047] sk_prot_alloc+0x112/0x1b0
[ 48.666229][ T5047] sk_alloc+0x36/0x2f0
[ 48.670281][ T5047] __netlink_create+0x40/0xe0
[ 48.675202][ T5047] netlink_create+0x221/0x320
[ 48.679866][ T5047] ? genl_pernet_exit+0x30/0x30
[ 48.684879][ T5047] __sock_create+0x19f/0x2e0
[ 48.689478][ T5047] __sys_socket+0xb8/0x1a0
[ 48.693975][ T5047] __x64_sys_socket+0x1b/0x20
[ 48.698721][ T5047] do_syscall_64+0x38/0xb0
[ 48.703121][ T5047] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 48.709261][ T5047] RIP: 0033:0x403ace
[ 48.713360][ T5047] Code: 48 89 6c 24 38 48 8d 6c 24 38 e8 0d 00 00 00 48 8b 6c 24 38 48 83 c4 40 c3 cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
[ 48.733718][ T5047] RSP: 002b:000000c000d072e0 EFLAGS: 00000206 ORIG_RAX: 0000000000000029
[ 48.742290][ T5047] RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 0000000000403ace
[ 48.750243][ T5047] RDX: 0000000000000010 RSI: 0000000000000003 RDI: 0000000000000010
[ 48.758311][ T5047] RBP: 000000c000d07320 R08: 0000000000000000 R09: 0000000000000000
[ 48.766357][ T5047] R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000600
[ 48.774671][ T5047] R13: 0000000000000038 R14: 000000c0000061a0 R15: 000000000000022f
[ 48.782895][ T5047] </TASK>
[ 48.785999][ T5047] kmemleak: Kernel memory leak detector disabled
[ 48.792326][ T5047] kmemleak: Object 0xffff888108a8e800 (size 2048):
[ 48.798802][ T5047] kmemleak: comm "syz-fuzzer", pid 5047, jiffies 4294942099
[ 48.806421][ T5047] kmemleak: min_count = 1
[ 48.811247][ T5047] kmemleak: count = 0
[ 48.815473][ T5047] kmemleak: flags = 0x1
[ 48.819859][ T5047] kmemleak: checksum = 0
[ 48.824491][ T5047] kmemleak: backtrace:
[ 48.828941][ T5047] __kmalloc+0x4b/0x150
[ 48.833116][ T5047] sk_prot_alloc+0x112/0x1b0
[ 48.838049][ T5047] sk_alloc+0x36/0x2f0
[ 48.842099][ T5047] __netlink_create+0x40/0xe0
[ 48.847113][ T5047] netlink_create+0x221/0x320
[ 48.851869][ T5047] __sock_create+0x19f/0x2e0
[ 48.856962][ T5047] __sys_socket+0xb8/0x1a0
[ 48.861620][ T5047] __x64_sys_socket+0x1b/0x20
[ 48.866297][ T5047] do_syscall_64+0x38/0xb0
[ 48.870901][ T5047] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ 48.899361][ C0] BUG: kernel NULL pointer dereference, address: 0000000000000000
[ 48.907285][ C0] #PF: supervisor instruction fetch in kernel mode
[ 48.913783][ C0] #PF: error_code(0x0010) - not-present page
[ 48.919759][ C0] PGD 109de7067 P4D 109de7067 PUD 109dd7067 PMD 0
[ 48.926364][ C0] Oops: 0010 [#1] PREEMPT SMP
[ 48.931133][ C0] CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.5.0-syzkaller-10885-g0468be89b3fa-dirty #0
[ 48.941291][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
[ 48.951437][ C0] RIP: 0010:0x0
[ 48.955069][ C0] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[ 48.962767][ C0] RSP: 0018:ffffc900000cbdf0 EFLAGS: 00010206
[ 48.968996][ C0] RAX: 0000000000000000 RBX: ffff88813bc2ec00 RCX: 0000000000000100
[ 48.977303][ C0] RDX: ffff88810c74d220 RSI: ffffffff83eddfde RDI: ffff888108a8ec40
[ 48.985349][ C0] RBP: 0000000000000003 R08: 0000000000000000 R09: ffffffff83eddf00
[ 48.993306][ C0] R10: ffff88811bbaa000 R11: 0000000000000001 R12: ffff8881008c8000
[ 49.001442][ C0] R13: ffff88813bc2ec78 R14: 0000000000000002 R15: 0000000000000000
[ 49.009402][ C0] FS: 0000000000000000(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000
[ 49.018493][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 49.025330][ C0] CR2: ffffffffffffffd6 CR3: 000000010bc18000 CR4: 00000000003506f0
[ 49.033552][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 49.041861][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 49.050091][ C0] Call Trace:
[ 49.053454][ C0] <TASK>
[ 49.058223][ C0] ? show_regs+0x8f/0xa0
[ 49.062563][ C0] ? __die+0x2c/0x80
[ 49.066450][ C0] ? page_fault_oops+0x29a/0x710
[ 49.071411][ C0] ? do_user_addr_fault+0x4c5/0xab0
[ 49.076890][ C0] ? exc_page_fault+0x5d/0xb0
[ 49.081659][ C0] ? asm_exc_page_fault+0x26/0x30
[ 49.086772][ C0] ? dst_destroy+0x80/0x210
[ 49.091285][ C0] ? dst_destroy+0x15e/0x210
[ 49.096160][ C0] rcu_core+0x42d/0x730
[ 49.100324][ C0] __do_softirq+0xc5/0x2b0
[ 49.104736][ C0] run_ksoftirqd+0x19/0x20
[ 49.109153][ C0] smpboot_thread_fn+0x19f/0x330
[ 49.114195][ C0] ? sort_range+0x30/0x30
[ 49.118533][ C0] kthread+0x12b/0x170
[ 49.122617][ C0] ? kthread_complete_and_exit+0x30/0x30
[ 49.130765][ C0] ret_from_fork+0x45/0x50
[ 49.135346][ C0] ? kthread_complete_and_exit+0x30/0x30
[ 49.141072][ C0] ret_from_fork_asm+0x11/0x20
[ 49.146101][ C0] </TASK>
[ 49.149194][ C0] Modules linked in:
[ 49.153253][ C0] CR2: 0000000000000000
[ 49.157486][ C0] ---[ end trace 0000000000000000 ]---
[ 49.162925][ C0] RIP: 0010:0x0
[ 49.166810][ C0] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[ 49.174425][ C0] RSP: 0018:ffffc900000cbdf0 EFLAGS: 00010206
[ 49.180478][ C0] RAX: 0000000000000000 RBX: ffff88813bc2ec00 RCX: 0000000000000100
[ 49.188436][ C0] RDX: ffff88810c74d220 RSI: ffffffff83eddfde RDI: ffff888108a8ec40
[ 49.196471][ C0] RBP: 0000000000000003 R08: 0000000000000000 R09: ffffffff83eddf00
[ 49.204690][ C0] R10: ffff88811bbaa000 R11: 0000000000000001 R12: ffff8881008c8000
[ 49.213690][ C0] R13: ffff88813bc2ec78 R14: 0000000000000002 R15: 0000000000000000
[ 49.221840][ C0] FS: 0000000000000000(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000
[ 49.230846][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 49.237482][ C0] CR2: ffffffffffffffd6 CR3: 000000010bc18000 CR4: 00000000003506f0
[ 49.245713][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 49.253931][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 49.262600][ C0] Kernel panic - not syncing: Fatal exception in interrupt
[ 49.269993][ C0] Kernel Offset: disabled
[ 49.274389][ C0] Rebooting in 86400 seconds..
syzkaller build log:
go env (err=<nil>)
GO111MODULE="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/syzkaller/.cache/go-build"
GOENV="/syzkaller/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/syzkaller/jobs-2/linux/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/syzkaller/jobs-2/linux/gopath"
GOPRIVATE=""
GOPROXY="
https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="
sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/syzkaller/jobs-2/linux/gopath/src/
github.com/google/syzkaller/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2431736915=/tmp/go-build -gno-record-gcc-switches"
git status (err=<nil>)
HEAD detached at 696ea0d2f
nothing to commit, working tree clean
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:32: run command via tools/syz-env for best compatibility, see:
Makefile:33:
https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X
github.com/google/syzkaller/prog.GitRevision=696ea0d2f4fdaa17db929e152edba19bf7666d84 -X '
github.com/google/syzkaller/prog.gitRevisionDate=20230831-140644'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer
github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X
github.com/google/syzkaller/prog.GitRevision=696ea0d2f4fdaa17db929e152edba19bf7666d84 -X '
github.com/google/syzkaller/prog.gitRevisionDate=20230831-140644'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog
github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X
github.com/google/syzkaller/prog.GitRevision=696ea0d2f4fdaa17db929e152edba19bf7666d84 -X '
github.com/google/syzkaller/prog.gitRevisionDate=20230831-140644'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress
github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"696ea0d2f4fdaa17db929e152edba19bf7666d84\"
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=12e000d7a80000
Tested on:
commit: 0468be89 Merge tag 'iommu-updates-v6.6' of git://git.k..
git tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
patch:
https://syzkaller.appspot.com/x/patch.diff?x=10290bc0680000