forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
kernel-dejavu.spec
3094 lines (3014 loc) · 159 KB
/
kernel-dejavu.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
%define _build_id_links none
%define _disable_source_fetch 0
# See https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck to why this has to be done
%if 0%{?fedora} >= 37
%undefine _auto_set_build_flags
%endif
%ifarch x86_64
%define karch x86
%define asmarch x86
%endif
Name: kernel-dejavu
Summary: Custom Linux kernel tuned for performance
%define _basekver 6.1
%define _stablekver 3
Version: %{_basekver}.%{_stablekver}
%define krel 1
Release: %{krel}%{?dist}
Source0: %{name}-%{version}.tar.gz
%define rpmver %{version}-%{release}
%define kverstr %{version}-Dejavu%{release}.%{_arch}
License: GPLv2 and Redistributable, no modifications permitted
Group: System Environment/Kernel
Vendor: The Linux Community and dejavu maintainer(s)
URL: https://github.com/Neutron-Projects/kernel-dejavu
%define __spec_install_post /usr/lib/rpm/brp-compress || :
%define debug_package %{nil}
BuildRequires: python3-devel make perl-generators perl-interpreter openssl-devel bison flex findutils git-core perl-devel openssl elfutils-devel gawk binutils m4 tar hostname bzip2 bash gzip xz bc diffutils redhat-rpm-config net-tools elfutils patch rpm-build dwarves kmod libkcapi-hmaccalc perl-Carp rsync grubby
BuildRequires: wget zstd llvm lld clang
Requires: %{name}-core-%{rpmver} = %{kverstr}, %{name}-modules-%{rpmver} = %{kverstr}
Provides: %{name}%{_basekver} = %{rpmver}
%description
The kernel-dejavu meta package
%package core
Summary: Kernel core package
Group: System Environment/Kernel
Provides: installonlypkg(kernel), kernel = %{rpmver}, kernel-core = %{rpmver}, kernel-core-uname-r = %{kverstr}, kernel-uname-r = %{kverstr}, kernel-%{_arch} = %{rpmver}, kernel-core%{_isa} = %{rpmver}, kernel-core-%{rpmver} = %{kverstr}, %{name}-core-%{rpmver} = %{kverstr}, kernel-drm-nouveau = 16
# multiver
Provides: %{name}%{_basekver}-core = %{rpmver}
Requires: bash, coreutils, dracut, linux-firmware, /usr/bin/kernel-install, kernel-modules-%{rpmver} = %{kverstr}
Supplements: %{name} = %{rpmver}
%description core
The kernel package contains the Linux kernel (vmlinuz), the core of any
Linux operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc.
%package modules
Summary: Kernel modules to match the core kernel
Group: System Environment/Kernel
Provides: installonlypkg(kernel-module), kernel-modules = %{rpmver}, kernel-modules%{_isa} = %{rpmver}, kernel-modules-uname-r = %{kverstr}, kernel-modules-%{_arch} = %{rpmver}, kernel-modules-%{rpmver} = %{kverstr}, %{name}-modules-%{rpmver} = %{kverstr}
Provides: %{name}%{_basekver}-modules = %{rpmver}
Supplements: %{name} = %{rpmver}
%description modules
This package provides kernel modules for the core dejavu kernel package.
%package headers
Summary: Header files for the Linux kernel for use by glibc
Group: Development/System
Provides: kernel-headers = %{kverstr}, glibc-kernheaders = 3.0-46, kernel-headers%{_isa} = %{kverstr}
Obsoletes: kernel-headers < %{kverstr}, glibc-kernheaders < 3.0-46
%description headers
Kernel-headers includes the C header files that specify the interface
between the Linux kernel and userspace libraries and programs. The
header files define structures and constants that are needed for
building most standard programs and are also needed for rebuilding the
glibc package.
%package devel
Summary: Development package for building kernel modules to match the dejavu kernel
Group: System Environment/Kernel
AutoReqProv: no
Requires: findutils perl-interpreter openssl-devel flex make bison elfutils-libelf-devel
Requires: llvm lld clang wget zstd
Enhances: dkms akmods
Provides: installonlypkg(kernel), kernel-devel = %{rpmver}, kernel-devel-uname-r = %{kverstr}, kernel-devel-%{_arch} = %{rpmver}, kernel-devel%{_isa} = %{rpmver}, kernel-devel-%{rpmver} = %{kverstr}, %{name}-devel-%{rpmver} = %{kverstr}
Provides: %{name}%{_basekver}-devel = %{rpmver}
%description devel
This package provides kernel headers and makefiles sufficient to build modules
against the dejavu kernel package.
%package devel-matched
Summary: Meta package to install matching core and devel packages for a given dejavu kernel
Requires: %{name}-devel = %{rpmver}, %{name}-core = %{rpmver}
Provides: kernel-devel-matched = %{rpmver}, kernel-devel-matched%{_isa} = %{rpmver}
%description devel-matched
This meta package is used to install matching core and devel packages for a given dejavu kernel.
%prep
%setup -q
# Custom Clang toolchain
ls
cdir=$(pwd)
if test ! -d "$HOME/toolchains/neutron-clang"
then
mkdir -p "$HOME/toolchains/neutron-clang"
cd "$HOME/toolchains/neutron-clang"
bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") -S > /dev/null
fi
cd $cdir || cd -
export TC_PATH="$HOME/toolchains/neutron-clang/bin"
export PATH="$TC_PATH:$PATH"
# Verify clang version
clang --version
$TC_PATH/clang --version
export KBUILD_BUILD_USER="dakkshesh07"
# Init fedora_defconfig
make LLVM="$HOME/toolchains/neutron-clang/bin" LLVM_IAS=1 LD="$HOME/toolchains/neutron-clang/bin/ld.lld" fedora_defconfig
echo "kernel-str: %{kverstr}"
echo "local-version: -Dejavu%{release}.%{_arch}"
# Remove default localversion
find . -name "localversion*" -delete
scripts/config --set-str LOCALVERSION "-Dejavu%{release}.%{_arch}"
# Set kernel version string as build salt
scripts/config --set-str BUILD_SALT "%{kverstr}"
# Finalize the patched config
make LLVM=1 LLVM_IAS=1 CC="$TC_PATH/clang" LD="$TC_PATH/ld.lld" AR="$TC_PATH/llvm-ar" NM="$TC_PATH/llvm-nm" OBJCOPY="$TC_PATH/llvm-objcopy" OBJDUMP="$TC_PATH/llvm-objdump" READELF="$TC_PATH/llvm-readelf" STRIP="$TC_PATH/llvm-strip" HOSTCC="$TC_PATH/clang" HOSTCXX="$TC_PATH/clang++" HOSTAR="$TC_PATH/llvm-ar" HOSTLD="$TC_PATH/ld.lld" %{?_smp_mflags} oldconfig
%build
export TC_PATH="$HOME/toolchains/neutron-clang/bin"
export PATH="$TC_PATH:$PATH"
make LLVM=1 LLVM_IAS=1 CC="$TC_PATH/clang" LD="$TC_PATH/ld.lld" AR="$TC_PATH/llvm-ar" NM="$TC_PATH/llvm-nm" OBJCOPY="$TC_PATH/llvm-objcopy" OBJDUMP="$TC_PATH/llvm-objdump" READELF="$TC_PATH/llvm-readelf" STRIP="$TC_PATH/llvm-strip" HOSTCC="$TC_PATH/clang" HOSTCXX="$TC_PATH/clang++" HOSTAR="$TC_PATH/llvm-ar" HOSTLD="$TC_PATH/ld.lld" bzImage %{?_smp_mflags}
make LLVM=1 LLVM_IAS=1 CC="$TC_PATH/clang" LD="$TC_PATH/ld.lld" AR="$TC_PATH/llvm-ar" NM="$TC_PATH/llvm-nm" OBJCOPY="$TC_PATH/llvm-objcopy" OBJDUMP="$TC_PATH/llvm-objdump" READELF="$TC_PATH/llvm-readelf" STRIP="$TC_PATH/llvm-strip" HOSTCC="$TC_PATH/clang" HOSTCXX="$TC_PATH/clang++" HOSTAR="$TC_PATH/llvm-ar" HOSTLD="$TC_PATH/ld.lld" modules %{?_smp_mflags}
clang -O3 ./scripts/sign-file.c -o ./scripts/sign-file -lssl -lcrypto
%install
export TC_PATH="$HOME/toolchains/neutron-clang/bin"
export PATH="$TC_PATH:$PATH"
ImageName=$(make image_name | tail -n 1)
mkdir -p %{buildroot}/boot
cp -v $ImageName %{buildroot}/boot/vmlinuz-%{kverstr}
chmod 755 %{buildroot}/boot/vmlinuz-%{kverstr}
make %{?_smp_mflags} LLVM=1 LLVM_IAS=1 CC="$TC_PATH/clang" LD="$TC_PATH/ld.lld" AR="$TC_PATH/llvm-ar" NM="$TC_PATH/llvm-nm" OBJCOPY="$TC_PATH/llvm-objcopy" OBJDUMP="$TC_PATH/llvm-objdump" READELF="$TC_PATH/llvm-readelf" STRIP="$TC_PATH/llvm-strip" HOSTCC="$TC_PATH/clang" HOSTCXX="$TC_PATH/clang++" HOSTAR="$TC_PATH/llvm-ar" HOSTLD="$TC_PATH/ld.lld" INSTALL_MOD_PATH=%{buildroot} modules_install mod-fw=
make %{?_smp_mflags} LLVM=1 LLVM_IAS=1 CC="$TC_PATH/clang" LD="$TC_PATH/ld.lld" AR="$TC_PATH/llvm-ar" NM="$TC_PATH/llvm-nm" OBJCOPY="$TC_PATH/llvm-objcopy" OBJDUMP="$TC_PATH/llvm-objdump" READELF="$TC_PATH/llvm-readelf" STRIP="$TC_PATH/llvm-strip" HOSTCC="$TC_PATH/clang" HOSTCXX="$TC_PATH/clang++" HOSTAR="$TC_PATH/llvm-ar" HOSTLD="$TC_PATH/ld.lld" INSTALL_HDR_PATH=%{buildroot}/usr headers_install
# prepare -devel files
### all of the things here are derived from the Fedora kernel.spec
### see
##### https://src.fedoraproject.org/rpms/kernel/blob/rawhide/f/kernel.spec
rm -f %{buildroot}/lib/modules/%{kverstr}/build
rm -f %{buildroot}/lib/modules/%{kverstr}/source
mkdir -p %{buildroot}/lib/modules/%{kverstr}/build
(cd %{buildroot}/lib/modules/%{kverstr} ; ln -s build source)
# dirs for additional modules per module-init-tools, kbuild/modules.txt
mkdir -p %{buildroot}/lib/modules/%{kverstr}/updates
mkdir -p %{buildroot}/lib/modules/%{kverstr}/weak-updates
# CONFIG_KERNEL_HEADER_TEST generates some extra files in the process of
# testing so just delete
find . -name *.h.s -delete
# first copy everything
cp --parents `find -type f -name "Makefile*" -o -name "Kconfig*"` %{buildroot}/lib/modules/%{kverstr}/build
if [ ! -e Module.symvers ]; then
touch Module.symvers
fi
cp Module.symvers %{buildroot}/lib/modules/%{kverstr}/build
cp System.map %{buildroot}/lib/modules/%{kverstr}/build
if [ -s Module.markers ]; then
cp Module.markers %{buildroot}/lib/modules/%{kverstr}/build
fi
# create the kABI metadata for use in packaging
# NOTENOTE: the name symvers is used by the rpm backend
# NOTENOTE: to discover and run the /usr/lib/rpm/fileattrs/kabi.attr
# NOTENOTE: script which dynamically adds exported kernel symbol
# NOTENOTE: checksums to the rpm metadata provides list.
# NOTENOTE: if you change the symvers name, update the backend too
echo "**** GENERATING kernel ABI metadata ****"
gzip -c9 < Module.symvers > %{buildroot}/boot/symvers-%{kverstr}.gz
cp %{buildroot}/boot/symvers-%{kverstr}.gz %{buildroot}/lib/modules/%{kverstr}/symvers.gz
# then drop all but the needed Makefiles/Kconfig files
rm -rf %{buildroot}/lib/modules/%{kverstr}/build/scripts
rm -rf %{buildroot}/lib/modules/%{kverstr}/build/include
cp .config %{buildroot}/lib/modules/%{kverstr}/build
cp -a scripts %{buildroot}/lib/modules/%{kverstr}/build
rm -rf %{buildroot}/lib/modules/%{kverstr}/build/scripts/tracing
rm -f %{buildroot}/lib/modules/%{kverstr}/build/scripts/spdxcheck.py
%ifarch s390x
# CONFIG_EXPOLINE_EXTERN=y produces arch/s390/lib/expoline/expoline.o
# which is needed during external module build.
if [ -f arch/s390/lib/expoline/expoline.o ]; then
cp -a --parents arch/s390/lib/expoline/expoline.o %{buildroot}/lib/modules/%{kverstr}/build
fi
%endif
# Files for 'make scripts' to succeed with kernel-devel.
mkdir -p %{buildroot}/lib/modules/%{kverstr}/build/security/selinux/include
cp -a --parents security/selinux/include/classmap.h %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents security/selinux/include/initial_sid_to_string.h %{buildroot}/lib/modules/%{kverstr}/build
mkdir -p %{buildroot}/lib/modules/%{kverstr}/build/tools/include/tools
cp -a --parents tools/include/tools/be_byteshift.h %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/tools/le_byteshift.h %{buildroot}/lib/modules/%{kverstr}/build
# Files for 'make prepare' to succeed with kernel-devel.
cp -a --parents tools/include/linux/compiler* %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/linux/types.h %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/build/Build.include %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/build/Build %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/build/fixdep.c %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/objtool/sync-check.sh %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/bpf/resolve_btfids %{buildroot}/lib/modules/%{kverstr}/build
cp --parents security/selinux/include/policycap_names.h %{buildroot}/lib/modules/%{kverstr}/build
cp --parents security/selinux/include/policycap.h %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/asm-generic %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/linux %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/uapi/asm %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/uapi/asm-generic %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/uapi/linux %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/include/vdso %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/scripts/utilities.mak %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/lib/subcmd %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/lib/*.c %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/objtool/*.[ch] %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/objtool/Build %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/objtool/include/objtool/*.h %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/lib/bpf %{buildroot}/lib/modules/%{kverstr}/build
cp --parents tools/lib/bpf/Build %{buildroot}/lib/modules/%{kverstr}/build
if [ -f tools/objtool/objtool ]; then
cp -a tools/objtool/objtool %{buildroot}/lib/modules/%{kverstr}/build/tools/objtool/ || :
fi
if [ -f tools/objtool/fixdep ]; then
cp -a tools/objtool/fixdep %{buildroot}/lib/modules/%{kverstr}/build/tools/objtool/ || :
fi
if [ -d arch/%{karch}/scripts ]; then
cp -a arch/%{karch}/scripts %{buildroot}/lib/modules/%{kverstr}/build/arch/%{_arch} || :
fi
if [ -f arch/%{karch}/*lds ]; then
cp -a arch/%{karch}/*lds %{buildroot}/lib/modules/%{kverstr}/build/arch/%{_arch}/ || :
fi
if [ -f arch/%{asmarch}/kernel/module.lds ]; then
cp -a --parents arch/%{asmarch}/kernel/module.lds %{buildroot}/lib/modules/%{kverstr}/build/
fi
find %{buildroot}/lib/modules/%{kverstr}/build/scripts \( -iname "*.o" -o -iname "*.cmd" \) -exec rm -f {} +
%ifarch ppc64le
cp -a --parents arch/powerpc/lib/crtsavres.[So] %{buildroot}/lib/modules/%{kverstr}/build/
%endif
if [ -d arch/%{asmarch}/include ]; then
cp -a --parents arch/%{asmarch}/include %{buildroot}/lib/modules/%{kverstr}/build/
fi
%ifarch aarch64
# arch/arm64/include/asm/xen references arch/arm
cp -a --parents arch/arm/include/asm/xen %{buildroot}/lib/modules/%{kverstr}/build/
# arch/arm64/include/asm/opcodes.h references arch/arm
cp -a --parents arch/arm/include/asm/opcodes.h %{buildroot}/lib/modules/%{kverstr}/build/
%endif
# include the machine specific headers for ARM variants, if available.
%ifarch %{arm}
if [ -d arch/%{asmarch}/mach-${Variant}/include ]; then
cp -a --parents arch/%{asmarch}/mach-${Variant}/include %{buildroot}/lib/modules/%{kverstr}/build/
fi
# include a few files for 'make prepare'
cp -a --parents arch/arm/tools/gen-mach-types %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/arm/tools/mach-types %{buildroot}/lib/modules/%{kverstr}/build/
%endif
cp -a include %{buildroot}/lib/modules/%{kverstr}/build/include
%ifarch i686 x86_64
# files for 'make prepare' to succeed with kernel-devel
cp -a --parents arch/x86/entry/syscalls/syscall_32.tbl %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/entry/syscalls/syscall_64.tbl %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/tools/relocs_32.c %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/tools/relocs_64.c %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/tools/relocs.c %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/tools/relocs_common.c %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/tools/relocs.h %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/purgatory/purgatory.c %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/purgatory/stack.S %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/purgatory/setup-x86_64.S %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/purgatory/entry64.S %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/boot/string.h %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/boot/string.c %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents arch/x86/boot/ctype.h %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents scripts/syscalltbl.sh %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents scripts/syscallhdr.sh %{buildroot}/lib/modules/%{kverstr}/build/
cp -a --parents tools/arch/x86/include/asm %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/arch/x86/include/uapi/asm %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/objtool/arch/x86/lib %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/arch/x86/lib/ %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/arch/x86/tools/gen-insn-attr-x86.awk %{buildroot}/lib/modules/%{kverstr}/build
cp -a --parents tools/objtool/arch/x86/ %{buildroot}/lib/modules/%{kverstr}/build
%endif
# Clean up intermediate tools files
find %{buildroot}/lib/modules/%{kverstr}/build/tools \( -iname "*.o" -o -iname "*.cmd" \) -exec rm -f {} +
# Make sure the Makefile, version.h, and auto.conf have a matching
# timestamp so that external modules can be built
touch -r %{buildroot}/lib/modules/%{kverstr}/build/Makefile \
%{buildroot}/lib/modules/%{kverstr}/build/include/generated/uapi/linux/version.h \
%{buildroot}/lib/modules/%{kverstr}/build/include/config/auto.conf
find %{buildroot}/lib/modules/%{kverstr} -name "*.ko" -type f >modnames
# mark modules executable so that strip-to-file can strip them
xargs --no-run-if-empty chmod u+x < modnames
# Generate a list of modules for block and networking.
grep -F /drivers/ modnames | xargs --no-run-if-empty nm -upA |
sed -n 's,^.*/\([^/]*\.ko\): *U \(.*\)$,\1 \2,p' > drivers.undef
collect_modules_list()
{
sed -r -n -e "s/^([^ ]+) \\.?($2)\$/\\1/p" drivers.undef |
LC_ALL=C sort -u > %{buildroot}/lib/modules/%{kverstr}/modules.$1
if [ ! -z "$3" ]; then
sed -r -e "/^($3)\$/d" -i %{buildroot}/lib/modules/%{kverstr}/modules.$1
fi
}
collect_modules_list networking \
'register_netdev|ieee80211_register_hw|usbnet_probe|phy_driver_register|rt(l_|2x00)(pci|usb)_probe|register_netdevice'
collect_modules_list block \
'ata_scsi_ioctl|scsi_add_host|scsi_add_host_with_dma|blk_alloc_queue|blk_init_queue|register_mtd_blktrans|scsi_esp_register|scsi_register_device_handler|blk_queue_physical_block_size' 'pktcdvd.ko|dm-mod.ko'
collect_modules_list drm \
'drm_open|drm_init'
collect_modules_list modesetting \
'drm_crtc_init'
# detect missing or incorrect license tags
( find %{buildroot}/lib/modules/%{kverstr} -name '*.ko' | xargs /sbin/modinfo -l | \
grep -E -v 'GPL( v2)?$|Dual BSD/GPL$|Dual MPL/GPL$|GPL and additional rights$' ) && exit 1
remove_depmod_files()
{
# remove files that will be auto generated by depmod at rpm -i time
pushd %{buildroot}/lib/modules/%{kverstr}/
rm -f modules.{alias,alias.bin,builtin.alias.bin,builtin.bin} \
modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin}
popd
}
remove_depmod_files
mkdir -p %{buildroot}%{_prefix}/src/kernels
mv %{buildroot}/lib/modules/%{kverstr}/build %{buildroot}%{_prefix}/src/kernels/%{kverstr}
# This is going to create a broken link during the build, but we don't use
# it after this point. We need the link to actually point to something
# when kernel-devel is installed, and a relative link doesn't work across
# the F17 UsrMove feature.
ln -sf %{_prefix}/src/kernels/%{kverstr} %{buildroot}/lib/modules/%{kverstr}/build
find %{buildroot}%{_prefix}/src/kernels -name ".*.cmd" -delete
#
cp -v System.map %{buildroot}/boot/System.map-%{kverstr}
cp -v System.map %{buildroot}/lib/modules/%{kverstr}/System.map
cp -v .config %{buildroot}/boot/config-%{kverstr}
cp -v .config %{buildroot}/lib/modules/%{kverstr}/config
(cd "%{buildroot}/boot/" && sha512hmac "vmlinuz-%{kverstr}" > ".vmlinuz-%{kverstr}.hmac")
cp -v %{buildroot}/boot/vmlinuz-%{kverstr} %{buildroot}/lib/modules/%{kverstr}/vmlinuz
(cd "%{buildroot}/lib/modules/%{kverstr}" && sha512hmac vmlinuz > .vmlinuz.hmac)
# create dummy initramfs image to inflate the disk space requirement for the initramfs. 48M seems to be the right size nowadays with more and more hardware requiring initramfs-located firmware to work properly (for reference, Fedora has it set to 20M)
dd if=/dev/zero of=%{buildroot}/boot/initramfs-%{kverstr}.img bs=1M count=48
%clean
rm -rf %{buildroot}
%post core
if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&
[ -f /etc/sysconfig/kernel ]; then
/bin/sed -r -i -e 's/^DEFAULTKERNEL=kernel-smp$/DEFAULTKERNEL=kernel/' /etc/sysconfig/kernel || exit $?
fi
%posttrans core
/bin/kernel-install add %{kverstr} /lib/modules/%{kverstr}/vmlinuz || exit $?
%preun core
/bin/kernel-install remove %{kverstr} /lib/modules/%{kverstr}/vmlinuz || exit $?
if [ -x /usr/sbin/weak-modules ]
then
/usr/sbin/weak-modules --remove-kernel %{kverstr} || exit $?
fi
%post devel
if [ -f /etc/sysconfig/kernel ]
then
. /etc/sysconfig/kernel || exit $?
fi
if [ "$HARDLINK" != "no" -a -x /usr/bin/hardlink -a ! -e /run/ostree-booted ]
then
(cd /usr/src/kernels/%{kverstr} &&
/usr/bin/find . -type f | while read f; do
hardlink -c /usr/src/kernels/*%{?dist}.*/$f $f 2>&1 >/dev/null
done)
fi
%post modules
/sbin/depmod -a %{kverstr}
%postun modules
/sbin/depmod -a %{kverstr}
%files core
%ghost %attr(0600, root, root) /boot/vmlinuz-%{kverstr}
%ghost %attr(0600, root, root) /boot/System.map-%{kverstr}
%ghost %attr(0600, root, root) /boot/initramfs-%{kverstr}.img
%ghost %attr(0600, root, root) /boot/symvers-%{kverstr}.gz
%ghost %attr(0644, root, root) /boot/config-%{kverstr}
/boot/.vmlinuz-%{kverstr}.hmac
%dir /lib/modules/%{kverstr}
%dir /lib/modules/%{kverstr}/kernel
/lib/modules/%{kverstr}/.vmlinuz.hmac
/lib/modules/%{kverstr}/config
/lib/modules/%{kverstr}/vmlinuz
/lib/modules/%{kverstr}/System.map
/lib/modules/%{kverstr}/symvers.gz
%files modules
%defattr (-, root, root)
/lib/modules/%{kverstr}/*
%exclude /lib/modules/%{kverstr}/.vmlinuz.hmac
%exclude /lib/modules/%{kverstr}/config
%exclude /lib/modules/%{kverstr}/vmlinuz
%exclude /lib/modules/%{kverstr}/System.map
%exclude /lib/modules/%{kverstr}/symvers.gz
%exclude /lib/modules/%{kverstr}/build
%exclude /lib/modules/%{kverstr}/source
%files headers
%defattr (-, root, root)
/usr/include/*
%files devel
%defattr (-, root, root)
/usr/src/kernels/%{kverstr}
/lib/modules/%{kverstr}/build
/lib/modules/%{kverstr}/source
%files devel-matched
%files
%changelog
* Wed Jan 04 2023 Dakkshesh <[email protected]> 6.1.3-1
- dejavu: 6.1.3 ([email protected])
- x86/configs: fedora: Regenerate ([email protected])
- Linux 6.1.3 ([email protected])
- kcsan: Instrument memcpy/memset/memmove with newer Clang ([email protected])
- SUNRPC: Don't leak netobj memory when gss_read_proxy_verf() fails
- tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
- tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
- tpm: acpi: Call acpi_put_table() to fix memory leak ([email protected])
- mmc: vub300: fix warning - do not call blocking ops when !TASK_RUNNING
- block: Do not reread partition table on exclusively open device
- f2fs: allow to read node block after shutdown ([email protected])
- f2fs: should put a page when checking the summary info ([email protected])
- mm, compaction: fix fast_isolate_around() to stay within boundaries
- md: fix a crash in mempool_free ([email protected])
- mfd: mt6360: Add bounds checking in Regmap read/write call-backs
- pnode: terminate at peers of source ([email protected])
- ALSA: hda/hdmi: Static PCM mapping again with AMD HDMI codecs ([email protected])
- ALSA: line6: fix stack overflow in line6_midi_transmit ([email protected])
- ALSA: line6: correct midi status byte when receiving data from podxt
- ovl: update ->f_iocb_flags when ovl_change_flags() modifies ->f_flags
- ovl: Use ovl mounter's fsuid and fsgid in ovl_link()
- binfmt: Fix error return code in load_elf_fdpic_binary()
- ACPI: x86: s2idle: Stop using AMD specific codepath for Rembrandt+
- ACPI: x86: s2idle: Force AMD GUID/_REV 2 on HP Elitebook 865
- hfsplus: fix bug causing custom uid and gid being unable to be assigned with
mount ([email protected])
- pstore/zone: Use GFP_ATOMIC to allocate zone buffer ([email protected])
- pstore: Properly assign mem_type property ([email protected])
- kmsan: include linux/vmalloc.h ([email protected])
- kmsan: export kmsan_handle_urb ([email protected])
- mm/mempolicy: fix memory leak in set_mempolicy_home_node system call
- mm, mremap: fix mremap() expanding vma with addr inside vma ([email protected])
- rtmutex: Add acquire semantics for rtmutex lock acquisition slow path
- futex: Fix futex_waitv() hrtimer debug object leak on kcalloc error
- HID: plantronics: Additional PIDs for double volume key presses quirk
- HID: multitouch: fix Asus ExpertBook P2 P2451FA trackpoint
- kprobes: kretprobe events missing on 2-core KVM guest
- NFSD: fix use-after-free in __nfs42_ssc_open() ([email protected])
- rtc: msc313: Fix function prototype mismatch in msc313_rtc_probe()
- powerpc/rtas: avoid scheduling in rtas_os_term() ([email protected])
- powerpc/rtas: avoid device tree lookups in rtas_os_term()
- iommu/mediatek: Fix crash on isr after kexec() ([email protected])
- objtool: Fix SEGFAULT ([email protected])
- fs/ntfs3: Fix slab-out-of-bounds in r_page ([email protected])
- fs/ntfs3: Delete duplicate condition in ntfs_read_mft()
- fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_fill_super() (penguin-
- fs/ntfs3: Use __GFP_NOWARN allocation at wnd_init() (penguin-
- fs/ntfs3: Validate index root when initialize NTFS security
- phy: sun4i-usb: Add support for the H616 USB PHY ([email protected])
- phy: sun4i-usb: Introduce port2 SIDDQ quirk ([email protected])
- soundwire: dmi-quirks: add quirk variant for LAPBC710 NUC15 (pierre-
- fs/ntfs3: Fix slab-out-of-bounds read in run_unpack ([email protected])
- fs/ntfs3: Validate resident attribute name ([email protected])
- fs/ntfs3: Validate buffer length while parsing index
- fs/ntfs3: Validate attribute name offset ([email protected])
- fs/ntfs3: Add null pointer check for inode operations
- fs/ntfs3: Fix memory leak on ntfs_fill_super() error path
- fs/ntfs3: Add null pointer check to attr_load_runs_vcn
- fs/ntfs3: Validate data run offset ([email protected])
- fs/ntfs3: Add overflow check for attribute size ([email protected])
- fs/ntfs3: Validate BOOT record_size ([email protected])
- nvmet: don't defer passthrough commands with trivial effects to the workqueue
- nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition ([email protected])
- ata: ahci: Fix PCS quirk application for suspend ([email protected])
- block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq ([email protected])
- ACPI: video: Fix Apple GMUX backlight detection ([email protected])
- ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
- ACPI: resource: do IRQ override on Lenovo 14ALC7 ([email protected])
- ACPI: resource: do IRQ override on XMG Core 15 ([email protected])
- nvme-pci: fix page size checks ([email protected])
- nvme-pci: fix mempool alloc size ([email protected])
- nvme-pci: fix doorbell buffer value endianness ([email protected])
- io_uring: pass in EPOLL_URING_WAKE for eventfd signaling and wakeups
- eventfd: provide a eventfd_signal_mask() helper ([email protected])
- eventpoll: add EPOLL_URING_WAKE poll wakeup flag ([email protected])
* Sun Jan 01 2023 Dakkshesh <[email protected]> 6.1.2-1
- dejavu: 6.1.2-1 ([email protected])
- sched: Introduce per-memory-map concurrency ID ([email protected])
- Revert "Add latency priority for CFS class" ([email protected])
- spec: Fix TC_PATH for %%build and %%install ([email protected])
- spec: set KBUILD_BUILD_USER ([email protected])
- scripts/mkcompile_h: Trim URL from custom compiler ([email protected])
- spec: Explicitly pass toolchain path to make variables ([email protected])
- x86/configs: fedora: Regenerate for toolchain update ([email protected])
- Makefile: Switch to O3 for HOST flags ([email protected])
- xfs: Fix deadlock on xfs_inodegc_worker ([email protected])
- xfs: get root inode correctly at bulkstat ([email protected])
- xfs: fix off-by-one error in xfs_btree_space_to_height ([email protected])
- xfs: make xfs_iomap_page_ops static ([email protected])
- xfs: don't assert if cmap covers imap after cycling lock ([email protected])
- XANMOD: cpufreq: tunes ondemand and conservative governor for performance
- XANMOD: dcache: cache_pressure = 50 decreases the rate at which VFS caches
are reclaimed ([email protected])
- block: Do not collect I/O statistics ([email protected])
- sched: Increase the time a task is considered cache-hot ([email protected])
- x86/configs: fedora: Regenerate ([email protected])
- zsmalloc: Implement writeback mechanism for zsmalloc ([email protected])
- zsmalloc: Add zpool_ops field to zs_pool to store evict handlers
- zsmalloc: Add a LRU to zs_pool to keep track of zspages in LRU order
- zsmalloc: Consolidate zs_pool's migrate_lock and size_class's locks
- zpool: clean out dead code ([email protected])
- zswap: fix writeback lock ordering for zsmalloc ([email protected])
- module/decompress: Support zstd in-kernel decompression ([email protected])
- kbuild-modules-6.1: allow setting zstd compression level for modules and the
kernel image ([email protected])
- zstd/decompress: fix repeated words in comments ([email protected])
- zstd/compress: fix repeated words in comments ([email protected])
- zstd/common: fix repeated words in comments ([email protected])
- zstd: import usptream v1.5.2 ([email protected])
- zstd: Move zstd-common module exports to zstd_common_module.c
- lib: zstd: Fix comment typo ([email protected])
- MAINTAINERS: git://github -> https://github.com for terrelln
- i2c: i2c-nct6775: fix -Wimplicit-fallthrough ([email protected])
- ZEN: intel-pstate: Implement "enable" parameter ([email protected])
- ZEN: cpufreq: Remove schedutil dependency on Intel/AMD P-State drivers
- ZEN: PCI: Add Intel remapped NVMe device support ([email protected])
- ZEN: Add OpenRGB patches ([email protected])
- zram-6.1: Introduce merge identical pages mechanism
- zram-6.1: Support multiple compression streams ([email protected])
- compiler: Always inline ([email protected])
- Revert "kbuild: lto: limit inlining" ([email protected])
- ata: libahci: ignore staggered spin-up ([email protected])
- rcu: Make the grace period workers unbound again ([email protected])
- mm: delay page_remove_rmap() until after the TLB has been flushed
- mm: mmu_gather: prepare to gather encoded page pointers with flags
- mm: teach release_pages() to take an array of encoded page pointers too
- mm: introduce 'encoded' page pointers with embedded extra bits
- mm, slob: rename CONFIG_SLOB to CONFIG_SLOB_DEPRECATED ([email protected])
- mm, slub: don't aggressively inline with CONFIG_SLUB_TINY ([email protected])
- mm, slub: remove percpu slabs with CONFIG_SLUB_TINY ([email protected])
- mm, slub: split out allocations from pre/post hooks ([email protected])
- mm, slub: refactor free debug processing ([email protected])
- mm, slab: ignore SLAB_RECLAIM_ACCOUNT with CONFIG_SLUB_TINY ([email protected])
- mm, slub: don't create kmalloc-rcl caches with CONFIG_SLUB_TINY
- mm, slub: lower the default slub_max_order with CONFIG_SLUB_TINY
- mm, slub: retain no free slabs on partial list with CONFIG_SLUB_TINY
- mm, slub: disable SYSFS support with CONFIG_SLUB_TINY ([email protected])
- mm, slub: add CONFIG_SLUB_TINY ([email protected])
- mm, slab: ignore hardened usercopy parameters when disabled ([email protected])
- mm: introduce THP Shrinker ([email protected])
- Tune mgLRU to protect cache used in the last second
- maple_tree: refine mab_calc_split function ([email protected])
- maple_tree: refine ma_state init from mas_start() ([email protected])
- maple_tree: remove the redundant code ([email protected])
- maple_tree: use macro MA_ROOT_PARENT instead of number ([email protected])
- maple_tree: use mt_node_max() instead of direct operations mt_max[]
- maple_tree: remove extra return statement ([email protected])
- maple_tree: remove extra space and blank line ([email protected])
- mm: multi-gen LRU: simplify arch_has_hw_pte_young() check ([email protected])
- mm: multi-gen LRU: clarify scan_control flags ([email protected])
- mm: multi-gen LRU: per-node lru_gen_folio lists ([email protected])
- mm: multi-gen LRU: shuffle should_run_aging() ([email protected])
- mm: multi-gen LRU: remove aging fairness safeguard ([email protected])
- mm: multi-gen LRU: remove eviction fairness safeguard ([email protected])
- mm: multi-gen LRU: rename lrugen->lists[] to lrugen->folios[]
- mm: multi-gen LRU: rename lru_gen_struct to lru_gen_folio ([email protected])
- mm: multi-gen LRU: remove NULL checks on NODE_DATA() ([email protected])
- maple_tree: not necessary to filter MAPLE_PARENT_ROOT since it is not a root
- maple_tree: should get pivots boundary by type ([email protected])
- mm/demotion: Fix NULL vs IS_ERR checking in memory_tier_init
- maple_tree: mte_set_full() and mte_clear_full() clang-analyzer clean up
- ZENIFY: Tune CFS for interactivity ([email protected])
- zsmalloc: add bp hints to memory allocations ([email protected])
- kernel: Allow wakeup IRQs to cancel ongoing suspend ([email protected])
- PM / freezer: Abort suspend when there's a wakeup while freezing
- PM / suspend: Clear wakeups before running PM callbacks
- PM / wakeup: Avoid excessive s2idle wake attempts in pm_system_wakeup()
- timekeeping: Keep the tick alive when CPUs cycle out of s2idle
- rcu/kfree: Do not request RCU when not needed ([email protected])
- fs/ntfs3: Make if more readable ([email protected])
- fs/ntfs3: Improve checking of bad clusters (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Fix wrong if in hdr_first_de (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Use ALIGN kernel macro ([email protected])
- fs/ntfs3: Fix incorrect if in ntfs_set_acl_ex (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Check fields while reading (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Correct ntfs_check_for_free_space (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Restore correct state after ENOSPC in attr_data_get_block
- fs/ntfs3: Changing locking in ntfs_rename (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Fixing wrong logic in attr_set_size and ntfs_fallocate
- fs/ntfs3: atomic_open implementation (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Fix wrong indentations ([email protected])
- fs/ntfs3: Change new sparse cluster processing (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Fixing work with sparse clusters (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Simplify ntfs_update_mftmirr function (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Remove unused functions ([email protected])
- fs/ntfs3: Fix sparse problems ([email protected])
- fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring
- fs/ntfs3: Use _le variants of bitops functions ([email protected])
- fs/ntfs3: Add functions to modify LE bitmaps ([email protected])
- fs/ntfs3: Fix endian conversion in ni_fname_name ([email protected])
- fs/ntfs3: Fix slab-out-of-bounds in r_page ([email protected])
- fs/ntfs3: Delete duplicate condition in ntfs_read_mft()
- fs/ntfs3: Document system.ntfs_attrib_be extended attribute
- fs/ntfs3: Add system.ntfs_attrib_be extended attribute
- fs/ntfs3: Rename hidedotfiles mount option to hide_dot_files
- fs/ntfs3: Document the hidedotfiles mount option ([email protected])
- fs/ntfs3: Add hidedotfiles to the list of enabled mount options
- fs/ntfs3: Make hidedotfiles mount option work when renaming files
- fs/ntfs3: Fix hidedotfiles mount option by reversing behaviour
- fs/ntfs3: Document windows_names mount option ([email protected])
- fs/ntfs3: Add windows_names mount option ([email protected])
- fs/ntfs3: Eliminate unnecessary ternary operator in ntfs_d_compare()
- fs/ntfs3: Validate attribute data and valid sizes ([email protected])
- fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_fill_super() (penguin-
- fs/ntfs3: Use __GFP_NOWARN allocation at wnd_init() (penguin-
- fs/ntfs3: Validate index root when initialize NTFS security
- fs/ntfs3: Don't use uni1 uninitialized in ntfs_d_compare()
- fs/ntfs3: Use strcmp to determine attribute type ([email protected])
- fs/ntfs3: Fix slab-out-of-bounds read in run_unpack ([email protected])
- fs/ntfs3: Validate resident attribute name ([email protected])
- fs/ntfs3: Validate buffer length while parsing index
- fs/ntfs3: Validate attribute name offset ([email protected])
- fs/ntfs3: Add null pointer check for inode operations
- fs/ntfs3: Fix junction point resolution ([email protected])
- fs/ntfs3: Fix memory leak on ntfs_fill_super() error path
- fs/ntfs3: Use kmalloc_array for allocating multiple elements ([email protected])
- fs/ntfs3: Fix attr_punch_hole() null pointer derenference
- fs/ntfs3: Fix [df]mask display in /proc/mounts ([email protected])
- fs/ntfs3: Add null pointer check to attr_load_runs_vcn
- Revert "ntfs3: rework xattr handlers and switch to POSIX ACL VFS helpers"
- fs/ntfs3: Validate data run offset ([email protected])
- fs/ntfs3: Add overflow check for attribute size ([email protected])
- fs/ntfs3: Validate BOOT record_size ([email protected])
- fs/ntfs3: Rename variables and add comment (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Add option "nocase" ([email protected])
- fs/ntfs3: Change destroy_inode to free_inode (almaz.alexandrovich@paragon-
software.com)
- fs/ntfs3: Add hidedotfiles option ([email protected])
- fs/ntfs3: Add comments about cluster size (almaz.alexandrovich@paragon-
software.com)
- Add latency priority for CFS class ([email protected])
- tracing/rseq: Add mm_cid field to rseq_update
- rseq: Extend struct rseq with per-memory-map concurrency ID
- rseq: Extend struct rseq with numa node id ([email protected])
- rseq: Introduce extensible rseq ABI ([email protected])
- rseq: Introduce feature size and alignment ELF auxiliary vector entries
- sched/core: Adjusting the order of scanning CPU ([email protected])
- sched/numa: Stop an exhastive search if an idle core is found
- sched: Make const-safe ([email protected])
- sched: Async unthrottling for cfs bandwidth ([email protected])
- sched: Clear ttwu_pending after enqueue_task() ([email protected])
- sched/psi: Use task->psi_flags to clear in CPU migration
- sched/psi: Stop relying on timer_pending() for poll_work rescheduling
- sched/psi: Fix avgs_work re-arm in psi_avgs_work()
- sched: Always clear user_cpus_ptr in do_set_cpus_allowed()
- sched: Enforce user requested affinity ([email protected])
- sched: Always preserve the user requested cpumask ([email protected])
- sched: Introduce affinity_context ([email protected])
- bfq ([email protected])
- Input: evdev - use call_rcu when detaching client ([email protected])
- x86/configs: fedora: Regenerate ([email protected])
- x86: Inline the spin lock function family ([email protected])
- sched/fair: Compile out NUMA code entirely when NUMA is disabled
- x86/split_lock: turn off by default ([email protected])
- thread_info: Order thread flag tests with respect to flag mutations
- kbuild: Disable stack conservation for GCC ([email protected])
- x86/mce/therm_throt: allow disabling the thermal vector altogether
- x86/mce/therm_throt: allow disabling verbose logging ([email protected])
- x86/mce/therm_throt: remove unused platform_thermal_notify function pointer
- mm: Increment kswapd_waiters for throttled direct reclaimers
- mm: Don't stop kswapd on a per-node basis when there are no waiters
- mm: bump DEFAULT_MAX_MAP_COUNT ([email protected])
- Set vm.max_map_count to 262144 by default ([email protected])
- crypto: x86/ghash - add comment and fix broken link ([email protected])
- crypto: x86/ghash - use le128 instead of u128 ([email protected])
- crypto: x86/ghash - fix unaligned access in ghash_setkey()
- kbuild: pass jobserver to cmd_ld_vmlinux.o ([email protected])
- x86/boot: robustify calling startup_{32,64}() from the decompressor code
- ALSA: hda/hdmi: Static PCM mapping again with AMD HDMI codecs ([email protected])
- rtmutex: Add acquire semantics for rtmutex lock acquisition slow path
- hugetlb: really allocate vma lock for all sharable vmas
- mm, mremap: fix mremap() expanding vma with addr inside vma ([email protected])
- epoll: ep_autoremove_wake_function should use list_del_init_careful
- kbuild: revive parallel execution for .tmp_initcalls.lds rule
- objtool: Optimize elf_dirty_reloc_sym() ([email protected])
- mm: vmscan: make rotations a secondary factor in balancing anon vs file
- blk-wbt: don't enable throttling if default elevator is bfq
- elevator: add new field flags in struct elevator_queue ([email protected])
- blk-wbt: don't show valid wbt_lat_usec in sysfs while wbt is disabled
- blk-wbt: make enable_state more accurate ([email protected])
- blk-wbt: remove unnecessary check in wbt_enable_default()
- elevator: remove redundant code in elv_unregister_queue()
- padata: Do not mark padata_mt_helper() as __init ([email protected])
- clearlinux-6.1: introduce clearlinux patchset ([email protected])
- lib/cpumask: update comment for cpumask_local_spread() ([email protected])
- net/mlx5e: Improve remote NUMA preferences used for the IRQ affinity hints
- sched/topology: Introduce for_each_numa_hop_mask() ([email protected])
- sched/topology: Introduce sched_numa_hop_mask() ([email protected])
- lib/cpumask: reorganize cpumask_local_spread() logic ([email protected])
- cpumask: improve on cpumask_local_spread() locality ([email protected])
- sched: add sched_numa_find_nth_cpu() ([email protected])
- cpumask: introduce cpumask_nth_and_andnot ([email protected])
- lib/find: introduce find_nth_and_andnot_bit ([email protected])
- bitmap: add tests for find_next_bit() ([email protected])
- bitmap: improve small_const case for find_next() functions
- bitmap: switch from inline to __always_inline ([email protected])
- mm: Change dirty writeback defaults ([email protected])
- futex: Fix futex_waitv() hrtimer debug object leak on kcalloc error
- fixdep: remove unneeded <stdarg.h> inclusion ([email protected])
- kbuild: sort single-targets alphabetically again ([email protected])
- kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires
- kbuild: Fix running modpost with musl libc ([email protected])
- kbuild: add a missing line for help message ([email protected])
- .gitignore: ignore *.rpm ([email protected])
- arch: fix broken BuildID for arm64 and riscv ([email protected])
- kconfig: Add static text for search information in help menu
- Linux 6.1.2 ([email protected])
- pwm: tegra: Fix 32 bit build ([email protected])
- mfd: qcom_rpm: Use devm_of_platform_populate() to simplify code
- drm/amd/display: revert Disable DRR actions during state commit
- media: dvbdev: fix refcnt bug ([email protected])
- media: dvbdev: fix build warning due to comments ([email protected])
- net: stmmac: fix errno when create_singlethread_workqueue() fails
- io_uring: remove iopoll spinlock ([email protected])
- io_uring: protect cq_timeouts with timeout_lock ([email protected])
- io_uring/net: fix cleanup after recycle ([email protected])
- io_uring/net: ensure compat import handlers clear free_iov ([email protected])
- io_uring: improve io_double_lock_ctx fail handling ([email protected])
- io_uring: dont remove file from msg_ring reqs ([email protected])
- io_uring: add completion locking for iopoll ([email protected])
- io_uring/net: introduce IORING_SEND_ZC_REPORT_USAGE flag ([email protected])
- blk-iolatency: Fix memory leak on add_disk() failures ([email protected])
- scsi: qla2xxx: Fix crash when I/O abort times out ([email protected])
- mm/gup: disallow FOLL_FORCE|FOLL_WRITE on hugetlb mappings ([email protected])
- btrfs: do not BUG_ON() on ENOMEM when dropping extent items for a range
- ovl: fix use inode directly in rcu-walk mode ([email protected])
- fbdev: fbcon: release buffer when fbcon_do_set_font() failed (penguin-
- maple_tree: fix mas_spanning_rebalance() on insufficient data
- test_maple_tree: add test for mas_spanning_rebalance() on insufficient data
- gcov: add support for checksum field ([email protected])
- floppy: Fix memory leak in do_floppy_init() ([email protected])
- spi: fsl_spi: Don't change speed while chipselect is active
- regulator: core: fix deadlock on regulator enable ([email protected])
- iio: addac: ad74413r: fix integer promotion bug in
ad74413_get_input_current_offset() ([email protected])
- iio: adc128s052: add proper .data members in adc128_of_match table
- iio: adc: ad_sigma_delta: do not use internal iio_dev lock
- iio: fix memory leak in iio_device_register_eventset() ([email protected])
- reiserfs: Add missing calls to reiserfs_security_free()
- security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6
- 9p: set req refcount to zero to avoid uninitialized usage ([email protected])
- loop: Fix the max_loop commandline argument treatment when it is set to 0
- HID: mcp2221: don't connect hidraw ([email protected])
- HID: wacom: Ensure bootloader PID is usable in hidraw mode
- xhci: Prevent infinite loop in transaction errors recovery for streams
- usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init
- usb: dwc3: core: defer probe on ulpi_read_id timeout ([email protected])
- usb: dwc3: Fix race between dwc3_set_mode and __dwc3_set_mode
- clk: imx: imx8mp: add shared clk gate for usb suspend clk ([email protected])
- dt-bindings: clocks: imx8mp: Add ID for usb suspend clock ([email protected])
- arm64: dts: qcom: sm8250: fix USB-DP PHY registers ([email protected])
- arm64: dts: qcom: sm6350: fix USB-DP PHY registers ([email protected])
- usb: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq
- usb: cdnsp: fix lack of ZLP for ep0 ([email protected])
- HID: logitech-hidpp: Guard FF init code against non-USB devices
- ALSA: hda/hdmi: Add HP Device 0x8711 to force connect list
- ALSA: hda/realtek: Add quirk for Lenovo TianYi510Pro-14IOB
- ALSA: usb-audio: add the quirk for KT0206 device ([email protected])
- ALSA: usb-audio: Workaround for XRUN at prepare ([email protected])
- dt-bindings: input: iqs7222: Add support for IQS7222A v1.13+
- dt-bindings: input: iqs7222: Correct minimum slider size ([email protected])
- dt-bindings: input: iqs7222: Reduce 'linux,code' to optional
- Input: iqs7222 - add support for IQS7222A v1.13+ ([email protected])
- Input: iqs7222 - report malformed properties ([email protected])
- Input: iqs7222 - drop unused device node references ([email protected])
- ima: Simplify ima_lsm_copy_rule ([email protected])
- pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES
- cfi: Fix CFI failure with KASAN ([email protected])
- afs: Fix lost servers_outstanding count ([email protected])
- perf test: Fix "all PMU test" to skip parametrized events
- MIPS: ralink: mt7621: avoid to init common ralink reset controller
- perf probe: Check -v and -q options in the right place
- perf tools: Make quiet mode consistent between tools ([email protected])
- perf debug: Set debug_peo_args and redirect_to_stderr variable to correct
values in perf_quiet_option() ([email protected])
- drm/amd/pm: avoid large variable on kernel stack ([email protected])
- pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion
- lkdtm: cfi: Make PAC test work with GCC 7 and 8 ([email protected])
- LoadPin: Ignore the "contents" argument of the LSM hooks
- drm/i915/display: Don't disable DDI/Transcoder when setting phy test pattern
- ASoC: rt5670: Remove unbalanced pm_runtime_put() ([email protected])